.sidebar-header {
  padding: 1rem 0.9rem 0.85rem;
}

.site-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.brand-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  gap: 0.2rem;
  padding: 0.7rem 0.7rem 0.4rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.sidebar-nav button.nav-link {
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav .nav-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.sidebar-nav .nav-text {
  flex: 1;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}

.sidebar-nav > .nav-link.active,
.submenu-link.active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: var(--admin-primary) !important;
}

.sidebar-nav > .nav-link.active .nav-icon,
.nav-group.is-current > .submenu-toggle .nav-icon {
  background: var(--admin-primary);
  color: #fff;
}

.nav-group.is-current > .submenu-toggle {
  color: var(--admin-sidebar-text-strong);
}

.nav-chevron {
  flex: 0 0 auto;
  color: var(--admin-sidebar-muted);
  font-size: 0.72rem;
  transition: transform 0.16s ease;
}

.nav-group.is-open > .submenu-toggle .nav-chevron {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  margin: 0.15rem 0.2rem 0.35rem 1.55rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--admin-sidebar-border);
}

.submenu.show {
  display: grid;
  gap: 0.1rem;
}

.submenu-link {
  min-height: 36px !important;
  padding: 0.28rem 0.55rem !important;
  border-radius: 9px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  gap: 0.55rem !important;
}

.submenu-mark {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--admin-sidebar-muted);
}

.submenu-link.active .submenu-mark {
  background: var(--admin-primary);
}

.sidebar-user {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: auto 0.7rem 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  text-align: left;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid var(--admin-sidebar-border);
  border-radius: 50%;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  margin-top: 0.08rem;
  font-size: 0.75rem;
}

@media (min-width: 992px) {
  body.sidebar-mini .submenu,
  body.sidebar-mini .nav-chevron,
  body.sidebar-mini .sidebar-user-copy,
  body.sidebar-mini .brand-copy {
    display: none;
  }

  body.sidebar-mini .sidebar-user {
    justify-content: center;
    margin-inline: 0.55rem;
    padding: 0.45rem;
  }

  body.sidebar-mini .sidebar-header {
    padding-inline: 0.45rem;
  }

  body.sidebar-mini .sidebar-nav .nav-link {
    justify-content: center;
  }
}
table td, table tr {
  white-space: nowrap !important;
  word-break: keep-all;
}

#gameLoader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0d1117, #1f2937, #111827);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.loader-content {
  text-align: center;
  color: #fff;
}

.dice {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  position: relative;
  transform-style: preserve-3d;
  animation: roll 2s infinite linear;
}

.face {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #fff;
  color: #111;
  font-size: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  border: 3px solid #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, .5);
}

.face.front { transform: translateZ(45px); }
.face.back { transform: rotateY(180deg) translateZ(45px); }
.face.right { transform: rotateY(90deg) translateZ(45px); }
.face.left { transform: rotateY(-90deg) translateZ(45px); }
.face.top { transform: rotateX(90deg) translateZ(45px); }
.face.bottom { transform: rotateX(-90deg) translateZ(45px); }

@keyframes roll {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(720deg) rotateY(720deg); }
}

.loader-content h2 {
  color: #FFD700;
  font-size: 30px;
  margin: 10px 0;
  font-weight: bold;
  letter-spacing: 2px;
}

.loader-content p {
  color: #ddd;
  margin-bottom: 20px;
  font-size: 16px;
}

.loading-bar {
  width: 260px;
  height: 8px;
  background: #333;
  border-radius: 30px;
  overflow: hidden;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #ff6600);
  animation: progress 2s infinite;
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}
