:root {
  --primary: #74b9ff;
  --primary-dark: #0984e3;
  --secondary: #636e72;
  --danger: #e17055;
  --success: #00b894;
  --warning: #fdcb6e;
  --info: #00bcd4;
  --background: #f8f9fa;
  --card-bg: #fff;
  --border-radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --font-family: 'Inter', Arial, sans-serif;
  --text-color: #222;
  --muted: #888;
}

html, body {
  min-height: 100vh;
  min-width: 100vw;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--background);
  color: var(--text-color);
  overflow-x: hidden !important;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-family);
  font-weight: 600;
  margin: 0 0 0.5em 0;
  color: var(--text-color);
}

.btn {
  display: inline-block;
  padding: 0.5em 1.2em;
  border-radius: var(--border-radius);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  background: var(--primary);
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 1px 4px #0001;
}
.btn-primary {
  background: #1976d2;
  color: #fff;
}
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: #222; }
.btn-secondary {
  background: #424b52;
  color: #fff;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:hover, .btn-primary:hover {
  background: #74b9ff;
  color: #fff;
  transform: translateY(3px);
  box-shadow: none;
  text-decoration: none !important;
}
.btn-secondary:hover {
  background: #636e72;
  color: #fff;
}

.form-group { margin-bottom: 1.2em; }
.form-label { display: block; margin-bottom: 0.3em; font-weight: 500; }
.form-input, .custom-select {
  width: 100%;
  padding: 0.5em 0.9em;
  border-radius: var(--border-radius);
  border: 1px solid #dfe6e9;
  font-size: 1rem;
  background: #fff;
  color: var(--text-color);
  box-sizing: border-box;
}
.form-input:focus, .custom-select:focus { outline: 2px solid var(--primary); }
.custom-select-container { position: relative; }
.custom-select-arrow {
  position: absolute; right: 1em; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--muted);
}

.table-container { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5em;
}
th, td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid #ececec;
}
th { background: #f1f2f6; font-weight: 600; }
tr:last-child td { border-bottom: none; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-muted, .muted { color: var(--muted); }

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2em;
  padding: 1.5em 1.2em;
}
.card-header { margin-bottom: 1em; }
.card-title { font-size: 1.2em; font-weight: 600; }
.card-description { color: var(--muted); font-size: 0.98em; }

.stats-grid, .settings-grid, .analytics-grid {
  display: grid;
  gap: 1.5em;
}
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.settings-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.analytics-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.stat-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.2em 1em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.stat-title { font-size: 1em; color: var(--muted); }
.stat-value { font-size: 2.1em; font-weight: 700; margin: 0.2em 0; }
.stat-description { color: var(--muted); font-size: 0.98em; }

.notification {
  background: var(--card-bg);
  border-left: 5px solid var(--primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1em;
  padding: 1em 1.2em;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 340px;
  font-size: 1em;
  z-index: 9999;
}
.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--warning); }
.notification-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5em;
}
.notification-title { font-weight: 600; }
.notification-close {
  background: none; border: none; font-size: 1.2em; cursor: pointer; color: var(--muted);
}
.notification-content { margin-bottom: 0.3em; }
.notification-time { font-size: 0.92em; color: var(--muted); }

.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2em 1.5em;
  min-width: 320px;
  max-width: 98vw;
  position: relative;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.2em; font-weight: 600; }
.modal-close {
  background: none; border: none; font-size: 1.5em; cursor: pointer; color: var(--muted);
}
.modal-footer { margin-top: 1.5em; display: flex; gap: 1em; justify-content: flex-end; }

.layout {
  display: flex;
  min-height: 100vh;
  background: var(--background);
}
.sidebar {
  width: 250px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}
.sidebar-header { padding: 1.5em 1em 1em 1em; font-size: 1.3em; font-weight: 700; }
.sidebar-content { flex: 1; }
.sidebar-footer { padding: 1em; font-size: 0.95em; color: #dfe6e9; }
.main-content { flex: 1; padding: 2em 1.5em; }
.topbar {
  display: flex; align-items: center; justify-content: flex-end;
  padding-bottom: 1.2em; background: none;
}
.user-dropdown { position: relative; }
.user-dropdown-button {
  background: none; border: none; display: flex; align-items: center; cursor: pointer;
  padding: 0; font: inherit;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #dfe6e9;
  display: flex; align-items: center; justify-content: center; font-size: 1.2em; margin-right: 0.7em;
}
.user-info { display: flex; flex-direction: column; align-items: flex-start; }
.user-name { font-weight: 600; }
.user-role { font-size: 0.98em; color: var(--muted); }
.dropdown-menu {
  position: absolute; right: 0; top: 110%; background: var(--card-bg);
  border-radius: var(--border-radius); box-shadow: var(--shadow);
  min-width: 180px; padding: 0.7em 0; z-index: 10; display: none;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  padding: 0.7em 1.2em; color: var(--text-color); text-decoration: none; display: flex; align-items: center;
  cursor: pointer; transition: background 0.15s;
}
.dropdown-item:hover { background: #f1f2f6; }
.dropdown-divider { height: 1px; background: #ececec; margin: 0.5em 0; }

.nav-item {
  display: block;
  padding: 0.9em 1.2em;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius);
  margin-bottom: 0.2em;
  transition: background 0.15s;
}
.nav-item.active, .nav-item:hover { background: var(--primary-dark); }

.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 1em;
  font-size: 0.92em;
  font-weight: 500;
  background: #dfe6e9;
  color: #222;
}
.badge-success { background: var(--success); color: #fff; }
.badge-danger { background: var(--danger); color: #fff; }
.badge-warning { background: var(--warning); color: #222; }
.badge-primary { background: var(--primary-dark); color: #fff; }
.badge-info { background: var(--info); color: #fff; }
.badge-secondary { background: var(--secondary); color: #fff; }

.loader, .loader:after {
  border-radius: 50%;
  width: 2em;
  height: 2em;
}
.loader {
  margin: 0 auto;
  font-size: 1em;
  position: relative;
  text-indent: -9999em;
  border-top: 0.25em solid var(--primary);
  border-right: 0.25em solid var(--primary);
  border-bottom: 0.25em solid #f1f2f6;
  border-left: 0.25em solid #f1f2f6;
  transform: translateZ(0);
  animation: load8 1.1s infinite linear;
}
@keyframes load8 {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

@media (max-width: 900px) {
  .sidebar { width: 60px; }
  .sidebar-header, .sidebar-footer { display: none; }
  .main-content { padding: 1em 0.5em; }
  .byakoflooder-cards {
    flex-direction: column;
    gap: 1.2em;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .byakoflooder-card {
    padding: 1.2rem 0.3rem 1rem 0.3rem;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    width: calc(100vw - 0.4rem);
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .card, .modal { padding: 1em 0.5em; }
  .main-content { padding: 0.5em 0.2em; }
  .stats-grid, .settings-grid, .analytics-grid { grid-template-columns: 1fr; }
}

/* --- HI-TECH DARK GLASSMORPHISM --- */
body, html {
  background: #181c23;
  color: #e3e6f3;
  font-family: 'Inter', 'Space Grotesk', 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  min-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: #00e6ff #23272f;
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
  width: 10px;
  background: #23272f;
}
body::-webkit-scrollbar-thumb, html::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #00e6ff 0%, #1e90ff 100%);
  border-radius: 8px;
  min-height: 40px;
  border: 2px solid #23272f;
}
body::-webkit-scrollbar-thumb:hover, html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(120deg, #1e90ff 0%, #00e6ff 100%);
}
body::-webkit-scrollbar-track, html::-webkit-scrollbar-track {
  background: #23272f;
  border-radius: 8px;
}

.main-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 20%, #2e3a5a 0%, #181c23 70%), linear-gradient(120deg, #1e293b 0%, #23272f 100%);
  filter: blur(0.5px);
  pointer-events: none;
}
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.hero-glass {
  background: rgba(30, 36, 50, 0.72);
  border-radius: 2.5rem;
  box-shadow: 0 8px 48px 0 #0007, 0 1.5px 16px #1e293b44;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1.5px solid #2e3a5a55;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeInUp 1.2s cubic-bezier(.4,1.6,.4,1);
}
.hero-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 2.5px solid #2e3a5a;
  box-shadow: 0 2px 16px #0004;
  background: #23272f;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.hero-nick {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #f7fafc;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px #0003;
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #a6b1d6;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
}
.hero-btn {
  background: linear-gradient(90deg, #1e90ff 0%, #00e6ff 100%);
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85em 2.2em;
  margin-bottom: 1.7rem;
  box-shadow: 0 2px 16px #00e6ff22;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s, box-shadow 0.18s;
  outline: none;
}
.hero-btn:hover, .hero-btn:focus {
  background: linear-gradient(90deg, #00e6ff 0%, #1e90ff 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px #00e6ff33;
}
.hero-socials {
  display: flex;
  gap: 1.2em;
  margin-top: 0.5em;
}
.hero-socials a {
  opacity: 0.85;
  transition: opacity 0.18s, transform 0.18s;
  border-radius: 50%;
  background: rgba(30, 36, 50, 0.22);
  padding: 0.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-socials a:hover {
  opacity: 1;
  background: #23272f;
  transform: scale(1.13);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #f7fafc;
  margin-bottom: 2.2rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}
.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About Cards (dark, no horizontal scroll, always dark) --- */
.about-section {
  margin: 0 auto 3.5rem auto;
  max-width: 1200px;
  padding: 0 1.2rem;
}
.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6em;
  justify-content: center;
  margin-top: 1.5em;
  overflow-x: hidden !important;
}
.about-card {
  position: relative;
  min-width: min(280px, 100%);
  max-width: 340px;
  flex: 1 1 280px;
  background: linear-gradient(135deg, rgba(24, 28, 35, 0.98), rgba(34, 41, 53, 0.97));
  border-radius: 1.8rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.6rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(0, 230, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.1);
  color: #e3e6f3 !important;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #00e6ff 0%, #1e90ff 100%);
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 230, 255, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 230, 255, 0.15);
}
.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.2), rgba(30, 144, 255, 0.28));
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}
.about-card-icons-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.about-card-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.about-card-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: #f7fafc;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
.about-card-desc {
  font-size: 1rem;
  color: #d9def0;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.97;
}

/* --- Game Guides Section (аналогично About) --- */
.game-guides-section,
.game-infos-section {
  margin: 0 auto 3.5rem auto;
  max-width: 1200px;
  padding: 0 1.2rem;
}
.game-guides-section .about-cards,
.game-infos-section .about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6em;
  justify-content: flex-start !important;
  align-items: flex-start;
  margin-top: 1.5em;
  overflow-x: hidden !important;
}

.game-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #1e90ff 0%, #00e6ff 100%);
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65em 1.8em;
  margin-top: 1.2rem;
  box-shadow: 0 2px 16px #00e6ff22;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s, box-shadow 0.18s;
  outline: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s, background 0.22s, box-shadow 0.18s;
}
.game-card-link.visible {
  opacity: 1;
  transform: translateY(0);
}
.game-card-link:hover,
.game-card-link:focus {
  background: linear-gradient(90deg, #00e6ff 0%, #1e90ff 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px #00e6ff33;
  text-decoration: none;
  color: #fff;
}

/* --- Отключить горизонтальный скролл для всего сайта --- */
html, body {
  overflow-x: hidden !important;
}

/* --- Футер всегда виден, без багов --- */
.footer, .dark-footer {
  position: relative;
  z-index: 2;
  margin-bottom: 0 !important;
  padding: 1.2em 1.2rem 1.6em;
}
.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #a6b1d6;
  font-size: 0.95rem;
}
.footer-mail {
  color: #00e6ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-mail:hover,
.footer-mail:focus {
  color: #8beeff;
  transform: translateY(-1px);
}

.byakoflooder-section {
  margin: 0 auto 3.5rem auto;
  max-width: 1200px;
  padding: 0 1.2rem;
}
.byakoflooder-desc {
  margin-bottom: 1.7em;
  background: rgba(30,36,50,0.82);
  border-radius: 2.2rem;
  box-shadow: 0 4px 32px #0008, 0 1.5px 16px #00e6ff22;
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
  color: #e3e6f3;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1.5px solid #2e3a5a55;
  backdrop-filter: blur(12px) saturate(1.1);
}
.byakoflooder-table-wrap {
  background: rgba(24,28,35,0.97);
  border-radius: 2.2rem;
  box-shadow: 0 4px 32px #000a, 0 1.5px 16px #00e6ff22;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  border: 1.5px solid #23272f;
  backdrop-filter: blur(16px) saturate(1.1);
  overflow-x: auto;
}
.byakoflooder-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.05rem;
  color: #e3e6f3;
  background: none;
}
.byakoflooder-table th, .byakoflooder-table td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid #2e3a5a55;
}
.byakoflooder-table th {
  background: rgba(30,36,50,0.92);
  color: #00e6ff;
  font-weight: 700;
  font-size: 1.08rem;
  border-top-left-radius: 1.2em;
  border-top-right-radius: 1.2em;
}
.byakoflooder-table tr:last-child td {
  border-bottom: none;
}
.byakoflooder-cards {
  display: flex;
  gap: 1.3em;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 1.5em;
  overflow-x: visible;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
.byakoflooder-card {
  background: rgba(24, 28, 35, 0.97);
  border-radius: 2.2rem;
  box-shadow: 0 4px 32px #000a, 0 1.5px 16px #00e6ff22;
  padding: 2.2rem 1.5rem 1.7rem 1.5rem;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  border: 1.5px solid #23272f;
  backdrop-filter: blur(16px) saturate(1.1);
  color: #e3e6f3;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
  margin-left: auto;
  margin-right: auto;
}
.byakoflooder-card:hover {
  box-shadow: 0 8px 48px #00e6ff44, 0 1.5px 16px #00e6ff22;
  border-color: #00e6ff;
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}
@media (max-width: 1200px) {
  .byakoflooder-cards {
    gap: 0.8em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 900px) {
  .byakoflooder-cards {
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  .byakoflooder-card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 1.5rem 0.9rem 1.2rem 0.9rem;
    box-sizing: border-box;
    transform: none !important;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 700px) {
  .byakoflooder-cards {
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
  }
  .byakoflooder-card {
    padding: 1.2rem 0.3rem 1rem 0.3rem;
    margin-left: auto;
    margin-right: auto;
    width: calc(100vw - 0.4rem);
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
}
.bf-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.9em;
  border: 2.5px solid #2e3a5a;
  background: #23272f;
  user-select: none;
  -webkit-user-drag: none;
  flex-shrink: 0;
  transition:
    border-color 0.45s cubic-bezier(.4,1.6,.4,1),
    box-shadow 0.45s cubic-bezier(.4,1.6,.4,1),
    background 0.3s cubic-bezier(.4,1.6,.4,1);
  will-change: border-color, box-shadow;
}
.bf-avatar.online {
  border-color: #3be889a9;
  box-shadow: 0 0 0 0 #3be88a33;
}
.bf-avatar.online:hover,
.bf-avatar.online:focus {
  box-shadow: 0 0 0 4px #3be88a33;
}
.bf-avatar.offline {
  border-color: #2e3a5a;
  box-shadow: none;
}
.bf-info {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  flex: 1;
}
.bf-header-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.3em;
}
.bf-nick {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.bf-status {
  display: inline-block;
  padding: 0.18em 0.9em;
  border-radius: 1em;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.01em;
  background: #23272f;
  color: #e3e6f3;
  box-shadow: 0 1px 4px #00e6ff22;
  border: 1.5px solid #23272f;
  margin-bottom: 0;
  margin-top: 0;
  min-width: 60px;
  text-align: center;
  transition:
    background 0.45s cubic-bezier(.4,1.6,.4,1),
    color 0.45s cubic-bezier(.4,1.6,.4,1),
    border 0.45s cubic-bezier(.4,1.6,.4,1),
    box-shadow 0.45s cubic-bezier(.4,1.6,.4,1);
}
.bf-status.online {
  background: linear-gradient(90deg, #00e6ff 0%, #3be88a 100%);
  color: #181c23;
  border-color: #3be88a;
  box-shadow: 0 0 8px #3be88a33;
  transition:
    background 0.45s cubic-bezier(.4,1.6,.4,1),
    color 0.45s cubic-bezier(.4,1.6,.4,1),
    border 0.45s cubic-bezier(.4,1.6,.4,1),
    box-shadow 0.45s cubic-bezier(.4,1.6,.4,1);
}
.bf-status.offline {
  background: #23272f;
  color: #888;
  border-color: #2e3a5a;
  box-shadow: 0 1px 4px #00e6ff22;
  transition:
    background 0.45s cubic-bezier(.4,1.6,.4,1),
    color 0.45s cubic-bezier(.4,1.6,.4,1),
    border 0.45s cubic-bezier(.4,1.6,.4,1),
    box-shadow 0.45s cubic-bezier(.4,1.6,.4,1);
}

/* --- Прочие стили --- */
.hidden { display: none !important; }
.gap-2 { gap: 0.5em; }
.gap-4 { gap: 1.2em; }
.mb-4 { margin-bottom: 1.2em; }
.mb-6 { margin-bottom: 2em; }
.mt-2 { margin-top: 0.7em; }
.mt-4 { margin-top: 1.2em; }
.mt-6 { margin-top: 2em; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-column { flex-direction: column; }
.font-semibold { font-weight: 600; }
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.collapsible-header {
      display: flex;
      align-items: center;
      gap: 0.7em;
      cursor: pointer;
      user-select: none;
      transition: color 0.18s;
      font-size: 1.25rem;
      font-weight: 700;
      color: #1976d2;
      margin-bottom: 0.5rem;
      background: none;
      border: none;
      outline: none;
      box-shadow: none;
      padding: 0;
    }

    .collapsible-header:hover {
      color: #0d47a1;
    }

    .arrow {
      display: inline-flex;
      align-items: center;
      transition: transform 0.3s cubic-bezier(.4, 1.6, .4, 1);
    }

    .arrow-right {
      transform: rotate(-90deg); 
    }

    .arrow-down {
      transform: rotate(0deg);
    }

    .collapsible-content {
      overflow: hidden;
      transition: max-height 0.35s cubic-bezier(.4, 1.6, .4, 1);
      background: none;
}

/* --- Анимация swipe-up для цифр --- */
.bf-flood-animated {
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  font-size: 1.08em;
  font-weight: 700;
  color: #00e6ff;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.bf-flood-digit {
  display: inline-block;
  position: relative;
  min-width: 0.7em;
  height: 1.2em;
  overflow: hidden;
  vertical-align: middle;
}
.bf-flood-digit-inner {
  display: block;
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  transition: transform 0.32s cubic-bezier(.4,1.6,.4,1);
  will-change: transform;
}
.bf-flood-digit-old {
  color: #00e6ff;
  opacity: 0.7;
  z-index: 1;
}
.bf-flood-digit-new {
  color: #00e6ff;
  z-index: 2;
}

/* Состояния анимации */
.bf-flood-digit-animate-up .bf-flood-digit-old {
  transform: translateY(0);
  animation: bf-flood-up-old 0.32s forwards;
}
.bf-flood-digit-animate-up .bf-flood-digit-new {
  transform: translateY(100%);
  animation: bf-flood-up-new 0.32s forwards;
}
@keyframes bf-flood-up-old {
  from { transform: translateY(0); opacity: 0.7; }
  to   { transform: translateY(-100%); opacity: 0; }
}
@keyframes bf-flood-up-new {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}