@font-face {
  font-family: "TH Sarabun New";
  src: url("../images/assets/ui/THSarabunNew.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-h: 50px;
  --bottom-h: 54px;
  --sidebar-w: 70px;
  --banner-h: 0px;
  --gap: 8px;
  --radius: 14px;
  --gold: #d4af37;
  --gold-text: #f0e2b8;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "TH Sarabun New", Tahoma, sans-serif;
  color: #f6ecd8;
  background: url("../images/bg/background.png") center / cover no-repeat fixed,
    #000 !important;
  overflow: hidden;
}

button,
a {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: calc(var(--bottom-h) + var(--safe-b));
  background: transparent;
  overflow-y: scroll;
}

/* Banner â€“ shown on mobile widths */
section[aria-label="promotion"] {
  display: none;
  position: relative;
  z-index: 35;
  background: #0a0604;
  overflow: hidden;
}

.banner-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  scroll-snap-align: start;
  aspect-ratio: 3208 / 839;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.banner-dots span.active {
  background: #f0d78c;
  box-shadow: 0 0 6px rgba(240, 215, 140, 0.7);
}

/* Header */
.header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: var(--safe-t) 12px 20px;
  background:
    url("../images/bg/bg_header.png") center no-repeat,
    #0b0806;
  background-size: 100% 100%;
}

.header::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    #9a7428 20%,
    #f2d98a 50%,
    #9a7428 80%,
    transparent
  );
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

.logo {
  height: calc(var(--header-h) - 6px);
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  width: auto;
  max-width: min(38vw, 148px);
  object-fit: contain;
}

.login-btn {
    padding: 1rem 3rem ;
    border-radius: 999px !important;
    border: 1.5px solid #120d08 !important;
    background: url(../images/assets/ui/clear/login-btn.png) center / 100% 100% no-repeat;
    color: #120d08 !important;
    font-weight: 700;
    font-size: 1.15rem !important;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Body */
.body {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: url("../images/bg/background.png") center / cover no-repeat,
    #120c09;
}

.sidebar {
  position: relative;
  z-index: 30;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  background: transparent;
  border-right: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  background: #160700a3;
  pointer-events: none;
  z-index: 0;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.side-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 8px 6px 12px;
}

/* Default = red-box style: icon left, label right */
.side-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 15px 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #cccccc;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.side-item.active {
  color: #f0d78c;
  background: url("../images/active_menu.png") center / 100% 100% no-repeat;
  border-color: transparent;
  border: none;
  box-shadow: none;
}

.side-item.active .side-label {
  color: #fee5aa;
  font-weight: 600;
}

.side-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.side-label {
  color: #cccccc;
  font-size: 0.98rem;
  line-height: 1.15;
  text-align: left;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
}

.main_,
#main-content {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--gap);
  background: transparent;
}

.main_::-webkit-scrollbar {
  width: 3px;
}

.main_::-webkit-scrollbar-thumb {
  background: rgba(240, 240, 240, 0.4);
  border-radius: 3px;
}

.game-grid,
.tab-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  width: 100%;
  grid-auto-rows: auto;
  align-content: start;
}

.game-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  width: 100%;
}

.tab-panel[hidden] {
  display: none !important;
}

.game-tile .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile .hot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: clamp(42px, 28%, 100px);
  height: clamp(42px, 28%, 100px);
  overflow: hidden;
  pointer-events: none;
  color: transparent;
  font-size: 0;
}

.game-tile .hot::before {
  content: "HOT";
  position: absolute;
  top: 18%;
  left: -38%;
  width: 150%;
  padding: 8% 0;
  background: #ff0000;
  color: #fff8e8;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(0.48rem, 2.2vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.1;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Bottom */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: calc(var(--bottom-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: url("../images/bg/bg_footer.png") center / 100% 100% no-repeat;
}

.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  min-width: 0;
  color: var(--gold-text);
  font-size: 1.05rem;
  line-height: 1;
  padding: 2px;
}

.bottom-item + .bottom-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(200, 180, 120, 0.25);
}

.bottom-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bottom-item.active {
  color: #fff1c2;
}

.bottom-item span {
    color: #cccccc;
    white-space: nowrap;
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    max-width: 100%;
    
}
@media (min-width: 1024px) {
  .bottom-item span {
    line-height: 1;
  }
}
.sidebar-backdrop {
  display: none;
}

/* ============================================
   MOBILE — match Mobiel versiob.png
   header → banner → sidebar + 2-col grid → bottom nav
   ============================================ */
@media (max-width: 820px) {
  :root {
    --sidebar-w: 28vw;
    --header-h: 44px;
    --bottom-h: 54px;
    --gap: 6px;
    --radius: 10px;
  }

  .banner {
    display: block;
    flex-shrink: 0;
  }

  .banner-track img {
    aspect-ratio: 3208 / 839;
  }

  .header {
    padding: var(--safe-t) 10px 8px;
    background:
      url("../images/bg/bg_header.png") center no-repeat,
      #0b0806;
    background-size: 100% 100%;
  }

  .logo {
    height: 46px;
  }

  .logo img {
    height: 100%;
    max-width: min(42vw, 118px);
  }

  .login-btn {
    font-size: 0.95rem;
    padding: 0.55rem 1.75rem;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 2px 4px rgba(0, 0, 0, 0.35);
  }

 span.name_lobby {
    position: relative;
    color: #fff;
    display: flex;
    text-align: center;
    justify-content: center;
    z-index: 9;
    top: 85% !important;
    font-weight: 700;
    font-size: 11px;
} 
  .body {
    display: block !important;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
  }

  /* Hide Game Categories by default on mobile */
  .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: calc(var(--bottom-h) + var(--safe-b)) !important;
    z-index: 55 !important;
    width: min(72vw, 260px) !important;
    height: auto !important;
    transform: translateX(-105%) !important;
    transition: transform 0.25s ease !important;
    box-shadow: none !important;
    background: #120c09 !important;
    border-right: 1px solid rgba(212, 175, 55, 0.25) !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .sidebar.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.55) !important;
  }

  .sidebar::before {
    width: 100%;
    height: 100%;
    background: #160700e6;
  }

  .sidebar-backdrop {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    bottom: calc(var(--bottom-h) + var(--safe-b)) !important;
    z-index: 50 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
  }

  .sidebar-backdrop.is-open {
    display: block !important;
  }

  body.sidebar-open {
    overflow: hidden !important;
  }

  .bottom-item#menu-toggle.active,
  .bottom-item#menu-toggle[aria-expanded="true"] {
    color: #fff1c2;
  }

  .side-nav {
    gap: 8px;
    height: auto;
    padding: 14px 12px 20px;
    justify-content: flex-start;
  }

  .side-item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 48px;
    flex: 0 0 auto;
    border: 1px solid rgba(154, 116, 40, 0.22);
    background: rgba(255, 255, 255, 0.03);
  }

  .side-item.active {
    color: #fee5aa;
    background:
      linear-gradient(90deg, rgba(154, 116, 40, 0.35) 0%, rgba(40, 28, 14, 0.85) 100%);
    border: 1px solid rgba(242, 217, 138, 0.55);
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.12),
      0 6px 16px rgba(0, 0, 0, 0.35);
  }

  .side-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .side-label {
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .side-item.active .side-label {
    font-weight: 700;
    color: #fff4d0;
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(180deg, rgba(40, 28, 14, 0.95) 0%, rgba(18, 12, 8, 0.98) 100%);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .sidebar,
  .main_,
  #main-content {
    min-height: 0;
  }

  .main_,
  #main-content {
    height: 100%;
    max-height: 100%;
    padding: 5px;
    background: transparent;
    overflow-y: auto;
  }

  .main_::-webkit-scrollbar {
    width: 3px;
  }

  .game-grid,
  .tab-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    grid-auto-rows: auto;
    align-content: start;
  }

  .game-tile {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
  }

  .game-tile .hot {
    width: clamp(36px, 32%, 72px);
    height: clamp(36px, 32%, 72px);
  }

  .bottom-nav {
    background: url("../images/bg/bg_footer_sm.png") center / 100% 100% no-repeat;
  }

  .bottom-item {
    font-size: 0.85rem;
    color: #f0e6c8;
  }

  .bottom-item img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 400px) {
  :root {
    --sidebar-w: 30vw;
    --gap: 5px;
    --radius: 9px;
    --header-h: 40px;
    --bottom-h: 52px;
  }

  .logo {
    height: 42px;
  }

  .logo img {
    max-width: min(44vw, 108px);
  }

  .side-label {
    font-size: 0.85rem;
  }

  .side-icon {
    width: 20px;
    height: 20px;
  }

  .side-item {
    padding: 7px 3px;
    gap: 3px;
  }

  .login-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
  }

  .bottom-item {
    font-size: 0.78rem;
  }

  .bottom-item img {
    width: 20px;
    height: 20px;
  }
}

/* Desktop / landscape tablet — match desktop version.png
   header → sidebar + 4-col fill grid → bottom nav (no banner) */
@media (min-width: 821px) {
  :root {
    --sidebar-w: 148px;
  }

  section[aria-label="promotion"] {
    display: none !important;
  }

  .logo {
    height: 90px;
  }

  .sidebar-mobile-head {
    display: none !important;
  }

  .sidebar {
    background: transparent;
    border-right: none;
  }

  .side-nav {
    gap: 5px;
    padding: 10px 8px 14px;
  }

  .side-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px 12px;
    border-radius: 10px;
  }

  .side-item.active {
    color: #f0d78c;
    background: url("../images/active_menu.png") center / 100% 100% no-repeat;
    border-color: transparent;
    border: none;
    box-shadow: none;
  }

  .side-icon {
    width: 26px;
    height: 26px;
  }

  .side-label {
    font-size: 1.05rem;
    text-align: left;
  }

  .sidebar,
  .main_,
  #main-content,
  .tab-panel {
    height: 100%;
  }

  .game-grid,
  .tab-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: auto;
    min-height: 100%;
    flex: 0 0 auto;
    grid-auto-rows: auto;
    align-content: start;
  }

  .game-tile {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
  }
}

@media (min-width: 821px) and (max-height: 700px) and (orientation: landscape) {
  :root {
    --header-h: 42px;
    --bottom-h: 48px;
    --sidebar-w: 128px;
    --gap: 6px;
    --radius: 11px;
  }

  .logo {
    height: 56px;
  }

  .login-btn {
    font-size: 1rem;
    padding: 0.75rem 2.25rem;
  }

  .side-item {
    padding: 10px 8px;
    gap: 7px;
  }

  .side-icon {
    width: 20px;
    height: 20px;
  }

  .side-label {
    font-size: 0.88rem;
  }

  .bottom-item img {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1200px) {
  :root {
    --sidebar-w: 168px;
    --header-h: 60px;
    --bottom-h: 64px;
    --gap: 12px;
    --radius: 16px;
  }

  .side-icon {
    width: 28px;
    height: 28px;
  }

  .side-label {
    font-size: 1.12rem;
  }

  .side-item {
    padding: 15px 12px;
    gap: 11px;
  }

  .bottom-item img {
    width: 32px;
    height: 32px;
  }
}
span.name_lobby {
    position: relative;
    color: #fff;
    display: flex;
    text-align: center;
    justify-content: center;
    z-index: 9;
    top: 90%;
    font-weight: 700;
}

/*  */
 #header {
  display: flex;
}

@media (min-width: 1600px) {

  #header .container,
  #header .container-lg,
  #header .container-md,
  #header .container-sm,
  #header .container-xl,
  #header .container-xxl {
    max-width: 1520px;
  }
}

#header .justify-content-end{
  align-items: center;
}

#header .header-rotate-icon {
  cursor: pointer;
}

#header .header-left-wrapper {
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
}

@media (max-width: 1024px) {
  #header .header-left-wrapper {
    gap: 10px;
  }
  .center_pro{width: 100%!important;}
  .img_part {
      width: 100%!important;
      height: 100%!important;
  }
}

#header .header-bar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
  width: 25px;
  flex: 0 0 25px;
}

#header .header-bar-toggle img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  #header .header-bar-toggle {
    display: block;
  }
}

#header .header-logo {
  max-width: 125px;
}

@media (max-width: 1024px) {
  #header .header-logo {
    max-width: 120px;
    transform: scale(1.1) translateX(5px);
  }
}

#header .icon-btn {
  background-color: #434343;
  backdrop-filter: blur(22px) brightness(1.15);
  border: none;
  padding: 5px 8px;
  height: 100%;
  border-radius: 30px;
  transition: transform 0.3s ease-in-out;
  padding-right: 40px;
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  justify-content: center;
}

@media (max-width: 1024px) {
  #header .icon-btn {
    padding: 5px;
    justify-content: center;
    width: 30px;
    height: 30px;
  }
}

#header .icon-btn span {
  color: #fff;
}

@media (max-width: 1024px) {
  #header .icon-btn span {
    display: none;
  }
}

#header .icon-btn img {
  max-width: 30px;
  aspect-ratio: 1/1;
}

@media (max-width: 1024px) {
  #header .icon-btn img {
    max-width: 18px;
  }
}

#header .icon-btn:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 10px;
  height: 10px;
  background: url("../images/arrow-down-white.png") no-repeat center center;
  background-size: contain;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

@media (max-width: 1199px) {
  #header .icon-btn:after {
    display: none;
  }
}

#header .icon-btn:focus:after {
  transform: translateY(-50%) rotate(180deg);
}

#header .header-dropdown {
  position: relative;
}

@media (max-width: 1024px) {
  #header .header-dropdown {
    aspect-ratio: 1/1;
    margin-top: 6px;
  }
}

#header .header-dropdown:focus-within .dropdown-body {
  display: block;
}

#header .header-dropdown .dropdown-body {
  z-index: 1000;
  position: absolute;
  background: #282828e0;
  background: #282828;
  width: 230px;
  list-style: none;
  display: none;
  -webkit-backdrop-filter: blur(22px) brightness(1.15);
  backdrop-filter: blur(22px) brightness(1.15);
  padding: 0;
  top: 76%;
  right: 0px;
  margin-top: 11px;
  border-radius: 30px;
}

#header .header-dropdown .dropdown-body ul {
  padding: 10px 0px;
  list-style: none;
}

#header .header-dropdown .dropdown-body ul li {
  padding: 0px 10px;
}

#header .header-dropdown .dropdown-body ul li a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: 14px;
  color: #fff;
  font-weight: 300;
  position: relative;
  border-radius: 30px;
  padding: 10px 20px;
}

#header .header-dropdown .dropdown-body ul li a.active,
#header .header-dropdown .dropdown-body ul li a:hover {
  /* background: #393319; */
  -webkit-backdrop-filter: blur(22px) brightness(1.15);
  backdrop-filter: blur(22px) brightness(1.15);
  color: #fff;
}

#header .header-dropdown .dropdown-body ul li a.red-dot p {
  position: relative;
}

#header .header-dropdown .dropdown-body ul li a.red-dot p:after {
  content: "";
  position: absolute;
  background: red;
  top: 0px;
  right: -20px;
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
}

#header .header-dropdown .dropdown-body ul li a .total-notification {
  padding: 5px;
  background: red;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#header .header-dropdown .dropdown-body ul li a .total-notification span {
  color: #fff;
  font-size: 12px;
}

#header .header-dropdown .dropdown-body ul li a img {
  width: 30px;
  aspect-ratio: 1/1;
}

#header .header-actions {
  display: flex;
  flex-flow: row nowrap;
  max-width: 285px;
  width: 100%;
  gap: 25px;
}

@media screen and (max-width: 1024px) {
  #header .header-actions {
    max-width: 200px;
    max-width: 255px;
    gap: 5px;
  }
}

.header-dropdown .dropdown-body .icon-dropdown {
  width: 30px;
  height: 30px;
}

.header-dropdown .dropdown-body .icon-profile {
  background: url(../images/auth/my-profile.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-deposit {
  background: url(../images/auth/deposit.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-withdraw {
  background: url(../images/auth/withdraw.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-history {
  background: url(../images/auth/history.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-top-vip {
  background: url(../img/header/auth/profile-menu/vip.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-referral {
  background: url(../img/header/auth/profile-menu/referral.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-inbox {
  background: url(../img/header/auth/profile-menu/inbox.png) center no-repeat;
  background-size: 100%;
}

.header-dropdown .dropdown-body .icon-logout {
  background: url(../images/auth/logout.png) center no-repeat;
  background-size: 100%;
}
.header-dropdown .dropdown-body .icon-password {
  background: url(../images/auth/password.png) center no-repeat;
  background-size: 100%;
}
.header-dropdown .dropdown-body .icon-transfer {
  background: url(../images/auth/transfer.png) center no-repeat;
  background-size: 100%;
}
.header-dropdown .dropdown-body .icon-turnover {
  background: url(../images/auth/turnover.png) center no-repeat;
  background-size: 100%;
}

#header .header-actions>* {
  flex: 1;
}

#header .user-wallet-actions {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  max-width: 300px;
  align-items: center;
  padding-right: 50px;
  margin-right: 10px;
  position: relative;
}
.mb-0 {
    color: #fff;
}
.btn-small {
    padding: 10px 20px;
}
.icon-dropdown .mb-0{
  color: #fff;
}
span#member_creadit {
    color: #fff;
}
.btn-theme {
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    padding: 18px 24px;
    line-height: 3px;
    text-align: center;
    width: 100%;
    outline: unset;
    box-shadow: unset;
    text-decoration: none;
    display: block;
    color: #fff;
    --btn-color: #fff;
    background: #fb1949;
    border: 1px solid #fb1949;
    white-space: nowrap;
    box-shadow: 0 0 5px 1px #fb1949;
}
@media (max-width: 767px) {
    .btn-theme {
        font-size: 12px;
    }
    #header .user-wallet-actions .header-wallet{
      height: 89% !important;
    }
    #header {
      margin-top: 0.3rem;
  }
}
@media (max-width: 767px) {
  .user-wallet-actions .btn-theme{
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  #header .user-wallet-actions {
    padding-right: 0px;
    margin-right: 0px;
  }
  #header {
    margin-top: 0.3rem;
}
}

#header .user-wallet-actions::after {
  content: "";
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 50%, rgba(255, 255, 255, 0) 100%);
  position: absolute;
  height: 100%;
  width: 1px;
  right: 0;
  top: 0;
}

@media (max-width: 1024px) {
  #header .user-wallet-actions::after {
    display: none;
  }
}

#header .user-wallet-actions .header-wallet {
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    color: #fff;
    width: 140px;
    text-wrap: nowrap;
    background: #434343;
    border: 1px solid #434343;
    border-radius: 8px;
    padding: 4px 10px;
    flex: 2;
    height: 100%;
}

@media (max-width: 1024px) {
  #header .user-wallet-actions .header-wallet {
    max-width: 200px;
    width: 100%;
    gap: 5px;
    font-size: 12px;
  }
}

#header .user-wallet-actions .header-wallet .icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#header .user-wallet-actions .header-wallet .icon img {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  #header .user-wallet-actions .header-wallet .icon img {
    width: 15px;
    height: 15px;
  }
}

#header .user-wallet-actions button {
  flex: 1;
}
/* login popup */
.login-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 16px;
    background: rgba(6, 4, 2, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.login-modal[style*="display: block"] {
    display: flex !important;
}

.royal-login-card {
    width: min(100%, 380px);
    margin: auto;
    padding: 28px 24px 24px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(28, 18, 10, 0.98) 0%, rgba(12, 8, 5, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 236, 190, 0.12),
        0 0 24px rgba(212, 175, 55, 0.15);
    animation: royalPopup 0.28s ease;
}

.royal-login-card::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #9a7428 20%,
        #f2d98a 50%,
        #9a7428 80%,
        transparent
    );
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
}

.royal-login-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 55%);
    pointer-events: none;
}

@keyframes royalPopup {
    from {
        transform: translateY(12px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.royal-login-card .close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: var(--gold-text);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.royal-login-card .close:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(242, 217, 138, 0.7);
    color: #fff4d0;
}

.royal-login-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 22px;
}

.royal-login-logo {
    width: auto;
    height: 52px;
    margin: 0 auto 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.royal-login-header h2 {
    margin: 0;
    color: var(--gold-text);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.royal-login-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.royal-login-field {
    position: relative;
}

.royal-login-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid rgba(154, 116, 40, 0.45);
    background: rgba(0, 0, 0, 0.42);
    color: #fff8e8;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.royal-login-input::placeholder {
    color: rgba(240, 226, 184, 0.55);
}

.royal-login-input:focus {
    border-color: rgba(242, 217, 138, 0.85);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.royal-login-submit {
    width: 100%;
    margin-top: 6px;
    padding: 0.95rem 1rem !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    border-radius: 999px !important;
    border: 1.5px solid #120d08 !important;
    background: #c1985d;
    color: #120d08 !important;
    font-weight: 700;
    font-size: 1.15rem !important;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.4);
}

.royal-login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.royal-login-submit:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

body.login-modal-open {
    overflow: hidden;
}
/* end login popup */