:root {
  --bg: #03040a;
  --surface: rgba(15, 18, 35, 0.7);
  --surface2: rgba(25, 30, 55, 0.9);
  --primary: #d366ff; /* Сочный фиолетовый */
  --secondary: #00f0ff; /* Сочный голубой */
  --accent: #ff007a;
  --glow-p: rgba(211, 102, 255, 0.4);
  --glow-s: rgba(0, 240, 255, 0.3);
  --text: #ffffff;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --font-main: 'Inter', sans-serif;
  --font-accent: 'Rajdhani', sans-serif;
  --glass: blur(20px);
}

.light-theme {
  --bg: #ffffff; /* Чистый белый фон */
  --surface: #ffffff; /* Меню тоже белые */
  --surface2: #f8fafc;
  --primary: #d4afff; /* Чуть светлее неоновый фиолетовый */
  --secondary: #33f5ff; /* Чуть светлее неоновый голубой */
  --accent: #ff3396;
  --glow-p: rgba(194, 147, 255, 0.3);
  --glow-s: rgba(0, 242, 255, 0.2);
  --text: #05060f; /* Темный текст для контраста */
  --muted: #64748b;
  --border: #e2e8f0;
}

.light-theme body {
  background-image: none;
  background-color: var(--bg);
  color: var(--text);
}

/* Серая шапка с цветными надписями */
.light-theme .site-header {
  background: #cbd5e1; /* Серый цвет */
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.light-theme .logo-text {
  background: linear-gradient(to right, var(--primary), var(--text));
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 5px var(--glow-p));
}

.light-theme .status-label, 
.light-theme .nav-right span {
    color: #1e293b !important;
    font-weight: 700;
}

/* Кнопки как в черной теме (неоновые), но адаптированные */
.light-theme .btn {
    background: rgba(194, 147, 255, 0.1);
    color: #05060f;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--glow-p);
    text-shadow: none;
}

.light-theme .btn-primary {
    background: var(--primary);
    color: #000;
    border-color: #000;
    box-shadow: 0 0 15px var(--glow-p);
}

.light-theme .btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

/* Белые меню с неоновыми границами */
.light-theme .sidebar-panel, 
.light-theme .game-card,
.light-theme .modal-container {
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.light-theme .sidebar-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.light-theme .nav-item { color: #475569; }
.light-theme .nav-item:hover, .light-theme .nav-item.active {
  background: rgba(194, 147, 255, 0.1);
  color: var(--primary);
}

.light-theme .sidebar-avatar {
    background: #f8fafc;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow-p);
}

.light-theme .game-card__title { color: #05060f; }

.light-theme .modal-header {
    background: #cbd5e1; /* В цвет шапки */
    border-bottom: 2px solid var(--primary);
}

.light-theme .shop-card, .light-theme .casino-game {
  background: #ffffff;
  border: 1px solid var(--primary);
}

.light-theme .form-input {
  background: #ffffff;
  border: 1px solid var(--primary);
  color: #000;
}

.light-theme .lb-table tr.current-user { background: rgba(194, 147, 255, 0.15); }
.light-theme .titles-badge-container {
    background: #ffffff !important;
    border: 2px solid var(--primary) !important;
}
.light-theme .titles-badge-container h4 { color: #05060f !important; }

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(10, 11, 30, 0.9);
    border: 2px solid var(--primary);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.success { border-color: #00ff7f; box-shadow: 0 0 20px rgba(0, 255, 127, 0.2); }
.toast.error { border-color: var(--accent); box-shadow: 0 0 20px rgba(255, 0, 122, 0.2); }

@keyframes toast-in {
    from { transform: translateX(100%) scale(0.5); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(100%) scale(0.5); opacity: 0; }
}

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

html {
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(211, 102, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 40%);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

.logo-text {
  font-family: var(--font-accent);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #fff 0%, var(--secondary) 25%, var(--primary) 50%, var(--secondary) 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--glow-p)) drop-shadow(0 0 30px rgba(0, 240, 255, 0.4));
  animation: logo-shine 4s linear infinite;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-text:hover {
  filter: drop-shadow(0 0 30px var(--primary)) drop-shadow(0 0 60px var(--secondary));
  transform: scale(1.05) rotate(-1deg);
}

.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px var(--glow-p);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-header {
  height: 90px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(10, 11, 30, 0.98) 0%, rgba(5, 6, 15, 1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 1100;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(194, 147, 255, 0.2);
}
.nav { width: 100%; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }

.nav-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 255, 127, 0.04);
  padding: 8px 24px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(194, 147, 255, 0.2);
  margin-left: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-status:hover {
  background: rgba(0, 255, 127, 0.08);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 25px rgba(194, 147, 255, 0.4);
}

.online-dot-v2 {
  width: 10px; height: 10px;
  background: #00ff7f;
  border-radius: 50%;
  box-shadow: 0 0 12px #00ff7f;
  animation: pulse-green 2s infinite;
}
  box-shadow: 0 0 8px #00ff7f;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(1); box-shadow: 0 0 5px #00ff7f; }
  50% { transform: scale(1.2); box-shadow: 0 0 12px #00ff7f; }
  100% { transform: scale(1); box-shadow: 0 0 5px #00ff7f; }
}

.status-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #00ff7f;
  font-family: var(--font-accent);
}

@keyframes pulse-green {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.status-label {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-right: 8px;
}

.signal-bar {
  width: 5px;
  background: #00ff7f;
  border-radius: 1px;
  box-shadow: 0 0 5px #00ff7f;
}
.bar-1 { height: 30%; }
.bar-2 { height: 50%; }
.bar-3 { height: 75%; }
.bar-4 { height: 100%; animation: blink-bar 2s infinite; }

@keyframes blink-bar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.layout-container {
  display: flex;
  max-width: 1600px;
  margin: 3rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

.sidebar { 
  width: 170px; 
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  z-index: 100;
}

.sidebar-panel {
  background: rgba(12, 10, 28, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(211, 102, 255, 0.3);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0.7rem 0.5rem;
  background: linear-gradient(to bottom, rgba(211, 102, 255, 0.08), transparent);
  border-bottom: 1px solid rgba(211, 102, 255, 0.1);
  text-align: center;
}

.sidebar-avatar {
  width: 40px; height: 40px;
  background: rgba(211, 102, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(211, 102, 255, 0.5);
  box-shadow: 0 0 15px rgba(211, 102, 255, 0.2);
  transition: all 0.3s ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0.15rem 0.4rem;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover, .nav-item.active {
  background: rgba(211, 102, 255, 0.12);
  color: #fff;
  border-color: rgba(211, 102, 255, 0.3);
  box-shadow: 0 0 15px rgba(211, 102, 255, 0.1);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(211, 102, 255, 0.15) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
}

.nav-icon { 
  font-size: 0.92rem; 
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(194, 147, 255, 0.6));
  transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
  filter: drop-shadow(0 0 8px rgba(194, 147, 255, 0.9)) brightness(1.2);
  transform: scale(1.15);
}

.btn-random-game {
  background: rgba(194, 147, 255, 0.1) !important;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 800 !important;
  transition: all 0.3s ease !important;
}

.btn-random-game:hover {
  background: var(--primary) !important;
  color: #000 !important;
  box-shadow: 0 0 25px var(--glow-p);
  transform: translateY(-2px) scale(1.02);
}

.btn-random-game:active {
  transform: translateY(0) scale(0.98);
}

.random-roll-animation {
  animation: dice-roll 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dice-roll {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); filter: brightness(1.5); }
  100% { transform: rotate(360deg) scale(1); }
}

.main-content { flex-grow: 1; min-width: 0; }

.section-title {
  font-family: var(--font-accent);
  font-size: 2rem;
  letter-spacing: 0.1em;
  background: linear-gradient(to right, #fff, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  will-change: transform, opacity;
}

.game-card:hover { 
  transform: translateY(-8px); 
  border-color: #fff;
  box-shadow: 0 12px 30px var(--glow-p);
}

.game-card__thumb-container { 
  width: 100%; 
  aspect-ratio: 16/9; 
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}
.game-card:hover .game-card__thumb { transform: scale(1.08); }

.game-card__placeholder {
  font-size: 4rem;
  filter: drop-shadow(0 0 15px var(--glow-p));
}

.game-card__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(194, 147, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.game-card:hover .game-card__overlay { opacity: 1; }

.btn-play {
  background: #fff;
  color: #000;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transform: translateY(15px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.game-card:hover .btn-play { transform: translateY(0); }

.game-card__body { padding: 1.5rem; }
.game-card__title { 
  font-family: var(--font-accent); 
  color: #fff; 
  margin-bottom: 0.8rem; 
  font-size: 1.3rem; 
  letter-spacing: 0.05em;
}
.game-card__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.ge-layout { display: flex; gap: 3rem; margin-top: 2rem; }
.ge-main { flex: 1; min-width: 0; }
.ge-side { width: 400px; flex-shrink: 0; }

.ge-boards {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; padding: 1rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.lb-table td { padding: 1rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.9rem; }
.lb-table tr.current-user { background: rgba(194, 147, 255, 0.1); }

.btn { 
  padding: 0.8rem 1.8rem; 
  border-radius: 12px; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.12em; 
  font-family: var(--font-accent); 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--primary);
  background: rgba(211, 102, 255, 0.1);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 15px var(--glow-p), inset 0 0 10px var(--glow-p);
  text-align: center;
  vertical-align: middle;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.btn:hover::after { left: 100%; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px var(--glow-p);
  border-color: #fff;
}

.btn-primary { 
  background: var(--primary); 
  border-color: #fff;
  color: #000; 
  box-shadow: 0 0 25px var(--primary); 
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 0 40px var(--primary);
}

/* ── Modals (NO CSS TRANSITIONS TO PREVENT CONFLICTS WITH GSAP) ── */
/* ── ГАРАНТИРОВАННО РАБОЧИЙ СКРОЛЛ ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none; 
  justify-content: center;
  align-items: flex-start; 
  overflow-y: scroll !important; 
  z-index: 99999;
  padding: 4rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
}

.modal-container { 
  background: #0d0f1a;
  border: 2px solid var(--primary); 
  border-radius: 28px; 
  width: 95%;
  max-width: 1200px;
  position: relative;
  box-shadow: 0 0 50px rgba(0,0,0,1);
  margin: auto;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* СЕТКА ТОВАРОВ */
.shop-grid-custom { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px; 
  width: 100%;
}

.modal-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1.5rem 2rem; 
  border-bottom: 1px solid var(--border); 
}
.modal-header h3 { font-family: var(--font-accent); letter-spacing: 0.1em; color: var(--primary); font-size: 1.2rem; }

.modal-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close::before, .modal-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }

.modal-close:hover {
  background: var(--accent);
  border-color: #fff;
  transform: rotate(90deg);
}
.modal-close:hover::before, .modal-close:hover::after { background: #fff; }

.lb-tabs {
    flex-wrap: wrap;
}

.modal-body { 
  padding: 2rem; 
  width: 100%;
}

/* ВИДИМЫЙ ПОЛЗУНОК */
.modal-overlay::-webkit-scrollbar {
  width: 10px;
}
.modal-overlay::-webkit-scrollbar-track {
  background: #000;
}
.modal-overlay::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.form-input { 
  width: 100%; 
  background: rgba(0, 0, 0, 0.3); 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: 1rem; 
  color: #fff; 
  font-family: var(--font-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 15px var(--glow-p); }
.btn-full { width: 100%; margin-top: 1rem; }

.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: rgba(194, 147, 255, 0.1);
    box-shadow: 0 0 15px var(--glow-p);
}

.logout-btn:hover {
    color: #ff4d4d !important;
    transform: scale(1.1);
}

.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.modal-sm { max-width: 450px; }
.modal-md { max-width: 800px; }
.modal-lg { max-width: 1100px; }

.shop-grid-custom, .casino-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.shop-card, .casino-game { background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 2rem; border-radius: 20px; text-align: center; transition: all 0.2s ease; }
.shop-card:hover, .casino-game:hover { background: rgba(194, 147, 255, 0.05); border-color: var(--primary); transform: translateY(-8px); }
.shop-card-icon, .casino-game-icon { font-size: 3.5rem; margin-bottom: 1rem; filter: drop-shadow(0 0 10px var(--glow-p)); }

/* ОПТИМИЗАЦИЯ ТЯЖЕЛЫХ ЭФФЕКТОВ */
.low-graphics *, .low-graphics ::before, .low-graphics ::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

@keyframes aura-pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.02); opacity: 1; }
}

/* Оптимизация радужного ника (только смещение градиента, без фильтров) */
.rainbow-text {
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: rainbow-anim 5s linear infinite; /* Замедлили для снижения нагрузки */
    font-weight: 800;
}

@keyframes rainbow-anim {
    to { background-position: 200% center; }
}

.crt-scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* ОПТИМИЗАЦИЯ: Упрощенный градиент */
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Retro Font */
.retro-font-active, .retro-font-active * {
    font-family: 'Courier New', Courier, monospace !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── MOBILE MODE STYLES ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(5, 6, 15, 0.98);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--primary);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
}

.mobile-nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
}

.mobile-nav-item:active { transform: scale(0.9); opacity: 0.7; }

.m-nav-icon { font-size: 1.4rem; filter: drop-shadow(0 0 5px var(--glow-p)); }
.m-nav-label { font-family: var(--font-accent); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); }

/* Styles when Mobile Mode is active on Body */
body.mobile-mode .mobile-bottom-nav { display: flex; }

body.mobile-mode .sidebar,
body.mobile-mode .right-panel {
    display: none !important;
}

body.mobile-mode .main-grid-layout {
    display: block !important;
    padding: 0 0.5rem 100px 0.5rem !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body.mobile-mode .main-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.mobile-mode .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
    width: 100% !important;
}

body.mobile-mode .game-card {
    width: 100% !important;
}

body.mobile-mode .game-card__body { padding: 1rem !important; }
body.mobile-mode .game-card__title { font-size: 0.9rem !important; }

/* Приколы из магазина */
.big-cursor-active, .big-cursor-active * {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' style='font-size:48px'><text y='48'>🖱️</text></svg>"), auto !important;
}

/* OPTIMIZATION MODE */
.optimization-mode * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
}

.optimization-mode {
    --glow-p: transparent !important;
    --glow-s: transparent !important;
}

.optimization-mode * {
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
}

.optimization-mode .nav-logo .logo-text {
    filter: none !important;
}

.optimization-mode .signal-bar {
    animation: none !important;
}

.optimization-mode .nav-btn-premium,
.optimization-mode .nav-btn-forge-hyper,
.optimization-mode .nav-shop-btn {
    animation: none !important;
    box-shadow: none !important;
}


