/* ============================================================
   БАЗОВЫЕ СТИЛИ И РАЗМЕТКА (BASE STYLES & SPACE LAYOUT)
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  background-image: var(--bg-space-gradient);
  min-height: 100vh;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ВЫДЕЛЕНИЕ ТЕКСТА */
::selection {
  background: var(--neon-blue);
  color: #040711;
}
::-moz-selection {
  background: var(--neon-blue);
  color: #040711;
}

/* КОСМИЧЕСКИЙ ФОН СО ЗВЕЗДАМИ */
.space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 80px 140px, #00d4ff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.2px 1.2px at 240px 190px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 320px 110px, #00f0ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 450px 250px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 560px 80px, #b44dff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 670px 210px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.2px 1.2px at 780px 130px, #00d4ff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 910px 290px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 1050px 60px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1180px 180px, #00d4ff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 550px 350px;
  opacity: 0.65;
}

.space-nebula {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 112, 243, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 25%, rgba(121, 40, 202, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 35%, rgba(0, 212, 255, 0.08) 0%, transparent 45%);
}

[data-theme="finder"] .space-nebula {
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 15% 25%, rgba(192, 132, 252, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 12px var(--neon-blue);
  animation: floatParticle linear infinite;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ПАРЯЩИЕ БУКВЫ L ДЛЯ ТЕМЫ LOBBIVO */
.particle.particle-l,
.particle.particle-f {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  animation: floatParticleL linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.particle-l-glyph,
.particle-f-glyph {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 900;
  font-style: italic;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 45%, #c084fc 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 18px rgba(192, 132, 252, 0.55));
  line-height: 1;
  letter-spacing: -0.5px;
}

[data-theme="lobbivo"] .space-nebula,
[data-theme="finder"] .space-nebula {
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
}

[data-theme="nebula"] .space-nebula {
  background: 
    radial-gradient(circle at 50% 0%, rgba(217, 70, 239, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 15% 30%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 40%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 45% 75%, rgba(168, 85, 247, 0.10) 0%, transparent 60%);
}

[data-theme="crimson"] .space-nebula {
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 42, 75, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 12% 25%, rgba(255, 87, 34, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 88% 35%, rgba(255, 0, 51, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(185, 28, 28, 0.12) 0%, transparent 60%);
}

[data-theme="matrix"] .space-nebula {
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 35%, rgba(5, 150, 105, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(0, 255, 157, 0.08) 0%, transparent 60%);
}

/* ТЕМАТИЧЕСКИЕ ЧАСТИЦЫ */
.particle.particle-ember {
  background: #ff5722;
  box-shadow: 0 0 10px #ff2a4b, 0 0 18px #ff7700;
  border-radius: 50%;
}

.particle.particle-star {
  background: #f472b6;
  box-shadow: 0 0 12px #d946ef, 0 0 20px #c084fc;
  border-radius: 50%;
}

.particle.particle-matrix {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 8px #00ff88, 0 0 14px #10b981;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  user-select: none;
  animation: floatParticleL linear infinite;
}

/* ГЛАВНЫЙ КОНТЕЙНЕР ПРИЛОЖЕНИЯ */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  min-height: 100vh;
}

/* ============================================================
   ПАРЯЩАЯ ШАПКА-КАПСУЛА (GLASS CAPSULE HEADER - ФОТО 1)
   ============================================================ */
.capsule-header-container {
  position: sticky;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  z-index: 200;
}

.capsule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  height: 54px;
  padding: 6px 14px 6px 10px;
  background: rgba(13, 22, 42, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 212, 255, 0.12);
  transition: var(--transition);
}

.capsule-header:hover {
  border-color: rgba(0, 212, 255, 0.38);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 212, 255, 0.2);
}

/* ЛЕВАЯ ЧАСТЬ ШАПКИ: СТЕКЛЯННЫЙ ЛОГОТИП L + Lobbivo + BETA */
.capsule-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.l-logo-badge,
.f-logo-badge {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.l-badge-glow,
.f-badge-glow {
  position: absolute;
  inset: -2px;
  border-radius: 11px;
  background: radial-gradient(circle at 35% 35%, rgba(0, 240, 255, 0.45) 0%, rgba(121, 40, 202, 0.35) 60%, transparent 100%);
  filter: blur(6px);
  opacity: 0.55;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.l-badge-glass,
.f-badge-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18) 0%, rgba(121, 40, 202, 0.25) 50%, rgba(10, 16, 28, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid rgba(0, 212, 255, 0.45);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5), 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.l-badge-svg,
.f-badge-svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo-l,
.header-logo-f {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 45%, #b44dff 85%, #ff44cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.85));
  user-select: none;
  transform: translateY(-0.5px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.capsule-brand:hover .l-badge-glow,
.capsule-brand:hover .f-badge-glow {
  opacity: 0.95;
  filter: blur(9px);
  transform: scale(1.15);
}

.capsule-brand:hover .l-badge-glass,
.capsule-brand:hover .f-badge-glass {
  border-color: rgba(0, 240, 255, 0.8);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 6px 22px rgba(0, 212, 255, 0.4), 0 0 18px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px) scale(1.04);
}

.capsule-brand:hover .l-badge-svg,
.capsule-brand:hover .f-badge-svg,
.capsule-brand:hover .header-logo-l,
.capsule-brand:hover .header-logo-f {
  transform: scale(1.08);
}

.brand-title {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.brand-title .brand-accent {
  color: #00d4ff;
}

.beta-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.12);
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ЦЕНТРАЛЬНАЯ ЧАСТЬ / ПОИСК В ШАПКЕ */
.capsule-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 320px;
  margin: 0 14px;
}

.capsule-search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.capsule-search-box input {
  width: 100%;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0 12px 0 34px;
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
}

.capsule-search-box input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.capsule-search-box input::placeholder {
  color: var(--text-muted);
}

.capsule-search-box svg {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  stroke: var(--neon-blue);
  pointer-events: none;
}

/* ПРАВАЯ ЧАСТЬ ШАПКИ: ПОИСК + ПРОФИЛЬ */
.capsule-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.search-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.search-toggle-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

/* КНОПКА LOBBIVO COIN В ШАПКЕ */
.capsule-coin-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 3px 12px 3px 4px;
  background: rgba(255, 185, 0, 0.08);
  border: 1px solid rgba(255, 200, 50, 0.25);
  border-radius: 20px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.capsule-coin-btn:hover {
  background: rgba(255, 200, 50, 0.16);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 18px rgba(255, 190, 0, 0.35);
  transform: translateY(-1px);
}

.capsule-coin-btn:active {
  transform: translateY(0px) scale(0.97);
}

.capsule-coin-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7a0 0%, #ffc400 45%, #e67e00 85%, #9e5000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(120, 50, 0, 0.6);
  border: 1px solid rgba(255, 245, 160, 0.9);
  position: relative;
  flex-shrink: 0;
}

.coin-l-letter,
.coin-f-letter {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  color: #3d1f00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  line-height: 1;
  transform: translateY(-0.5px);
}

.capsule-coin-amount {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffd84d;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 200, 50, 0.35);
}

.capsule-coin-currency {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 230, 150, 0.75);
  letter-spacing: 0.3px;
}

.capsule-coin-btn.coin-earned-flash {
  animation: coinEarnedFlash 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* КНОПКА ПРОФИЛЯ В ШАПКЕ */
.capsule-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 3px 12px 3px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.22s ease;
  user-select: none;
}

.capsule-profile-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.profile-avatar-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #b44dff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #040711;
  font-weight: 800;
  font-size: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.5);
  flex-shrink: 0;
}

.profile-avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.capsule-profile-btn .notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px #ff4444;
  margin-left: 2px;
}

/* ============================================================
   ВЫПАДАЮЩЕЕ МЕНЮ ПРОФИЛЯ (ФОТО 2 - СТЕКЛЯННЫЙ ДИЗАЙН)
   ============================================================ */
.profile-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 260px;
  background: rgba(8, 16, 34, 0.88);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 212, 255, 0.18), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 300;
}

.profile-dropdown-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ШАПКА МЕНЮ: АВАТАР ? + НИКНЕЙМ + СТАТУС */
.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.dropdown-avatar-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 212, 255, 0.25), rgba(9, 17, 34, 0.9));
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  flex-shrink: 0;
  overflow: hidden;
}

.dropdown-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-user-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 2px;
}

.dropdown-coin-pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.online-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.25s ease;
}

.online-glow-dot.active {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.online-glow-dot.guest {
  background: #64748b;
  box-shadow: none;
}

/* СПИСОК ПУНКТОВ МЕНЮ (ЧИСТЫЙ ТЕКСТ БЕЗ КВАДРАТОВ - СТЕКЛЯННЫЙ ХОВЕР) */
.profile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  font-family: inherit;
  text-align: left;
  user-select: none;
  letter-spacing: 0.2px;
}

.profile-menu-item:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.menu-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

.profile-menu-item.logout-item {
  color: #ff6b81;
}

.profile-menu-item.logout-item:hover {
  background: rgba(255, 70, 85, 0.15);
  border-color: rgba(255, 70, 85, 0.4);
  color: #ff88aa;
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.2);
}

.profile-menu-item.logout-item:hover .menu-icon-box {
  border-color: rgba(255, 70, 85, 0.5);
  background: rgba(255, 70, 85, 0.2);
  color: #ff4655;
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.35);
}

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА ЧАТА (FAB) - НИЖНИЙ ПРАВЫЙ УГОЛ
   ============================================================ */
.chat-fab-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13, 24, 48, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 212, 255, 0.35);
  color: #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 250;
}

.chat-fab-button:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: #00f0ff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 212, 255, 0.55);
  color: #ffffff;
}

.chat-fab-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.chat-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: #ff4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

/* ============================================================
   СТРАНИЦЫ И ПЕРЕХОДЫ (PAGES)
   ============================================================ */
.page {
  display: none;
  opacity: 0;
}

.page.active {
  display: block;
  opacity: 1;
}

.page-enter {
  animation: pageEnter 0.3s ease forwards;
}

.page-exit {
  animation: pageExit 0.2s ease forwards;
}

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

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
}

/* ЗАГОЛОВКИ ВТОРИЧНЫХ СТРАНИЦ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title-wrapper h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.page-title-wrapper h2 svg {
  width: 24px;
  height: 24px;
  stroke: var(--neon-blue);
  fill: none;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
