:root {
  --bg: #0a0a0f;
  --bg-2: #0f1118;
  --panel: #12141c;
  --panel-2: #181b24;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --text: #f8f8ff;
  --muted: #b6bcc8;
  --primary: #f8f8ff;
  --primary-2: #bfe9ff;
  --red: #ff7268;
  --black: #8b92a8;
  --green: #4fe0b0;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #000;
}

body {
  overflow-x: hidden;
  position: relative;
}

body.home-active {
  background: #000;
  position: relative;
}

body.guest-locked .mode-nav {
  display: none !important;
}

body.guest-locked .home-screen .mode-grid {
  display: none;
}

body.guest-locked .home-auth-layout {
  display: none;
}

body.guest-locked .guest-welcome {
  display: inline-flex;
}

body.guest-locked .guest-market {
  display: grid;
}

body.home-active .page-shell,
body.home-active .topbar,
body.home-active .app-screen,
body.home-active .home-screen,
body.home-active .mode-grid {
  position: relative;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/assets/home-bg.jpg") center center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

#bgParticles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

#headerAuthButton {
  background: #000 !important;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: none !important;
  border-radius: 16px;
}

#headerAuthButton:hover {
  box-shadow: none !important;
}

.guest-welcome {
  color: #fff;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  gap: 6px;
  align-items: center;
  display: none;
  flex: 1;
  justify-content: center;
  text-align: center;
  transform: translateX(40px);
}

.guest-welcome-text {
  white-space: nowrap;
}

.guest-welcome-caret {
  display: inline-block;
  animation: guest-caret 1.1s steps(2, start) infinite;
  opacity: 0.7;
}

@keyframes guest-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes vip-particles-drift-1 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, -60px, 0);
  }
  100% {
    transform: translate3d(30px, -120px, 0);
  }
}

@keyframes vip-particles-drift-2 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(50px, -40px, 0);
  }
  100% {
    transform: translate3d(-30px, -100px, 0);
  }
}

.guest-market {
  margin: 26px auto 0;
  width: min(860px, 94vw);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #000;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.25),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  gap: 14px;
  display: none;
}

.guest-market-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.guest-market-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.guest-market-header span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.guest-market-list {
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
}

.guest-market-empty {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.guest-auth-button {
  justify-self: center;
  padding: 12px 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  color: #fff;
  font-weight: 600;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guest-auth-button:hover {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    inset 0 0 14px rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .guest-welcome {
    display: none;
  }
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #252e52;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  padding: 20px clamp(14px, 2.5vw, 32px) 28px;
  position: relative;
  z-index: 2;
}

.topbar,
.hero-panel,
.panda-panel,
.section-panel,
.mode-card,
.modal-card,
.balance-box,
.mode-chip,
.profile-button,
.deposit-button,
.primary-button,
.bet-type-button,
.upgrade-type-button,
.shortcut-button,
.stake-box,
.color-card,
.bet-item,
.bet-column-head,
.inventory-card,
.stat-box,
.latest-box,
.settings-button {
  background: linear-gradient(180deg, rgba(18, 20, 28, 0.98), rgba(12, 14, 20, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  position: relative;
  overflow: visible;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 0 36px rgba(255, 255, 255, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 5;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  display: none;
  pointer-events: none;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.brand-logo {
  height: 62px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(8, 14, 30, 0.45));
}

.brand-button:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(113, 234, 209, 0.35));
}

.mode-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-nav .mode-chip {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 4px;
  min-height: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mode-nav .mode-chip img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.neon-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(18, 20, 28, 0.96), rgba(10, 11, 16, 0.96));
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.12),
    inset 0 0 16px rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.home-screen .home-mode-card {
  background: #000;
  border: 0;
  box-shadow: none;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
}

.home-screen .home-mode-card::before,
.home-screen .home-mode-card::after {
  display: none;
}

.home-mode-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}

.neon-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.neon-card:hover {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 34px rgba(255, 255, 255, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.12);
}

.mode-chip,
.profile-button,
.bet-type-button,
.upgrade-type-button,
.shortcut-button,
.settings-button {
  padding: 16px 22px;
  min-height: 52px;
  color: var(--text);
  background: linear-gradient(180deg, #14161e, #0f1118);
  border-color: rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-chip--double:hover,
.mode-chip--crash:hover,
.mode-chip--upgrade:hover,
.mode-chip--cases:hover,
.mode-chip--double.active,
.mode-chip--crash.active,
.mode-chip--upgrade.active,
.mode-chip--cases.active {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.mode-chip--double:hover img,
.mode-chip--double.active img {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(153, 50, 204, 0.75));
}

.mode-chip--crash:hover img,
.mode-chip--crash.active img {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(70, 130, 180, 0.75));
}

.mode-chip--upgrade:hover img,
.mode-chip--upgrade.active img {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(255, 140, 0, 0.75));
}

.mode-chip--cases:hover img,
.mode-chip--cases.active img {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(219, 112, 147, 0.75));
}

.profile-button:active,
.primary-button:active,
.bet-type-button:active,
.upgrade-type-button:active,
.shortcut-button:active,
.mode-chip:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(1.2);
}

.crash-bet-sidebar .profile-button {
  border-color: rgba(113, 234, 209, 0.16);
}

.crash-bet-sidebar .profile-button:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 234, 209, 0.36);
}

.bet-sidebar.crash-bet-sidebar {
  overflow: visible;
}

.mode-chip.active,
.mode-chip:hover,
.profile-button:hover,
.bet-type-button.active,
.upgrade-type-button.active,
.shortcut-button:hover,
.settings-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.mode-nav .mode-chip.active,
.mode-nav .mode-chip:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

 .user-panel {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #000;
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
  position: relative;
}

.user-panel .profile-menu-toggle {
  padding: 0;
  border: none;
  background: transparent;
  align-items: flex-start;
}

.user-panel .profile-menu-summary {
  display: grid;
  align-items: start;
  gap: 4px;
  margin-top: 0;
}

.user-panel .profile-menu-summary-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-panel .profile-menu-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.user-panel .level-badge {
  background: transparent;
  color: #f8f8ff;
  border: none;
  box-shadow: none;
  min-width: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-panel #headerLevelBadge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.user-panel .balance-box {
  padding: 0;
  min-width: 0;
  background: transparent;
  border: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.user-panel .balance-box span {
  display: none;
}

.user-panel .balance-wallet-button {
  display: none;
}

.user-panel .balance-box strong {
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.user-level {
  font-weight: 700;
  font-size: 0.82rem;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.user-level.tier-bronze {
  color: #f2caa2;
  text-shadow: none;
}

.user-level.tier-silver {
  color: #d8e6ff;
  text-shadow: none;
}

.user-level.tier-gold {
  color: #ffe9a6;
  text-shadow: none;
}

.user-level.tier-emerald {
  color: #9ff4dd;
  text-shadow: none;
}

.user-level.tier-platinum {
  color: #b3f8ff;
  text-shadow: none;
}

.user-level.tier-diamond {
  color: #b5c8ff;
  text-shadow: none;
}

.user-level.tier-mythic {
  color: #ffc0b0;
  text-shadow: none;
}

.avatar-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #4d74e3, #30467f);
}

.profile-menu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 20, 0.82);
  color: var(--text);
}

.profile-menu-summary {
  display: grid;
  gap: 4px;
  text-align: left;
}

.profile-menu-summary-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-menu-summary strong {
  font-size: 0.95rem;
}

.profile-menu-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-menu-summary-xp {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-menu-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  z-index: 40;
}

.profile-menu-card.profile-menu-mini {
  width: 220px;
  padding: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.profile-menu-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.24),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.profile-menu-mini .profile-menu-head,
.profile-menu-mini .profile-menu-level-row,
.profile-menu-mini .xp-progress,
.profile-menu-mini .profile-menu-links {
  display: none;
}

.profile-menu-mini-links {
  display: grid;
  gap: 8px;
}

.profile-menu-mini-links .profile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}

.menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.profile-menu-link.danger .menu-icon {
  color: #ff8a82;
}

.vip-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.vip-profile-modal.hidden {
  display: none;
}

.vip-profile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.vip-profile-overlay::before,
.vip-profile-overlay::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(1.8px 1.8px at 40% 80%, rgba(255, 255, 255, 0.32), transparent 60%),
    radial-gradient(1.2px 1.2px at 85% 65%, rgba(255, 255, 255, 0.26), transparent 60%);
  background-size: 240px 240px;
  opacity: 0.5;
  animation: vip-particles-drift-1 18s linear infinite;
  pointer-events: none;
}

.vip-profile-overlay::after {
  background-image:
    radial-gradient(1.6px 1.6px at 15% 55%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(1.2px 1.2px at 55% 15%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(1.4px 1.4px at 75% 75%, rgba(255, 255, 255, 0.24), transparent 60%),
    radial-gradient(1px 1px at 30% 90%, rgba(255, 255, 255, 0.2), transparent 60%);
  background-size: 180px 180px;
  opacity: 0.35;
  animation: vip-particles-drift-2 24s linear infinite;
}

.vip-profile-card {
  position: relative;
  width: min(1080px, 92vw);
  max-height: 92vh;
  background: #000;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  padding: 22px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.vip-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vip-profile-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vip-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: linear-gradient(135deg, rgba(255, 211, 92, 0.9), rgba(255, 162, 64, 0.9));
  color: #11142a;
}

.vip-close-button {
  padding: 8px 14px;
}

.vip-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow: none;
  color: var(--text);
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.vip-profile-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  min-height: 0;
}

.vip-profile-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.vip-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #000;
  box-shadow: none;
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vip-nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.7);
}

.vip-nav-item.active {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.vip-profile-content {
  overflow: auto;
  padding-right: 6px;
}

.vip-profile-content::-webkit-scrollbar,
.vip-table::-webkit-scrollbar,
.vip-bonus-scroll::-webkit-scrollbar {
  width: 8px;
}

.vip-profile-content::-webkit-scrollbar-track,
.vip-table::-webkit-scrollbar-track,
.vip-bonus-scroll::-webkit-scrollbar-track {
  background: rgba(12, 18, 36, 0.8);
  border-radius: 999px;
}

.vip-profile-content::-webkit-scrollbar-thumb,
.vip-table::-webkit-scrollbar-thumb,
.vip-bonus-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(113, 234, 209, 0.7), rgba(255, 211, 92, 0.7));
  border-radius: 999px;
}

.vip-profile-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 234, 209, 0.7) rgba(12, 18, 36, 0.8);
}

.vip-tab {
  display: none;
  gap: 18px;
}

.vip-tab.active {
  display: grid;
}

.vip-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.vip-card {
  border-radius: 24px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #000;
  box-shadow: none;
  overflow: hidden;
}

.vip-user-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 140px;
}

.vip-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.vip-profile-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.vip-id-row,
.vip-trade-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.vip-avatar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.vip-avatar-row input,
.vip-trade-input input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  color: var(--text);
}

.vip-trade-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.vip-trade-input {
  display: flex;
  width: 100%;
  gap: 8px;
}

.vip-trade-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.vip-trade-hint.is-success {
  color: #59f7a8;
  text-shadow: 0 0 12px rgba(89, 247, 168, 0.35);
}

.ghost-button {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text);
  font-size: 0.75rem;
}

.vip-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vip-inline-balance {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vip-profile-card .profile-button,
.vip-profile-card .vip-close-button {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.vip-input-row input {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.vip-stat-card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow: none;
}

.vip-table-row {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow: none;
}

.vip-profile-card .level-badge {
  background: transparent;
  color: #f8f8ff;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

.vip-balance-card h3 {
  font-size: 2rem;
  margin: 6px 0 12px;
}

.vip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vip-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.vip-card .inline-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
}

.vip-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
  align-items: stretch;
}

.vip-feature-stack {
  display: grid;
  gap: 10px;
}

.vip-compact-card {
  padding: 10px;
  min-height: 110px;
}

.vip-tall-card {
  height: 100%;
  min-height: 230px;
}

.vip-promo-card {
  border-color: rgba(255, 112, 112, 0.4);
  background: linear-gradient(180deg, rgba(60, 16, 30, 0.95), rgba(30, 10, 18, 0.95));
}

.vip-referral-card {
  border-color: rgba(112, 160, 255, 0.35);
  background: linear-gradient(180deg, rgba(24, 34, 68, 0.95), rgba(16, 22, 44, 0.95));
}

.vip-bonus-card {
  border-color: rgba(255, 211, 92, 0.5);
  background: linear-gradient(180deg, rgba(70, 48, 10, 0.95), rgba(38, 28, 12, 0.95));
}

.vip-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.vip-input-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 140, 210, 0.2);
  background: rgba(10, 14, 28, 0.8);
  color: var(--text);
}

.vip-input-row .profile-button,
.vip-input-row .ghost-button {
  white-space: nowrap;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.vip-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.vip-stat-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 210, 0.2);
  background: rgba(12, 18, 36, 0.82);
}

.vip-table {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.vip-table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 140, 210, 0.16);
  background: rgba(12, 18, 36, 0.8);
  font-size: 0.86rem;
}

.vip-referral-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vip-tab-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-back-button {
  padding: 6px 12px;
  border-radius: 12px;
}

.vip-referral-actions {
  display: flex;
  gap: 10px;
}

.vip-level-progress {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.vip-progress {
  display: grid;
  gap: 8px;
}

.vip-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(73, 86, 132, 0.32);
  overflow: hidden;
}

.vip-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(113, 234, 209, 0.9), rgba(255, 211, 92, 0.9));
}

.vip-bonus-grid .vip-card {
  display: grid;
  gap: 8px;
}

.vip-bonus-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vip-bonus-tab {
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 210, 0.22);
  background: rgba(18, 24, 46, 0.85);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vip-bonus-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 234, 209, 0.4);
}

.vip-bonus-tab.active {
  border-color: rgba(255, 211, 92, 0.6);
  box-shadow: 0 0 16px rgba(255, 211, 92, 0.18);
}

.vip-bonus-scroll {
  max-height: 320px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(113, 234, 209, 0.7) rgba(12, 18, 36, 0.8);
}

@media (max-width: 1100px) {
  .vip-profile-body {
    grid-template-columns: 1fr;
  }
  .vip-profile-nav {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .vip-top-grid {
    grid-template-columns: 1fr;
  }
  .vip-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vip-user-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .vip-referral-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .vip-user-card .vip-profile-actions {
    justify-content: center;
  }
}

.profile-menu-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #000;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.24),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 14px;
}

.profile-menu-head,
.profile-menu-level-row,
.xp-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-menu-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-weight: 700;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.18),
    inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.profile-menu-links {
  display: grid;
  gap: 8px;
}

.profile-menu-link {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.profile-menu-link.danger {
  color: #ffd3d0;
  border-color: rgba(255, 125, 121, 0.45);
  box-shadow: 0 0 12px rgba(255, 125, 121, 0.2);
}

.xp-progress {
  display: grid;
  gap: 8px;
}

.xp-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(73, 86, 132, 0.32);
}

.xp-progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb35c, #70ead1);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0c1327;
}

.level-badge.compact {
  min-width: 0;
  padding: 6px 10px;
}

.tier-bronze {
  background: linear-gradient(135deg, #f1b07c, #d07a3c);
}

.tier-silver {
  background: linear-gradient(135deg, #d5def6, #9fb0d8);
}

.tier-gold {
  background: linear-gradient(135deg, #ffe08a, #f6b64f);
}

.tier-platinum {
  background: linear-gradient(135deg, #9af2ea, #5ac7d7);
}

.tier-diamond {
  background: linear-gradient(135deg, #a5c7ff, #7a7dff);
}

.tier-mythic {
  background: linear-gradient(135deg, #ffc5a8, #ff6a7a);
}

.user-panel .level-badge {
  background: transparent;
  color: #f8f8ff;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}


.balance-box {
  min-width: 120px;
  padding: 10px 14px;
}

.balance-box-with-button {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
}

.balance-box-with-button span {
  grid-column: 1 / 2;
}

.balance-box-with-button strong {
  grid-column: 1 / 2;
}

.balance-wallet-button {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 14px;
}

.balance-box span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 2px;
}

.deposit-button,
.primary-button {
  padding: 13px 18px;
  color: #10172b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.content {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
}

.guest-screen,
.app-screen {
  width: min(1280px, 100%);
}

.guest-screen {
  display: grid;
  grid-template-rows: 1fr;
  min-height: calc(100vh - 180px);
  align-items: center;
}

.guest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.hero-panel,
.panda-panel,
.section-panel,
.modal-card,
.mode-card {
  padding: 22px;
}

.panda-panel {
  min-height: 400px;
  display: grid;
  place-items: center;
}

.panda-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.hero-panel h1,
.modal-card h2,
.section-title-row h2,
.wallet-form h2,
.hero-panel h2 {
  margin: 0;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.94;
}

.hero-copy,
.modal-copy,
.inline-note {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8fb0ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.demo-users {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.demo-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
}

.app-screen {
  padding-top: 18px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mode-card-wide {
  grid-column: 1 / -1;
  min-height: 150px;
}

.mode-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


.mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 234, 209, 0.32);
  box-shadow: 0 18px 36px rgba(6, 12, 31, 0.36);
}

.double-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.crash-layout .double-main {
  gap: 18px;
}

.crash-panel {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 26px rgba(0, 0, 0, 0.85),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.crash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.upgrade-panel {
  position: relative;
  overflow: hidden;
}

.soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 5;
}

.soon-text {
  white-space: nowrap;
}

.soon-caret {
  display: inline-block;
  animation: guest-caret 1.1s steps(2, start) infinite;
  opacity: 0.7;
}

.upgrade-panel {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.7),
    inset 0 0 16px rgba(255, 255, 255, 0.08);
}

.upgrade-visual {
  position: relative;
  width: 100%;
  min-height: 460px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  overflow: hidden;
  margin: 0 auto;
}

.upgrade-field {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  padding: 0 8% 10% 8%;
  pointer-events: none;
  z-index: 2;
}

.upgrade-lane {
  display: grid;
  place-items: end center;
  min-height: 100%;
}

.upgrade-planet {
  width: min(140px, 18vw);
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}

.upgrade-planet.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.upgrade-astronaut {
  position: absolute;
  bottom: 24%;
  left: 50%;
  width: min(160px, 22vw);
  transform: translate(-50%, 0);
  transition: transform 0.45s ease;
  z-index: 3;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
}

.upgrade-astronaut.lane-0 {
  transform: translate(-140%, 0);
}

.upgrade-astronaut.lane-1 {
  transform: translate(-50%, 0);
}

.upgrade-astronaut.lane-2 {
  transform: translate(40%, 0);
}

.upgrade-astronaut.is-jumping {
  animation: upgrade-jump 0.6s ease;
}

@keyframes upgrade-jump {
  0% { transform: translate(var(--jump-x, -50%), 0) scale(1); }
  50% { transform: translate(var(--jump-x, -50%), -90px) scale(1.05); }
  100% { transform: translate(var(--jump-x, -50%), 0) scale(1); }
}

.upgrade-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  align-items: center;
}

.upgrade-jump-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
}

.upgrade-payout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upgrade-payout-value {
  display: grid;
  gap: 4px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.upgrade-payout-value strong {
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.upgrade-activity-panel {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.06);
}

.cases-panel {
  position: relative;
  min-height: 360px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.7),
    inset 0 0 16px rgba(255, 255, 255, 0.08);
}

.cases-placeholder {
  padding: 12px 0;
}

.upgrade-wheel {
  position: relative;
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.upgrade-wheel-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transform-box: fill-box;
  transition: transform 3.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
}

.upgrade-wheel-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 18;
}

.upgrade-wheel-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 18;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.upgrade-pointer {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.upgrade-chance-box {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 18, 0.78);
  text-align: right;
}

.upgrade-chance-box span {
  color: var(--muted);
  font-size: 0.8rem;
}

.upgrade-chance-box strong {
  font-size: 1.2rem;
  color: var(--text);
}

.upgrade-inventory-grid {
  max-height: 320px;
  overflow-y: auto;
}

.upgrade-bet-sidebar input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #14161f;
  color: var(--text);
}


.crash-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.crash-history-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  background: rgba(91, 142, 255, 0.16);
  color: #d9e2ff;
}

.crash-history-chip.chip-red { background: rgba(255, 114, 104, 0.22); color: #ffd2cd; }
.crash-history-chip.chip-blue { background: rgba(91, 142, 255, 0.22); color: #d9e2ff; }
.crash-history-chip.chip-green { background: rgba(73, 210, 160, 0.22); color: #cbffe9; }
.crash-history-chip.chip-purple { background: rgba(173, 120, 255, 0.22); color: #ead9ff; }
.crash-history-chip.chip-gold { background: rgba(255, 211, 92, 0.26); color: #fff3c2; }

.crash-visual {
  position: relative;
  width: 100%;
  min-height: 460px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  overflow: hidden;
  margin: 0 auto;
}

.crash-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.crash-particles--front {
  z-index: 4;
}

.crash-graph {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: none;
  background: #000;
  background-image:
    radial-gradient(1px 1px at 18% 24%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(1px 1px at 72% 18%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(1px 1px at 40% 68%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(1px 1px at 82% 62%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(1px 1px at 55% 38%, rgba(255, 255, 255, 0.06), transparent 60%);
  background-size: 260px 260px;
  background-position: 0 0;
  overflow: hidden;
  transition: transform 1.1s ease, background-position 1.1s ease;
  will-change: transform, background-position;
  z-index: 0;
}

.crash-panel.crash-running .crash-graph {
  transform: translate(-18%, 18%);
  background-position: -140px 180px;
}

.crash-panel.crash-crashed .crash-graph,
.crash-panel.crash-waiting .crash-graph {
  transform: translate(0, 0);
}

.crash-curve {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  overflow: visible;
}

.crash-curve path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.crash-panel.crash-running .crash-curve path {
  stroke: rgba(170, 105, 255, 0.85);
  filter: drop-shadow(0 0 12px rgba(170, 105, 255, 0.35));
}

.crash-panel.crash-crashed .crash-curve path {
  stroke: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.crash-panel.crash-crashed .crash-visual {
  border-color: rgba(255, 95, 95, 0.85);
  box-shadow:
    0 0 20px rgba(255, 95, 95, 0.35),
    inset 0 0 0 1px rgba(255, 95, 95, 0.45);
}

.crash-rocket {
  position: absolute;
  width: min(180px, 34vw);
  left: 6%;
  bottom: 6%;
  transform: rotate(0deg);
  transform-origin: center center;
  transition: left 1.1s ease, bottom 1.1s ease, transform 1.1s ease, opacity 0.6s ease;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.crash-multiplier {
  z-index: 5;
}



.crash-win-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.crash-win-bubble {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, 0) scale(0.95);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.12);
  animation: crash-win-float 1.6s ease forwards;
}

.crash-win-bubble small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 2px;
  font-weight: 600;
}

@keyframes crash-win-float {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.85); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60px) scale(1.05); }
}

.crash-panel.crash-running .crash-rocket {
  left: 50%;
  bottom: 6%;
  transform: translate(-50%, 0) rotate(35deg);
}

.crash-panel.crash-crashed .crash-rocket {
  left: 58%;
  bottom: -18%;
  transform: translate(-50%, 0) rotate(120deg);
  transition: left 0.8s ease-in, bottom 0.8s ease-in, transform 0.8s ease-in;
}

.crash-panel.crash-waiting .crash-rocket {
  left: 6%;
  bottom: 6%;
  transform: rotate(0deg);
}


.crash-multiplier {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  z-index: 2;
}

.crash-multiplier strong {
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1;
}

.crash-multiplier span {
  color: var(--muted);
  font-size: 0.9rem;
}

.crash-multiplier small {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crash-status-box .latest-counts {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: -22px;
}

.crash-status-box {
  padding-bottom: 6px;
}

#crashStatusLabel {
  text-transform: uppercase;
  font-size: 0.72rem;
}

.crash-status-box span {
  font-size: 0.72rem;
}

.crash-multiplier strong.failed,
.crash-multiplier .failed {
  color: var(--red);
  text-shadow: 0 0 18px rgba(255, 114, 104, 0.45);
}

.crash-activity-panel {
  min-height: 260px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.crash-user-bet-panel {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.crash-user-bet-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crash-user-bet-panel strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.crash-user-bet-item--stake {
  grid-column: 1;
  grid-row: 1;
}

.crash-user-bet-item--payout {
  grid-column: 2;
  grid-row: 1;
}

#crashCancelBetButtonTop {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding: 8px 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.28),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}

.crash-activity-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.crash-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.9);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.crash-activity-item.win {
  border-color: rgba(73, 210, 160, 0.36);
  box-shadow: 0 0 18px rgba(73, 210, 160, 0.16);
}

.crash-activity-item.loss {
  border-color: rgba(255, 114, 104, 0.32);
  box-shadow: 0 0 16px rgba(255, 114, 104, 0.14);
}

.crash-activity-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.crash-activity-amount {
  font-weight: 700;
}

.crash-bet-sidebar .primary-button {
  width: 100%;
}

.crash-bet-sidebar .profile-button {
  width: 100%;
}

.crash-auto-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.crash-admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: 12px;
  background: #000;
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.18),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.crash-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crash-admin-badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.crash-admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.double-admin-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.double-admin-color {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 8px 6px;
}

.double-admin-color.is-on {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
}

.double-admin-color.color-red.is-on {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.95);
}

.double-admin-color.color-black.is-on {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.95);
}

.double-admin-color.color-green.is-on {
  color: #ead9ff;
  border-color: rgba(173, 120, 255, 0.85);
  box-shadow:
    0 0 18px rgba(173, 120, 255, 0.4),
    inset 0 0 10px rgba(173, 120, 255, 0.2);
}

.crash-economy-toggle {
  margin-top: 10px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crash-economy-toggle.is-on {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(73, 210, 160, 0.8);
  color: #cbffe9;
  box-shadow:
    0 0 16px rgba(73, 210, 160, 0.35),
    inset 0 0 10px rgba(73, 210, 160, 0.18);
}

.crash-economy-toggle.is-off {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 114, 104, 0.75);
  color: #ffd2cd;
  box-shadow:
    0 0 16px rgba(255, 114, 104, 0.3),
    inset 0 0 10px rgba(255, 114, 104, 0.16);
}

.crash-admin-panel .inline-note {
  margin-top: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crash-admin-panel .profile-button.is-on {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
}

#crashAutoInput {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.12),
    inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.crash-auto-presets .shortcut-button {
  padding: 3px 6px;
  min-width: 40px;
  font-size: 0.82rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.crash-auto-group {
  display: none;
}

.crash-auto-group.is-open {
  display: grid;
  gap: 12px;
}

.toggle-button {
  padding: 6px 10px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.16),
    inset 0 0 10px rgba(255, 255, 255, 0.08);
  min-width: 44px;
  font-size: 0.78rem;
}

.toggle-button.is-on {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.16);
}

.crash-balance-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.double-main,
.double-sidebar {
  display: grid;
  gap: 18px;
}

.inventory-ribbon {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.inventory-card {
  min-height: 74px;
  padding: 10px;
  display: flex;
  align-items: end;
  color: #f4f8ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.inventory-card.selected {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.inventory-card:nth-child(4n + 1) {
  background: linear-gradient(135deg, rgba(91, 142, 255, 0.78), rgba(66, 96, 179, 0.92));
}

.inventory-card:nth-child(4n + 2) {
  background: linear-gradient(135deg, rgba(113, 234, 209, 0.76), rgba(49, 122, 142, 0.92));
}

.inventory-card:nth-child(4n + 3) {
  background: linear-gradient(135deg, rgba(255, 114, 104, 0.78), rgba(141, 72, 68, 0.92));
}

.inventory-card:nth-child(4n + 4) {
  background: linear-gradient(135deg, rgba(120, 136, 191, 0.8), rgba(66, 76, 115, 0.92));
}

.roulette-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.85);
}

.roulette-panel {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.75);
}

.roulette-wheel-shell {
  position: absolute;
  left: 50%;
  top: -32%;
  width: min(168%, 1260px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.roulette-wheel-shell::before,
.roulette-wheel-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.roulette-wheel-shell::before {
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 16px rgba(4, 4, 6, 0.75),
    inset 0 0 32px rgba(255, 255, 255, 0.08);
}

.roulette-wheel-shell::after {
  inset: 24%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.08), transparent 45%);
}

.roulette-track {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform 5.4s cubic-bezier(0.04, 0.92, 0.12, 1);
  will-change: transform;
}

.arc-sector {
  position: absolute;
  width: 42px;
  height: 78px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  opacity: 0.6;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease, opacity 0.45s ease;
}

.arc-sector::before,
.arc-sector::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.arc-sector::before {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.03) 55%),
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0.55;
}

.arc-sector::after {
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.55) 45%, transparent 75%);
  opacity: 0.2;
  transform: translateX(-120%);
}

.roulette-card.is-spinning .arc-sector::after {
  animation: sector-glint 1.2s linear infinite;
}

.arc-sector .sector-icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
}

.roulette-pointer-bottom {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 34px;
  height: 46px;
  transform: translateX(-50%);
  z-index: 4;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.22));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.roulette-pointer-bottom::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 34px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06)),
    rgba(12, 12, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.6),
    inset 0 0 12px rgba(255, 255, 255, 0.18);
}

.roulette-pointer-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4));
}

.arc-red {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.22);
}

.arc-black {
  background:
    linear-gradient(160deg, rgba(4, 4, 8, 0.55), rgba(0, 0, 0, 0.2)),
    rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.12);
}

.arc-green {
  background:
    linear-gradient(160deg, rgba(150, 80, 255, 0.28), rgba(70, 30, 160, 0.1)),
    rgba(110, 60, 220, 0.08);
  border-color: rgba(180, 130, 255, 0.28);
}

.roulette-center {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.roulette-center strong {
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1;
}

.roulette-center strong.is-rolling {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.roulette-center span,
.roulette-center small {
  color: var(--muted);
}

.roulette-card.is-spinning .arc-sector {
  filter: saturate(1.12);
}

.roulette-card.is-spinning .roulette-track {
  filter: drop-shadow(0 0 16px rgba(164, 92, 255, 0.45));
}

.roulette-card.is-spinning {
  box-shadow:
    0 0 36px rgba(164, 92, 255, 0.35),
    inset 0 0 22px rgba(164, 92, 255, 0.18);
}

.arc-sector.is-winning {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 28px rgba(255, 255, 255, 0.34),
    0 16px 34px rgba(7, 12, 30, 0.42);
  filter: brightness(1.05) saturate(1.03);
  opacity: 0.65;
  animation: winning-sector-glow 1.2s ease-in-out 2;
}

.roulette-card.result-red {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.2);
}

.roulette-card.result-black {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(255, 255, 255, 0.2);
}

.roulette-card.result-green {
  box-shadow:
    inset 0 0 0 1px rgba(172, 116, 255, 0.45),
    0 0 46px rgba(164, 92, 255, 0.32);
}

.roulette-card.result-red .arc-sector,
.roulette-card.result-black .arc-sector,
.roulette-card.result-green .arc-sector {
  opacity: 0.6;
}

.roulette-pointer-bottom.is-impact {
  transform: translateX(-50%) scale(1.12);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.55));
}

.roulette-center small.flash-red {
  color: #ffd5d1;
  animation: result-flash 1.1s ease-in-out 2;
}

.roulette-center small.flash-black {
  color: #dbe2ff;
  animation: result-flash 1.1s ease-in-out 2;
}

.roulette-center small.flash-green {
  color: #cbffe9;
  animation: result-flash 1.1s ease-in-out 2;
}

@keyframes sector-glint {
  0% {
    transform: translateX(-140%);
    opacity: 0.2;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(140%);
    opacity: 0.2;
  }
}

@keyframes winning-sector-glow {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.12),
      0 0 16px rgba(255, 255, 255, 0.12),
      0 10px 24px rgba(7, 12, 30, 0.36);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.32),
      0 0 36px rgba(255, 255, 255, 0.42),
      0 18px 38px rgba(7, 12, 30, 0.46);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.28),
      0 0 28px rgba(255, 255, 255, 0.34),
      0 16px 34px rgba(7, 12, 30, 0.42);
  }
}

@keyframes result-flash {
  0% {
    opacity: 0.65;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.stat-box,
.latest-box {
  min-height: 58px;
  padding: 12px 14px;
  background: #000;
}

.stat-box > span,
.latest-box > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.latest-box {
  margin-left: auto;
}

.latest-counts {
  display: flex;
  gap: 8px;
}

.pill {
  min-width: 40px;
  padding: 8px 10px;
  border-radius: 14px;
  text-align: center;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 1.1rem;
}

.pill.red {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pill.black {
  background: rgba(10, 10, 12, 0.65);
  color: #f2f2f7;
}

.pill.green {
  background: rgba(170, 105, 255, 0.22);
  color: #f0e7ff;
}

.history-line {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.history-dot {
  width: 28px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.history-dot.red {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(215, 215, 225, 0.95));
}

.history-dot.black {
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.92), rgba(44, 44, 52, 0.92));
}

.history-dot.green {
  background: linear-gradient(90deg, rgba(170, 105, 255, 0.9), rgba(210, 170, 255, 0.92));
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-row h2 {
  font-size: 2rem;
}

.bet-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.bet-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-height: 420px;
  align-content: start;
  align-items: start;
  background: transparent;
  border: none;
  box-shadow: none;
}

.bet-column-head {
  padding: 14px 16px;
  min-height: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  flex: 0 0 92px;
}

.bet-column-head > div {
  display: grid;
  gap: 6px;
}

.bet-column-head strong {
  display: block;
  font-size: 1.9rem;
  font-family: "Rajdhani", "Manrope", sans-serif;
  line-height: 1;
}

.bet-column-head.red {
  background: linear-gradient(135deg, rgba(255, 114, 104, 0.92), rgba(141, 72, 68, 0.98));
}

.bet-column-head.black {
  background: linear-gradient(135deg, rgba(123, 136, 191, 0.94), rgba(80, 90, 126, 0.98));
}

.bet-column-head.green {
  background: linear-gradient(135deg, rgba(73, 210, 160, 0.92), rgba(42, 130, 100, 0.98));
}

.bets-panel {
  background: transparent;
  border: none;
  box-shadow: none;
}

.bet-sidebar {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.1);
}

.bet-column,
.bet-column-head,
.bet-item,
.stake-box,
.color-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.16),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
}

.bet-column {
  background: transparent;
  border: none;
  box-shadow: none;
}

.bet-column-head {
  border: none;
  box-shadow: none;
}

.bet-column-head.red,
.bet-column-head.black,
.bet-column-head.green,
.color-card.red,
.color-card.black,
.color-card.green {
  background: #000;
  border-color: rgba(255, 255, 255, 0.6);
}

.bet-column-head.red,
.color-card.red {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    inset 0 0 16px rgba(255, 255, 255, 0.12);
}

.bet-column-head.black,
.color-card.black {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.16),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.bet-column-head.green,
.color-card.green {
  border-color: rgba(200, 160, 255, 0.75);
  box-shadow:
    0 0 22px rgba(170, 105, 255, 0.32),
    inset 0 0 16px rgba(170, 105, 255, 0.16);
}

.bet-column-head strong,
.bet-column-head span,
.color-card strong,
.color-card span,
.color-card small {
  color: #fff;
}

.bet-sidebar .bet-type-button,
.bet-sidebar .shortcut-button,
.bet-sidebar .profile-button,
.bet-sidebar .stake-step {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.18),
    inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.color-card.selected,
.color-card:hover {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.35),
    inset 0 0 14px rgba(255, 255, 255, 0.16);
  filter: brightness(1.08);
}

.users-pill {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.bet-list {
  display: grid;
  gap: 10px;
  align-content: start;
  align-self: start;
  width: 100%;
}

.bet-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.bet-item.empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--muted);
}

.bet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-size: cover;
  background-position: center;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-weight: 700;
}

.weapon-avatar {
  overflow: hidden;
  background: rgba(27, 34, 64, 0.96);
  border: 1px solid var(--line);
}

.player-avatar {
  overflow: hidden;
  background: rgba(15, 21, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.bet-item-weapon-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bet-item-weapon-fallback {
  font-size: 1.2rem;
  color: #dbe7ff;
}

.bet-info strong,
.bet-info span {
  display: block;
}

.bet-info strong {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bet-info span {
  margin-top: 3px;
  color: #ffcfb3;
  font-weight: 700;
}

.bet-side {
  text-align: right;
}

.bet-item-name {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.bet-source {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
}

.role-badge {
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.role-user {
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.role-helper {
  color: #d7ffea;
  background: rgba(73, 210, 160, 0.16);
  border-color: rgba(73, 210, 160, 0.28);
  box-shadow: 0 0 16px rgba(73, 210, 160, 0.14);
}

.role-admin {
  color: #ffd8d4;
  background: rgba(255, 114, 104, 0.18);
  border-color: rgba(255, 114, 104, 0.32);
  box-shadow: 0 0 18px rgba(255, 114, 104, 0.14);
}

.role-superadmin {
  color: #e6ccff;
  background: rgba(170, 105, 255, 0.16);
  border-color: rgba(170, 105, 255, 0.36);
  box-shadow: 0 0 22px rgba(170, 105, 255, 0.18);
}

.double-sidebar {
  position: sticky;
  top: 16px;
}

.bet-sidebar,
.wallet-form {
  display: grid;
  gap: 18px;
}

.bet-sidebar {
  align-content: start;
  grid-auto-rows: min-content;
  overflow: hidden;
}

.sidebar-group {
  display: grid;
  gap: 12px;
}

.sidebar-group label,
.wallet-form label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bet-type-tabs,
.shortcut-row,
.color-grid,
.wallet-grid {
  display: grid;
  gap: 10px;
}

.bet-type-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stake-box {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  padding: 10px;
}

.stake-step {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  justify-self: center;
  background: #374267;
  color: var(--text);
}

.stake-box input {
  background: transparent;
  border: 0;
  text-align: center;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.shortcut-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.color-card {
  min-height: 102px;
  padding: 12px 10px;
  text-align: left;
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.color-card.selected,
.color-card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.35),
    inset 0 0 14px rgba(255, 255, 255, 0.16);
  filter: brightness(1.06);
}

.color-card.red {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    #000;
}

.color-card.black {
  background:
    linear-gradient(160deg, rgba(30, 30, 40, 0.2), rgba(6, 6, 8, 0.08)),
    #000;
}

.color-card.green {
  background:
    linear-gradient(160deg, rgba(170, 105, 255, 0.22), rgba(90, 40, 190, 0.08)),
    #000;
}

.color-card span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.color-card strong {
  display: block;
  font-size: 1rem;
}

.inline-note {
  margin: 0;
}

.wallet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-screen .section-panel {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
}

.wallet-form {
  color: #fff;
}

.wallet-screen input {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.wallet-methods {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-method {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wallet-method:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

.wallet-method.is-active {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

.wallet-method-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.wallet-method-icon svg {
  width: 100%;
  height: 100%;
}

.wallet-wide {
  grid-column: 1 / -1;
}

.transactions-list {
  display: grid;
  gap: 10px;
}

.wallet-screen .tx-item {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.tx-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tx-main strong,
.tx-main span {
  display: block;
}

.tx-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tx-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(255, 214, 130, 0.18);
  color: #ffe3af;
}

.status-completed {
  background: rgba(73, 210, 160, 0.18);
  color: #c8ffeb;
}

.status-failed {
  background: rgba(255, 114, 104, 0.18);
  color: #ffd2cd;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button {
  padding: 10px 14px;
  border-radius: 12px;
  background: #313a60;
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(7, 10, 22, 0.72);
  backdrop-filter: blur(8px);
}

#authModal.modal-backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: none;
}

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  z-index: 60;
  width: min(520px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #000;
  color: #fff;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.24),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 4px;
  animation: toast-slide 0.25s ease;
}

.toast.success {
  border-color: rgba(255, 255, 255, 0.85);
}

.toast.error {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.toast-title {
  font-weight: 700;
}

.toast-body {
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes toast-slide {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.modal-card {
  width: min(520px, 100%);
  position: relative;
}

.auth-modal-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.25),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #374267;
  color: var(--text);
}

.auth-close-button {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  padding: 4px 6px;
}

.account-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 10px 0 12px;
  width: min(320px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.account-tab {
  padding: 10px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.2),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}

.account-tab.active {
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.2);
}

#authModal .steam-auth-row {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

#authModal .steam-auth-row .primary-button {
  width: min(320px, 100%);
}

#authModal .primary-button,
#authModal .profile-button,
#authModal .account-form button {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}

#authModal .account-form input {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 8px;
}

.auth-register-only.hidden {
  display: none;
}

.auth-phone-row {
  display: flex;
  gap: 8px;
}

.auth-phone-row input {
  flex: 1;
  min-width: 0;
}

.auth-phone-row .profile-button {
  padding: 10px 14px;
  min-height: 40px;
}

.auth-telegram-row {
  margin-top: 8px;
}

.auth-telegram-row .profile-button {
  width: 100%;
}

@media (max-width: 1180px) {
  .double-layout {
    grid-template-columns: 1fr;
  }

  .double-sidebar {
    position: static;
  }
}

@media (max-width: 1024px) {
  .guest-grid,
  .mode-grid,
  .bet-columns,
  .wallet-grid,
  .inventory-ribbon {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .user-panel {
    width: 100%;
    justify-content: center;
  }

  .latest-box {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px;
  }

  .hero-panel,
  .panda-panel,
  .section-panel,
  .modal-card,
  .mode-card {
    padding: 18px;
  }

  .bet-type-tabs,
  .shortcut-row {
    grid-template-columns: 1fr;
  }

  .roulette-card {
    min-height: 350px;
  }

  .roulette-wheel-shell {
    top: -26%;
    width: min(182%, 820px);
  }

  .arc-sector {
    width: 34px;
    height: 64px;
    border-radius: 12px;
  }

  .roulette-center {
    top: 28%;
  }

  .roulette-pointer-bottom {
    bottom: 12px;
    width: 28px;
    height: 38px;
  }

  .roulette-pointer-bottom::before {
    width: 28px;
    height: 28px;
  }

  .stats-line {
    flex-direction: column;
  }
}

.hero-actions,
.filters-row,
.pagination-row,
.admin-actions-row,
.inventory-status-row,
.admin-inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-dashboard-panel .admin-actions-row {
  display: none;
}

.hero-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}

.fairness-bar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fairness-bar > div,
.empty-block,
.skeleton-card,
.log-card,
.settings-field,
.skin-preview,
.skin-fallback {
  background: rgba(31, 38, 68, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.fairness-bar > div {
  padding: 12px 14px;
}

.fairness-bar span,
.settings-field span,
.skin-meta span,
.skin-meta p {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.market-layout,
.admin-layout {
  display: grid;
  gap: 18px;
}

.admin-layout.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-span-full {
  grid-column: 1 / -1;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  min-height: 70vh;
}

.admin-sidebar {
  background: rgba(16, 22, 44, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 18px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.admin-brand h2 {
  margin: 4px 0 0;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-groups {
  gap: 14px;
}

.admin-group {
  display: grid;
  gap: 10px;
}

.admin-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 140, 216, 0.2);
  background: rgba(34, 44, 78, 0.86);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-group-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 234, 209, 0.4);
}

.admin-group-toggle.active {
  border-color: rgba(255, 211, 92, 0.55);
  box-shadow: 0 0 18px rgba(255, 211, 92, 0.18);
}

.admin-group-arrow {
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.admin-group-toggle.active .admin-group-arrow {
  transform: rotate(180deg);
}

.admin-group-panel {
  display: none;
  gap: 8px;
  padding-left: 6px;
}

.admin-group-panel.open {
  display: grid;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(35, 44, 78, 0.75);
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.admin-nav-item:hover {
  border-color: rgba(120, 140, 216, 0.4);
  background: rgba(48, 60, 102, 0.9);
}

.admin-nav-item.active {
  border-color: rgba(144, 178, 255, 0.5);
  background: rgba(63, 86, 156, 0.9);
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(21, 28, 52, 0.92);
  border: 1px solid var(--line);
}

.admin-header-search {
  flex: 1;
}

.admin-header-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #252e52;
  color: var(--text);
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.treasury-chart {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12px, 1fr));
  gap: 6px;
  align-items: end;
  padding: 12px;
  border-radius: 16px;
  background: rgba(22, 28, 51, 0.65);
  border: 1px solid var(--line);
  min-height: 120px;
}

.treasury-bar {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(126, 193, 255, 0.9), rgba(86, 120, 220, 0.4));
}

.risk-alert {
  border-left: 3px solid rgba(120, 140, 216, 0.6);
}

.risk-alert.warning {
  border-left-color: rgba(255, 198, 88, 0.8);
}

.risk-alert.critical {
  border-left-color: rgba(255, 109, 130, 0.85);
}

.market-layout {
  grid-template-columns: 1.3fr 1fr;
}

.skins-grid,
.inventory-grid,
.admin-stat-grid,
.logs-grid,
.settings-grid {
  display: grid;
  gap: 14px;
}

.skins-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skin-card,
.inventory-card {
  align-items: stretch;
}

.skin-preview {
  width: 108px;
  min-width: 108px;
  height: 108px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.skin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skin-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.skin-meta {
  flex: 1;
  display: grid;
  gap: 10px;
}

.skin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inventory-status-row {
  justify-content: space-between;
}

.inventory-status-row select,
.inventory-status-row input,
.filters-row select,
.settings-field input,
.settings-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
  color: var(--text);
}

.filters-row {
  margin: 18px 0 14px;
  flex-wrap: wrap;
}

.filters-row input {
  flex: 1;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.pagination-row {
  margin-top: 18px;
  justify-content: space-between;
}

.admin-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(22, 28, 51, 0.65);
}

.admin-promo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-promo-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.admin-promo-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-head,
.admin-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
}

.admin-head {
  background: rgba(64, 76, 122, 0.45);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.admin-row {
  border-top: 1px solid var(--line);
}

.admin-bp-editor {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-bp-reward-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.admin-bp-reward-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
}

.admin-bp-reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-bp-reward-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.admin-bp-reward-grid input,
.admin-bp-reward-grid select,
.admin-bp-reward-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #000;
  color: #fff;
}

.admin-bp-reward-grid .span-2 {
  grid-column: span 2;
}

.admin-bp-reward-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.admin-inline-actions {
  flex-wrap: wrap;
}

.admin-inline-actions button,
.export-link,
.settings-field,
.log-card,
.empty-block {
  padding: 10px 12px;
}

.admin-inline-actions button,
.export-link {
  border-radius: 12px;
  background: #313a60;
  color: var(--text);
  text-decoration: none;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-card {
  display: grid;
  gap: 6px;
}

.log-card-toggle {
  cursor: pointer;
}

.log-card-toggle summary {
  list-style: none;
  display: grid;
  gap: 6px;
}

.log-card-toggle summary::-webkit-details-marker {
  display: none;
}

.log-card-toggle summary::after {
  content: "Развернуть";
  font-size: 0.72rem;
  color: var(--primary-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.log-card-toggle[open] summary::after {
  content: "Свернуть";
}

.log-card-toggle .log-summary {
  color: var(--muted);
}

.log-card-toggle .log-details {
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 8px;
  word-break: break-word;
}

.admin-user-profile {
  gap: 18px;
}

.battle-pass-shell {
  display: grid;
  gap: 18px;
}

.battle-pass-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.battle-pass-summary {
  display: flex;
  gap: 16px;
  align-items: center;
}

.battle-pass-level-box {
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.24);
  text-align: center;
}

.battle-pass-level-box strong {
  font-size: 1.4rem;
}

.battle-pass-xp-box {
  min-width: 240px;
}

.battle-pass-xp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(200, 220, 255, 0.9));
}

.battle-pass-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.battle-pass-track-panel {
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.battle-pass-range-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.battle-pass-range-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.battle-pass-unified {
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: stretch;
}

.battle-pass-track-line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.battle-pass-track-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(180, 200, 255, 0.9));
}

.battle-pass-reward-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(90px, 1fr));
  gap: 10px;
  width: 100%;
  padding-bottom: 6px;
  justify-items: center;
}

.battle-pass-reward-row-premium {
  margin-top: 8px;
}

.battle-pass-reward-row-free {
  margin-top: 6px;
}

.battle-pass-reward {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  min-height: 130px;
  text-align: center;
  display: grid;
  gap: 6px;
  align-content: start;
}

.battle-pass-reward strong {
  font-size: 0.9rem;
}

.battle-pass-level {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.battle-pass-reward.claimable {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.28);
}

.battle-pass-reward.claimed {
  opacity: 0.65;
}

.battle-pass-reward.current {
  outline: 2px solid rgba(255, 255, 255, 0.35);
}

.battle-pass-reward.premium-locked {
  filter: saturate(0.6);
}

.battle-pass-status {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.battle-pass-footer {
  margin-top: 12px;
}

.battle-pass-tasks-card {
  max-width: 520px;
  width: min(92vw, 520px);
}

.battle-pass-tasks-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.battle-pass-task {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 8px;
}

.battle-pass-task.completed {
  border-color: rgba(79, 224, 176, 0.7);
  box-shadow: 0 0 12px rgba(79, 224, 176, 0.35);
}

.battle-pass-task-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.battle-pass-task-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.battle-pass-task-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(180, 200, 255, 0.9));
}

.battle-pass-task-xp {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.battle-pass-task-claim {
  justify-self: flex-start;
  padding: 10px 16px;
  min-height: 40px;
}

.battle-pass-screen .profile-button,
.battle-pass-tasks-card .profile-button,
.battle-pass-purchase-card .profile-button,
.battle-pass-range-controls .profile-button {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.28),
    inset 0 0 8px rgba(255, 255, 255, 0.15);
}

.battle-pass-screen .eyebrow,
.battle-pass-screen .inline-note,
.battle-pass-level,
.battle-pass-status,
.battle-pass-range-label {
  color: rgba(255, 255, 255, 0.85);
}

.battle-pass-purchase-card {
  max-width: 420px;
  width: min(92vw, 420px);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
}

.battle-pass-purchase-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  margin-top: 14px;
}

.battle-pass-purchase-price strong {
  font-size: 1.2rem;
}

.battle-pass-purchase-actions {
  margin-top: 16px;
}

.battle-pass-screen .section-panel,
.battle-pass-tasks-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.battle-pass-reward.is-purple {
  border-color: rgba(170, 100, 255, 0.8);
  box-shadow: 0 0 18px rgba(170, 100, 255, 0.45);
}

.battle-pass-reward.is-green {
  border-color: rgba(88, 255, 190, 0.75);
  box-shadow: 0 0 18px rgba(88, 255, 190, 0.4);
}

/* Home menu layout overrides */
.home-screen {
  width: 100%;
  background: transparent;
  padding: 0;
  position: relative;
  min-height: calc(100vh - 160px);
}

.home-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(0, 360px);
  gap: 32px;
  align-items: start;
  justify-content: center;
  padding: 36px 24px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.home-mode-column {
  display: flex;
  justify-content: flex-start;
}

.home-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-panel {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-panel-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.home-bp-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.home-bp-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.home-bp-meta strong {
  font-size: 1.1rem;
}

.home-bp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.home-bp-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.25));
}

.home-chat-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.home-chat-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-chat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 6px;
}

.home-chat-item {
  display: flex;
  gap: 10px;
}

.home-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.home-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-chat-body {
  flex: 1;
  display: grid;
  gap: 4px;
}

.home-chat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-chat-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.home-chat-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-chat-message {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.home-chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.home-chat-input input {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

.home-chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.home-chat-name.role-user,
.home-chat-name.role-helper,
.home-chat-name.role-admin,
.home-chat-name.role-superadmin {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.home-chat-name.role-user {
  color: rgba(255, 255, 255, 0.92);
}

.home-chat-name.role-helper {
  color: #9ff1d0;
  text-shadow: 0 0 10px rgba(73, 210, 160, 0.28);
}

.home-chat-name.role-admin {
  color: #ffc2be;
  text-shadow: 0 0 10px rgba(255, 114, 104, 0.24);
}

.home-chat-name.role-superadmin {
  color: #d9b8ff;
  text-shadow: 0 0 12px rgba(170, 105, 255, 0.35);
}

.home-chat-input .profile-button {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.home-screen .mode-grid {
  background: transparent;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  border-radius: 0;
  width: min(640px, 100%);
  margin: 0;
  justify-items: start;
  align-content: center;
  position: relative;
}

.home-screen .mode-grid::after {
  content: "";
  position: absolute;
  inset: -40px -40px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home-screen .mode-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.35),
    0 0 36px rgba(255, 255, 255, 0.2),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 0;
}

.home-screen .mode-grid > * {
  position: relative;
  z-index: 1;
}


.home-screen .mode-grid::before,
.home-screen .mode-grid::after {
  display: none;
}

.home-screen .home-mode-card,
.home-screen .mode-card-wide.home-mode-card {
  width: clamp(210px, 30vw, 300px);
  height: clamp(210px, 30vw, 300px);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
  padding: 8px;
}

.home-screen .mode-card-wide.home-mode-card {
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(110px, 16vw, 150px);
  aspect-ratio: auto;
}

.home-mode-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.mode-hover-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 9999;
}

.mode-hover-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .home-auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-side-column {
    width: min(640px, 100%);
  }
}



.vip-support-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.vip-support-form textarea {
  resize: vertical;
  min-height: 110px;
}

.vip-support-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vip-ticket-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.6);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.vip-ticket-card.is-closed {
  opacity: 0.72;
}

.vip-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vip-ticket-message {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.vip-ticket-actions {
  display: flex;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-pill.status-open {
  color: #c6ffd5;
  border-color: rgba(140, 255, 175, 0.6);
  box-shadow: 0 0 10px rgba(140, 255, 175, 0.18);
}

.status-pill.status-closed {
  color: rgba(255, 255, 255, 0.7);
}

.admin-support-summary {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
}

.admin-support-list {
  display: grid;
  gap: 14px;
}

.support-ticket-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.support-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.support-ticket-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.support-ticket-subject {
  font-weight: 600;
}

.support-ticket-message {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.support-ticket-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-support-badge {
  margin-left: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.admin-support-badge.is-active {
  background: #ffffff;
  color: #0b0b0b;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}



.wheel-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 12px 0 8px;
}

.wheel-shell {
  position: relative;
  width: min(480px, 90vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.wheel-rotator {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(0,0,0,0.7));
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.06) inset;
  display: grid;
  place-items: center;
}

.wheel-shell canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #ffffff;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
  z-index: 2;
}

.wheel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wheel-actions .inline-note {
  color: rgba(255, 255, 255, 0.78);
}

.admin-wheel-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.admin-wheel-form .admin-inline-actions {
  align-self: end;
}



.vip-support-form input,
.vip-support-form textarea {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vip-support-form input::placeholder,
.vip-support-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}



.vip-medkit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .battle-pass-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .battle-pass-summary {
    width: 100%;
    justify-content: space-between;
  }
}

.admin-user-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
}

.profile-role-row {
  margin: 6px 0;
}

.admin-user-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compact-stat {
  min-height: auto;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  padding: 12px;
}

.profile-layout {
  display: grid;
  gap: 18px;
}

.profile-hero-panel {
  overflow: hidden;
}

.profile-hero,
.profile-hero-main {
  display: grid;
  gap: 18px;
}

.profile-hero-main {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
}

.profile-hero-avatar {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #000;
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-copy {
  display: grid;
  gap: 16px;
}

.profile-hero-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.profile-hero-title-row h2 {
  margin: 0;
  font-family: "Rajdhani", "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.profile-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-summary-grid,
.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.milestone-chip {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}

.milestone-chip.active {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--text);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.milestone-chip span {
  font-size: 0.72rem;
}

.profile-settings-grid .settings-field-wide {
  grid-column: 1 / -1;
}

.profile-settings-grid textarea {
  resize: vertical;
  min-height: 108px;
}

.small-preview {
  width: 72px;
  min-width: 72px;
  height: 72px;
}

.empty-block,
.forbidden-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
}

.skeleton-card {
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: skeleton-slide 1.4s ease-in-out infinite;
}

.steam-auth-row {
  margin: 12px 0 18px;
}

.compact {
  margin-top: 14px;
}

.skin-stake-panel {
  display: grid;
  gap: 10px;
}

.skin-stake-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.profile-screen .section-panel,
.profile-screen .stat-box,
.profile-screen .inventory-card,
.profile-screen .latest-box,
.profile-screen .empty-block,
.profile-screen .forbidden-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
}

.profile-screen .profile-button,
.profile-screen .settings-button {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.profile-screen input,
.profile-screen textarea,
.profile-screen select {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08);
}

.skin-stake-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.skin-stake-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(33, 41, 74, 0.94);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.skin-stake-item:hover,
.skin-stake-item.selected {
  transform: translateY(-1px);
  border-color: rgba(113, 234, 209, 0.36);
  box-shadow: 0 12px 28px rgba(4, 10, 24, 0.32);
}

.skin-stake-item-main {
  display: grid;
  gap: 4px;
  text-align: left;
  flex: 1;
}

.skin-stake-item-main span {
  color: var(--muted);
  font-size: 0.8rem;
}

.skin-stake-icon-wrap {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(18, 24, 46, 0.88);
  border: 1px solid var(--line);
}

.market-modal-card {
  width: min(1320px, 100%);
  max-height: min(90vh, 980px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.22);
}

.market-modal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
}

.market-pane {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.market-modal-card input {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.market-modal-grid {
  min-height: 0;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.market-modal-grid.skins-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.market-modal-grid.inventory-grid {
  grid-template-columns: 1fr;
}

.market-choice-card {
  width: 100%;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.market-skin-square {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
}

.market-skin-icon {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, 0.9);
  border: 1px solid var(--rarity-color, rgba(255, 255, 255, 0.4));
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.12),
    0 0 20px var(--rarity-color, rgba(255, 255, 255, 0.2));
}

.market-skin-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-skin-price {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.market-skin-wear {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.market-skin-name {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-choice-card:hover,
.market-choice-card.selected {
  transform: translateY(-1px);
  border-color: rgba(113, 234, 209, 0.34);
  box-shadow: 0 14px 30px rgba(4, 10, 24, 0.34);
}

.market-pane-footer {
  margin-top: 0;
}

.market-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@keyframes skeleton-slide {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1180px) {
  .market-layout,
  .market-modal-layout,
  .logs-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary-grid,
  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skins-grid,
  .inventory-grid,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-promo-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .skins-grid,
  .inventory-grid,
  .admin-stat-grid,
  .fairness-bar {
    grid-template-columns: 1fr;
  }

  .wallet-methods {
    grid-template-columns: 1fr;
  }

  .user-panel,
  .profile-hero-title-row,
  .profile-hero-main {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .profile-menu-dropdown {
    right: 0;
    left: 0;
    width: auto;
  }

  .profile-summary-grid,
  .profile-stat-grid,
  .admin-user-profile-stats,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .admin-head,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .filters-row,
  .pagination-row,
  .market-modal-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .market-modal-grid {
    max-height: 34vh;
  }
}
.crash-auto-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.85) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* VIP profile dark overrides (keep promo/bonus backgrounds as-is) */
.vip-profile-card .vip-card,
.vip-profile-card .vip-stat-card,
.vip-profile-card .vip-table-row,
.vip-profile-card .vip-inline-balance,
.vip-profile-card .vip-nav-item,
.vip-profile-card .vip-avatar,
.vip-profile-card .vip-icon-button,
.vip-profile-card .ghost-button,
.vip-profile-card .profile-button,
.vip-profile-card .vip-close-button {
  background: #000;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.vip-profile-card .vip-stat-card,
.vip-profile-card .vip-table-row,
.vip-profile-card .vip-inline-balance {
  border-color: rgba(255, 255, 255, 0.45);
}

.vip-profile-card .vip-input-row input {
  background: #000;
  border-color: rgba(255, 255, 255, 0.45);
}

.vip-profile-card .vip-nav-item.active {
  border-color: rgba(255, 255, 255, 0.85);
}

.vip-profile-card .vip-promo-card,
.vip-profile-card .vip-bonus-card {
  box-shadow: none;
}

.vip-profile-card .vip-promo-card {
  background: linear-gradient(180deg, rgba(60, 16, 30, 0.95), rgba(30, 10, 18, 0.95));
  border-color: rgba(255, 112, 112, 0.4);
}

.vip-profile-card .vip-bonus-card {
  background: linear-gradient(180deg, rgba(70, 48, 10, 0.95), rgba(38, 28, 12, 0.95));
  border-color: rgba(255, 211, 92, 0.5);
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .mode-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .mode-nav .mode-chip img {
    height: 44px;
  }

  .user-panel {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .stats-line {
    gap: 10px;
  }

  .crash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .crash-history {
    width: 100%;
    justify-content: flex-start;
  }

  .bet-columns {
    gap: 12px;
  }

  .double-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .double-layout > .double-main,
  .double-layout > .double-sidebar {
    display: contents;
  }

  .double-layout .roulette-panel {
    order: 1;
  }

  .double-layout .bet-sidebar {
    order: 2;
  }

  .double-layout .bets-panel {
    order: 3;
  }

  .double-layout .double-admin-panel {
    order: 4;
  }

  .crash-layout .crash-panel {
    order: 1;
  }

  .crash-layout .crash-bet-sidebar {
    order: 2;
  }

  .crash-layout .crash-activity-panel {
    order: 3;
  }

  .crash-layout .crash-admin-panel {
    order: 4;
  }

  .upgrade-layout .upgrade-panel {
    order: 1;
  }

  .upgrade-layout .upgrade-bet-sidebar {
    order: 2;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    height: 46px;
  }

  .mode-nav .mode-chip img {
    height: 38px;
  }

  .bet-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .bet-side {
    text-align: left;
  }

  .bet-info strong {
    max-width: 120px;
  }

  .market-modal-card {
    max-height: 92vh;
    padding: 16px;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
  }

  .stats-line .stat-box,
  .stats-line .latest-box {
    width: 100%;
  }

  .crash-visual {
    min-height: 360px;
  }

  .roulette-card {
    min-height: 320px;
  }

  .roulette-wheel-shell {
    top: -22%;
    width: min(170%, 680px);
  }

  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bet-type-tabs,
  .shortcut-row {
    grid-template-columns: 1fr;
  }

  .market-modal-grid {
    max-height: 40vh;
  }

  body {
    overflow-x: hidden;
  }

  .section-panel,
  .roulette-panel,
  .crash-panel,
  .bets-panel,
  .bet-sidebar,
  .crash-bet-sidebar,
  .upgrade-bet-sidebar {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px;
  }

  .mode-nav .mode-chip img {
    height: 32px;
  }

  .roulette-card {
    min-height: 280px;
  }

  .roulette-wheel-shell {
    width: min(160%, 560px);
  }

  .crash-visual {
    min-height: 300px;
  }

  .crash-rocket {
    width: min(140px, 42vw);
  }

  .color-grid {
    grid-template-columns: 1fr;
  }

  .bet-column-head {
    padding: 10px;
  }

  .bet-column-head strong {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    height: 40px;
  }

  .roulette-wheel-shell {
    width: min(150%, 480px);
  }

  .roulette-center strong {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .crash-visual {
    min-height: 260px;
  }
}
