* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

html, body {
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0a0a12;
}

body {
    background: #0a0a12;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Окно карты внутри контентного фрейма */
.game-map-view {
    padding: 0 !important;
    overflow: hidden !important;
    background: #02040b !important;
    position: fixed;
    top: 75px;
    bottom: 20px;
    left: 420px;
    right: 100px;
    display: flex;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 13px;
}

/* Векторный оверлей корабля с поддержкой живых CSS/SMIL-анимаций сопел */
.ship-engine-overlay {
    position: absolute;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    pointer-events: none;
    z-index: 15;
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ship-svg-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
}

.ship-svg-wrapper svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    overflow: visible;
}

/* Верхняя пульсирующая красная точка строго по центру поверх анимации */
.ship-overlay-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    background: #ff0055;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 0 8px #ff0055;
    animation: pulseCenterDot 1.2s infinite ease-in-out alternate;
}

@keyframes pulseCenterDot {
    0% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.85); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 12px #ff0055; }
}

/* Верхняя панель */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}
.logo span { color: #38bdf8; font-weight: 600; font-size: 16px; }

/* SVG-миниатюра корабля в логотипе (без фона и рамок) */
.topbar-ship-thumb {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: none;
}
.topbar-ship-thumb svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.35));
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(9, 14, 26, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 4px 8px;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Статусные плашки ресурсов (без индивидуальных рамок) */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    cursor: default;
    transition: background-color 0.18s ease;
    position: relative;
}

.stat-pill:hover {
    background: rgba(255, 255, 255, 0.06);
}

.stat-icon {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.stat-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    flex-shrink: 0;
}

.stat-unit {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.stat-unit-fig { color: #c084fc; }
.stat-unit-exp { color: #38bdf8; }

.uvik-svg-icon {
    width: 17px;
    height: 17px;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.65));
}
.box-stat-icon {
    font-size: 14px;
}
.btn-stat-action {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: all 0.15s ease;
}
.btn-stat-action:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.btn-stat-craft {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    border-color: rgba(192, 132, 252, 0.4) !important;
}
.btn-stat-chest {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    border-color: rgba(250, 204, 21, 0.4) !important;
}
.btn-pill-action {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
}
.btn-pill-action:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

/* Кнопка почты в шапке слева от позывного */
.btn-mail-header {
    position: relative;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mail-header-svg {
    width: 20px;
    height: 20px;
    display: block;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.45));
    transition: all 0.2s ease;
}

.btn-mail-header:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #00e5ff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.btn-mail-header:hover .mail-header-svg {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.85));
    transform: scale(1.08);
}

/* Бейдж непрочитанных писем с плавной мигающей зеленой подсветкой */
.mail-unread-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    background: #10b981;
    color: #040918;
    font-size: 10.5px;
    font-weight: 900;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    animation: smoothGreenGlow 1.8s infinite ease-in-out alternate;
    pointer-events: none;
}

@keyframes smoothGreenGlow {
    0% {
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
        transform: scale(0.95);
        opacity: 0.85;
    }
    100% {
        box-shadow: 0 0 16px rgba(16, 185, 129, 1), 0 0 24px rgba(52, 211, 153, 0.6);
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Карточки комнат Арены */
.arena-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.arena-room-card {
    background: #090e1a;
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.arena-room-card:hover {
    border-color: #f43f5e;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.2);
    transform: translateY(-2px);
}

.arena-room-card.is-my-room {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.04);
}

/* Карточка письма в почте */
.mail-item-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.mail-item-card:hover {
    border-color: #38bdf8;
    background: #0d1527;
}

.mail-item-card.unread {
    border-left: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.mail-type-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.mail-type-arena {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.mail-type-system {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.mail-type-reward {
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #fde047;
}

/* =========================================================
   СТИЛИ КОСМИЧЕСКИХ КОРПОРАЦИЙ (КЛАНОВ)
   ========================================================= */

/* Карточки технологий кланового древа */
.clan-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.clan-tech-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.clan-tech-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.2);
}

.clan-tech-level-badge {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #facc15;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Сетка численных характеристик по уровням */
.clan-tech-tiers-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    background: #050811;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px;
    margin-top: 2px;
}

.clan-tech-tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 4px;
    gap: 3px;
    transition: all 0.2s ease;
}

.clan-tech-tier-item.current-tier {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.clan-tech-tier-item.active-tier {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
}

.clan-tech-tier-item.locked-tier {
    opacity: 0.45;
}

.clan-tech-tier-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.clan-tech-tier-item.current-tier .clan-tech-tier-label {
    color: #6ee7b7;
}

.clan-tech-tier-val {
    font-size: 11.5px;
    font-weight: 700;
    color: #f8fafc;
    font-family: monospace;
    line-height: 1.25;
}

/* Клановый чат и лог событий */
.clan-chat-box {
    display: flex;
    flex-direction: column;
    height: 320px;
    background: #060a14;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 12px;
    overflow-y: auto;
    gap: 8px;
    scroll-behavior: smooth;
}

.clan-chat-msg {
    position: relative;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.45;
    background: #0d1527;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #38bdf8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.clan-chat-msg-body {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.clan-chat-msg.is-system {
    border-left-color: #facc15;
    color: #fef08a;
    font-style: italic;
    background: rgba(250, 204, 21, 0.05);
}

/* Кнопка "Пожаловаться" на сообщение при наведении */
.btn-clan-chat-report {
    opacity: 0;
    visibility: hidden;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.btn-clan-chat-report:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.clan-chat-msg:hover .btn-clan-chat-report {
    opacity: 1;
    visibility: visible;
}

/* Арена еженедельного босс-рейда */
.boss-raid-banner {
    background: radial-gradient(circle at 50% 50%, #1e112a 0%, #080d1a 80%);
    border: 1.5px solid rgba(244, 63, 94, 0.45);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 63, 94, 0.2);
}

.boss-hp-track {
    width: 100%;
    max-width: 520px;
    height: 16px;
    background: #111a2e;
    border: 1px solid rgba(244, 63, 94, 0.5);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.boss-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f43f5e, #fda4af);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    transition: width 0.3s ease;
}

/* Карточки заявок на ресурсы */
.clan-request-card {
    background: #090e1a;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Холст тактического радара галактики для Дредноута на всю область */
.dread-radar-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 380px;
    background: radial-gradient(circle at 50% 50%, #06122c 0%, #030814 65%, #010308 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.15);
}

.dread-radar-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Векторный оверлей анимированного дредноута в открытом космосе */
.galaxy-dreadnought-overlay-node {
    position: absolute;
    width: 120px;
    height: 120px;
    min-width: 0 !important;
    min-height: 0 !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform;
    top: 0;
    left: 0;
    z-index: 40;
}

.galaxy-dreadnought-overlay-node svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    overflow: visible;
}

/* Левая информационная панель миссии (100% непрозрачная) */
.mission-panel {
    position: absolute;
    top: 75px;
    left: 20px;
    bottom: 20px;
    width: 380px;
    background: #080d1a !important; /* Абсолютно плотный непрозрачный фон */
    backdrop-filter: none !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 20px;
    z-index: 10;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
}

/* Правая вертикальная панель навигации */
.right-nav-bar {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 19, 36, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 30px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.nav-icon-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s;
}
.nav-icon-btn:hover {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}
.nav-icon-btn:hover svg {
    transform: scale(1.15);
}

.nav-icon-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

/* Пульсирующая подсветка кнопки при наличии новых заявок/багов */
.nav-icon-btn.has-notifications {
    border-color: #f43f5e !important;
    color: #f43f5e !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
    animation: pulseNavBtn 2s infinite ease-in-out;
}

@keyframes pulseNavBtn {
    0%, 100% {
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.7);
        transform: scale(1.08);
    }
}

/* Кнопка выхода в верхней панели шапки */
.btn-logout-header {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout-header:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.nav-divider {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 2px 0;
}

/* Полноэкранные встроенные панели контента (100% непрозрачные) */
.main-content-view {
    position: fixed;
    top: 75px;
    bottom: 20px;
    left: 420px;
    right: 100px;
    background: #080d1a !important; /* Абсолютно плотный непрозрачный тёмный фон */
    backdrop-filter: none !important;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.15);
}

.content-view-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content-view-header h3 {
    font-size: 18px;
    color: #38bdf8;
}

/* Редактирование позывного в профиле */
.profile-callsign-edit-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 32px;
}
.profile-callsign-edit-bar input {
    padding: 0 10px;
    font-size: 12px;
    width: 140px;
    height: 32px;
    box-sizing: border-box;
}
.profile-callsign-edit-bar button {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Сетка сводной статистики */
.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.prof-stat-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.prof-stat-card .stat-lbl {
    font-size: 12.5px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.prof-stat-card .stat-num {
    font-size: 20px;
    font-weight: 800;
    font-family: monospace;
}

/* Сетка подробной статистики действий в Штабе */
.actions-stats-group-box {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actions-stats-group-title {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.actions-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.action-stat-pill-card {
    background: #111a2e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.action-stat-pill-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: #16223d;
}

.action-stat-pill-label {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.35;
}

.action-stat-pill-value {
    font-size: 15px;
    font-weight: 800;
    font-family: monospace;
    color: #f8fafc;
    white-space: nowrap;
}

/* Панель фильтров таблицы профиля */
.profile-table-filter-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
}

.profile-filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #cbd5e1;
    cursor: pointer;
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.profile-filter-checkbox-label:hover {
    border-color: #38bdf8;
    background: #111a2e;
    color: #ffffff;
}

.profile-filter-checkbox-label input[type="checkbox"] {
    accent-color: #38bdf8;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Таблица прогресса по всем секторам */
.profile-sectors-table-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 8px;
}

.profile-sectors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.profile-sectors-table th {
    background: rgba(15, 23, 42, 0.8);
    padding: 11px 10px;
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    text-align: left;
}

.profile-sectors-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-sectors-table tr.sector-locked-row {
    opacity: 0.45;
}

.sec-num-td {
    color: #38bdf8;
    font-family: monospace;
    font-size: 14.5px;
}

.sec-title-td {
    font-weight: 600;
    color: #f8fafc;
}

/* Ячейка статуса режима */
.mode-cell-box {
    background: #111a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mode-cell-box.is-passed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}

.prof-rec-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-family: monospace;
}
.prof-rec-line.std b { color: #10b981; }
.prof-rec-line.cst b { color: #c084fc; }
.prof-rec-line.unpassed { color: #475569; }

.rank-tag {
    font-size: 10px;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border-radius: 4px;
    padding: 1px 4px;
    margin-left: auto;
    font-weight: 700;
}

.jump-btn {
    padding: 4px 10px;
    font-size: 11px;
    white-space: nowrap;
}

/* Кнопка закрытия для полноэкранных панелей с надписью Esc */
.content-view-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-view-close-btn .esc-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.content-view-close-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.content-view-close-btn:hover .esc-label {
    color: #ffffff;
}

@keyframes fadeInView {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mission-header h2 {
    font-size: 18px;
    color: #00e5ff;
}

/* Глобальные кастомные скроллбары */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.35) rgba(9, 14, 26, 0.6);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(9, 14, 26, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.15);
    transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Стилизация скроллбара в описании миссии */
.mission-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 16px;
    flex: 1; /* Занимает всё свободное место панели */
    overflow-y: auto;
    padding-right: 8px;
}

.mission-desc::-webkit-scrollbar {
    width: 5px;
}

.mission-desc::-webkit-scrollbar-track {
    background: rgba(4, 9, 24, 0.5);
    border-radius: 4px;
}

.mission-desc::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 4px;
    box-shadow: inset 0 0 4px rgba(56, 189, 248, 0.25);
}

.mission-desc::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.75);
}

/* Анимация всплывающего списания Ювиков при запуске */
.uvik-deduction-badge {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    pointer-events: none;
    z-index: 1000;
    animation: uvikFloatDown 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes uvikFloatDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -4px) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, 6px) scale(1.1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, 12px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.9);
    }
}

/* Статичная плашка настройки задержки старта в левом верхнем углу карты */
.ship-start-delay-card {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    transform: none !important;
    background: rgba(9, 14, 26, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    padding: 6px 12px;
    width: 170px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75), 0 0 10px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(8px);
    z-index: 20;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delay-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap; /* Строго в одну строку */
}

.delay-card-val {
    color: #facc15;
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
}

.delay-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #1e293b;
    outline: none;
    cursor: pointer;
    margin: 2px 0;
}

.delay-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.9);
    transition: transform 0.1s, background-color 0.1s;
}

.delay-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #00e5ff;
}

.delay-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.9);
}
.cost-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.cost-hint b {
    color: #ffeb3b;
    font-weight: 700;
}
.uvik-mini {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

/* Кнопки */
.btn {
    background: #1e1e38;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.btn:hover { background: #2a2a4e; }

.btn-action { background: #ff0055; border: none; font-weight: bold; }
.btn-action:hover { background: #d90048; }

.btn-success { background: #00e676; border: none; color: #000; font-weight: bold; }
.btn-success:hover { background: #00c853; }

/* Однорядная панель кнопок миссии */
.mission-buttons-row {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.btn-ctrl-row {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 !important;
    width: auto !important;
    border-radius: 8px;
}

.btn-sm {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(4, 7, 18, 0.88) !important;
    backdrop-filter: blur(8px);
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #080d1a !important; /* Абсолютно плотный непрозрачный фон */
    backdrop-filter: none !important;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: #0a0a12;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
}

/* Баннер напоминания о подтверждении Email */
.email-confirm-banner {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #fef08a;
}

.btn-resend-email {
    background: #eab308;
    color: #090e1a;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.btn-resend-email:hover {
    opacity: 0.9;
}

/* Двухколоночная сетка для параллельных таблиц ТОП-100 */
.leaderboards-dual-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 0;
    height: 100%;
}

.leaderboard-column {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.leaderboard-column-header {
    background: rgba(56, 189, 248, 0.12);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
}

.leaderboard-column-header.custom-col {
    background: rgba(168, 85, 247, 0.12);
    border-bottom-color: rgba(168, 85, 247, 0.25);
    color: #c084fc;
}

.leaderboard-table-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.records-table th, .records-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Строка создателя карты в панели миссии */
.mission-author-line {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mission-author-line b {
    color: #38bdf8;
    font-weight: 700;
}

/* Квадратная картинка миссии со стилями рамки и скругления информационной панели */
.mission-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #080812;
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.mission-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Плашка автора поверх картинки в правом нижнем углу */
.mission-author-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(10, 15, 30, 0.90);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 11px;
    color: #94a3b8;
    display: flex !important;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(56, 189, 248, 0.15);
    z-index: 10; /* Гарантированно поверх изображения */
}

/* Контейнер всплывающих уведомлений (Сверху по центру страницы с отступом 200px) */
.toast-container {
    position: fixed !important;
    top: 200px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: auto !important;
    right: auto !important;
    z-index: 9999999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

/* Карточка уведомления */
.toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 460px;
    background: rgba(14, 18, 32, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 10px;
    padding: 16px 22px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 15px rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #00e5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: scale(0.85) translateY(-20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимация появления */
.toast.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Анимация исчезновения */
.toast.hide {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
}

/* Индивидуальные верхние полосы по типам */
.toast-success { border-top-color: #00e676; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 230, 118, 0.2); }
.toast-error { border-top-color: #ff0055; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 0, 85, 0.2); }
.toast-warning { border-top-color: #ffb703; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 183, 3, 0.2); }
.toast-info { border-top-color: #00e5ff; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 229, 255, 0.2); }

.toast-message {
    flex: 1;
    white-space: pre-line;
    text-align: center;
}

/* Модальные окна */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  position: relative;
  background: #080d1a !important; /* Абсолютно плотный непрозрачный фон */
  backdrop-filter: none !important;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: #f8fafc;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.form-input {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #38bdf8;
}

.form-note {
  font-size: 12px;
  color: #eab308;
  margin: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: scale(0.98);
}

.w-full {
  width: 100%;
}

/* Жесткое скрытие любых модалок */
.modal-overlay.hidden,
.hidden {
  display: none !important;
}

/* Оверлей модального окна поверх всего экрана */
.modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Кнопка входа/выхода в шапке */
.auth-btn-header {
  background: #1e293b;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn-header:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* Всплывающая подсказка об объекте (в правом верхнем углу окна карты) */
.object-tooltip {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 310px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  color: #f8fafc !important;
  font-size: 13.5px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.25) !important;
  pointer-events: none !important;
  z-index: 9999999 !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: block !important;
}

.object-tooltip.tooltip-hidden,
.object-tooltip.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
  display: none !important;
}

.object-tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.object-tooltip-desc {
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 13px;
  margin: 0;
}

.object-tooltip.tooltip-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
}

/* Стили выпадающего списка миссий */
.mission-select {
  flex: 1;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-overflow: ellipsis;
}

.mission-select:hover {
  border-color: #38bdf8;
  background: #243248;
}

.mission-select option {
  background: #0f172a;
  color: #f8fafc;
  padding: 6px;
}

/* Бейдж ключевых характеристик объекта в тултипе */
.object-tooltip-stats {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #38bdf8;
  font-family: monospace;
}

/* Кнопка подсказки точки прохождения */
.btn-hint {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 600;
    width: 100%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: background 0.2s, transform 0.1s;
}
.btn-hint:hover {
    background: #4338ca;
}
.btn-hint:active {
    transform: scale(0.98);
}

/* Навигатор номера миссии (стрелочки и инпут) */
.mission-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 0 8px;
    height: 36px;
    box-sizing: border-box;
}

.mission-num-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #38bdf8;
}

.mission-num-wrapper input {
    width: 55px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    text-align: center;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 14px;
    font-weight: bold;
    outline: none;
}
.mission-num-wrapper input:focus {
    border-color: #38bdf8;
}

.nav-arrow-btn {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.nav-arrow-btn:hover {
    background: rgba(56, 189, 248, 0.2);
}
.nav-arrow-btn:disabled {
    color: #475569;
    cursor: not-allowed;
}

/* Панель послематчевой статистики (в правом верхнем углу окна карты) */
.post-stats-panel {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    width: 310px;
    background: rgba(13, 19, 36, 0.96);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    padding: 14px;
    z-index: 25;
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.post-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #38bdf8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Круглая неоновая кнопка закрытия с эффектом вращения */
.post-stats-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-stats-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.post-stats-current {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
}

.neighbors-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.post-stats-personal {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #fef08a;
}

.post-stats-panel .records-table tr.highlight-me {
    background: rgba(56, 189, 248, 0.25);
    font-weight: bold;
}

/* Кнопка рекордов в едином стиле с плашкой сектора */
.btn-records {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    padding: 0 12px;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    height: 36px;
    box-sizing: border-box;
}

.btn-records:hover {
    background: #243248;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-records:active {
    transform: scale(0.97);
}

/* Переключатель режимов сектора */
.mode-selector-wrapper {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: #0f172a;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.mode-tab-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 5px 2px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mode-tab-title {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Блок двух строк рекордов */
.mode-tab-records-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-top: 3px;
}

.mode-rec-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11.5px;
    line-height: 1.2;
    color: #64748b;
    font-family: monospace;
    font-weight: 600;
}

.mode-rec-row .rec-icon {
    font-size: 10px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

/* Подсветка рекорда без перков (зеленый) */
.mode-rec-row.has-record .rec-val {
    color: #10b981;
    font-weight: 700;
}

/* Подсветка рекорда с перками Космопути (фиолетовый неон) */
.mode-rec-row.mode-rec-custom.has-record .rec-val {
    color: #c084fc;
    font-weight: 700;
}

/* Плашка глобального рейтинга в правом нижнем углу окна карты */
.global-rating-widget {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
    width: 290px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.18);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.global-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #facc15;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 5px;
}

.global-rating-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.global-rating-help-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.help-q-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.global-rating-help-trigger:hover .help-q-mark {
    background: #facc15;
    color: #090e1a;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
    transform: scale(1.1);
}
.global-rating-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: -95px; /* Смещаем тело подсказки влево над плашкой рейтинга */
    width: 250px; /* Достаточная ширина, чтобы текст не переносился */
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 8px;
    padding: 10px 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(250, 204, 21, 0.2);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* Стрелочка тултипа точно над знаком вопроса */
.global-rating-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 98px;
    width: 8px;
    height: 8px;
    background: rgba(10, 15, 30, 0.98);
    border-right: 1px solid rgba(250, 204, 21, 0.45);
    border-bottom: 1px solid rgba(250, 204, 21, 0.45);
    transform: rotate(45deg);
}

.global-rating-help-trigger:hover .global-rating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gr-tooltip-title {
    font-size: 11px;
    font-weight: 800;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.gr-tooltip-desc {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.3;
    margin-bottom: 8px;
}

.gr-tooltip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 16px;
    font-size: 11px;
}

.gr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    white-space: nowrap;
}

.gr-row span {
    white-space: nowrap;
}

.gr-row b {
    color: #fde047;
    font-family: monospace;
    margin-left: 6px;
    white-space: nowrap;
}

.global-rating-rank-badge {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #fde047;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
}

.global-rating-body {
    max-height: 190px;
    overflow: hidden;
}

.global-rating-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.global-rating-table tr {
    transition: background 0.15s;
}

.global-rating-table tr.highlight-me {
    background: rgba(56, 189, 248, 0.22);
    border-radius: 4px;
    font-weight: 700;
    color: #38bdf8;
}

.global-rating-table td {
    padding: 3px 4px;
    white-space: nowrap;
    border: none;
}

.global-rating-table td.col-rank {
    width: 26px;
    color: #94a3b8;
    font-family: monospace;
}

.global-rating-table td.col-name {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    color: #e2e8f0;
}

.global-rating-table td.col-score {
    text-align: right;
    color: #facc15;
    font-family: monospace;
    font-weight: 600;
}

/* Векторная иконка Космопути */
.title-with-svg {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cosmo-svg-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
}

.cosmo-svg-icon.mini {
    width: 12px;
    height: 12px;
    filter: drop-shadow(0 0 3px rgba(192, 132, 252, 0.5));
}

/* Строка создателя карты в панели миссии */
.mission-author-line {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mission-author-line b {
    color: #38bdf8;
    font-weight: 700;
}

.mode-tab-btn:hover {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.1);
}

.mode-tab-btn.active {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

/* Панель редактора карт */
.editor-bar {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    width: 360px;
    max-height: calc(100% - 28px);
    overflow-y: auto;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 16px;
    z-index: 950;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(2, 132, 199, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: inherit;
}


/* Верхняя строка управления */
.editor-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.editor-badge-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #38bdf8;
    text-transform: uppercase;
}

.editor-actions-group {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.editor-actions-group .btn-editor-action {
    flex: 1;
}

/* Кнопки действий единой высоты (32px) */
.btn-editor-action {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-editor-save {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}
.btn-editor-save:hover {
    filter: brightness(1.15);
}

.btn-editor-exit {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0 10px;
}
.btn-editor-exit:hover {
    background: #ef4444;
    color: #ffffff;
}


.btn-editor-test {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.3);
    color: #f8fafc;
}

.btn-editor-test:hover {
    background: #28374d;
    border-color: #38bdf8;
    color: #38bdf8;
}


.editor-badge-title span {
    font-size: 16px;
}

.editor-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.btn-tool {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #f8fafc;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}
.btn-tool:hover { background: #0284c7; color: #fff; }

.editor-inspector {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inspector-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

.inspector-field-row input {
    width: 80px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    text-align: right;
}

.workshop-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}
.workshop-card:hover { border-color: #38bdf8; }
.badge-mode {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    background: #334155;
    color: #94a3b8;
}
.badge-mode.done { background: #059669; color: #fff; }

/* Сетка палитры добавления объектов */
.editor-palette-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-palette-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.editor-palette-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Кнопки объектов палитры */
.btn-palette-tool {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s ease;
    text-align: left;
}

.btn-palette-tool:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Индивидуальная подсветка по типам */
.tool-start:hover { border-color: #00e5ff; color: #00e5ff; }
.tool-target:hover { border-color: #00e676; color: #00e676; }
.tool-gravity:hover { border-color: #c084fc; color: #c084fc; }
.tool-brake:hover { border-color: #facc15; color: #facc15; }
.tool-reflector:hover { border-color: #22d3ee; color: #22d3ee; }
.tool-meteor:hover { border-color: #f87171; color: #f87171; }
.tool-repulsor:hover { border-color: #ffffff; color: #ffffff; }
.tool-accelerator:hover { border-color: #facc15; color: #facc15; }
.tool-vortex:hover { border-color: #f472b6; color: #f472b6; }
.tool-wormhole:hover { border-color: #38bdf8; color: #38bdf8; }
.tool-laser:hover { border-color: #f43f5e; color: #f43f5e; }
.tool-orbital:hover { border-color: #06b6d4; color: #06b6d4; }
.tool-chrono:hover { border-color: #2dd4bf; color: #2dd4bf; }
.tool-prism:hover { border-color: #d8b4fe; color: #d8b4fe; }
.tool-nova:hover { border-color: #fb923c; color: #fb923c; }
.tool-bungee:hover { border-color: #38bdf8; color: #38bdf8; }

/* Сетка ежедневных заданий (увеличенная ширина) */
.daily-tasks-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding-right: 6px;
    align-items: start;
    align-content: start;
}

/* Карточки и сетка компьютеров в Серверной (базовая ширина 330px) */
.server-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

/* Сетка и карточки Хранилищного склада */
.warehouse-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.warehouse-actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.btn-warehouse-action {
    height: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.warehouse-slot-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.warehouse-slot-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.warehouse-slot-card.is-destroyed {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.04);
}

.warehouse-slot-card.empty-slot {
    border: 2px dashed rgba(56, 189, 248, 0.25);
    background: rgba(9, 14, 26, 0.5);
    opacity: 0.85;
}

.warehouse-slot-card.empty-slot:hover {
    border-color: rgba(56, 189, 248, 0.5);
    opacity: 1;
}

.warehouse-specs-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #111a2e;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-comp-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Зелёная подсветка только что созданного ПК в резерве */
.server-comp-card.new-crafted-highlight {
    border-color: #00e676 !important;
    background: rgba(0, 230, 118, 0.08) !important;
    box-shadow: 0 0 22px rgba(0, 230, 118, 0.5) !important;
    animation: pulseNewCraftedComp 2.2s infinite ease-in-out alternate;
}

@keyframes pulseNewCraftedComp {
    0% {
        box-shadow: 0 0 12px rgba(0, 230, 118, 0.35);
        border-color: #00e676;
    }
    100% {
        box-shadow: 0 0 26px rgba(0, 230, 118, 0.75);
        border-color: #69f0ae;
    }
}

.server-comp-card.active {
    border-color: rgba(192, 132, 252, 0.4);
    background: rgba(192, 132, 252, 0.04);
}

/* Красная подсветка изношенных компьютеров с исчерпанным ресурсом */
.server-comp-card.is-depleted {
    border-color: rgba(239, 68, 68, 0.65) !important;
    background: rgba(239, 68, 68, 0.06) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25) !important;
}

.server-comp-card.is-depleted:hover {
    border-color: #ef4444 !important;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.45) !important;
}

.server-comp-card.empty-slot {
    border: 2px dashed rgba(56, 189, 248, 0.25);
    background: rgba(9, 14, 26, 0.5);
    opacity: 0.8;
}

.server-comp-card.empty-slot:hover {
    border-color: rgba(56, 189, 248, 0.5);
    opacity: 1;
}

.server-comp-specs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: #94a3b8;
    background: #111a2e;
    padding: 8px 12px;
    border-radius: 6px;
}
.server-comp-specs b { color: #f8fafc; }

/* Карточка игрового автомата Квантовых Слотов и Ракеты */
.slots-machine-card {
    background: #090e1a;
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(192, 132, 252, 0.15);
}

/* Холст и арена Квантовой Ракеты */
.rocket-arena-box {
    width: 100%;
    max-width: 580px;
    height: 240px;
    background: radial-gradient(circle at 50% 80%, #111a36 0%, #060b18 70%, #02040b 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}

.rocket-multiplier-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 900;
    font-family: monospace;
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    pointer-events: none;
    z-index: 5;
    transition: color 0.2s ease;
}

.rocket-multiplier-display.crashed {
    color: #ef4444 !important;
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.8) !important;
}

.rocket-flying-node {
    position: absolute;
    bottom: 25px;
    left: 40px;
    font-size: 38px;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.7));
    transition: transform 0.05s linear;
    z-index: 6;
}

.btn-rocket-cashout {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    animation: pulseGreenCashout 1.2s infinite ease-in-out alternate;
}

@keyframes pulseGreenCashout {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); transform: scale(1); }
    100% { box-shadow: 0 0 22px rgba(16, 185, 129, 0.85); transform: scale(1.02); }
}

.slots-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slots-reels-row {
    display: flex;
    gap: 14px;
}

.slot-reel {
    width: 90px;
    height: 90px;
    background: #02040b;
    border: 2px solid #c084fc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 0 0 15px rgba(192, 132, 252, 0.3);
}

.slots-payout-bar {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #cbd5e1;
    background: #111a2e;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slots-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 580px;
    background: #111a2e;
    padding: 12px 20px;
    border-radius: 10px;
    gap: 16px;
}

.btn-bet.active {
    background: #c084fc !important;
    color: #090e1a !important;
    font-weight: 800;
}

/* Сетка и карточки 15 банков */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.bank-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.bank-card:hover:not(.disabled) {
    border-color: #38bdf8;
    background: #111a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.2);
}

.bank-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.bank-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(239, 68, 68, 0.35);
}

.bank-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bank-card-icon {
    font-size: 22px;
    line-height: 1;
}

.bank-card-title {
    font-weight: 700;
    font-size: 15px;
    color: #f8fafc;
    flex: 1;
}

.bank-rate-badge {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
    font-size: 13px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.bank-card-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #cbd5e1;
}

.bank-card-repay-line {
    font-size: 12.5px;
    color: #94a3b8;
}

.bank-card-repay-line b {
    color: #facc15;
    font-size: 13.5px;
    font-family: monospace;
}

/* Выбор корабля в редакторе */
.editor-ship-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #090e1a;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.editor-ship-select {
    padding: 6px 10px;
    font-size: 12px;
    background: #131c2e;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    color: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.editor-ship-select:focus,
.editor-ship-select:hover {
    border-color: #38bdf8;
}

/* Инспектор параметров выделенного объекта */
.editor-inspector {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.2s ease;
}

.inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.inspector-header b {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
}

.btn-inspect-del {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s;
}
.btn-inspect-del:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.inspector-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

.inspector-field-row input {
    width: 75px;
    background: #131c2e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    outline: none;
    transition: border-color 0.15s;
}
.inspector-field-row input:focus {
    border-color: #38bdf8;
}

/* Переключатель режимов внутри редактора */
.editor-mode-selector {
    display: flex;
    gap: 4px;
    background: #090e1a;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.editor-mode-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 5px 2px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.editor-mode-btn:hover {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.08);
}

.editor-mode-btn.active {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

/* Интерактивные плашки промптов в админке */
.prompt-copy-box {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.prompt-copy-box:hover {
    border-color: #38bdf8;
    background: #111a2e;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.prompt-copy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38bdf8;
}

.prompt-copy-text {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.45;
}

/* Эффект успешного копирования (подсветка) */
.prompt-copy-box.copied {
    border-color: #00e676 !important;
    background: rgba(0, 230, 118, 0.16) !important;
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.4) !important;
}

.prompt-copy-box.copied .prompt-copy-header {
    color: #00e676 !important;
}

.prompt-copy-box.copied .prompt-copy-text {
    color: #ffffff !important;
}

/* Блок Live-предпросмотра 300x300 для Кораблей и Планет */
/* Компоновка карточки миссии с превью корабля 200x200 */
.workshop-mission-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.workshop-mission-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.mission-ship-preview-200 {
    width: 200px;
    height: 200px;
    min-width: 200px;
    background: #02040b;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.12);
}

.mission-ship-preview-200 svg {
    width: 100%;
    height: 100%;
    max-width: 175px;
    max-height: 175px;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
    transition: transform 0.2s ease;
}

.mission-ship-preview-200:hover svg {
    transform: scale(1.05);
}

.mission-planet-preview-200 {
    width: 200px;
    height: 200px;
    min-width: 200px;
    background: #02040b;
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(192, 132, 252, 0.12);
}

.mission-planet-preview-200 svg {
    width: 100%;
    height: 100%;
    max-width: 175px;
    max-height: 175px;
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.45));
    transition: transform 0.2s ease;
}

.mission-planet-preview-200:hover svg {
    transform: scale(1.05);
}

/* Зона Drag & Drop картинки миссии (1:1) */
.mission-image-dropzone {
    width: 200px;
    height: 200px;
    min-width: 200px;
    background: #02040b;
    border: 2px dashed rgba(250, 204, 21, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(250, 204, 21, 0.12);
    transition: all 0.2s ease;
}

.mission-image-dropzone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    pointer-events: none;
}

.mission-image-dropzone.dragover {
    border-color: #00e676 !important;
    background: rgba(0, 230, 118, 0.15) !important;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4) !important;
}

.dropzone-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 14, 26, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #facc15;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.mission-image-dropzone:hover .dropzone-overlay {
    opacity: 1;
}

/* Блок Live-предпросмотра 300x300 для Кораблей и Планет */
.admin-preview-300 {
    width: 300px;
    height: 300px;
    background: #02040b;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
    padding: 16px;
    box-sizing: border-box;
}

.admin-preview-300 svg {
    width: 100%;
    height: 100%;
    max-width: 260px;
    max-height: 260px;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.4));
    transition: transform 0.2s ease;
}

/* 0.5-секундная подсветка зеленым цветом при копировании SVG в буфер */
.admin-preview-300.admin-preview-copy-flash {
    border-color: #00e676 !important;
    background: rgba(0, 230, 118, 0.15) !important;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.75) !important;
    transition: all 0.12s ease;
}

/* Блок Live-предпросмотра 500x500 для Глобальных Планет */
.admin-preview-500 {
    width: 500px;
    height: 500px;
    min-width: 500px;
    background: #02040b;
    border: 1.5px solid rgba(250, 204, 21, 0.45);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(250, 204, 21, 0.2);
    padding: 20px;
    box-sizing: border-box;
}

.admin-preview-500 svg {
    width: 100%;
    height: 100%;
    max-width: 460px;
    max-height: 460px;
    filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.4));
    transition: transform 0.2s ease;
}

/* Увеличенный блок полноэкранного предпросмотра карточки коллекций (560x560) */
.card-preview-560 {
    width: 560px;
    height: 560px;
    max-width: 88vw;
    max-height: 75vh;
    background: transparent;
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    padding: 0;
    box-sizing: border-box;
}

.card-preview-560 svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 16px;
    display: block;
}

/* Картинка предпросмотра дредноута 400x400 */
.dreadnought-preview-400 svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 360px;
    max-height: 360px;
    filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.45));
}

/* Карточка управления глобальной планетой в Штабе */
.hub-global-planet-card {
    background: #090e1a;
    border: 1.5px solid rgba(250, 204, 21, 0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.2s ease;
}

.hub-global-planet-card:hover {
    border-color: #facc15;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(250, 204, 21, 0.25);
}

.hub-global-planet-preview-500 {
    width: 500px;
    height: 500px;
    min-width: 500px;
    background: #02040b;
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
}

.hub-global-planet-preview-500 svg {
    width: 100%;
    height: 100%;
    max-width: 470px;
    max-height: 470px;
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.35));
}

/* Блок предпросмотра корабля 300x300 в окне сохранения карты */
.save-ship-preview-box {
    width: 300px;
    height: 300px;
    background: #02040b;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
    padding: 20px;
}

.save-ship-preview-box svg {
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 250px;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.45));
    transition: transform 0.2s ease;
}

.ship-live-preview-box svg {
    width: 100%;
    height: 100%;
    max-width: 160px;
    max-height: 160px;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
    transition: transform 0.2s ease;
}

/* Сетка галереи кораблей и планет в Админ-Штабе (в ряд с переносом) */
.hub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
    width: 100%;
    align-content: start;
}

.hub-gallery-card {
    background: #111a2e;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hub-gallery-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.2);
}

.hub-gallery-card.planet-card {
    border-color: rgba(192, 132, 252, 0.25);
}

.hub-gallery-card.planet-card:hover {
    border-color: #c084fc;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(192, 132, 252, 0.25);
}

.hub-gallery-thumb {
    width: 90px;
    height: 90px;
    background: #030712;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hub-gallery-thumb svg {
    width: 80%;
    height: 80%;
    max-width: 80px;
    max-height: 80px;
}

/* Сетка галереи кораблей */
.ships-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.ship-gallery-card {
    background: #111a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.ship-gallery-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.ship-gallery-thumb {
    width: 90px;
    height: 90px;
    background: #030712;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ship-gallery-thumb svg {
    width: 80%;
    height: 80%;
}

/* Жёлтая плашка промпта генерации картинки 1:1 */
.prompt-copy-box.prompt-image {
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.05);
}

.prompt-copy-box.prompt-image:hover {
    border-color: #facc15;
    background: rgba(234, 179, 8, 0.12);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.25);
}

.prompt-copy-box.prompt-image .prompt-copy-header {
    color: #facc15;
}

.prompt-copy-box.prompt-image.copied {
    border-color: #eab308 !important;
    background: rgba(234, 179, 8, 0.2) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.45) !important;
}

.prompt-copy-box.prompt-image.copied .prompt-copy-header {
    color: #fef08a !important;
}

/* =========================================================
   АДМИН-ШТАБ (FEEDBACK, BUGS, NEWS & PAGINATION)
   ========================================================= */

.hub-card {
    background: #111a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease;
}
.hub-card:hover { border-color: rgba(99, 102, 241, 0.4); }

.hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.badge-approved { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-pending { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-fixed { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-implemented { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }



.page-btn:hover { background: #334155; border-color: #38bdf8; }
.page-btn.active { background: #4f46e5; border-color: #6366f1; color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Бейдж-счетчик необработанных репортов и значок NEW на вкладках */
.hub-badge-count,
.admin-tab-new-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.04em;
    animation: pulseBadgeNew 1.8s infinite ease-in-out;
}

@keyframes pulseBadgeNew {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(239, 68, 68, 0.95); }
}

/* =========================================================
   КОСМОПУТЬ (COSMOPATH & SHIP PERKS)
   ========================================================= */

.active-ship-hud {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.active-ship-hud:hover {
    border-color: #a78bfa;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.active-ship-hud-thumb {
    width: 38px;
    height: 38px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-ship-hud-thumb svg {
    width: 80%;
    height: 80%;
}

.cosmo-progress-track {
    width: 100%;
    height: 10px;
    background: #1e1b4b;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.cosmo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #06b6d4, #10b981);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.cosmopath-ships-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    padding-right: 6px;
    align-items: start;
    align-content: start; /* Плотная компоновка рядов сверху вниз без пустых разрывов */
}

.cosmo-ship-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    height: auto;
    align-self: start;
    transition: all 0.2s ease;
}

/* Превью корабля, увеличенное в 3 раза */
.cosmo-ship-preview {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}
.cosmo-ship-preview svg {
    width: 100%;
    height: 100%;
    max-width: 130px;
    max-height: 130px;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
    transition: transform 0.2s ease;
}
.cosmo-ship-card:hover .cosmo-ship-preview svg {
    transform: scale(1.06);
}
.cosmo-ship-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.cosmo-ship-card.locked {
    opacity: 0.65;
}

/* Превращаем SVG заблокированного корабля в плоский серый силуэт */
.cosmo-ship-card.locked .cosmo-ship-preview svg {
    filter: brightness(0) invert(0.35) !important;
    opacity: 0.5;
}

/* Неоновые ползунки (Range Sliders) в Инспекторе Редактора */
.inspector-slider-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #0d1527;
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 6px;
    padding: 6px 8px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
}

.slider-val-badge {
    color: #facc15;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    background: rgba(250, 204, 21, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
}

.inspector-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #1e293b;
    outline: none;
    cursor: pointer;
    margin: 4px 0 2px 0;
}

.inspector-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
    transition: transform 0.1s, background-color 0.1s;
}

.inspector-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #00e5ff;
}

.inspector-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.btn-editor-reset {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0 10px;
}

.btn-editor-reset:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

/* =========================================================
   ИНТЕРАКТИВНАЯ КАРТА ПОВЕРХНОСТИ ПЛАНЕТЫ
   ========================================================= */

.planet-surface-viewport {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 60px) !important;
    overflow: hidden !important;
    cursor: default;
    user-select: none;
    z-index: 50 !important;
    display: block !important;
}

/* Холст звёздного 3D-космоса на карте планеты */
.planet-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Базовый тёмно-синий фон глубокого космоса */
.planet-surface-viewport {
    background: radial-gradient(circle at 50% 40%, #061126 0%, #030814 55%, #01030a 100%) !important;
}

/* Цветовые оттенки космоса по скинам */
.planet-skin-neon_cyber {
    background: radial-gradient(circle at 50% 40%, #06122c 0%, #030814 60%, #010208 100%) !important;
}
.planet-skin-martian_red {
    background: radial-gradient(circle at 50% 40%, #1c080b 0%, #0d0406 60%, #030102 100%) !important;
}
.planet-skin-ice_tundra {
    background: radial-gradient(circle at 50% 40%, #051824 0%, #020b12 60%, #010408 100%) !important;
}
.planet-skin-toxic_swamp {
    background: radial-gradient(circle at 50% 40%, #091a0c 0%, #040d06 60%, #010502 100%) !important;
}
.planet-skin-solar_gold {
    background: radial-gradient(circle at 50% 40%, #1f1406 0%, #0f0a03 60%, #050301 100%) !important;
}

/* Аппаратная фоновая планета под сеткой гексов (GPU-ускоренная) */
.surface-planet-bg {
    position: absolute;
    width: 1860px;
    height: 1860px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    animation: rotateSurfacePlanetGpu 400s linear infinite;
}

.surface-planet-bg svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.25));
}

@keyframes rotateSurfacePlanetGpu {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Контейнер смещения и зума построек */
.planet-world-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    will-change: transform;
    z-index: 2;
    pointer-events: auto;
}

/* Купол горизонта планеты (радиус 1100px) */
.planet-central-globe {
    position: absolute;
    width: 2200px;
    height: 2200px;
    left: -1100px;
    top: -1100px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotatePlanetBody 300s linear infinite;
}

.planet-central-globe svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.18)); /* Сильно уменьшенное аккуратное свечение */
}

@keyframes rotatePlanetBody {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Векторная постройка 200x200 px на планете (без фона и рамок) */
.building-unit-node {
    position: absolute;
    width: 200px !important;
    height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 20;
    box-sizing: border-box;
    transform: scale(calc(var(--b-scale, 1) * 1.3));
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.building-unit-node:hover {
    transform: scale(calc(var(--b-scale, 1) * 1.3 * 1.08));
    z-index: 60;
}

/* Увеличение постройки космодрома в 2 раза */
.building-unit-node[data-building-key="spaceport"] {
    transform: scale(calc(var(--b-scale, 1) * 2));
    z-index: 25;
}

.building-unit-node[data-building-key="spaceport"]:hover {
    transform: scale(calc(var(--b-scale, 1) * 2 * 1.08));
    z-index: 65;
}

.building-unit-node[data-building-key="spaceport"].admin-drag-mode:hover {
    transform: scale(calc(var(--b-scale, 1) * 2)) !important;
}

/* Область векторного арта 200x200 */
.building-node-art {
    width: 155px;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: auto;
}

.building-node-art svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.4));
    transition: filter 0.2s ease;
}

/* Свечение SVG здания при наведении уменьшено в 3 раза */
.building-unit-node:hover .building-node-art svg {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 7px rgba(0, 229, 255, 0.3));
}

/* Футуристичная Sci-Fi HUD плашка с названием постройки */
.building-node-name-badge {
    position: relative;
    background: rgba(6, 14, 32, 0.72) !important; /* Полупрозрачный тёмно-синий фон */
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 5px !important;
    padding: calc(3px * var(--b-scale, 1)) calc(13px * var(--b-scale, 1)) !important;
    font-size: calc(12.5px * var(--b-scale, 1)) !important;
    font-weight: 600 !important; /* Оптимальная чистая читаемость без излишней жирности */
    color: #e0f2fe !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin-top: 2px !important; /* Придвинута ближе к иконке */
    backdrop-filter: blur(6px) !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.06), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    pointer-events: auto !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Декоративные микро-акценты по бокам */
.building-node-name-badge::before,
.building-node-name-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: 2.5px;
    background: #38bdf8;
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.2s ease;
}
.building-node-name-badge::before { left: 4.5px; }
.building-node-name-badge::after { right: 4.5px; }

.building-unit-node:hover .building-node-name-badge {
    border-color: #00e5ff !important;
    color: #ffffff !important;
    background: rgba(8, 22, 48, 0.88) !important;
    box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.18), 0 0 12px rgba(0, 229, 255, 0.35) !important;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.6) !important;
    transform: translateY(-2px) scale(1.02);
}

.building-unit-node:hover .building-node-name-badge::before,
.building-unit-node:hover .building-node-name-badge::after {
    background: #00e5ff;
    box-shadow: 0 0 6px #00e5ff;
    opacity: 1;
}

/* Подсказки построек полностью отключены */
.planet-floating-screen-tooltip,
.building-hover-tooltip {
    display: none !important;
}

/* Стрелочка-указатель слева от тултипа к постройке */
.building-hover-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent rgba(56, 189, 248, 0.45) transparent transparent;
}

.building-unit-node:hover .building-hover-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.building-tooltip-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.building-tooltip-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
}

.building-tooltip-action {
    font-size: 11px;
    font-weight: 700;
    color: #facc15;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Верхняя панель управления на карте планеты */
.planet-top-controls-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 500 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto;
}

/* Виджет ТОП-5 Коллекционеров (330px) */
.planet-top-collectors-widget {
    width: 330px;
    background: rgba(10, 15, 30, 0.94);
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 10px;
    padding: 8px 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(250, 204, 21, 0.15);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.planet-top-collectors-widget:hover {
    border-color: #facc15;
    background: rgba(16, 22, 44, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(250, 204, 21, 0.3);
    transform: translateY(-2px);
}

.planet-top-collectors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    color: #facc15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.planet-top-collectors-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.planet-top-collector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #e2e8f0;
}

.planet-top-collector-row .col-rank {
    width: 24px;
    font-weight: 800;
}

.planet-top-collector-row .col-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    padding-right: 8px;
}

.planet-top-collector-row .col-count {
    font-family: monospace;
    font-weight: 700;
    color: #c084fc;
    font-size: 12px;
    white-space: nowrap;
}

/* Виджет ТОП-5 Пилотов (330px) */
.planet-top-pilots-widget {
    width: 330px;
    background: rgba(10, 15, 30, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.planet-top-pilots-widget:hover {
    border-color: #38bdf8;
    background: rgba(16, 22, 44, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.planet-top-pilots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.planet-top-pilots-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.planet-top-pilot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #e2e8f0;
}

.planet-top-pilot-row .col-rank {
    width: 24px;
    font-weight: 800;
}

.planet-top-pilot-row .col-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    padding-right: 8px;
}

.planet-top-pilot-row .col-score {
    font-family: monospace;
    font-weight: 700;
    color: #facc15;
    font-size: 12px;
    white-space: nowrap;
}

/* Плашка "Н-Циклопедия" в левом нижнем углу карты планеты */
.planet-wiki-trigger-badge {
    position: absolute !important;
    left: 20px !important;
    bottom: 20px !important;
    height: 42px;
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 12px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 500 !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 189, 248, 0.2);
    transition: all 0.22s ease;
    pointer-events: auto;
}

.planet-wiki-trigger-badge:hover {
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 22px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.wiki-badge-icon {
    font-size: 18px;
    line-height: 1;
}

.wiki-badge-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.04em;
}

/* Статьи Н-Циклопедии */
.wiki-category-header {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 10px 4px 10px;
    margin-top: 6px;
}

.wiki-article-container {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.wiki-article-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.wiki-article-header h2 {
    font-size: 20px;
    color: #f8fafc;
    font-weight: 800;
    margin: 0;
}

.wiki-article-body {
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
}

.wiki-article-body b {
    color: #38bdf8;
}

/* Карточка аномалии с живым превью объекта */
.wiki-anomaly-card {
    background: #0d1527;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.wiki-anomaly-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: #111c33;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.wiki-anomaly-preview-canvas {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
    background: #02040b;
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    display: block;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(56, 189, 248, 0.1);
}

.wiki-anomaly-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wiki-anomaly-info h3 {
    font-size: 15px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.wiki-anomaly-info p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

/* Виджет статистики в правом нижнем углу карты планеты */
.planet-stats-widget {
    position: absolute !important;
    right: 20px !important;
    bottom: 20px !important;
    width: 220px;
    background: rgba(9, 14, 26, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 189, 248, 0.15);
    z-index: 500 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.planet-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.planet-stats-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.planet-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.planet-stat-item .stat-name {
    color: #94a3b8;
}

.planet-stat-item .stat-val {
    font-family: monospace;
    font-size: 12.5px;
    color: #f8fafc;
}

.planet-stat-item .stat-online {
    color: #00e676;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

/* Пульсирующая зеленая подсветка кнопки сбора награды */
.btn-daily-claim-pulse {
    background: linear-gradient(135deg, #00e676, #00c853) !important;
    color: #040918 !important;
    border: 1px solid #69f0ae !important;
    animation: pulseGreenGlow 1.4s infinite ease-in-out alternate !important;
    cursor: pointer !important;
}

@keyframes pulseGreenGlow {
    0% {
        box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 22px rgba(0, 230, 118, 0.95), 0 0 10px #69f0ae;
        transform: scale(1.02);
    }
}

/* Виджет последних новостей на карте планеты (сверху-справа) */
.planet-news-widget {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 440px;
    max-height: 320px;
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 189, 248, 0.15);
    z-index: 500 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.planet-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

/* Кнопка сворачивания виджета новостей */
.btn-news-collapse-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-news-collapse-toggle:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

/* Свёрнутое состояние виджета новостей (только шапка) */
.planet-news-widget.is-collapsed {
    max-height: 48px !important;
    padding-bottom: 10px !important;
    gap: 0 !important;
}

.planet-news-widget.is-collapsed .planet-news-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.planet-news-widget.is-collapsed .planet-news-list {
    display: none !important;
}

.btn-planet-news-all {
    background: transparent;
    border: none;
    color: #facc15;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-planet-news-all:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.planet-news-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.planet-news-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.planet-news-item:hover .planet-news-item-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.planet-news-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.35;
}

.planet-news-item-snippet {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
    margin-top: 4px;
    max-height: 190px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.planet-news-bullet-item {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    color: #e2e8f0;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.planet-news-bullet-item:hover {
    background: rgba(20, 30, 55, 0.95);
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateX(2px);
}

.planet-news-bullet-item .bullet-dot {
    color: #facc15;
    font-size: 11px;
    line-height: 1.4;
    flex-shrink: 0;
}

.planet-news-text-line {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
    padding: 0 2px;
}

.planet-news-item-date {
    font-size: 11.5px;
    color: #64748b;
    font-family: monospace;
    text-align: right;
    margin-top: 4px;
}

/* Кнопки переключения уровней мира */
.btn-world-nav-trigger {
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    color: #f8fafc;
    padding: 0 22px;
    height: 42px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(56, 189, 248, 0.25);
    transition: all 0.22s ease;
    z-index: 500;
}

/* Кнопка "В открытый космос" — строго сверху по центру */
.btn-world-nav-trigger.btn-space-mode {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-color: #c084fc;
    color: #e9d5ff;
}

.btn-world-nav-trigger.btn-space-mode:hover {
    background: #7c3aed;
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 26px rgba(192, 132, 252, 0.7);
    transform: translateX(-50%) translateY(-2px) !important;
}

/* Кнопка "Приземлиться" — строго снизу по центру */
.btn-world-nav-trigger.btn-surface-mode {
    position: absolute !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-color: #10b981;
    color: #a7f3d0;
}

.btn-world-nav-trigger.btn-surface-mode:hover {
    background: #059669;
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 26px rgba(16, 185, 129, 0.7);
    transform: translateX(-50%) translateY(-2px) !important;
}

/* Верхняя навигационная панель экрана поверхности */
.surface-top-nav-bar {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 500;
    pointer-events: auto;
}

/* Кнопка "К планете" на экране поверхности */
.btn-world-nav-trigger.btn-base-mode {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-color: #facc15;
    color: #fef08a;
}

.btn-world-nav-trigger.btn-base-mode:hover {
    background: #ca8a04;
    border-color: #fde047;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 26px rgba(250, 204, 21, 0.7);
    transform: translateY(-2px) !important;
}

/* Кнопка "Вернуться на орбиту" на экране поверхности */
.btn-world-nav-trigger.btn-back-orbit-mode {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-color: #38bdf8;
    color: #e0f2fe;
}

.btn-world-nav-trigger.btn-back-orbit-mode:hover {
    background: #0284c7;
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 26px rgba(56, 189, 248, 0.7);
    transform: translateY(-2px) !important;
}

/* Холст открытого космоса */
.galaxy-viewport-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: auto;
}

/* Гексагональная сетка поверхности */
.surface-hex-viewport-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    pointer-events: auto;
}

/* HUD открытого космоса */
.galaxy-hud-panel {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(9, 14, 26, 0.94);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 500;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(192, 132, 252, 0.2);
}

/* Информационная плашка управления камерой в открытом космосе */
.galaxy-control-hint-badge {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background: rgba(9, 14, 26, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11.5px;
    color: #94a3b8;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 500;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.galaxy-control-hint-badge b {
    color: #38bdf8;
}

/* Плашка режима редактирования планет для администратора */
.galaxy-admin-toolbar-badge {
    position: absolute !important;
    top: 60px !important;
    left: 20px !important;
    background: rgba(9, 14, 26, 0.94);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: 8px;
    padding: 4px 8px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* Плашка информации о планете в открытом космосе (сверху-справа) */
.galaxy-planet-tooltip-card {
    position: absolute !important;
    top: 75px !important;
    right: 20px !important;
    width: 310px;
    background: rgba(9, 14, 26, 0.96) !important;
    border: 1.5px solid rgba(192, 132, 252, 0.5) !important;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(192, 132, 252, 0.25);
    backdrop-filter: blur(14px);
    z-index: 1000 !important;
    pointer-events: none;
    animation: fadeInView 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Плашка текущих координат корабля в правом верхнем углу открытого космоса */
.galaxy-coords-badge {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    padding: 8px 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 189, 248, 0.2);
    z-index: 500;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.galaxy-orbit-action-bar {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 600;
    pointer-events: auto;
    animation: fadeInView 0.25s ease;
    will-change: transform, left, top;
}

/* Кнопка смены глобальной планеты */
.btn-planet-select-trigger {
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    color: #f8fafc;
    padding: 0 16px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
}

/* Плашка ТОП-100 Элиты в левом верхнем углу карты планеты */
.btn-planet-elite-trigger {
    background: rgba(15, 10, 30, 0.94);
    border: 1.5px solid rgba(250, 204, 21, 0.55);
    color: #fde047;
    padding: 0 16px;
    height: 38px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(250, 204, 21, 0.25);
    transition: all 0.2s ease;
}

.btn-planet-elite-trigger:hover {
    background: #d97706;
    border-color: #facc15;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(250, 204, 21, 0.5);
    transform: translateY(-2px);
}

/* =========================================================
   СТИЛИ МОДУЛЯ КОЛЛЕКЦИЙ И ГЕНЕРАТОРА
   ========================================================= */

.generator-machine-card {
    background: #090e1a;
    border: 1.5px solid rgba(192, 132, 252, 0.35);
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(192, 132, 252, 0.15);
}

.generator-synth-box {
    width: 360px;
    height: 360px;
    min-width: 360px;
    min-height: 360px;
    max-width: 88vw;
    background: transparent;
    border: 2px dashed rgba(192, 132, 252, 0.4);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.generator-synth-box.has-card {
    border: none;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(192, 132, 252, 0.45);
}

.generator-synth-box svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 16px;
    display: block;
}

.generator-synth-box.is-synthesizing {
    border-color: #00e676;
    box-shadow: inset 0 0 30px rgba(0, 230, 118, 0.5), 0 0 35px rgba(0, 230, 118, 0.8);
    transform: scale(1.06);
}

/* Анимация процесса инкубации яйца в Биосфере */
.generator-synth-box.is-incubating {
    border-color: #10b981 !important;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.08) 60%, transparent 100%) !important;
    box-shadow: inset 0 0 35px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.85) !important;
    transform: scale(1.05);
}

.generator-synth-box.is-incubating .incubator-egg-icon {
    animation: incubateEggShake 0.18s infinite ease-in-out alternate;
}

@keyframes incubateEggShake {
    0% { transform: rotate(-8deg) scale(1.02); filter: drop-shadow(0 0 25px rgba(52, 211, 153, 0.9)); }
    100% { transform: rotate(8deg) scale(1.08); filter: drop-shadow(0 0 35px rgba(110, 231, 183, 1)); }
}

/* Карточка только что вылупившегося существа внутри слота инкубатора */
.incubator-result-creature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    animation: fadeInView 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-group-card {
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.collection-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.collection-progress-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
}

.collection-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
}

.collection-card-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.22s ease;
    cursor: pointer;
    box-shadow: none;
    padding: 0;
}

.collection-card-item.is-unlocked:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(192, 132, 252, 0.45);
}

.collection-card-item.is-locked {
    opacity: 0.35;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    background: #060a14;
    cursor: default;
}

.card-item-full-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
}

.card-item-full-art svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.collection-card-item.is-unlocked:hover .card-item-full-art svg {
    transform: scale(1.04);
}

.card-item-title-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(6, 14, 32, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #e0f2fe;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.btn-planet-select-trigger:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 22px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

/* Панель перемещения построек базы (высота точно 38px) */
.planet-admin-toolbar {
    position: relative;
    top: 0;
    left: 0;
    height: 38px;
    box-sizing: border-box;
    z-index: 500 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(9, 14, 26, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 0 6px 0 12px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(56, 189, 248, 0.15);
    pointer-events: auto;
}

.planet-admin-toolbar button {
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    box-sizing: border-box;
    background: #111a2e;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #f8fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.planet-admin-toolbar button:hover {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
}

#planet-btn-save-positions {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #6ee7b7 !important;
}

#planet-btn-save-positions:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

#planet-btn-reset-positions {
    background: rgba(234, 179, 8, 0.15) !important;
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #facc15 !important;
}

#planet-btn-reset-positions:hover {
    background: #eab308 !important;
    color: #090e1a !important;
}

/* Сетка модального окна Глобальных планет */
.global-planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    align-items: start;
}

.global-planet-card {
    background: #090e1a;
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.global-planet-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(56, 189, 248, 0.25);
}

.global-planet-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.global-planet-preview {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.global-planet-preview svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
    transition: transform 0.2s ease;
}

.global-planet-card:hover .global-planet-preview svg {
    transform: scale(1.06);
}

/* Состояние постройки в режиме перемещения */
.building-unit-node.admin-drag-mode {
    cursor: grab !important;
    outline: 2px dashed rgba(250, 204, 21, 0.75);
    outline-offset: 6px;
    border-radius: 14px;
}


.building-unit-node.admin-drag-mode:hover .building-node-name-badge {
    transform: none !important;
}

/* Отключение увеличения и сдвига постройки при наведении в режиме перемещения */
.building-unit-node.admin-drag-mode:hover {
    transform: scale(calc(var(--b-scale, 1) * 1.3)) !important;
    z-index: 40 !important;
}

/* Заблокированные для гостей постройки базы */
.building-unit-node.guest-locked {
    opacity: 0.38 !important;
    filter: grayscale(0.65) !important;
    cursor: not-allowed !important;
}

.building-unit-node.guest-locked:hover {
    transform: scale(calc(var(--b-scale, 1) * 1.3)) !important;
    filter: grayscale(0.4) !important;
}

.building-unit-node.guest-locked .building-node-name-badge {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #94a3b8 !important;
}

.building-unit-node.admin-drag-mode:active {
    cursor: grabbing !important;
}

.building-unit-node.admin-drag-mode .building-hover-tooltip {
    display: none !important;
}

/* Компактная неоновая кнопка возврата на планету */
.btn-back-to-planet {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: rgba(9, 14, 26, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-back-to-planet svg {
    transition: transform 0.2s ease;
}

.btn-back-to-planet:hover {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5) !important;
}

.btn-back-to-planet:hover svg {
    transform: translateX(-2px);
}

/* Полноэкранный режим для всех открытых интерфейсов построек (на весь экран под шапкой) */
.main-content-view.building-fullscreen-view {
    left: 20px !important;
    right: 20px !important;
    top: 75px !important;
    bottom: 20px !important;
}

/* Горизонтальные вкладки внутри построек */
.building-tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

/* Сетка карточек скинов поверхности планеты */
.planet-skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.planet-skin-card {
    background: #090e1a;
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.planet-skin-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.25);
}

.planet-skin-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.skin-card-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #f8fafc;
}

.skin-card-desc {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
}

/* =========================================================
   ЕДИНАЯ ДВУХКОЛОНОЧНАЯ СТРУКТУРА ПОСТРОЕК
   ========================================================= */

.building-layout-wrapper {
    flex: 1;
    display: flex;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}

/* Левая панель информации и вертикальных вкладок постройки (100% непрозрачная) */
.building-sidebar-panel {
    width: 360px !important;
    min-width: 360px !important;
    background: #060a14 !important; /* Абсолютно плотный непрозрачный фон */
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Квадратная иллюстрация постройки 1:1 со статичным тёмно-синим космосом */
.building-sidebar-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 50%, #06122c 0%, #030a18 55%, #01040a 100%) !important;
    border: none !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    flex-shrink: 0;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Слой 1: Дальние и средние звёзды, непрерывно летящие из глубины на зрителя */
.building-sidebar-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 48% 46%, rgba(255, 255, 255, 0.9) 100%, transparent),
        radial-gradient(1.4px 1.4px at 53% 54%, rgba(186, 230, 253, 0.85) 100%, transparent),
        radial-gradient(1px 1px at 30% 25%, rgba(255, 255, 255, 0.95) 100%, transparent),
        radial-gradient(1.5px 1.5px at 75% 30%, rgba(224, 231, 255, 0.8) 100%, transparent),
        radial-gradient(1.8px 1.8px at 20% 70%, rgba(192, 132, 252, 0.9) 100%, transparent),
        radial-gradient(1.2px 1.2px at 80% 75%, rgba(255, 255, 255, 0.85) 100%, transparent),
        radial-gradient(1.6px 1.6px at 60% 85%, rgba(186, 230, 253, 0.9) 100%, transparent),
        radial-gradient(1px 1px at 15% 40%, rgba(255, 255, 255, 0.75) 100%, transparent),
        radial-gradient(1.4px 1.4px at 85% 50%, rgba(255, 255, 255, 0.8) 100%, transparent),
        radial-gradient(1.2px 1.2px at 40% 80%, rgba(255, 255, 255, 0.7) 100%, transparent);
    transform-origin: center center;
    animation: starsWarpDeep 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Слой 2: Ближние звёзды с фазовым сдвигом (создают плотный нескончаемый 3D-поток) */
.building-sidebar-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1.8px 1.8px at 45% 52%, rgba(255, 255, 255, 1) 100%, transparent),
        radial-gradient(2.2px 2.2px at 58% 42%, rgba(250, 204, 21, 0.9) 100%, transparent),
        radial-gradient(1.6px 1.6px at 25% 35%, rgba(147, 197, 253, 0.85) 100%, transparent),
        radial-gradient(2px 2px at 70% 65%, rgba(255, 255, 255, 0.9) 100%, transparent),
        radial-gradient(1.4px 1.4px at 35% 75%, rgba(224, 231, 255, 0.8) 100%, transparent),
        radial-gradient(1.8px 1.8px at 80% 25%, rgba(192, 132, 252, 0.9) 100%, transparent);
    transform-origin: center center;
    animation: starsWarpNear 6s linear infinite;
    animation-delay: -3s;
    pointer-events: none;
    z-index: 1;
}

/* Бесконечный наплыв первого слоя звёзд из глубины */
@keyframes starsWarpDeep {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    80% {
        opacity: 0.95;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Бесконечный наплыв второго слоя звёзд (со смещением по времени) */
@keyframes starsWarpNear {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    75% {
        opacity: 0.9;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

.building-sidebar-thumb svg {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    filter: none !important;
    box-shadow: none !important;
    transition: transform 0.25s ease;
}

.building-sidebar-thumb:hover svg {
    transform: scale(1.03);
    filter: none !important;
}



.building-sidebar-desc {
    display: none !important;
}


.building-vtab-btn:hover {
    background: #111a2e;
    border-color: #38bdf8;
    color: #f8fafc;
}

/* Активная вкладка: тёмно-синий фон и неоновая зелёная подсветка */
.building-vtab-btn.active {
    background: #0b1a38 !important;
    border-color: #00e676 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.35) !important;
}

/* Правая контентная область постройки */
.building-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}

.hub-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
}

.hub-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Подвкладки Штаба */
.hub-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: #090e1a;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-sub-tab-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.hub-sub-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.hub-sub-tab-btn.active {
    background: #1e293b;
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}
.hub-admin-reply-box {
    background: #090e1a;
    border-left: 3px solid #38bdf8;
    border-radius: 0 6px 6px 0;
    padding: 12px 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #cbd5e1;
}

/* Пагинация */
.hub-pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.cosmo-perk-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
    line-height: 1.35;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.building-sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: #38bdf8;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 100%;
    margin-bottom: 6px;
}

.building-vertical-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.building-vtab-btn {
    width: 100%;
    background: #090e1a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #94a3b8;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 9px;
}

/* =========================================================
   ИНТЕРАКТИВНОЕ ОБУЧЕНИЕ (TUTORIAL OVERLAY & SPOTLIGHT)
   ========================================================= */

.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    user-select: none;
}

/* Модальная плашка с подсказкой и пояснениями (строго по центру экрана) */
.tutorial-card {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100002;
    background: rgba(8, 14, 30, 0.96);
    border: 2px solid #38bdf8;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.4);
    border-radius: 14px;
    padding: 20px 24px;
    max-width: 440px;
    width: 90%;
    color: #ffffff;
    pointer-events: auto;
    animation: fadeInTutorialDialog 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes fadeInTutorialDialog {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tutorial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding-bottom: 8px;
}

.tutorial-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutorial-step-badge {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #facc15;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.tutorial-card-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #e2e8f0;
}

.tutorial-card-btn {
    align-self: flex-end;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.tutorial-card-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* Пульсирующая неоновая стрелочка-указатель */
.tutorial-pointer-arrow {
    position: fixed;
    z-index: 100001;
    pointer-events: none;
    font-size: 34px;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8));
    animation: tutorialBounce 1.1s infinite ease-in-out alternate;
}

@keyframes tutorialBounce {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.18) translateY(-8px); }
}

/* Неоновый контур-подсветка активного целевого элемента */
.tutorial-target-highlight {
    outline: 3px solid #00e676 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.85) !important;
    animation: pulseTutorialHighlight 1.4s infinite ease-in-out alternate !important;
    z-index: 100000 !important;
}

@keyframes pulseTutorialHighlight {
    0% { outline-color: #00e676; box-shadow: 0 0 12px rgba(0, 230, 118, 0.5); }
    100% { outline-color: #fde047; box-shadow: 0 0 30px rgba(253, 224, 71, 0.9); }
}

/* =========================================================
   СПЕЦИАЛЬНЫЕ НАСТРОЙКИ ДЛЯ ПЛАТФОРМ (VK, TELEGRAM, YANDEX)
   ========================================================= */

.platform-vk .global-rating-widget {
    right: 75px !important;
}

.platform-vk .post-stats-panel,
.platform-vk .object-tooltip,
.platform-vk .editor-bar,
.platform-vk .planet-news-widget,
.platform-vk .planet-stats-widget {
    right: 75px !important;
}

/* Скрытие кнопки выхода на игровых платформах с бесшовным входом */
.platform-vk #btn-logout-header,
.platform-telegram #btn-logout-header,
.platform-yandex #btn-logout-header {
    display: none !important;
}

/* Кнопка "Показать точку запуска" на карте (для гостей в обучении) */
.free-hint-btn-canvas {
    position: absolute !important;
    top: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 25 !important;
    background: rgba(9, 14, 26, 0.92) !important;
    border: 2px solid #38bdf8 !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    color: #f8fafc !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
    transition: all 0.2s ease !important;
    animation: pulseFreeHint 1.8s infinite ease-in-out !important;
    pointer-events: auto !important;
    white-space: nowrap !important;
}

.free-hint-btn-canvas:hover {
    background: #0284c7 !important;
    border-color: #00e5ff !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.7) !important;
    transform: translateX(-50%) scale(1.05) !important;
}

@keyframes pulseFreeHint {
    0% {
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
        border-color: #38bdf8;
    }
    50% {
        box-shadow: 0 0 35px rgba(56, 189, 248, 0.9), 0 0 60px rgba(56, 189, 248, 0.4);
        border-color: #00e5ff;
    }
    100% {
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
        border-color: #38bdf8;
    }
}

/* Акцентные классы ресурсов */
.stat-pill-fuel {
    color: #f8fafc;
}

.stat-pill-oxygen {
    color: #f8fafc;
}

.stat-pill-dna {
    color: #f8fafc;
}

/* Карточки существ в Террариуме Биосферы */
.creature-card {
    background: #090e1a;
    border: 1.5px solid rgba(52, 211, 153, 0.35);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.creature-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(52, 211, 153, 0.25);
}

.creature-card.hibernating {
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(6, 18, 44, 0.7) !important;
    opacity: 0.75;
}

.creature-card.empty-slot {
    border: 2px dashed rgba(52, 211, 153, 0.25);
    background: rgba(9, 14, 26, 0.5);
    opacity: 0.85;
}

.creature-card-art {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creature-card-art svg {
    width: 100%;
    height: 100%;
    max-width: 175px;
    max-height: 175px;
    filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.45));
}

/* Нижняя панель управления освоением поверхности */
.surface-hud-panel {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(9, 14, 26, 0.94);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 14px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 500;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(16, 185, 129, 0.2);
}

/* 60-секундный прогресс-бар добычи ресурсов */
.surface-mining-track {
    width: 140px;
    height: 6px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 4px;
}

.surface-mining-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
    transition: width 0.25s linear;
}

/* Эффект вспышки при копировании */
.feedback-text-content {
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px;
}

.feedback-text-content:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.2);
}

.feedback-copied-flash {
    background-color: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
}