body.legacy-theme {
  color: var(--gray100);
  background: var(--black);
}

body.legacy-theme .P2PzG {
  align-items: center;
  border-radius: 1.444rem;
  display: inline-flex;
  gap: 5px;
  height: 20px;
  justify-content: center;
  margin-left: 10px;
  padding: 0 8px;
  background-color: #ffe800;
  color: rgba(0, 0, 0, 0.9);
  font-size: 11px;
  font-weight: 700;
}

body.legacy-theme .P2PzG img {
  width: 14px;
  height: 14px;
}

body.legacy-theme a {
  text-decoration: none;
}

body.legacy-theme .legacy-page-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at top right, rgba(255, 81, 0, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(20, 20, 23, 0.96) 0%, rgba(20, 20, 23, 1) 100%);
}

body.legacy-theme .legacy-main-content {
  z-index: 2;
  position: relative;
}

body.legacy-theme .legacy-public-content,
body.legacy-theme .legacy-auth-main {
  padding: 24px;
}

body.legacy-theme .legacy-public-sidebar {
  flex-shrink: 0;
}

body.legacy-theme .legacy-panel-shell {
  min-height: calc(100vh - 74px);
}

body.legacy-theme .legacy-panel-content {
  width: 100%;
  padding: 24px;
}

body.legacy-theme .legacy-topnav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.legacy-theme .legacy-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.legacy-theme .legacy-brand-copy small {
  color: var(--white-50);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.legacy-theme .legacy-balance-chip {
  min-width: 140px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}

body.legacy-theme .legacy-balance-chip span {
  color: var(--white-50);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

body.legacy-theme .legacy-balance-chip strong {
  color: var(--gray100);
  font-size: 13px;
  line-height: 1.2;
}

body.legacy-theme .legacy-mobile-menu-trigger {
  display: none;
}

body.legacy-theme .legacy-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.68);
  z-index: 90;
}

body.legacy-theme .legacy-sidebar-overlay.is-active {
  display: block;
}

body.legacy-theme .legacy-section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

body.legacy-theme .legacy-section-heading h1,
body.legacy-theme .legacy-section-heading h2,
body.legacy-theme .legacy-section-heading h3,
body.legacy-theme .legacy-section-heading h4 {
  margin: 0;
}

body.legacy-theme .legacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 81, 0, 0.12);
  border: 1px solid rgba(255, 81, 0, 0.24);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.legacy-theme .legacy-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.legacy-theme .legacy-stack--xl {
  gap: 24px;
}

body.legacy-theme .legacy-grid {
  display: grid;
  gap: 16px;
}

body.legacy-theme .legacy-grid--2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

body.legacy-theme .legacy-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.legacy-theme .legacy-grid--sidebar {
  align-items: start;
}

body.legacy-theme .legacy-card,
body.legacy-theme .legacy-hero {
  background: linear-gradient(180deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 23, 0.98) 100%);
  border: 1px solid rgba(255, 81, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.legacy-theme .legacy-card--tight {
  padding: 18px;
}

body.legacy-theme .legacy-card--muted {
  background: rgba(255, 255, 255, 0.03);
}

body.legacy-theme .legacy-card p:last-child,
body.legacy-theme .legacy-hero p:last-child {
  margin-bottom: 0;
}

body.legacy-theme .legacy-muted {
  color: rgba(255, 255, 255, 0.62);
}

body.legacy-theme .legacy-banner-card,
body.legacy-theme .legacy-image-card {
  overflow: hidden;
  padding: 0;
}

body.legacy-theme .legacy-banner-card img,
body.legacy-theme .legacy-image-card img,
body.legacy-theme .legacy-image-card iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.legacy-theme .legacy-banner-card img {
  min-height: 280px;
}

body.legacy-theme .legacy-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.legacy-theme .legacy-mini-stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 81, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.legacy-theme .legacy-mini-stat strong {
  color: var(--gray100);
  font-size: 18px;
}

body.legacy-theme .legacy-mini-stat span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

body.legacy-theme .legacy-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

body.legacy-theme .legacy-game-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 81, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

body.legacy-theme .legacy-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 81, 0, 0.42);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
}

body.legacy-theme .legacy-game-card.is-disabled {
  opacity: 0.7;
  pointer-events: none;
}

body.legacy-theme .legacy-game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

body.legacy-theme .legacy-game-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.legacy-theme .legacy-game-card__body strong {
  color: var(--gray100);
  font-size: 15px;
}

body.legacy-theme .legacy-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray100);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

body.legacy-theme .legacy-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.legacy-theme .legacy-shortcuts .btn-small {
  min-width: 110px;
}

body.legacy-theme .legacy-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.legacy-theme .legacy-form-grid .w-input,
body.legacy-theme .legacy-form-grid .w-select {
  margin-bottom: 0;
}

body.legacy-theme .legacy-alert {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gray100);
}

body.legacy-theme .legacy-alert--warning {
  background: rgba(255, 183, 0, 0.12);
  border-color: rgba(255, 183, 0, 0.32);
}

body.legacy-theme .legacy-alert--danger {
  background: rgba(255, 73, 73, 0.14);
  border-color: rgba(255, 73, 73, 0.3);
}

body.legacy-theme .legacy-copy-block {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray100);
  word-break: break-all;
}

body.legacy-theme .legacy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

body.legacy-theme .legacy-list li {
  margin: 0;
}

body.legacy-theme .legacy-live-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.legacy-theme .legacy-live-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 81, 0, 0.08);
}

body.legacy-theme .legacy-live-item img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

body.legacy-theme .legacy-live-item strong,
body.legacy-theme .legacy-live-item span,
body.legacy-theme .legacy-live-item small {
  display: block;
}

body.legacy-theme .legacy-live-item small {
  color: rgba(255, 255, 255, 0.5);
}

body.legacy-theme .legacy-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.legacy-theme .legacy-ranking-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 81, 0, 0.08);
}

body.legacy-theme .legacy-ranking-medal {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 81, 0, 0.12);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body.legacy-theme .legacy-table-wrap {
  overflow-x: auto;
}

body.legacy-theme .legacy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

body.legacy-theme .legacy-table th,
body.legacy-theme .legacy-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

body.legacy-theme .legacy-table th {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.legacy-theme .legacy-table td {
  color: var(--gray100);
}

body.legacy-theme .legacy-auth-shell {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.legacy-theme .legacy-auth-card {
  width: min(100%, 960px);
}

body.legacy-theme .legacy-auth-card .card.windows.welcome {
  width: 100%;
}

body.legacy-theme .legacy-auth-visual {
  width: 320px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

body.legacy-theme .legacy-auth-visual .eng-img-welcome {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.legacy-theme .legacy-sidebar-section-title {
  color: var(--white-50);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

body.legacy-theme .legacy-sidebar-game-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.legacy-theme .legacy-sidebar-game-link {
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

body.legacy-theme .legacy-sidebar-game-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.legacy-theme .legacy-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.legacy-theme .legacy-auth-links a {
  color: var(--yellow);
  font-weight: 600;
}

body.legacy-theme .legacy-password-toggle {
  z-index: 3;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--white-50);
  font-size: 12px;
  font-weight: 700;
}

body.legacy-theme .legacy-footer-copy {
  color: #948e99;
}

body.legacy-theme .legacy-empty {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

body.legacy-theme .legacy-mini-chart {
  min-height: 260px;
}

body.legacy-theme .legacy-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

body.legacy-theme .legacy-countdown strong {
  color: var(--yellow);
}

body.legacy-theme .legacy-qr-wrapper {
  width: fit-content;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

body.legacy-theme .legacy-qr-wrapper img {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

body.legacy-theme .legacy-info-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.legacy-theme .legacy-info-points div {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.legacy-theme .legacy-top-spacer {
  height: 8px;
}

body.legacy-theme .img-bg-wrapper {
  width: 100%;
  height: 100%;
  opacity: 0.2;
  filter: none;
  background-image:
    linear-gradient(120deg, rgba(20, 20, 23, 0.05), rgba(255, 81, 0, 0.16)),
    url('/legacy/kaiibets/public/uploads/2810102025095218.png'),
    url('/legacy/kaiibets/local-assets/pattern.svg') !important;
  background-position: center;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 240px;
}

@media screen and (max-width: 991px) {
  body.legacy-theme .legacy-grid--2,
  body.legacy-theme .legacy-grid--3 {
    grid-template-columns: 1fr;
  }

  body.legacy-theme .legacy-mobile-menu-trigger {
    display: flex;
  }

  body.legacy-theme .legacy-panel-content,
  body.legacy-theme .legacy-public-content,
  body.legacy-theme .legacy-auth-main {
    padding: 16px;
  }

  body.legacy-theme .left-side-bar.is-open {
    transform: translate(0);
  }

  body.legacy-theme .legacy-topnav-links {
    justify-content: flex-end;
  }

  body.legacy-theme .legacy-topnav-links .legacy-hide-mobile {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  body.legacy-theme .navbar_wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.legacy-theme .legacy-topnav-links {
    gap: 6px;
  }

  body.legacy-theme .legacy-balance-chip {
    min-width: 116px;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.legacy-theme .legacy-stat-grid {
    grid-template-columns: 1fr;
  }

  body.legacy-theme .legacy-auth-visual {
    display: none;
  }

  body.legacy-theme .legacy-auth-card .card.windows.welcome {
    min-width: 280px;
  }

  body.legacy-theme .legacy-card,
  body.legacy-theme .legacy-hero {
    padding: 18px;
  }

  body.legacy-theme .legacy-shortcuts .btn-small,
  body.legacy-theme .legacy-shortcuts .button {
    min-width: calc(50% - 4px);
  }
}

@media screen and (max-width: 479px) {
  body.legacy-theme .legacy-shortcuts .btn-small,
  body.legacy-theme .legacy-shortcuts .button {
    min-width: 100%;
  }

  body.legacy-theme .legacy-live-item,
  body.legacy-theme .legacy-ranking-item {
    grid-template-columns: 1fr;
  }

  body.legacy-theme .legacy-ranking-item {
    gap: 8px;
  }
}

body.legacy-theme .content-navbar {
  background: rgba(20, 20, 23, 0.92);
  border-bottom: 1px solid rgba(255, 81, 0, 0.08);
  backdrop-filter: blur(12px);
}

body.legacy-theme .main-wrapper {
  gap: 0;
}

body.legacy-theme .left-side-bar {
  background:
    linear-gradient(180deg, rgba(26, 26, 31, 0.96) 0%, rgba(20, 20, 23, 0.98) 100%);
  border-right: 1px solid rgba(255, 81, 0, 0.08);
}

body.legacy-theme .left-side-bar .border-bottom,
body.legacy-theme .left-side-bar .border-top {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.legacy-theme .accordion-item {
  background: transparent;
}

body.legacy-theme .accordion-button {
  width: 100%;
  border: 1px solid rgba(255, 81, 0, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  box-shadow: none;
}

body.legacy-theme .accordion-button.collapsed {
  margin-bottom: 8px;
}

body.legacy-theme .accordion-button:focus {
  outline: none;
  box-shadow: none;
}

body.legacy-theme .accordion-button::after {
  content: "+";
  margin-left: auto;
  color: #ffb400;
  font-size: 18px;
  line-height: 1;
}

body.legacy-theme .accordion-button:not(.collapsed)::after {
  content: "-";
}

body.legacy-theme .accordion-collapse {
  margin-top: 10px;
}

body.legacy-theme .menu-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

body.legacy-theme .menu-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 81, 0, 0.28);
  background: rgba(255, 81, 0, 0.06);
}

body.legacy-theme .btn.btn-primary,
body.legacy-theme .btn-primary {
  border: 1px solid rgba(255, 81, 0, 0.45);
  background: linear-gradient(180deg, #ff7a24 0%, #ff5100 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 81, 0, 0.2);
}

body.legacy-theme .btn.btn-secondary,
body.legacy-theme .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.legacy-theme .dropdown-menu {
  background: rgba(20, 20, 23, 0.98);
  border: 1px solid rgba(255, 81, 0, 0.12);
  border-radius: 16px;
  padding: 8px;
}

body.legacy-theme .dropdown-toggle::after {
  margin-left: 8px;
}

body.legacy-theme .balance-wallet,
body.legacy-theme .navbar-buttons-balance-wrapper .balance-wallet {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body.legacy-theme .main_banner-wrapper .carousel-item img {
  width: 100% !important;
  height: clamp(180px, 24vw, 260px) !important;
  min-height: 0 !important;
  max-height: 260px !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

body.legacy-theme .modal-content {
  background: transparent;
  border: none;
}

body.legacy-theme .eng-light-effetct {
  display: none !important;
}

body.legacy-theme .footer_seals-wrapper img {
  max-height: 28px;
  width: auto;
}

@media (max-width: 991px) {
  body.legacy-theme .main-wrapper {
    display: block;
  }

  body.legacy-theme .left-side-bar {
    display: none;
  }
}

body.legacy-theme {
  background: #141417;
  overflow-x: hidden;
}

body.legacy-theme .page-wrapper,
body.legacy-theme .legacy-page-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

body.legacy-theme .content-navbar {
  position: sticky;
  top: 0;
  z-index: 1080;
}

body.legacy-theme .navbar_wrapper {
  min-height: 72px;
  gap: 12px;
}

body.legacy-theme .navbar-buttons-login-wrapper,
body.legacy-theme .navbar-buttons-balance-wrapper,
body.legacy-theme .navbar-logged {
  position: relative;
  z-index: 1090;
  pointer-events: auto;
}

body.legacy-theme .main-wrapper,
body.legacy-theme .legacy-main-content {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

body.legacy-theme .left-side-bar {
  flex: 0 0 308px;
  width: 308px;
  max-width: 308px;
  min-width: 308px;
  position: relative;
  z-index: 3;
}

body.legacy-theme .left-side-bar_page-padding {
  width: 308px;
  max-width: 308px;
  min-height: calc(100vh - 72px);
  padding: 0;
}

body.legacy-theme .left-side_sticky-wrapper {
  position: sticky;
  top: 72px;
  min-height: calc(100vh - 72px);
}

body.legacy-theme .eng-superior-menu {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 129, 38, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(25, 25, 30, 0.98), rgba(15, 15, 18, 0.98));
}

body.legacy-theme .main-content {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

body.legacy-theme .main-content.home {
  padding-top: 26px;
}

body.legacy-theme .main_banner-wrapper {
  position: relative;
  z-index: 2;
  max-width: none;
  margin-left: 24px;
  margin-right: 24px;
  margin-top: 8px !important;
  margin-bottom: 28px !important;
}

body.legacy-theme .main_banner-wrapper .carousel,
body.legacy-theme .main_banner-wrapper .carousel-inner,
body.legacy-theme .main_banner-wrapper .carousel-item,
body.legacy-theme .main_banner-wrapper .carousel-item a {
  display: block;
  width: 100%;
}

body.legacy-theme .main_banner-wrapper .carousel,
body.legacy-theme .main_banner-wrapper .carousel-inner,
body.legacy-theme .main_banner-wrapper .carousel-item {
  height: clamp(180px, 24vw, 260px) !important;
  max-height: 260px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

body.legacy-theme .main_banner-wrapper .carousel-control-prev,
body.legacy-theme .main_banner-wrapper .carousel-control-next {
  z-index: 5;
}

body.legacy-theme .modal {
  z-index: 20000;
}

body.legacy-theme .modal-backdrop {
  z-index: 19990;
}

body.legacy-theme .modal.show {
  display: block;
}

body.legacy-theme .modal,
body.legacy-theme .modal *,
body.legacy-theme .modal input,
body.legacy-theme .modal select,
body.legacy-theme .modal textarea,
body.legacy-theme .modal button {
  pointer-events: auto !important;
}

body.legacy-theme .modal input,
body.legacy-theme .modal textarea {
  user-select: text;
  -webkit-user-select: text;
}

body.legacy-theme .btn-small,
body.legacy-theme .w-button,
body.legacy-theme a,
body.legacy-theme button {
  pointer-events: auto;
}

body.legacy-theme .left-side-bar .p-3.mb-3 {
  padding: 0 !important;
  border: 0 !important;
}

body.legacy-theme .left-side-bar .p-3.mb-3 a {
  display: block;
  text-decoration: none;
}

body.legacy-theme .left-side-bar .p-3.mb-3 .btn {
  min-height: 58px;
  border-radius: 18px;
  letter-spacing: .01em;
}

body.legacy-theme .left-side-bar .accordion-header {
  margin-bottom: 10px;
}

body.legacy-theme .left-side-bar .accordion-button {
  min-height: 54px;
  justify-content: flex-start;
  gap: 10px;
  font-size: 15px;
}

body.legacy-theme .left-side-bar .menu-item {
  min-height: 48px;
  padding: 12px 14px;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
}

body.legacy-theme .left-side-bar .menu-item svg {
  flex: 0 0 22px;
  color: #ffb400;
}

body.legacy-theme .left-side-bar .border-top.py-4 {
  margin-top: 18px !important;
  padding-top: 18px !important;
}

@media (max-width: 991px) {
  body.legacy-theme .main-wrapper,
  body.legacy-theme .legacy-main-content {
    display: block;
  }

  body.legacy-theme .left-side-bar,
  body.legacy-theme .left-side-bar_page-padding {
    display: none;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  body.legacy-theme .navbar_wrapper {
    min-height: 64px;
  }

  body.legacy-theme .main-content {
    padding-bottom: 88px;
  }

  body.legacy-theme .main-content.home {
    padding-top: 18px;
  }
}

@media (max-width: 575px) {
  body.legacy-theme .main_banner-wrapper {
    margin-left: 16px;
    margin-right: 16px;
  }

  body.legacy-theme .main_banner-wrapper .carousel-item img {
    height: clamp(140px, 42vw, 190px) !important;
    max-height: 190px !important;
    border-radius: 14px !important;
  }

  body.legacy-theme .main_banner-wrapper .carousel,
  body.legacy-theme .main_banner-wrapper .carousel-inner,
  body.legacy-theme .main_banner-wrapper .carousel-item {
    height: clamp(140px, 42vw, 190px) !important;
    max-height: 190px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 991px) {
  body.legacy-theme.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
  }

  body.legacy-theme .legacy-balance-actions {
    gap: 8px;
  }

  body.legacy-theme .legacy-balance-actions .balance-wallet,
  body.legacy-theme .legacy-balance-actions.navbar-buttons-balance-wrapper .balance-wallet {
    min-height: 38px;
    padding: 0 12px;
  }

  body.legacy-theme .legacy-balance-actions .balance-wallet h4 {
    font-size: 14px;
  }

  body.legacy-theme .legacy-navbar-deposit,
  body.legacy-theme .legacy-navbar-user-toggle {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  body.legacy-theme .legacy-navbar-user-toggle {
    min-width: 42px;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal {
    padding: 0 !important;
    inset: 0 !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal .modal-dialog {
    position: fixed;
    inset: 0 auto 0 0;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    width: min(312px, 100vw);
    max-width: min(312px, 100vw);
    min-height: 100dvh;
    height: 100dvh;
    display: block;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.22s ease;
    pointer-events: auto;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal.show .modal-dialog {
    transform: translate3d(0, 0, 0);
  }

  body.legacy-theme .legacy-mobile-sidebar-content {
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0 22px 22px 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal .align-center-windows {
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    margin: 0;
    align-items: stretch;
    justify-content: flex-start !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    align-items: stretch;
  }

  body.legacy-theme #exampleModal .content-sidebar-mobile,
  body.legacy-theme .legacy-mobile-sidebar-modal .content-sidebar-mobile {
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: flex-start !important;
    align-items: stretch;
  }

  body.legacy-theme .legacy-mobile-sidebar-shell .eng-close-windows {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 16px;
    z-index: 4;
  }

  body.legacy-theme .legacy-mobile-sidebar-shell .eng-superior-menu {
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(28px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(255, 81, 0, 0.12);
    border-radius: 0 22px 22px 0;
    -webkit-overflow-scrolling: touch;
  }

  body.legacy-theme .legacy-mobile-sidebar-shell .menu-item {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 575px) {
  body.legacy-theme .legacy-balance-actions {
    gap: 6px;
  }

  body.legacy-theme .legacy-balance-actions .balance-wallet,
  body.legacy-theme .legacy-balance-actions.navbar-buttons-balance-wrapper .balance-wallet {
    min-height: 34px;
    padding: 0 10px;
  }

  body.legacy-theme .legacy-balance-actions .balance-wallet h4 {
    font-size: 13px;
  }

  body.legacy-theme .legacy-navbar-deposit,
  body.legacy-theme .legacy-navbar-user-toggle {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal .modal-dialog,
  body.legacy-theme .legacy-mobile-sidebar-shell {
    width: min(304px, 100vw);
    max-width: min(304px, 100vw);
  }
}

body.legacy-theme .balance-wallet,
body.legacy-theme .navbar-buttons-balance-wrapper .balance-wallet {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 16px 0 !important;
  line-height: 1 !important;
}

body.legacy-theme .balance-wallet .d-flex {
  align-items: center !important;
}

body.legacy-theme .balance-wallet h4 {
  line-height: 1 !important;
  transform: translateY(1px);
}

body.legacy-theme .main_banner-wrapper .carousel,
body.legacy-theme .main_banner-wrapper .carousel-inner,
body.legacy-theme .main_banner-wrapper .carousel-item,
body.legacy-theme .main_banner-wrapper .carousel-item a,
body.legacy-theme .main_banner-wrapper .carousel-item img {
  height: clamp(150px, 20vw, 220px) !important;
  max-height: 220px !important;
  border-radius: 8px !important;
}

body.legacy-theme .main_banner-wrapper .carousel,
body.legacy-theme .main_banner-wrapper .carousel-inner,
body.legacy-theme .main_banner-wrapper .carousel-item {
  background: #141417 !important;
}

body.legacy-theme .main_banner-wrapper .carousel-item img {
  object-fit: contain !important;
  object-position: center !important;
  background: #141417 !important;
}

@media (max-width: 991px) {
  body.legacy-theme {
    --legacy-mobile-nav-space: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.legacy-theme .navbar-mobile {
    z-index: 21050 !important;
  }

  body.legacy-theme .modal-backdrop.legacy-backdrop {
    bottom: var(--legacy-mobile-nav-space) !important;
    height: calc(100dvh - var(--legacy-mobile-nav-space)) !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal {
    inset: 0 0 var(--legacy-mobile-nav-space) 0 !important;
    height: calc(100dvh - var(--legacy-mobile-nav-space)) !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-modal .modal-dialog {
    inset: 0 auto var(--legacy-mobile-nav-space) 0 !important;
    height: calc(100dvh - var(--legacy-mobile-nav-space)) !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-content,
  body.legacy-theme .legacy-mobile-sidebar-modal .align-center-windows,
  body.legacy-theme .legacy-mobile-sidebar-shell,
  body.legacy-theme #exampleModal .content-sidebar-mobile,
  body.legacy-theme .legacy-mobile-sidebar-modal .content-sidebar-mobile,
  body.legacy-theme .legacy-mobile-sidebar-shell .eng-superior-menu {
    min-height: calc(100dvh - var(--legacy-mobile-nav-space)) !important;
    height: calc(100dvh - var(--legacy-mobile-nav-space)) !important;
    max-height: calc(100dvh - var(--legacy-mobile-nav-space)) !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-shell .eng-superior-menu {
    padding-top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.legacy-theme .legacy-mobile-sidebar-shell .eng-close-windows {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    right: 14px !important;
  }

  body.legacy-theme .main_banner-wrapper .carousel,
  body.legacy-theme .main_banner-wrapper .carousel-inner,
  body.legacy-theme .main_banner-wrapper .carousel-item,
  body.legacy-theme .main_banner-wrapper .carousel-item a,
  body.legacy-theme .main_banner-wrapper .carousel-item img {
    height: clamp(128px, 32vw, 176px) !important;
    max-height: 176px !important;
  }
}

@media (max-width: 575px) {
  body.legacy-theme {
    --legacy-mobile-nav-space: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  body.legacy-theme .legacy-balance-actions .balance-wallet,
  body.legacy-theme .legacy-balance-actions.navbar-buttons-balance-wrapper .balance-wallet {
    padding: 2px 10px 0 !important;
  }

  body.legacy-theme .main_banner-wrapper .carousel,
  body.legacy-theme .main_banner-wrapper .carousel-inner,
  body.legacy-theme .main_banner-wrapper .carousel-item,
  body.legacy-theme .main_banner-wrapper .carousel-item a,
  body.legacy-theme .main_banner-wrapper .carousel-item img {
    height: clamp(118px, 35vw, 156px) !important;
    max-height: 156px !important;
  }
}
