html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(153, 51, 204, 0.30), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.88)),
    url("../images/bg.png") center top / cover fixed no-repeat;
  font-family: "Roboto", "Mitr", sans-serif;
  font-weight: 300;
  padding-bottom: 82px;
}

a {
  color: #fff;
}

a:hover {
  color: #d99cff;
  text-decoration: none;
}

.demon-shell {
  position: relative;
  z-index: 1;
}

.demon-topbar {
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(153, 51, 204, 0.42);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.demon-logo img {
  height: 58px;
  max-width: 210px;
  object-fit: contain;
}

.demon-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.demon-btn {
  border: 1px solid rgba(203, 118, 255, 0.42);
  background: rgba(28, 20, 36, 0.92);
  color: #fff;
  border-radius: 8px;
  padding: 8px 15px;
  font-weight: 400;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.demon-btn:hover {
  background: #9933cc;
  border-color: #c77dff;
  color: #fff;
  transform: translateY(-1px);
}

.demon-btn-primary,
.btn-demon-primary {
  border: 0;
  background: linear-gradient(135deg, #7b1bb0, #bb45f5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(153, 51, 204, 0.26);
}

.demon-btn-primary:hover,
.btn-demon-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.demon-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.demon-status .dropdown-menu {
  min-width: 230px;
  background: #17141d;
  border: 1px solid rgba(203, 118, 255, 0.25);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.demon-status .dropdown-item {
  color: rgba(255, 255, 255, 0.84);
}

.demon-status .dropdown-item:hover {
  background: #9933cc;
  color: #fff;
}

.demon-hero {
  padding: 0 0 2px;
}

.demon-carousel .carousel-item img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(203, 118, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.demon-category-strip {
  padding: 13px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(4, 3, 8, 0.54);
}

.demon-category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.demon-category-card {
  flex: 0 0 auto;
  min-width: 112px;
  text-align: center;
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: rgba(125, 125, 125, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.demon-category-card:hover {
  color: #fff;
  background: rgba(153, 51, 204, 0.86);
  border-color: rgba(203, 118, 255, 0.72);
  transform: translateY(-2px);
}

.demon-category-card img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.demon-category-card span {
  display: block;
  font-size: 13px;
  white-space: nowrap;
}

.demon-section-title {
  font-weight: 300;
  margin: 22px 0 14px;
  color: #fff;
}

.demon-card {
  background: rgba(12, 10, 17, 0.82);
  border: 1px solid rgba(203, 118, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.demon-game-card {
  display: block;
  color: #fff;
  margin-bottom: 0;
}

.demon-game-card .thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(203, 118, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.demon-game-card img {
  width: 100%;
  display: block;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.demon-game-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.12);
}

.demon-game-card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 0, 12, 0);
  color: transparent;
  font-size: 28px;
  transition: background 0.18s ease, color 0.18s ease;
}

.demon-game-card:hover .play-overlay {
  background: rgba(5, 0, 12, 0.45);
  color: rgba(255, 255, 255, 0.86);
}

.demon-game-name {
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demon-login-page {
  min-height: 100vh;
  padding: 1px 0 40px;
}

.demon-login-panel {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.demon-login-body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.92)),
    url("../images/bg.png") center top / cover fixed no-repeat;
  padding-bottom: 0;
}

.demon-login-panel img {
  max-width: 210px;
  width: 70%;
}

.demon-login-panel .form-control {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: #e8f1ff;
  color: #000;
  font-size: 14px;
}

.demon-login-panel .form-control:focus {
  background: #e8f1ff;
  color: #000;
  box-shadow: 0 0 0 0.2rem rgba(153, 51, 204, 0.25);
}

.demon-login-panel .form-control::placeholder {
  color: #6c757d;
}

.demon-login-panel .custom-select {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background-color: #e8f1ff;
  color: #000;
  font-size: 14px;
}

.demon-login-panel .form-label {
  color: #fff;
  font-weight: 300;
}

.demon-captcha-code {
  min-width: 86px;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  border: 0;
}

.demon-login-panel .btn-outline-danger.active,
.demon-login-panel .btn-outline-danger:hover {
  color: #fff;
}

.demon-register-success-title {
  color: #ff3131;
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.42);
}

.demon-register-success-icon {
  color: #ff3131;
}

.demon-register-checkmark {
  display: inline-block;
  width: 48px;
  height: 48px;
  position: relative;
  border: 2px solid #ff3131;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 49, 49, 0.35);
}

.demon-register-checkmark::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 9px;
  width: 14px;
  height: 24px;
  border: solid #ff3131;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.demon-register-credential-card {
  color: #fff;
  background: rgba(12, 8, 14, 0.86);
  border: 1px solid rgba(255, 49, 49, 0.75);
  border-radius: 4px;
}

.demon-register-credential-card b {
  color: #ffdd57;
  font-weight: 600;
}

.demon-register-credential-card hr {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.demon-register-note {
  color: #ff3131;
}

.demon-eye {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.28);
}

.demon-eye:hover {
  color: rgba(255, 0, 0, 0.8);
}

.demon-bottom-nav {
  background-color: rgba(111, 0, 180, 1);
  box-shadow: 0 -3px 5px rgba(111, 0, 180, 0.3);
  border-top: 0;
}

.demon-bottom-nav .flex-fill {
  padding-top: 7px;
  padding-bottom: 5px;
  width: 20%;
}

.demon-bottom-nav a {
  display: inline-block;
  padding: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.85;
  text-decoration: none;
}

.demon-bottom-nav i {
  display: block;
  font-size: 2em;
  line-height: 1;
  margin-bottom: 3px;
}

.demon-bottom-nav .active a,
.demon-bottom-nav a:hover {
  color: #fff;
  opacity: 1;
  background: transparent;
}

.swal2-container {
  z-index: 2000 !important;
}

.demon-topbar {
  background: #000;
  border-bottom: 1px solid #282828;
  box-shadow: none;
  padding: 7px 0;
}

.demon-header-container {
  padding-top: 0;
  padding-bottom: 0;
}

.demon-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demon-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.demon-logo img {
  height: 50px;
  max-width: 170px;
  object-fit: contain;
}

.demon-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 14px;
}

.demon-user {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 300;
}

.demon-power {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 4px;
  margin-left: 2px;
}

.demon-ellipsis {
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
}

.demon-settings {
  display: inline-flex;
  align-items: center;
}

.demon-cog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  color: #fff;
}

.demon-cog:hover {
  color: #9dd6ff;
}

.demon-settings .dropdown-menu {
  min-width: 230px;
  background: #17141d;
  border-color: #17a2b8 !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.demon-settings .dropdown-item {
  color: rgba(255, 255, 255, 0.84);
}

.demon-settings .dropdown-item:hover,
.demon-settings .dropdown-item:focus {
  background: #9933cc;
  color: #fff;
}

.demon-guest-link {
  color: #fff;
  padding: 6px 8px;
  white-space: nowrap;
}

.demon-member-actions-card {
  margin-bottom: 6px;
  background: #202020;
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.demon-member-actions-card .card-body {
  background: transparent;
}

.demon-member-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
}

.demon-action-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.demon-action-link,
.demon-credit {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1.2;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 300;
}

.demon-action-link {
  color: #fff;
  min-height: 35px;
  padding: 0 12px;
}

.demon-action-link:hover,
.demon-action-link:focus {
  color: #d99cff;
  outline: none;
}

.demon-credit {
  color: #7dff00;
  min-height: 35px;
  padding: 0 12px;
}

.demon-credit:hover,
.demon-credit:focus {
  color: #99ff34;
  outline: none;
}

.demon-credit i {
  color: #70d900;
}

.demon-menu-wrap {
  margin-top: -2px;
  margin-bottom: 14px;
}

.demon-menu-hint {
  margin-top: 0;
  font-size: 14px;
}

.demon-menu-casino {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.demon-menu-casino.flickity-enabled {
  display: block;
  gap: 0;
  overflow: hidden;
  cursor: default;
  touch-action: pan-y;
}

.demon-menu-casino.flickity-enabled .flickity-viewport {
  overflow: hidden;
}

.demon-menu-casino::-webkit-scrollbar {
  display: none;
}

.demon-menu-casino .d-inline-block {
  flex: 0 0 auto;
  height: 80px;
  min-width: 66px;
  margin-right: 10px !important;
  text-align: center;
}

.demon-menu-casino .btn-casino {
  min-width: 66px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  background-color: rgba(125, 125, 125, 0.3) !important;
  border: 0;
  border-radius: 4px;
}

.demon-menu-casino .btn-casino:hover {
  background-color: #9933cc !important;
}

.demon-menu-casino img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.9);
}

.demon-menu-casino .text-center {
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

  @media (max-width: 767.98px) {
  body {
    padding-bottom: 74px;
  }

  .demon-logo img {
    height: 50px;
    max-width: 170px;
  }

  .demon-auth {
    gap: 6px;
    font-size: 13px;
  }

  .demon-user {
    max-width: 120px;
  }

  .demon-btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  .demon-member-actions {
    min-height: 35px;
  }

  .demon-action-left {
    gap: 0;
  }

  .demon-action-link,
  .demon-credit {
    font-size: 14px;
  }

  .demon-menu-casino .d-inline-block,
  .demon-menu-casino .btn-casino {
    min-width: 66px;
  }

  .demon-menu-casino .btn-casino {
    height: 56px;
  }

  .demon-menu-casino .text-center {
    font-size: 13px;
  }

  .demon-category-card {
    min-width: 92px;
  }

  .demon-category-card span {
    font-size: 12px;
  }

  .demon-login-panel {
    padding: 0;
  }
}
