* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #fff;
  background: #070707;
  font-synthesis: none;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, #291c08 0, #0b0906 35%, #050505 75%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.7));
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,7,7,.94);
  border-bottom: 1px solid rgba(255,190,55,.13);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1450px;
  height: 76px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.logo,
.modal-logo,
.footer-logo {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -1.5px;
  color: #fff;
}

.logo span,
.modal-logo span,
.footer-logo span,
.hero h1 span {
  color: #ffbd38;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav button {
  border: 0;
  background: transparent;
  color: #aaa;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav button:hover,
.nav button.active {
  color: #ffbd38;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.login-btn,
.register-btn {
  border-radius: 7px;
  padding: 11px 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
}

.login-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #555;
}

.register-btn {
  border: 1px solid #ffbd38;
  background: #ffbd38;
  color: #111;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ddd;
  font-size: 12px;
}

.user-box button {
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  padding: 8px 12px;
  border-radius: 5px;
}

.hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,190,55,.1);
  background:
    radial-gradient(circle at 70% 45%, rgba(255,185,45,.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04), transparent 20%),
    linear-gradient(110deg, #100d08, #080808 65%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #090806 0%, transparent 65%),
    linear-gradient(0deg, rgba(0,0,0,.65), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1450px;
  width: 100%;
  margin: auto;
  padding: 65px 28px;
}

.hero-small {
  color: #c3a15d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 130px);
  line-height: .9;
  letter-spacing: -7px;
}

.hero p {
  color: #aaa;
  max-width: 450px;
  line-height: 1.7;
  margin: 26px 0;
}

.hero-button {
  border: 0;
  background: #ffbd38;
  color: #111;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 1000;
  font-size: 12px;
  letter-spacing: 1px;
}

.search-section {
  max-width: 1450px;
  margin: auto;
  padding: 28px;
}

.search-box {
  position: relative;
  max-width: 680px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 0 16px 0 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    #0d0d0d;
  border: 1px solid #303030;
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.035);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.search-box:focus-within {
  border-color: #777;
  box-shadow:
    0 12px 36px rgba(0,0,0,.38),
    0 0 0 3px rgba(255,255,255,.045),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.search-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
  transform: rotate(-15deg);
  transition: color .2s ease;
}

.search-box:focus-within .search-icon {
  color: #fff;
}

.search-box input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .15px;
}

.search-box input::placeholder {
  color: #666;
  transition: color .2s ease;
}

.search-box:focus-within input::placeholder {
  color: #777;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  color: #aaa;
  background: #181818;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.search-clear:hover {
  color: #fff;
  background: #242424;
  border-color: #555;
}

.section {
  max-width: 1450px;
  margin: auto;
  padding: 18px 28px 45px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  color: #b28a3d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.section-title h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -.5px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-card {
  min-height: 90px;
  padding: 18px;
  text-align: left;
  border: 1px solid #262626;
  border-radius: 7px;
  background: linear-gradient(135deg, #151515, #0c0c0c);
  color: #fff;
}

.category-card:hover,
.category-card.selected {
  border-color: #b58a3e;
  background: linear-gradient(135deg, #211a0d, #0d0d0d);
}

.category-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.category-card small {
  color: #777;
  font-size: 9px;
  letter-spacing: 1px;
}

.provider-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-btn {
  border: 1px solid #272727;
  border-radius: 5px;
  padding: 10px 15px;
  background: #111;
  color: #999;
  font-size: 11px;
}

.provider-btn:hover,
.provider-btn.selected {
  color: #111;
  background: #ffbd38;
  border-color: #ffbd38;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  cursor: pointer;
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 7px;
  transition: transform .18s ease, border-color .18s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,189,56,.55);
}

.game-image {
  aspect-ratio: 1 / 1.05;
  position: relative;
  overflow: hidden;
  background: #161616;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.no-image {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #777;
  text-align: center;
  font-weight: 900;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .18s ease;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.play-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffbd38;
  color: #111;
  padding-left: 3px;
  font-size: 17px;
}

.game-info {
  padding: 12px;
}

.game-info strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.game-info span {
  display: block;
  color: #666;
  margin-top: 5px;
  font-size: 10px;
}

.view-all,
.game-count {
  color: #a88751;
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.loading,
.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #666;
}

.footer {
  margin-top: 40px;
  padding: 60px 28px;
  text-align: center;
  border-top: 1px solid #181818;
  background: #080808;
}

.footer p {
  color: #666;
  font-size: 12px;
}

.footer-line {
  height: 1px;
  max-width: 500px;
  margin: 30px auto;
  background: #1d1d1d;
}

.footer small {
  color: #444;
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  max-width: 350px;
  padding: 14px 18px;
  border: 1px solid #493b20;
  border-radius: 7px;
  background: #15120d;
  color: #e7c679;
  font-size: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
}

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(420px, 100%);
  padding: 35px;
  border: 1px solid #302719;
  border-radius: 10px;
  background: #0e0e0e;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
}

.modal-logo {
  margin-bottom: 22px;
}

.modal h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.modal input {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #292929;
  border-radius: 5px;
  outline: 0;
  background: #141414;
  color: #fff;
}

.modal input:focus {
  border-color: #8e6a30;
}

.modal-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 5px;
  background: #ffbd38;
  color: #111;
  font-weight: 1000;
  font-size: 11px;
}

.modal p {
  text-align: center;
  color: #666;
  font-size: 11px;
}

.modal p button {
  border: 0;
  background: transparent;
  color: #d9a943;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 26px;
}

@media (max-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .header-inner {
    height: 64px;
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo {
    font-size: 23px;
  }

  .header-actions {
    gap: 5px;
  }

  .login-btn,
  .register-btn {
    padding: 9px 11px;
    font-size: 9px;
  }

  .hero {
    min-height: 370px;
  }

  .hero-content {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 70px;
    letter-spacing: -4px;
  }

  .section,
  .search-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 19px;
  }

  .provider-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .provider-btn {
    flex: 0 0 auto;
  }

  .modal {
    padding: 28px 20px;
  }
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

  html,
  body,
  #app {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
  }

  /* HEADER */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-inner {
    height: 58px;
    padding: 0 12px;
    gap: 8px;
    justify-content: space-between;
  }

  .logo {
    font-size: 21px;
    letter-spacing: -1px;
    flex-shrink: 0;
  }

  .nav {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .login-btn,
  .register-btn {
    padding: 8px 10px;
    min-height: 34px;
    border-radius: 5px;
    font-size: 9px;
    letter-spacing: .4px;
  }

  .user-box {
    gap: 5px;
    font-size: 10px;
  }

  .user-box span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-box button {
    padding: 7px 9px;
    font-size: 9px;
  }

  /* HERO */
  .hero {
    min-height: 350px;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    padding: 48px 20px;
  }

  .hero-small {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 82px);
    line-height: .9;
    letter-spacing: -4px;
  }

  .hero p {
    max-width: 300px;
    margin: 20px 0;
    font-size: 12px;
    line-height: 1.65;
  }

  .hero-button {
    padding: 13px 24px;
    font-size: 10px;
  }

  /* SEARCH */
  .search-section {
    width: 100%;
    padding: 16px 12px;
  }

  .search-box {
    width: 100%;
    max-width: none;
    height: 48px;
    padding: 0 12px 0 14px;
    gap: 10px;
    border-radius: 12px;
  }

  .search-icon {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    font-size: 22px;
  }

  .search-box input {
    font-size: 13px;
  }

  .search-clear {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  /* SECTIONS */
  .section {
    width: 100%;
    padding: 15px 12px 28px;
  }

  .section-title {
    margin-bottom: 14px;
    align-items: center;
  }

  .section-title h2 {
    font-size: 17px;
    margin-top: 4px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .game-count,
  .view-all {
    font-size: 8px;
    white-space: nowrap;
  }

  /* CATEGORY - HORIZONTAL SCROLL */
  .category-row {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-row::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    flex: 0 0 125px;
    min-height: 72px;
    padding: 13px;
    border-radius: 6px;
  }

  .category-card strong {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .category-card small {
    font-size: 8px;
  }

  /* PROVIDERS - HORIZONTAL SCROLL */
  .provider-row {
    display: flex;
    width: 100%;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .provider-row::-webkit-scrollbar {
    display: none;
  }

  .provider-btn {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 5px;
    font-size: 9px;
    white-space: nowrap;
  }

  /* GAMES - 2 COLUMNS */
  .game-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .game-card {
    width: 100%;
    min-width: 0;
    border-radius: 6px;
  }

  .game-card:hover {
    transform: none;
  }

  .game-image {
    width: 100%;
    aspect-ratio: 1 / 1.05;
  }

  .game-info {
    padding: 8px;
  }

  .game-info strong {
    font-size: 10px;
    line-height: 1.3;
  }

  .game-info span {
    margin-top: 3px;
    font-size: 8px;
  }

  /* MOBILE PLAY BUTTON */
  .play-overlay {
    opacity: 0;
  }

  .game-card:active .play-overlay {
    opacity: 1;
  }

  .play-button {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  /* FOOTER */
  .footer {
    margin-top: 20px;
    padding: 40px 15px;
  }

  .footer-logo {
    font-size: 22px;
  }

  .footer p {
    font-size: 10px;
  }

  .footer-line {
    margin: 20px auto;
  }

  .footer small {
    font-size: 8px;
  }

  /* TOAST */
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px 14px;
    font-size: 10px;
  }

  /* MODAL */
  .modal-bg {
    padding: 12px;
  }

  .modal {
    width: 100%;
    max-width: 390px;
    padding: 25px 18px;
    border-radius: 9px;
  }

  .modal-logo {
    font-size: 23px;
    margin-bottom: 18px;
  }

  .modal h2 {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .modal input {
    height: 44px;
    font-size: 12px;
    margin-bottom: 9px;
  }

  .modal-submit {
    height: 44px;
    font-size: 10px;
  }

  .modal p {
    font-size: 10px;
  }

  .modal-close {
    font-size: 24px;
    top: 9px;
    right: 11px;
  }
}


/* VERY SMALL PHONES */
@media (max-width: 380px) {

  .header-inner {
    padding: 0 9px;
  }

  .logo {
    font-size: 19px;
  }

  .login-btn,
  .register-btn {
    padding: 7px 8px;
    font-size: 8px;
  }

  .hero {
    min-height: 320px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .game-grid {
    gap: 7px;
  }

  .game-info {
    padding: 7px;
  }

  .game-info strong {
    font-size: 9px;
  }
}
/* =========================================================
   MOBILE SIDE MENU
   ========================================================= */

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid #292929;
  border-radius: 7px;
  background: #101010;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ffbd38;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  justify-content: flex-start;
}

.mobile-side-menu {
  width: min(320px, 86vw);
  height: 100%;
  padding: 22px 18px;
  background: #0b0b0b;
  border-right: 1px solid #292929;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #242424;
}

.mobile-menu-logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
}

.mobile-menu-logo span {
  color: #ffbd38;
}

.mobile-menu-close {
  width: 38px;
  height: 38px;
  border: 1px solid #292929;
  border-radius: 7px;
  background: #151515;
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}

.mobile-menu-nav button {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #242424;
  border-radius: 8px;
  background: #111;
  color: #ddd;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.mobile-menu-nav button:hover,
.mobile-menu-nav button.active {
  border-color: #ffbd38;
  color: #ffbd38;
  background: #17130a;
}

@media (max-width: 700px) {
  .mobile-menu-btn {
    display: flex;
  }
}

@media (min-width: 701px) {
  .mobile-menu-backdrop {
    display: none !important;
  }
}

/* MOBILE MENU CONTENT */

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}

.mobile-menu-link {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #242424;
  border-radius: 8px;
  background: #111;
  color: #ddd;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.mobile-menu-link:hover {
  border-color: #ffbd38;
  color: #ffbd38;
  background: #17130a;
}

.mobile-menu-link span {
  width: 22px;
  text-align: center;
  color: #ffbd38;
  font-size: 18px;
}

.mobile-menu-divider {
  height: 1px;
  margin: 20px 0;
  background: #242424;
}

.mobile-menu-label {
  margin-bottom: 10px;
  color: #777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.mobile-provider-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mobile-provider-list button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #202020;
  border-radius: 7px;
  background: #0f0f0f;
  color: #aaa;
  text-align: left;
  font-size: 14px;
}

.mobile-provider-list button:hover {
  border-color: #ffbd38;
  color: #ffbd38;
}

.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mobile-login,
.mobile-register {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.mobile-login {
  border: 1px solid #333;
  background: #151515;
  color: #fff;
}

.mobile-register {
  border: 1px solid #ffbd38;
  background: #ffbd38;
  color: #080808;
}

.mobile-login:hover {
  border-color: #ffbd38;
  color: #ffbd38;
}

.mobile-register:hover {
  background: #ffd166;
}

@media (max-width: 700px) {
  .header-inner {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
    order: 3;
  }

  .header-actions {
    order: 2;
  }

  .logo {
    order: 1;
  }
}

/* GAME CATEGORIES COLLAPSIBLE */

.category-toggle {
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.category-toggle h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.category-toggle-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #292929;
  border-radius: 8px;
  background: #111;
  color: #ffbd38;
  font-size: 13px;
  transition: transform .2s ease;
}

.category-toggle-arrow.open {
  transform: rotate(180deg);
}

@media (max-width: 700px) {
  .category-toggle {
    margin-bottom: 12px;
    padding: 10px 0;
  }

  .category-toggle h2 {
    font-size: 21px;
  }

  .category-toggle-arrow {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   GAME CATEGORIES DROPDOWN
   ========================================================= */

.category-dropdown {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-bottom: 24px;
}

.category-dropdown-toggle {
  width: 100%;
  min-height: 62px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border: 1px solid #292929;
  border-radius: 10px;
  background: #111;
  color: #fff;

  text-align: left;
  transition: .2s ease;
}

.category-dropdown-toggle:hover {
  border-color: #ffbd38;
  background: #151515;
}

.category-dropdown-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-dropdown-title .eyebrow {
  font-size: 10px;
  color: #8b8b8b;
  letter-spacing: 1.5px;
}

.category-dropdown-title strong {
  font-size: 16px;
  letter-spacing: .2px;
}

.category-dropdown-arrow {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #292929;
  border-radius: 7px;

  background: #181818;
  color: #ffbd38;
  font-size: 12px;

  transition: transform .2s ease;
}

.category-dropdown-arrow.open {
  transform: rotate(180deg);
}

.category-dropdown-list {
  width: 100%;
  margin-top: 7px;
  padding: 6px;

  display: flex;
  flex-direction: column;
  gap: 4px;

  border: 1px solid #292929;
  border-radius: 10px;
  background: #0d0d0d;

  box-shadow: 0 12px 35px rgba(0,0,0,.45);
}

.category-dropdown-item {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border: 1px solid transparent;
  border-radius: 7px;

  background: transparent;
  color: #ccc;

  text-align: left;
  font-size: 14px;
  font-weight: 700;

  transition: .15s ease;
}

.category-dropdown-item small {
  color: #777;
  font-size: 11px;
  font-weight: 600;
}

.category-dropdown-item:hover {
  border-color: #292929;
  background: #181818;
  color: #ffbd38;
}

.category-dropdown-item:hover small {
  color: #aaa;
}

.category-dropdown-item.selected {
  border-color: #ffbd38;
  background: #17130a;
  color: #ffbd38;
}

.category-dropdown-item.selected small {
  color: #d49b2f;
}

@media (max-width: 700px) {
  .category-dropdown {
    max-width: none;
    margin-bottom: 18px;
  }

  .category-dropdown-toggle {
    min-height: 56px;
    padding: 9px 13px;
  }

  .category-dropdown-title strong {
    font-size: 15px;
  }

  .category-dropdown-list {
    max-height: 55vh;
    overflow-y: auto;
  }
}

/* =========================================================
   GAME CATEGORY LEFT SIDEBAR
   ========================================================= */

.games-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.game-category-sidebar {
  position: sticky;
  top: 90px;
  padding: 16px;
  border: 1px solid #252525;
  border-radius: 12px;
  background: #0d0d0d;
}

.sidebar-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #222;
}

.sidebar-title strong {
  font-size: 15px;
  letter-spacing: .3px;
}

.sidebar-category {
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  border: 1px solid transparent;
  border-radius: 8px;

  background: transparent;
  color: #aaa;

  font-size: 13px;
  font-weight: 700;
  text-align: left;

  transition: .2s ease;
}

.sidebar-category small {
  color: #666;
  font-size: 11px;
}

.sidebar-category:hover {
  background: #17130a;
  color: #ffbd38;
  border-color: #30250f;
}

.sidebar-category:hover small {
  color: #ffbd38;
}

.sidebar-category.selected {
  background: #17130a;
  border-color: #ffbd38;
  color: #ffbd38;
}

.sidebar-category.selected small {
  color: #ffbd38;
}

.games-content {
  min-width: 0;
}

.games-content > .section {
  margin-top: 0;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .games-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-category-sidebar {
    position: relative;
    top: auto;

    display: flex;
    gap: 7px;
    overflow-x: auto;

    padding: 10px;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-category {
    flex: 0 0 auto;
    width: auto;
    min-width: 90px;
    margin: 0;
    justify-content: center;
    gap: 5px;
  }
}

@media (max-width: 600px) {
  .games-layout {
    gap: 10px;
  }

  .game-category-sidebar {
    padding: 8px;
    border-radius: 9px;
  }

  .sidebar-category {
    min-height: 40px;
    min-width: 82px;
    padding: 0 10px;
    font-size: 12px;
  }

  .sidebar-category small {
    font-size: 10px;
  }
}

/* =========================================================
   MOBILE CATEGORY HORIZONTAL SCROLL - FIX
   ========================================================= */

@media (max-width: 900px) {

  .games-layout {
    display: block !important;
    width: 100%;
    min-width: 0;
  }

  .game-category-sidebar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    max-width: 100% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    white-space: nowrap;

    gap: 8px;
    padding: 8px;

    margin: 0 0 14px;

    position: relative !important;
    top: auto !important;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .game-category-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .game-category-sidebar .sidebar-title {
    display: none !important;
  }

  .game-category-sidebar .sidebar-category {
    flex: 0 0 auto !important;

    width: auto !important;
    min-width: 90px !important;
    height: 42px;
    min-height: 42px;

    margin: 0 !important;
    padding: 0 14px;

    display: inline-flex !important;
    flex-direction: row !important;

    white-space: nowrap;
  }

  .games-content {
    width: 100%;
    min-width: 0;
  }

}

/* =========================================================
   MOBILE - LEFT CATEGORY SIDEBAR
   ========================================================= */

@media (max-width: 700px) {

  .games-layout {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100%;
  }

  .game-category-sidebar {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;

    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;

    height: auto;
    padding: 8px 5px !important;
    margin: 0 !important;

    position: sticky !important;
    top: 70px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    border-radius: 9px;
  }

  .game-category-sidebar .sidebar-title {
    display: flex !important;
    padding: 4px 3px 9px;
    margin-bottom: 5px;
  }

  .game-category-sidebar .sidebar-title .eyebrow {
    font-size: 8px;
  }

  .game-category-sidebar .sidebar-title strong {
    font-size: 10px;
    line-height: 1.2;
  }

  .game-category-sidebar .sidebar-category {
    flex: 0 0 auto !important;

    width: 100% !important;
    min-width: 0 !important;
    height: 42px;
    min-height: 42px;

    margin: 0 0 5px !important;
    padding: 0 5px !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: center !important;
    gap: 2px;

    text-align: center;
    white-space: normal;
  }

  .game-category-sidebar .sidebar-category span {
    font-size: 10px;
    line-height: 1.1;
  }

  .game-category-sidebar .sidebar-category small {
    font-size: 8px;
    line-height: 1;
  }

  .games-content {
    min-width: 0 !important;
    width: 100% !important;
  }

  .games-content .section {
    width: 100%;
    min-width: 0;
  }

  .games-content .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

}

/* =========================
   IN-PAGE GAME
========================= */

.game-frame-page {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100%;
  height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
}

.game-frame-header {
  flex: 0 0 56px;
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.game-frame-header strong {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-frame-back {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.game-frame-back:hover {
  background: #333;
}

.game-frame-container {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: #000;
  overflow: hidden;
}

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: #000;
}

@media (max-width: 768px) {
  .game-frame-header {
    flex-basis: 50px;
    height: 50px;
    padding: 0 10px;
    gap: 10px;
  }

  .game-frame-back {
    padding: 8px 10px;
    font-size: 12px;
  }

  .game-frame-header strong {
    font-size: 13px;
  }
}


/* 1-STAKE HEADER LOGO */
.logo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.logo-image {
  display: block;
  width: 150px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-image {
    width: 115px;
    max-height: 48px;
  }
}


.logo-image {
  width: 190px;
  height: 62px;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-image {
    width: 145px;
    height: 52px;
  }
}


/* 1-STAKE TRANSPARENT LOGO */
.logo-image {
  display: block;
  width: 180px;
  height: 62px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .logo-image {
    width: 135px;
    height: 50px;
  }
}


/* FINAL 1-STAKE LOGO */
.logo-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.logo-image {
  display: block;
  width: 165px !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .logo-image {
    width: 125px !important;
    height: 48px !important;
  }
}


/* BIG 1-STAKE HEADER LOGO */
.logo-button {
  width: 220px !important;
  height: 70px !important;
  padding: 0 !important;
}

.logo-image {
  width: 220px !important;
  height: 70px !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .logo-button {
    width: 160px !important;
    height: 58px !important;
  }

  .logo-image {
    width: 160px !important;
    height: 58px !important;
  }
}


/* EXTRA LARGE 1-STAKE LOGO */
.logo-button {
  width: 280px !important;
  height: 82px !important;
  padding: 0 !important;
}

.logo-image {
  width: 280px !important;
  height: 82px !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .logo-button {
    width: 200px !important;
    height: 65px !important;
  }

  .logo-image {
    width: 200px !important;
    height: 65px !important;
  }
}


/* HERO BANNER 1 */
.hero-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner1 {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-banner1 {
    width: 300px;
  }
}


/* FULL WIDTH HERO BANNER */
.hero {
  padding: 0 !important;
  overflow: hidden;
}

.hero-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hero-banner-full {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .hero-banner-full {
    min-height: 180px;
  }
}


/* COMPACT FULL WIDTH HERO BANNER */
.hero {
  padding: 0 !important;
  height: 320px !important;
  overflow: hidden !important;
}

.hero-content {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hero-banner-full {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 768px) {
  .hero {
    height: 180px !important;
  }
}


/* SHOW FULL BANNER IMAGE */
.hero {
  padding: 0 !important;
  height: 320px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-content {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-banner-full {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 768px) {
  .hero {
    height: 180px !important;
  }
}


/* PREMIUM CASINO HERO FRAME */
.hero {
  padding: 18px 24px !important;
  height: auto !important;
  min-height: 0 !important;
  background:
    radial-gradient(circle at center, rgba(255,190,50,.10), transparent 55%),
    #080808 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.hero-content {
  width: 100% !important;
  max-width: 1500px !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-banner-full {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 1500px !important;
  max-height: 380px !important;
  object-fit: contain !important;

  border: 2px solid rgba(255, 190, 50, .75);
  border-radius: 16px;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 8px 35px rgba(0,0,0,.75),
    0 0 35px rgba(255,190,50,.18);

  background: #111;
}

/* GOLD FRAME HIGHLIGHT */
.hero-content::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 10px 12px !important;
  }

  .hero-banner-full {
    border-radius: 10px;
    border-width: 1px;
    max-height: 220px !important;
  }
}


/* =========================================
   1-STAKE PREMIUM HERO
========================================= */

.hero {
  padding: 18px 24px !important;
  height: auto !important;
  min-height: 0 !important;
  background:
    radial-gradient(
      circle at 70% 50%,
      rgba(255, 190, 50, .12),
      transparent 40%
    ),
    linear-gradient(135deg, #050505, #111, #050505) !important;
  overflow: hidden !important;
}

.hero-content {
  position: relative !important;
  width: 100% !important;
  max-width: 1550px !important;
  margin: auto !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, .9fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

/* BANNER */

.hero-banner-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;

  border: 2px solid rgba(255, 190, 50, .75);
  border-radius: 16px;

  background: #080808;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 12px 40px rgba(0,0,0,.8),
    0 0 35px rgba(255,190,50,.16);
}

.hero-banner-full {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 280px;
  max-height: 380px;

  object-fit: contain !important;
  object-position: center !important;

  background: #080808;
}

/* PROMO PANEL */

.hero-promo {
  position: relative;
  overflow: hidden;

  min-height: 280px;

  padding: 28px 26px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1px solid rgba(255,190,50,.5);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255,190,50,.12),
      rgba(255,255,255,.025) 45%,
      rgba(0,0,0,.9)
    );

  box-shadow:
    inset 0 0 35px rgba(255,190,50,.04),
    0 12px 40px rgba(0,0,0,.75);
}

.hero-promo::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background: rgba(255,190,50,.13);
  filter: blur(45px);
}

.hero-promo-glow {
  position: absolute;
  left: -60px;
  bottom: -80px;

  width: 180px;
  height: 180px;

  border-radius: 50%;

  background: rgba(255,190,50,.10);
  filter: blur(50px);
}

.hero-promo-eyebrow {
  position: relative;

  color: #d8a62e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-promo h2 {
  position: relative;

  margin: 8px 0 12px;

  color: #fff;

  font-size: clamp(26px, 2.6vw, 42px);
  line-height: .95;

  font-weight: 1000;
  letter-spacing: -1px;
}

.hero-promo h2 span {
  display: block;

  color: #f5bd3c;

  text-shadow:
    0 0 15px rgba(245,189,60,.25);
}

.hero-promo p {
  position: relative;

  max-width: 330px;

  margin: 0 0 20px;

  color: #aaa;

  font-size: 13px;
  line-height: 1.6;
}

.hero-promo-stats {
  position: relative;

  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-promo-stats div {
  flex: 1;

  padding: 10px;

  border: 1px solid rgba(255,190,50,.2);
  border-radius: 8px;

  background: rgba(0,0,0,.35);

  text-align: center;
}

.hero-promo-stats strong {
  display: block;

  color: #f5bd3c;

  font-size: 18px;
  font-weight: 1000;
}

.hero-promo-stats span {
  display: block;

  margin-top: 3px;

  color: #777;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-promo-badge {
  position: relative;

  align-self: flex-start;

  padding: 7px 12px;

  border: 1px solid rgba(255,190,50,.4);
  border-radius: 999px;

  color: #f5bd3c;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;

  background: rgba(255,190,50,.06);
}

/* MOBILE */

@media (max-width: 900px) {

  .hero {
    padding: 10px 12px !important;
  }

  .hero-content {
    grid-template-columns: 1fr !important;
  }

  .hero-banner-full {
    min-height: 0;
    max-height: none;
    height: auto !important;
    object-fit: contain !important;
  }

  .hero-promo {
    min-height: 220px;
  }

}

@media (max-width: 500px) {

  .hero-promo {
    padding: 22px;
    min-height: 190px;
  }

  .hero-promo h2 {
    font-size: 30px;
  }

  .hero-promo p {
    font-size: 12px;
  }

}


/* =========================================
   1-STAKE BANNER SLIDER
========================================= */

.hero-slider {
  width: 100%;
  padding: 16px 24px;
  background:
    radial-gradient(
      circle at center,
      rgba(255,190,50,.08),
      transparent 60%
    ),
    #070707;
}

.hero-slider-frame {
  position: relative;

  width: 100%;
  max-width: 1550px;

  margin: 0 auto;

  overflow: hidden;

  border: 2px solid rgba(255,190,50,.65);
  border-radius: 16px;

  background: #050505;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 12px 40px rgba(0,0,0,.85),
    0 0 35px rgba(255,190,50,.12);
}

.hero-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 300px;

  background: #050505;
}

.hero-slide img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 420px;

  object-fit: contain;
  object-position: center;
}

/* ARROWS */

.slider-arrow {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  z-index: 5;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255,190,50,.55);
  border-radius: 50%;

  background: rgba(0,0,0,.65);

  color: #f5bd3c;

  font-size: 32px;
  line-height: 1;

  cursor: pointer;

  transition: .2s ease;
}

.slider-arrow:hover {
  background: rgba(255,190,50,.15);

  box-shadow:
    0 0 20px rgba(255,190,50,.25);

  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

/* DOTS */

.slider-dots {
  position: absolute;

  bottom: 12px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  gap: 7px;

  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: rgba(255,255,255,.35);
}

.slider-dot.active {
  width: 24px;

  border-radius: 999px;

  background: #f5bd3c;

  box-shadow:
    0 0 10px rgba(245,189,60,.45);
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-slider {
    padding: 10px 12px;
  }

  .hero-slider-frame {
    border-radius: 10px;
  }

  .hero-slide {
    min-height: 0;
  }

  .hero-slide img {
    max-height: 240px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;

    font-size: 25px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

}


/* =========================================
   PREMIUM CASINO SLIDER BACKGROUND
========================================= */

.hero-slider {
  position: relative;
  overflow: hidden;

  padding: 22px 24px;

  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(255, 190, 50, .16) 0%,
      rgba(255, 190, 50, .06) 28%,
      transparent 65%
    ),
    radial-gradient(
      circle at 10% 50%,
      rgba(255, 190, 50, .08),
      transparent 35%
    ),
    radial-gradient(
      circle at 90% 50%,
      rgba(255, 190, 50, .08),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #030303 0%,
      #0d0d0d 50%,
      #030303 100%
    );
}

/* GOLD LIGHT LINES */

.hero-slider::before,
.hero-slider::after {
  content: "";

  position: absolute;

  left: 50%;
  transform: translateX(-50%);

  width: 75%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,190,50,.7),
    rgba(255,220,120,.95),
    rgba(255,190,50,.7),
    transparent
  );

  box-shadow:
    0 0 12px rgba(255,190,50,.35);
}

.hero-slider::before {
  top: 8px;
}

.hero-slider::after {
  bottom: 8px;
}

/* SLIDER FRAME */

.hero-slider-frame {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1550px;

  margin: 0 auto;

  overflow: hidden;

  border: 1px solid rgba(255,205,80,.7);
  border-radius: 18px;

  background:
    radial-gradient(
      circle at center,
      rgba(255,190,50,.08),
      transparent 65%
    ),
    #050505;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 15px 45px rgba(0,0,0,.9),
    0 0 45px rgba(255,190,50,.12),
    inset 0 0 35px rgba(255,190,50,.035);
}

/* INNER GOLD FRAME */

.hero-slider-frame::before {
  content: "";

  position: absolute;

  inset: 6px;

  z-index: 3;

  pointer-events: none;

  border: 1px solid rgba(255,255,255,.06);
  border-radius: 13px;

  box-shadow:
    inset 0 0 20px rgba(255,190,50,.05);
}

/* BANNER AREA */

.hero-slide {
  position: relative;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255,190,50,.10),
      transparent 70%
    ),
    #050505;
}

/* SUBTLE GOLD GLOW BEHIND IMAGE */

.hero-slide::before {
  content: "";

  position: absolute;

  width: 55%;
  height: 65%;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background: rgba(255,190,50,.07);

  filter: blur(70px);

  pointer-events: none;
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-slider {
    padding: 12px;
  }

  .hero-slider-frame {
    border-radius: 12px;
  }

  .hero-slider::before,
  .hero-slider::after {
    width: 85%;
  }

}


/* =========================================
   BANNER INNER CASINO BACKGROUND
========================================= */

.hero-slide {
  position: relative !important;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 195, 60, .20) 0%,
      rgba(255, 170, 30, .09) 25%,
      transparent 58%
    ),
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 210, 80, .12),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 170, 30, .12),
      transparent 28%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(
      135deg,
      #080808 0%,
      #17120a 45%,
      #080808 100%
    ) !important;
}

/* GOLD LIGHT BEHIND THE LOGO/BANNER */

.hero-slide::before {
  content: "";

  position: absolute;

  width: 55%;
  height: 70%;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background:
    radial-gradient(
      ellipse,
      rgba(255,190,50,.25),
      transparent 68%
    );

  filter: blur(45px);

  pointer-events: none;
}

/* DECORATIVE GOLD CORNERS */

.hero-slide::after {
  content: "✦                         ✦";

  position: absolute;

  left: 0;
  right: 0;
  top: 14px;

  text-align: center;

  color: rgba(255,205,80,.55);

  font-size: 14px;
  letter-spacing: 20px;

  pointer-events: none;
}

/* IMAGE ABOVE BACKGROUND */

.hero-slide img {
  position: relative;
  z-index: 2;

  display: block;

  width: 100%;
  height: auto;

  max-height: 420px;

  object-fit: contain;
  object-position: center;

  background: transparent !important;
}

@media (max-width: 768px) {

  .hero-slide {
    background:
      radial-gradient(
        circle at center,
        rgba(255,190,50,.18),
        transparent 60%
      ),
      repeating-linear-gradient(
        135deg,
        rgba(255,255,255,.025) 0px,
        rgba(255,255,255,.025) 1px,
        transparent 1px,
        transparent 12px
      ),
      linear-gradient(
        135deg,
        #080808,
        #17120a,
        #080808
      ) !important;
  }

}

/* =========================================
   DUPLICATE BANNER BACKGROUND
========================================= */

.hero-slide {
  position: relative !important;
  overflow: hidden !important;

  min-height: 300px;

  background:
    radial-gradient(
      circle at center,
      rgba(255,190,50,.16),
      transparent 65%
    ),
    #070707 !important;
}

/* BACKGROUND COPY */

.hero-banner-bg {
  position: absolute !important;

  z-index: 0 !important;

  left: 50%;
  top: 50%;

  width: 115% !important;
  height: 115% !important;

  transform: translate(-50%, -50%);

  object-fit: cover !important;
  object-position: center !important;

  opacity: .12;

  filter:
    blur(18px)
    saturate(.7);

  pointer-events: none;
}

/* DARKEN BACKGROUND COPY */

.hero-banner-overlay {
  position: absolute;

  z-index: 1;

  inset: 0;

  background:
    radial-gradient(
      ellipse at center,
      transparent 15%,
      rgba(0,0,0,.45) 75%,
      rgba(0,0,0,.75) 100%
    );

  pointer-events: none;
}

/* MAIN BANNER */

.hero-banner-main {
  position: relative !important;

  z-index: 2 !important;

  display: block !important;

  width: 100% !important;
  height: auto !important;

  max-height: 420px;

  object-fit: contain !important;
  object-position: center !important;

  background: transparent !important;
}

/* GOLD GLOW */

.hero-slide::after {
  content: "";

  position: absolute;

  z-index: 1;

  left: 50%;
  top: 50%;

  width: 55%;
  height: 60%;

  transform: translate(-50%, -50%);

  background:
    radial-gradient(
      ellipse,
      rgba(255,190,50,.12),
      transparent 70%
    );

  filter: blur(35px);

  pointer-events: none;
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-slide {
    min-height: 0;
  }

  .hero-banner-bg {
    width: 130% !important;
    height: 130% !important;

    opacity: .10;

    filter: blur(14px);
  }

  .hero-banner-main {
    max-height: 250px;
  }

}


/* =========================================
   FILL ENTIRE BANNER FRAME
========================================= */

.hero-slider-frame {
  position: relative;
  overflow: hidden;

  background: #080808 !important;
}

/* FILLING BACKGROUND */

.hero-slide {
  position: relative !important;
  overflow: hidden !important;

  background: #080808 !important;
}

/* DUPLICATE IMAGE - FILL FRAME */

.hero-banner-bg {
  position: absolute !important;

  z-index: 0 !important;

  inset: -8% !important;

  width: 116% !important;
  height: 116% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: cover !important;
  object-position: center !important;

  opacity: .20 !important;

  filter:
    blur(20px)
    brightness(.65)
    saturate(.65) !important;

  transform: none !important;
}

/* DARK GLASS OVER BACKGROUND */

.hero-banner-overlay {
  position: absolute !important;

  z-index: 1 !important;

  inset: 0 !important;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.60),
      rgba(0,0,0,.20) 25%,
      rgba(0,0,0,.20) 75%,
      rgba(0,0,0,.60)
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,.35),
      transparent 30%,
      transparent 70%,
      rgba(0,0,0,.45)
    ) !important;

  pointer-events: none;
}

/* MAIN IMAGE */

.hero-banner-main {
  position: relative !important;

  z-index: 3 !important;

  display: block !important;

  width: 100% !important;
  height: auto !important;

  max-height: 420px;

  object-fit: contain !important;
  object-position: center !important;

  margin: 0 auto;

  background: transparent !important;
}

/* GOLD GLOW AROUND CENTER */

.hero-slide::after {
  content: "";

  position: absolute;

  z-index: 2;

  left: 50%;
  top: 50%;

  width: 70%;
  height: 70%;

  transform: translate(-50%, -50%);

  background:
    radial-gradient(
      ellipse,
      rgba(255,190,50,.12),
      transparent 70%
    );

  filter: blur(40px);

  pointer-events: none;
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-banner-bg {
    inset: -12% !important;

    width: 124% !important;
    height: 124% !important;

    opacity: .16 !important;

    filter:
      blur(15px)
      brightness(.6)
      saturate(.6) !important;
  }

  .hero-banner-main {
    max-height: 260px;
  }

}


/* =========================================
   FULL BLEED BANNER
========================================= */

.hero-slider {
  padding: 10px 16px !important;
}

.hero-slider-frame {
  width: 100% !important;
  max-width: 1600px !important;

  height: clamp(260px, 32vw, 520px) !important;

  overflow: hidden !important;

  padding: 0 !important;

  border-radius: 16px;
}

.hero-slide {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 0 !important;

  overflow: hidden !important;
}

/* BACKGROUND */

.hero-banner-bg {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: cover !important;
  object-position: center !important;

  opacity: .22 !important;

  filter:
    blur(18px)
    brightness(.55)
    saturate(.7) !important;
}

/* MAIN BANNER — FULL FRAME */

.hero-banner-main {
  position: absolute !important;

  inset: 0 !important;

  z-index: 3 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: cover !important;
  object-position: center !important;

  margin: 0 !important;
}

/* DARK OVERLAY */

.hero-banner-overlay {
  position: absolute !important;

  inset: 0 !important;

  z-index: 4 !important;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,.20),
      transparent 30%,
      transparent 70%,
      rgba(0,0,0,.20)
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,.12),
      transparent 30%,
      transparent 70%,
      rgba(0,0,0,.20)
    );
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-slider {
    padding: 6px 8px !important;
  }

  .hero-slider-frame {
    height: 220px !important;
    border-radius: 10px;
  }

  .hero-banner-main {
    object-fit: cover !important;
  }

}


/* =========================================
   FRAME FOLLOWS BANNER RATIO
========================================= */

.hero-slider {
  padding: 12px 16px !important;
}

.hero-slider-frame {
  position: relative !important;

  width: 100% !important;
  max-width: 1600px !important;

  height: auto !important;

  aspect-ratio: 1536 / 1024 !important;

  margin: 0 auto !important;

  overflow: hidden !important;

  padding: 0 !important;

  border-radius: 16px;
}

/* SLIDE FOLLOWS FRAME */

.hero-slide {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 0 !important;

  overflow: hidden !important;
}

/* BACKGROUND COPY */

.hero-banner-bg {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;

  opacity: .15 !important;

  filter:
    blur(16px)
    brightness(.55) !important;

  z-index: 0 !important;
}

/* MAIN BANNER — SHOW ENTIRE IMAGE */

.hero-banner-main {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center !important;

  z-index: 3 !important;

  margin: 0 !important;
}

/* OVERLAY */

.hero-banner-overlay {
  position: absolute !important;

  inset: 0 !important;

  z-index: 2 !important;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 45%,
      rgba(0,0,0,.25)
    );
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-slider {
    padding: 8px !important;
  }

  .hero-slider-frame {
    aspect-ratio: 1536 / 1024 !important;
    border-radius: 10px;
  }

}


/* =========================================
   COMPACT BANNER - FRAME FITS IMAGE
========================================= */

.hero-slider {
  width: 100%;
  padding: 10px 16px !important;
}

.hero-slider-frame {
  position: relative !important;

  width: 100% !important;
  max-width: 1100px !important;

  margin: 0 auto !important;

  /* banner1 = 1536 x 1024 */
  aspect-ratio: 1536 / 1024 !important;

  height: auto !important;

  padding: 0 !important;

  overflow: hidden !important;

  border-radius: 14px !important;

  border: 1px solid rgba(255, 190, 50, .55);

  background: #080808;

  box-shadow:
    0 8px 30px rgba(0,0,0,.75),
    0 0 25px rgba(255,190,50,.10);
}

.hero-slide {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 0 !important;

  overflow: hidden !important;
}

/* FAINT DUPLICATED BACKGROUND */

.hero-banner-bg {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;

  opacity: .14 !important;

  filter:
    blur(14px)
    brightness(.55) !important;

  z-index: 0 !important;
}

/* MAIN IMAGE */

.hero-banner-main {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center !important;

  z-index: 2 !important;

  margin: 0 !important;

  background: transparent !important;
}

/* SUBTLE DARK/GOLD OVERLAY */

.hero-banner-overlay {
  position: absolute !important;

  inset: 0 !important;

  z-index: 3 !important;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 55%,
      rgba(0,0,0,.22)
    );
}

/* ARROWS SMALL */

.slider-arrow {
  width: 34px !important;
  height: 34px !important;

  font-size: 25px !important;
}

.slider-prev {
  left: 10px !important;
}

.slider-next {
  right: 10px !important;
}

/* MOBILE */

@media (max-width: 768px) {

  .hero-slider {
    padding: 7px 10px !important;
  }

  .hero-slider-frame {
    width: 100% !important;
    max-width: none !important;

    aspect-ratio: 1536 / 1024 !important;

    border-radius: 10px !important;
  }

  .hero-banner-main {
    object-fit: contain !important;
  }

  .slider-arrow {
    width: 30px !important;
    height: 30px !important;

    font-size: 22px !important;
  }

}


/* COMPACT BANNER - SMALL SIZE */

.hero-slider {
  width: 100%;
  padding: 8px 16px !important;
}

.hero-slider-frame {
  position: relative !important;

  width: 100% !important;
  max-width: 760px !important;

  aspect-ratio: 1536 / 1024 !important;

  height: auto !important;

  margin: 0 auto !important;
  padding: 0 !important;

  overflow: hidden !important;

  border-radius: 12px !important;

  background: #080808 !important;

  border: 1px solid rgba(255,190,50,.45);

  box-shadow: 0 6px 22px rgba(0,0,0,.65);
}

.hero-slide {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  min-height: 0 !important;
}

.hero-banner-main {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  margin: 0 !important;

  z-index: 2 !important;
}

.hero-banner-bg {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;

  opacity: .12 !important;

  filter: blur(12px) brightness(.5) !important;

  z-index: 0 !important;
}

@media (max-width: 768px) {

  .hero-slider-frame {
    max-width: 100% !important;
  }

}


/* =========================================
   1-STAKE PREMIUM GAME CARDS
========================================= */

.game-card {
  position: relative !important;

  overflow: hidden !important;

  border-radius: 14px !important;

  border: 1px solid rgba(255, 190, 55, .22) !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.015) 45%,
      rgba(0,0,0,.45)
    ) !important;

  box-shadow:
    0 8px 22px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;

  isolation: isolate;
}

/* GOLD OUTER GLOW */

.game-card::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 3;

  pointer-events: none;

  border-radius: inherit;

  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 90, .06),
    inset 0 -35px 60px rgba(0,0,0,.25);

  transition: box-shadow .22s ease;
}

/* TOP GOLD LIGHT */

.game-card::after {
  content: "";

  position: absolute;

  z-index: 4;

  top: 0;
  left: 12%;

  width: 76%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,215,100,.75),
      transparent
    );

  opacity: .5;

  pointer-events: none;
}

/* IMAGE */

.game-card .game-image {
  position: relative;

  overflow: hidden !important;

  background:
    radial-gradient(
      circle at center,
      #242018,
      #090909 75%
    ) !important;
}

.game-card .game-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;

  transition:
    transform .35s ease,
    filter .35s ease;
}

/* HOVER */

.game-card:hover {
  transform: translateY(-7px) scale(1.015) !important;

  border-color: rgba(255, 195, 60, .72) !important;

  box-shadow:
    0 15px 38px rgba(0,0,0,.65),
    0 0 25px rgba(255,190,45,.14),
    inset 0 0 20px rgba(255,190,45,.04);
}

.game-card:hover::before {
  box-shadow:
    inset 0 0 0 1px rgba(255,215,100,.22),
    inset 0 -35px 60px rgba(0,0,0,.15),
    0 0 18px rgba(255,190,50,.08);
}

.game-card:hover .game-image img {
  transform: scale(1.06);

  filter:
    brightness(1.08)
    saturate(1.08);
}

/* PLAY OVERLAY */

.game-card .play-overlay {
  background:
    radial-gradient(
      circle,
      rgba(255,190,50,.16),
      rgba(0,0,0,.72)
    ) !important;

  backdrop-filter: blur(2px);

  z-index: 5;
}

/* PLAY BUTTON */

.game-card .play-button {
  width: 58px !important;
  height: 58px !important;

  display: grid !important;
  place-items: center !important;

  border-radius: 50% !important;

  border: 2px solid rgba(255,215,100,.8);

  background:
    radial-gradient(
      circle at 35% 30%,
      #ffe49a,
      #d99a22 45%,
      #8b5a08 100%
    ) !important;

  color: #111 !important;

  font-size: 21px !important;

  box-shadow:
    0 0 0 5px rgba(255,195,55,.10),
    0 8px 25px rgba(0,0,0,.65),
    0 0 25px rgba(255,190,40,.35);

  transform: scale(.85);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.game-card:hover .play-button {
  transform: scale(1);

  box-shadow:
    0 0 0 7px rgba(255,195,55,.12),
    0 8px 30px rgba(0,0,0,.7),
    0 0 35px rgba(255,190,40,.5);
}

/* GAME INFO */

.game-card .game-info {
  position: relative;

  z-index: 6;

  background:
    linear-gradient(
      180deg,
      rgba(20,20,20,.96),
      rgba(8,8,8,.98)
    ) !important;

  border-top: 1px solid rgba(255,190,50,.12);

  padding: 11px 12px !important;
}

.game-card .game-info strong {
  color: #fff;

  font-weight: 900;

  letter-spacing: .3px;
}

.game-card .game-info span {
  color: rgba(255,205,90,.62);

  font-weight: 700;

  letter-spacing: .5px;
}

/* MOBILE */

@media (max-width: 768px) {

  .game-card {
    border-radius: 10px !important;
  }

  .game-card:hover {
    transform: none !important;
  }

  .game-card:active {
    transform: scale(.98) !important;
  }

  .game-card .play-button {
    width: 46px !important;
    height: 46px !important;

    font-size: 17px !important;
  }

}


/* 1-STAKE BRAND TEXT */

.logo-button {
  gap: 10px !important;
  white-space: nowrap;
}

.logo-brand-text {
  display: inline-flex;
  align-items: center;

  font-size: 22px;
  line-height: 1;

  font-weight: 1000;

  letter-spacing: 1.5px;

  color: #f5c34b;

  text-shadow:
    0 0 8px rgba(255,190,50,.35),
    0 2px 8px rgba(0,0,0,.8);
}

@media (max-width: 768px) {

  .logo-button {
    gap: 6px !important;
  }

  .logo-brand-text {
    font-size: 16px;
    letter-spacing: 1px;
  }

}


/* =========================================
   1-STAKE PREMIUM WORDMARK
========================================= */

.logo-button {
  position: relative !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;

  min-width: 175px;

  background: transparent !important;

  border: 0 !important;

  text-decoration: none;

  cursor: pointer;
}

.logo-brand-text {
  position: relative;

  display: inline-block;

  font-family:
    "Arial Black",
    "Montserrat",
    Arial,
    sans-serif;

  font-size: 29px;

  font-weight: 1000;

  font-style: italic;

  letter-spacing: 1.5px;

  line-height: 1;

  /* GOLD METALLIC */

  background:
    linear-gradient(
      180deg,
      #fff4bd 0%,
      #ffd966 18%,
      #f5b82e 45%,
      #c9820b 72%,
      #ffe08a 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  /* DEPTH */

  filter:
    drop-shadow(0 2px 0 rgba(80,40,0,.9))
    drop-shadow(0 5px 10px rgba(0,0,0,.8));

  text-shadow:
    0 0 10px rgba(255,190,40,.35);

  transition:
    transform .2s ease,
    filter .2s ease;
}

/* GOLD LIGHT LINE */

.logo-brand-text::after {
  content: "";

  position: absolute;

  left: 8%;
  right: 8%;

  bottom: -6px;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #f6c64a,
      #fff1a8,
      #f6c64a,
      transparent
    );

  box-shadow:
    0 0 8px rgba(255,190,50,.65);

  opacity: .85;
}

/* SUBTLE CASINO GLOW */

.logo-button:hover .logo-brand-text {
  transform: scale(1.04);

  filter:
    drop-shadow(0 2px 0 rgba(80,40,0,.9))
    drop-shadow(0 0 16px rgba(255,190,45,.65))
    drop-shadow(0 6px 14px rgba(0,0,0,.8));
}

/* MOBILE */

@media (max-width: 768px) {

  .logo-button {
    min-width: 125px;
  }

  .logo-brand-text {
    font-size: 21px;

    letter-spacing: 1px;
  }

  .logo-brand-text::after {
    bottom: -4px;
    height: 1px;
  }

}


/* FOOTER - SAME 1-STAKE LOGO STYLE AS HEADER */
.footer-logo-image {
  display: block;
  width: 180px;
  height: 62px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-logo-image {
    width: 135px;
    height: 50px;
  }
}


.deposit-btn {
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.deposit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.deposit-modal {
  position: relative;
  width: min(440px,100%);
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.deposit-bank-card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.deposit-account-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.deposit-modal label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
}

.deposit-modal input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.deposit-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin-top: 12px;
  border-radius: 10px;
}

.deposit-message {
  margin: 12px 0;
  font-weight: 700;
}

.deposit-submit {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}

.deposit-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* =========================================================
   1-STAKE PREMIUM DEPOSIT
   ========================================================= */

.deposit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(255,189,56,.10),
      transparent 35%
    ),
    rgba(0,0,0,.86);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.deposit-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255,189,56,.22);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255,189,56,.10),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #15120d 0%,
      #0c0c0c 55%,
      #080808 100%
    );
  box-shadow:
    0 30px 100px rgba(0,0,0,.8),
    0 0 50px rgba(255,189,56,.06);
  animation: depositModalIn .22s ease-out;
}

@keyframes depositModalIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close */

.deposit-modal .modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #aaa;
  font-size: 23px;
  line-height: 1;
  transition: .2s;
}

.deposit-modal .modal-close:hover {
  color: #fff;
  border-color: rgba(255,189,56,.5);
  background: rgba(255,189,56,.10);
  transform: rotate(90deg);
}

/* Header */

.deposit-modal h2 {
  margin: 0 45px 6px 0;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.8px;
}

.deposit-modal h2::after {
  content: "  DEPOSIT";
  color: #ffbd38;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  vertical-align: middle;
}

/* Bank card */

.deposit-bank-card {
  position: relative;
  margin: 22px 0 24px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid rgba(255,189,56,.24);
  border-radius: 15px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255,189,56,.18),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #211a0d,
      #11100d
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04);
}

.deposit-bank-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -45px;
  bottom: -65px;
  border-radius: 50%;
  background: rgba(255,189,56,.08);
}

.deposit-bank-title {
  margin-bottom: 9px;
  color: #a89a7a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.deposit-bank-card strong {
  display: block;
  margin-bottom: 5px;
  color: #ffbd38;
  font-size: 18px;
  font-weight: 900;
}

.deposit-bank-card div:not(.deposit-bank-title):not(.deposit-account-number) {
  color: #bbb;
  font-size: 12px;
}

.deposit-account-number {
  position: relative;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 2px;
}

/* Form */

.deposit-form {
  display: flex;
  flex-direction: column;
}

.deposit-modal label {
  margin: 0 0 7px;
  color: #b9b9b9;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .4px;
}

.deposit-modal input,
.deposit-modal select {
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #292929;
  border-radius: 9px;
  outline: none;
  background: #111;
  color: #fff;
  font-size: 13px;
  transition: .2s;
}

.deposit-modal input::placeholder {
  color: #666;
}

.deposit-modal input:focus,
.deposit-modal select:focus {
  border-color: rgba(255,189,56,.65);
  background: #14120e;
  box-shadow:
    0 0 0 3px rgba(255,189,56,.07);
}

.deposit-modal select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffbd38 50%),
    linear-gradient(135deg, #ffbd38 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.deposit-modal select option {
  background: #111;
  color: #fff;
}

/* Amount */

.deposit-modal input[type="number"] {
  font-size: 16px;
  font-weight: 800;
}

/* File upload */

.deposit-modal input[type="file"] {
  height: auto;
  min-height: 86px;
  padding: 27px 14px;
  border: 1px dashed rgba(255,189,56,.35);
  background:
    linear-gradient(
      135deg,
      rgba(255,189,56,.045),
      rgba(255,255,255,.015)
    );
  color: #aaa;
  cursor: pointer;
}

.deposit-modal input[type="file"]:hover {
  border-color: rgba(255,189,56,.7);
  background: rgba(255,189,56,.06);
}

.deposit-modal input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 13px;
  border: 1px solid rgba(255,189,56,.35);
  border-radius: 6px;
  background: rgba(255,189,56,.10);
  color: #ffbd38;
  font-weight: 800;
  cursor: pointer;
}

/* Slip preview */

.deposit-preview {
  display: block;
  width: 100%;
  max-height: 300px;
  margin: 0 0 15px;
  padding: 5px;
  box-sizing: border-box;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: #050505;
}

/* Message */

.deposit-message {
  margin: 2px 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,189,56,.16);
  border-radius: 8px;
  background: rgba(255,189,56,.05);
  color: #ffbd38;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

/* Submit */

.deposit-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 9px;
  background:
    linear-gradient(
      135deg,
      #ffd36a,
      #ffbd38 45%,
      #e7a51e
    );
  color: #111;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1.1px;
  box-shadow:
    0 8px 25px rgba(255,189,56,.15);
  transition: .2s;
}

.deposit-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(255,189,56,.25);
  filter: brightness(1.05);
}

.deposit-submit:active:not(:disabled) {
  transform: translateY(0);
}

.deposit-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Mobile */

@media (max-width: 600px) {

  .deposit-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .deposit-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 23px 18px 20px;
    border-radius: 16px;
  }

  .deposit-modal h2 {
    font-size: 24px;
  }

  .deposit-bank-card {
    padding: 17px;
    margin-top: 18px;
  }

  .deposit-account-number {
    font-size: 21px;
  }

  .deposit-modal input,
  .deposit-modal select {
    min-height: 48px;
  }

  .deposit-modal input[type="file"] {
    min-height: 82px;
    padding: 24px 10px;
  }
}



/* =========================================================
   1-STAKE WITHDRAW
========================================================= */

.withdraw-btn {
  border: 1px solid rgba(255,189,56,.65);
  background: rgba(255,189,56,.08);
  color: #ffbd38;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.withdraw-btn:hover {
  background: #ffbd38;
  color: #111;
  box-shadow: 0 0 20px rgba(255,189,56,.18);
}

.withdraw-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255,189,56,.08),
      transparent 35%
    ),
    rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
}

.withdraw-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255,189,56,.22);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255,189,56,.10),
      transparent 35%
    ),
    linear-gradient(145deg, #17130c, #090909 65%);
  color: #fff;
  box-shadow:
    0 30px 100px rgba(0,0,0,.7),
    0 0 40px rgba(255,189,56,.06);
}

.withdraw-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  color: #aaa;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.withdraw-close:hover {
  color: #ffbd38;
  border-color: rgba(255,189,56,.4);
}

.withdraw-heading {
  margin-bottom: 20px;
}

.withdraw-eyebrow {
  color: #b28a3c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.withdraw-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.withdraw-heading p {
  margin: 7px 0 0;
  color: #777;
  font-size: 12px;
}

.withdraw-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
  padding: 17px 18px;
  border: 1px solid rgba(255,189,56,.2);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(255,189,56,.11),
      rgba(255,189,56,.025)
    );
}

.withdraw-balance-card span {
  color: #999;
  font-size: 11px;
  font-weight: 700;
}

.withdraw-balance-card strong {
  color: #ffbd38;
  font-size: 23px;
  font-weight: 900;
}

.withdraw-form label {
  display: block;
  margin: 15px 0 7px;
  color: #ccc;
  font-size: 11px;
  font-weight: 800;
}

.withdraw-form input,
.withdraw-form select {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #292929;
  border-radius: 10px;
  outline: none;
  background: #0d0d0d;
  color: #fff;
  font-size: 13px;
  transition: .2s ease;
}

.withdraw-form input::placeholder {
  color: #555;
}

.withdraw-form input:focus,
.withdraw-form select:focus {
  border-color: rgba(255,189,56,.65);
  box-shadow: 0 0 0 3px rgba(255,189,56,.07);
}

.withdraw-form select {
  cursor: pointer;
}

.withdraw-form select option {
  background: #111;
  color: #fff;
}

.withdraw-amount-wrap {
  position: relative;
}

.withdraw-amount-wrap > span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffbd38;
  font-size: 17px;
  font-weight: 900;
  z-index: 2;
}

.withdraw-amount-wrap input {
  padding-left: 38px;
  font-size: 17px;
  font-weight: 800;
}

.withdraw-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #666;
  font-size: 10px;
}

.withdraw-note span:last-child {
  color: #999;
}

.withdraw-message {
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(255,189,56,.18);
  border-radius: 9px;
  background: rgba(255,189,56,.06);
  color: #ffcf70;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.withdraw-submit {
  width: 100%;
  height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd05b, #ffae18);
  color: #111;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255,189,56,.12);
  transition: .2s ease;
}

.withdraw-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,189,56,.2);
}

.withdraw-submit:active:not(:disabled) {
  transform: translateY(0);
}

.withdraw-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.withdraw-security {
  margin-top: 13px;
  text-align: center;
  color: #555;
  font-size: 10px;
}

@media (max-width: 768px) {

  .withdraw-btn {
    padding: 8px 11px;
    font-size: 11px;
  }

  .withdraw-overlay {
    padding: 12px;
    align-items: center;
  }

  .withdraw-modal {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
    border-radius: 17px;
  }

  .withdraw-heading h2 {
    font-size: 26px;
  }

  .withdraw-balance-card {
    padding: 14px;
  }

  .withdraw-balance-card strong {
    font-size: 19px;
  }

  .withdraw-note {
    flex-direction: column;
  }
}



/* =========================================================
   1-STAKE PREMIUM GOLD CATEGORY ICONS
========================================================= */

.sidebar-category {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.sidebar-category::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: #ffbd38;
  opacity: 0;
  transform: scaleY(.4);
  transition: .22s ease;
}

.sidebar-category:hover {
  transform: translateX(4px);
  border-color: rgba(255,189,56,.38);
  background: rgba(255,189,56,.055);
}

.sidebar-category:hover::before,
.sidebar-category.selected::before {
  opacity: 1;
  transform: scaleY(1);
}

.category-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: grid;
  place-items: center;
  position: relative;

  color: #ffbd38;
  font-size: 22px;
  line-height: 1;

  border: 1px solid rgba(255,189,56,.24);
  border-radius: 10px;

  background:
    radial-gradient(
      circle at center,
      rgba(255,189,56,.13),
      rgba(255,189,56,.025) 68%
    );

  box-shadow:
    inset 0 0 12px rgba(255,189,56,.045),
    0 0 0 rgba(255,189,56,0);

  text-shadow:
    0 0 7px rgba(255,189,56,.75),
    0 0 16px rgba(255,189,56,.28);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* GOLD SHINE */

.category-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 11px;

  background:
    linear-gradient(
      120deg,
      transparent 20%,
      rgba(255,255,255,.5) 48%,
      transparent 72%
    );

  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

.sidebar-category:hover .category-icon::after {
  opacity: 1;
  animation: categoryGoldShine .75s ease;
}

@keyframes categoryGoldShine {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(130%);
  }
}

/* DEFAULT FLOAT */

.sidebar-category:hover .category-icon {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(255,189,56,.72);

  box-shadow:
    0 0 12px rgba(255,189,56,.16),
    0 0 28px rgba(255,189,56,.08);
}

/* ALL */

.category-icon-all {
  animation: categoryFloat 2.4s ease-in-out infinite;
}

@keyframes categoryFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-3px) rotate(4deg);
  }
}

/* SPORT */

.category-icon-sport {
  animation: categoryBall 1.7s ease-in-out infinite;
}

@keyframes categoryBall {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-5px) rotate(8deg);
  }
}

/* SLOT */

.category-icon-slot,
.category-icon-slots {
  animation: categorySlot 2.2s ease-in-out infinite;
}

@keyframes categorySlot {
  0%, 100% {
    transform: translateY(0);
  }

  25% {
    transform: translateY(-2px) rotate(-3deg);
  }

  50% {
    transform: translateY(1px) rotate(3deg);
  }

  75% {
    transform: translateY(-2px) rotate(-2deg);
  }
}

/* CASINO */

.category-icon-casino {
  animation: categoryDice 2s ease-in-out infinite;
}

@keyframes categoryDice {
  0%, 100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-8deg) translateY(-2px);
  }

  50% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(-4deg);
  }
}

/* LIVE CASINO */

.category-icon-livecasino {
  animation: categoryCard 2.1s ease-in-out infinite;
}

@keyframes categoryCard {
  0%, 100% {
    transform: rotateY(0deg) translateY(0);
  }

  50% {
    transform: rotateY(18deg) translateY(-2px);
  }
}

/* TABLE */

.category-icon-table {
  animation: categoryTarget 2s ease-in-out infinite;
}

@keyframes categoryTarget {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* CARD */

.category-icon-card {
  animation: categoryPlayingCard 2.3s ease-in-out infinite;
}

@keyframes categoryPlayingCard {
  0%, 100% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(7deg) translateY(-3px);
  }
}

/* FISH */

.category-icon-fish,
.category-icon-fishing {
  animation: categoryFish 2.2s ease-in-out infinite;
}

@keyframes categoryFish {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }

  25% {
    transform: translateX(3px) scaleX(1.03);
  }

  75% {
    transform: translateX(-3px) scaleX(.97);
  }
}

/* MINIGAME */

.category-icon-minigame,
.category-icon-minigames {
  animation: categoryJoystick 1.8s ease-in-out infinite;
}

@keyframes categoryJoystick {
  0%, 100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-7deg);
  }

  50% {
    transform: rotate(7deg) translateY(-2px);
  }

  75% {
    transform: rotate(-4deg);
  }
}

/* CRASH */

.category-icon-crash {
  animation: categoryCrash 1.6s ease-in-out infinite;
}

@keyframes categoryCrash {
  0%, 100% {
    transform: translateY(2px) rotate(-4deg);
  }

  50% {
    transform: translateY(-4px) rotate(5deg);
    filter: drop-shadow(0 0 6px rgba(255,189,56,.75));
  }
}

/* ARCADE */

.category-icon-arcade {
  animation: categoryArcade 1.9s ease-in-out infinite;
}

@keyframes categoryArcade {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-2px) rotate(-5deg);
  }

  50% {
    transform: translateY(0) rotate(5deg);
  }

  75% {
    transform: translateY(-2px) rotate(-3deg);
  }
}

/* SELECTED */

.sidebar-category.selected .category-icon {
  border-color: rgba(255,189,56,.85);

  background:
    radial-gradient(
      circle at center,
      rgba(255,189,56,.24),
      rgba(255,189,56,.045) 70%
    );

  box-shadow:
    0 0 14px rgba(255,189,56,.18),
    inset 0 0 15px rgba(255,189,56,.07);
}

.sidebar-category.selected .category-name {
  color: #ffbd38;
  text-shadow: 0 0 10px rgba(255,189,56,.18);
}

.category-name {
  position: relative;
  z-index: 2;
  transition: color .2s ease;
}

/* MOBILE */

@media (max-width: 700px) {

  .category-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 19px;
    border-radius: 9px;
  }

  .sidebar-category {
    gap: 10px;
  }

}

/* REDUCE MOTION */

@media (prefers-reduced-motion: reduce) {

  .category-icon {
    animation: none !important;
  }

  .category-icon::after {
    animation: none !important;
  }

}


/* =========================================================
   USER 3-LINE MENU
========================================================= */

.user-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  color: #ddd;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.user-menu-wrap {
  position: relative;
}

.user-menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,189,56,.65);
  border-radius: 8px;
  background: rgba(255,189,56,.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: .2s ease;
}

.user-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #ffbd38;
  transition: .2s ease;
}

.user-menu-toggle:hover {
  background: #ffbd38;
  box-shadow: 0 0 18px rgba(255,189,56,.25);
}

.user-menu-toggle:hover span {
  background: #111;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 7px;
  border: 1px solid rgba(255,189,56,.25);
  border-radius: 10px;
  background: rgba(12,12,12,.98);
  box-shadow:
    0 15px 40px rgba(0,0,0,.55),
    0 0 25px rgba(255,189,56,.08);
  z-index: 1000;
}

.user-dropdown-item {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.user-dropdown-item:hover {
  background: rgba(255,189,56,.12);
  color: #ffbd38;
}

.menu-icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
}

.user-dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(255,255,255,.08);
}

.user-dropdown-item.logout-item:hover {
  background: rgba(255,70,70,.10);
  color: #ff7070;
}

@media (max-width: 700px) {

  .user-box {
    gap: 6px;
  }

  .user-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }

  .user-menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .user-menu-toggle span {
    width: 17px;
  }

  .user-dropdown {
    width: 175px;
    right: 0;
  }
}


/* =========================================================
   MOBILE: USE ONE HAMBURGER ONLY
========================================================= */

@media (max-width: 700px) {

  .header-actions {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    order: 3;
    position: relative;
    z-index: 10001;
  }

}


/* =========================================================
   MOBILE AUTH: ONLY MAIN HAMBURGER
========================================================= */

@media (max-width: 700px) {

  /* ซ่อน Header Actions ทั้งหมดบนมือถือ */
  .header-actions {
    display: none !important;
  }

  /* ซ่อน User Hamburger ตัวที่สอง */
  .user-menu-wrap,
  .user-menu-toggle {
    display: none !important;
  }

  /* เหลือ Hamburger หลักเพียงตัวเดียว */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

}

/* =========================================================
   MOBILE AUTH MENU - FINAL
========================================================= */

.mobile-menu-auth-only {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 25px;
}

.mobile-auth-item {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255,189,56,.22);
  border-radius: 9px;
  background: rgba(255,189,56,.06);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-auth-item:hover,
.mobile-auth-item:active {
  background: rgba(255,189,56,.16);
  border-color: rgba(255,189,56,.7);
}

.mobile-auth-item .menu-icon {
  width: 28px;
  text-align: center;
  font-size: 21px;
}

.mobile-auth-divider {
  height: 1px;
  margin: 6px 0;
  background: rgba(255,255,255,.10);
}

.mobile-auth-item.logout-item {
  color: #ff7777;
  border-color: rgba(255,80,80,.20);
  background: rgba(255,80,80,.05);
}

@media (max-width: 700px) {

  /* Header เหลือ hamburger หลักตัวเดียว */
  .header-actions {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    position: relative;
    z-index: 10001;
  }

  .mobile-menu-backdrop {
    display: flex !important;
    z-index: 99999 !important;
  }

  .mobile-side-menu {
    position: relative;
    z-index: 100000;
  }

}

@media (min-width: 701px) {
  .mobile-menu-backdrop {
    display: none !important;
  }
}


/* =========================================================
   FINAL MOBILE HAMBURGER + AUTH MENU OVERRIDE
========================================================= */

@media (max-width: 700px) {

  /* Header */
  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 5000 !important;
  }

  .header-inner {
    position: relative !important;
    z-index: 5001 !important;
  }

  /* Hamburger ตัวเดียว */
  .mobile-menu-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;

    position: relative !important;
    z-index: 6000 !important;

    border: 1px solid rgba(255,189,56,.65) !important;
    border-radius: 8px !important;
    background: rgba(255,189,56,.08) !important;

    cursor: pointer !important;
    pointer-events: auto !important;
  }

  .mobile-menu-btn span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #ffbd38 !important;
    border-radius: 2px !important;
  }

  /* ซ่อนปุ่ม desktop */
  .header-actions {
    display: none !important;
  }

  /* Overlay */
  .mobile-menu-backdrop {
    display: flex !important;

    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 99999 !important;

    background: rgba(0,0,0,.78) !important;
  }

  /* เมนูด้านซ้าย */
  .mobile-side-menu {
    display: block !important;

    width: min(310px, 84vw) !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 20px 16px !important;

    background: #0b0b0b !important;

    border-right: 1px solid rgba(255,189,56,.25) !important;

    box-shadow:
      10px 0 40px rgba(0,0,0,.65),
      0 0 30px rgba(255,189,56,.06) !important;

    overflow-y: auto !important;

    position: relative !important;
    z-index: 100000 !important;
  }

  /* หัวเมนู */
  .mobile-menu-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding-bottom: 18px !important;

    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }

  .mobile-menu-logo {
    color: #ffbd38 !important;
    font-size: 22px !important;
    font-weight: 1000 !important;
  }

  .mobile-menu-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;

    border: 1px solid rgba(255,189,56,.35) !important;
    border-radius: 7px !important;

    background: rgba(255,189,56,.08) !important;
    color: #ffbd38 !important;

    font-size: 25px !important;
    cursor: pointer !important;
  }

  /* รายการ */
  .mobile-menu-auth-only {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    padding-top: 24px !important;
  }

  .mobile-auth-item {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 54px !important;

    padding: 0 16px !important;

    border: 1px solid rgba(255,189,56,.20) !important;
    border-radius: 9px !important;

    background: rgba(255,189,56,.06) !important;
    color: #fff !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    cursor: pointer !important;
  }

  .mobile-auth-item .menu-icon {
    width: 32px !important;
    margin-right: 8px !important;

    text-align: center !important;
    font-size: 21px !important;
  }

  .mobile-auth-divider {
    width: 100% !important;
    height: 1px !important;

    margin: 5px 0 !important;

    background: rgba(255,255,255,.10) !important;
  }

  .mobile-auth-item.logout-item {
    color: #ff7777 !important;
    border-color: rgba(255,80,80,.22) !important;
    background: rgba(255,80,80,.05) !important;
  }

}

/* =========================================================
   WALLET BALANCE - DESKTOP + MOBILE
========================================================= */

.wallet-balance {
  display: flex;
  align-items: center;
  gap: 6px;

  min-height: 38px;
  padding: 0 12px;

  border: 1px solid rgba(255,189,56,.45);
  border-radius: 8px;

  background: rgba(255,189,56,.07);

  color: #fff;
  white-space: nowrap;
}

.wallet-icon {
  font-size: 17px;
}

.wallet-label {
  color: #999;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.wallet-balance strong {
  color: #ffbd38;
  font-size: 13px;
  font-weight: 1000;
}

/* MOBILE
   Wallet ต้องแสดง ไม่ซ่อน
*/
@media (max-width: 700px) {

  .wallet-balance {
    display: flex !important;

    min-height: 36px !important;
    padding: 0 8px !important;

    gap: 4px !important;
    border-radius: 7px !important;
  }

  .wallet-icon {
    font-size: 15px !important;
  }

  .wallet-label {
    display: none !important;
  }

  .wallet-balance strong {
    font-size: 11px !important;
  }

  .user-name {
    display: none !important;
  }

  /* Header ต้องไม่ซ่อน wallet */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* ถ้า Login แล้ว ให้แสดง user-box */
  .user-box {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

}


/* =========================================================
   MOBILE GAME CATEGORY - FULL WIDTH
   ========================================================= */

@media (max-width: 700px) {

  .games-layout {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
  }

  .game-category-sidebar {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 15px;
    box-sizing: border-box;
    border-radius: 0;
  }

  .game-category-sidebar .sidebar-title {
    width: 100%;
    box-sizing: border-box;
  }

  .game-category-sidebar .sidebar-category {
    width: 100%;
    box-sizing: border-box;
  }

  .games-content {
    width: 100%;
    box-sizing: border-box;
  }

}

@media (max-width: 700px) {
  .game-category-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   MOBILE GAME CATEGORY
   SELECTED FRAME FIT CONTENT
========================================================= */

@media (max-width: 700px) {

  .game-category-sidebar {
    width: 100%;
    box-sizing: border-box;
  }

  .game-category-sidebar .sidebar-category {
    width: fit-content !important;
    max-width: 100% !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px !important;

    padding: 9px 14px !important;
    margin: 3px 4px 3px 0 !important;

    border-radius: 8px !important;

    white-space: nowrap !important;
  }

  .game-category-sidebar .sidebar-category.selected {
    width: fit-content !important;

    border-color: #ffbd38 !important;
    background: rgba(255,189,56,.10) !important;

    color: #ffbd38 !important;

    box-shadow:
      0 0 12px rgba(255,189,56,.10) !important;
  }

}

/* =========================================================
   CATEGORY ICONS - MOBILE
========================================================= */

.category-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 24px !important;
  min-width: 24px !important;

  font-size: 18px !important;
  line-height: 1 !important;
}

@media (max-width: 700px) {

  .game-category-sidebar {
    overflow-x: auto !important;
  }

  .game-category-sidebar .sidebar-category {
    width: fit-content !important;
    min-width: fit-content !important;
    max-width: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;

    padding: 9px 12px !important;
    margin: 3px 4px 3px 0 !important;

    white-space: nowrap !important;
  }

  .game-category-sidebar .sidebar-category.selected {
    width: fit-content !important;
    min-width: fit-content !important;
  }

}



/* =========================================================
   FINAL MOBILE GAME CATEGORY
   ========================================================= */

@media (max-width: 700px) {

  /* ตัวกล่องหมวดหมู่ */
  main .games-layout {
    display: block !important;
    width: 100% !important;
  }

  main .games-layout > .game-category-sidebar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 0 18px !important;
    padding: 0 15px 8px !important;

    box-sizing: border-box !important;

    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;

    overflow: visible !important;
  }

  /* หัวข้อ */
  main .game-category-sidebar > .sidebar-title {
    display: block !important;
    width: 100% !important;

    margin: 0 0 4px !important;
    padding: 0 !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  main .game-category-sidebar > .sidebar-title .eyebrow,
  main .game-category-sidebar > .sidebar-title strong {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* ปุ่มแต่ละหมวด */
  main .game-category-sidebar .sidebar-category {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 11px !important;

    box-sizing: border-box !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;

    white-space: nowrap !important;

    border-radius: 9px !important;

    color: #fff !important;
    background: #111 !important;
  }

  /* ไอคอน */
  main .game-category-sidebar .sidebar-category .category-icon {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 24px !important;
    height: 24px !important;

    flex: 0 0 24px !important;

    align-items: center !important;
    justify-content: center !important;

    font-size: 18px !important;
    line-height: 1 !important;
  }

  /* ชื่อ */
  main .game-category-sidebar .sidebar-category .category-name {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: auto !important;

    font-size: 12px !important;
    line-height: 1 !important;

    white-space: nowrap !important;
  }

  /* กรอบตอนเลือก */
  main .game-category-sidebar .sidebar-category.selected {
    width: auto !important;
    min-width: 0 !important;

    border: 1px solid #ffbd38 !important;

    color: #ffbd38 !important;

    background: rgba(255,189,56,.10) !important;

    box-shadow: 0 0 12px rgba(255,189,56,.12) !important;
  }

  /* ปิด pseudo element เก่าที่อาจทำให้กรอบเพี้ยน */
  main .game-category-sidebar .sidebar-category::before,
  main .game-category-sidebar .sidebar-category::after {
    pointer-events: none !important;
  }

  /* ให้ games-content อยู่ด้านล่าง */
  main .games-layout > .games-content {
    display: block !important;
    width: 100% !important;
  }

}



/* =========================================================
   1-STAKE AUTH BUTTONS — FINAL BRAND STYLE
   ========================================================= */

.header-actions .login-btn,
.header-actions .register-btn {
  position: relative;
  height: 40px;
  min-width: 118px;
  padding: 0 20px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    color .2s ease;
  overflow: hidden;
}

/* LOGIN — เหมือนกรอบของแบรนด์ */
.header-actions .login-btn {
  color: #f2f2f2;
  background: #0d0d0d;
  border: 1px solid #454545;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 4px 14px rgba(0,0,0,.22);
}

.header-actions .login-btn:hover {
  color: #fff;
  border-color: #777;
  background: #151515;
  transform: translateY(-1px);
  box-shadow:
    0 7px 20px rgba(0,0,0,.35),
    0 0 0 2px rgba(255,255,255,.035);
}

/* REGISTER — ปุ่มหลักของ 1-STAKE */
.header-actions .register-btn {
  color: #050505;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #d6d6d6 45%,
    #ffffff 100%
  );
  border: 1px solid #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 5px 18px rgba(255,255,255,.08);
}

.header-actions .register-btn:hover {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #eeeeee 50%,
    #d0d0d0 100%
  );
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px rgba(255,255,255,.12),
    0 0 0 2px rgba(255,255,255,.045);
}

/* subtle brand shine */
.header-actions .register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.55),
    transparent
  );
  transform: skewX(-20deg);
  transition: left .55s ease;
}

.header-actions .register-btn:hover::before {
  left: 140%;
}

/* pressed */
.header-actions .login-btn:active,
.header-actions .register-btn:active {
  transform: translateY(1px) scale(.98);
}

/* MOBILE */
@media (max-width: 768px) {
  .header-actions .login-btn,
  .header-actions .register-btn {
    height: 38px;
    min-width: 105px;
    padding: 0 15px;
    font-size: 11px;
    letter-spacing: .9px;
  }
}


/* =========================================================
   1-STAKE — AUTH BUTTONS MATCH WHITE LOGO
   ========================================================= */

.header-actions .login-btn,
.header-actions .register-btn {
  height: 40px;
  min-width: 118px;
  padding: 0 20px;

  color: #fff !important;
  background: #080808 !important;

  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 6px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1.2px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 4px 15px rgba(0,0,0,.35);

  transition:
    .2s ease;
}

/* สมัครสมาชิก = ขาวเหมือนตัวโลโก้ แต่ยังอยู่บนพื้นดำ */
.header-actions .register-btn {
  color: #fff !important;
  background: #111 !important;
  border-color: #fff !important;
}

.header-actions .login-btn:hover,
.header-actions .register-btn:hover {
  color: #fff !important;
  background: #1a1a1a !important;
  border-color: #fff !important;
  transform: translateY(-1px);

  box-shadow:
    0 7px 22px rgba(0,0,0,.5),
    0 0 12px rgba(255,255,255,.08);
}

.header-actions .login-btn:active,
.header-actions .register-btn:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .header-actions .login-btn,
  .header-actions .register-btn {
    height: 38px;
    min-width: 105px;
    padding: 0 15px;
    font-size: 11px;
  }
}


/* =========================================================
   MODAL 1-STAKE LOGO — GOLD BRAND
   ========================================================= */

.modal .modal-logo {
  color: #ffbd38 !important;
  font-weight: 1000;
  letter-spacing: -1.5px;
  text-shadow:
    0 0 8px rgba(255,189,56,.12);
}


/* =========================================================
   MODAL LOGO — SAME 1-STAKE BRAND STYLE
   ========================================================= */

.modal .modal-logo {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -1.5px;
  color: #fff !important;
}

.modal .modal-logo .modal-logo-number {
  color: #fff !important;
}

.modal .modal-logo .modal-logo-stake {
  color: #ffbd38 !important;
}

@media (max-width: 768px) {
  .modal .modal-logo {
    font-size: 23px;
  }
}


/* =========================================
   MODAL 1-STAKE — SAME PREMIUM LOGO AS HEADER
========================================= */

.modal-logo {
  position: relative !important;
  display: inline-block !important;

  font-family:
    "Arial Black",
    "Montserrat",
    Arial,
    sans-serif !important;

  font-size: 29px !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
  font-style: italic !important;
  letter-spacing: 1.5px !important;

  color: #f5c34b !important;

  background: transparent !important;
  border: 0 !important;

  filter:
    drop-shadow(0 2px 0 rgba(80,40,0,.9))
    drop-shadow(0 5px 10px rgba(0,0,0,.8));

  text-shadow:
    0 0 10px rgba(255,190,40,.35) !important;

  margin-bottom: 22px !important;
}

/* GOLD LIGHT LINE UNDER 1-STAKE */
.modal-logo::after {
  content: "";

  position: absolute;

  left: 8%;
  right: 8%;

  bottom: -6px;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #f6c64a,
      #fff1a8,
      #f6c64a,
      transparent
    );

  box-shadow:
    0 0 8px rgba(255,190,50,.65);

  opacity: .85;
}

/* MOBILE */
@media (max-width: 768px) {
  .modal-logo {
    font-size: 23px !important;
    letter-spacing: 1px !important;
    margin-bottom: 18px !important;
  }

  .modal-logo::after {
    bottom: -4px;
    height: 1px;
  }
}


/* =========================================
   FORCE MODAL 1-STAKE GOLD
========================================= */

.modal .modal-logo,
.modal-logo {
  color: #f5c34b !important;
  -webkit-text-fill-color: #f5c34b !important;

  font-family: "Arial Black", "Montserrat", Arial, sans-serif !important;
  font-size: 29px !important;
  font-weight: 1000 !important;
  font-style: italic !important;
  letter-spacing: 1.5px !important;
  line-height: 1 !important;

  text-shadow:
    0 0 6px rgba(255,190,40,.45),
    0 2px 0 rgba(80,40,0,.9),
    0 5px 10px rgba(0,0,0,.8) !important;

  filter:
    drop-shadow(0 2px 0 rgba(80,40,0,.9))
    drop-shadow(0 5px 10px rgba(0,0,0,.8)) !important;

  position: relative !important;
  display: inline-block !important;
}

/* ขีดทองด้านล่าง */
.modal .modal-logo::after,
.modal-logo::after {
  content: "" !important;
  position: absolute !important;

  left: 8% !important;
  right: 8% !important;
  bottom: -6px !important;

  height: 2px !important;

  background: linear-gradient(
    90deg,
    transparent,
    #f6c64a,
    #fff1a8,
    #f6c64a,
    transparent
  ) !important;

  border-radius: 999px !important;

  box-shadow:
    0 0 8px rgba(255,190,50,.8) !important;
}

@media (max-width: 768px) {
  .modal .modal-logo,
  .modal-logo {
    font-size: 23px !important;
  }
}


/* =========================================
   MOBILE AUTH BUTTONS - FINAL
========================================= */

@media (max-width: 768px) {

  .mobile-menu-auth-only {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px 20px !important;
    overflow: hidden !important;
  }

  .mobile-auth-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    min-height: 48px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 16px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 900 !important;

    overflow: hidden !important;
  }

  .mobile-login {
    border: 1px solid rgba(245,195,75,.55) !important;
    background: rgba(245,195,75,.06) !important;
    color: #f5c34b !important;

    box-shadow:
      inset 0 0 12px rgba(245,195,75,.04),
      0 4px 14px rgba(0,0,0,.35) !important;
  }

  .mobile-register {
    border: 1px solid #f5c34b !important;
    background: linear-gradient(
      180deg,
      #f8d46a 0%,
      #f5c34b 45%,
      #c89222 100%
    ) !important;

    color: #111 !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.45),
      0 5px 16px rgba(245,195,75,.18) !important;
  }

  .mobile-auth-item .menu-icon {
    flex: 0 0 auto !important;
    margin-right: 8px !important;
  }

}

/* =========================================
   MODAL 1-STAKE - SAME GOLD WORDMARK
========================================= */

.modal-logo {
  color: #f5c34b !important;
  font-family:
    "Arial Black",
    "Montserrat",
    Arial,
    sans-serif !important;
  font-weight: 1000 !important;
  font-style: italic !important;
  letter-spacing: 1.5px !important;

  text-shadow:
    0 0 10px rgba(255,190,40,.35),
    0 2px 0 rgba(80,40,0,.9),
    0 5px 10px rgba(0,0,0,.8) !important;

  filter:
    drop-shadow(0 2px 0 rgba(80,40,0,.9))
    drop-shadow(0 5px 10px rgba(0,0,0,.8)) !important;

  position: relative !important;
  display: inline-block !important;
}

.modal-logo::after {
  content: "" !important;
  position: absolute !important;
  left: 8% !important;
  right: 8% !important;
  bottom: -6px !important;
  height: 2px !important;
  border-radius: 999px !important;

  background: linear-gradient(
    90deg,
    transparent,
    #f6c64a,
    #fff1a8,
    #f6c64a,
    transparent
  ) !important;

  box-shadow: 0 0 8px rgba(255,190,50,.65) !important;
}

@media (max-width: 768px) {
  .modal-logo {
    font-size: 23px !important;
  }
}

/* =========================================
   MOBILE HEADER AUTH - FIX OVERFLOW
========================================= */
@media (max-width: 768px) {

  .header-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 10px !important;
    gap: 8px !important;
    box-sizing: border-box;
  }

  .header-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 5px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden;
  }

  .login-btn,
  .register-btn {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 34px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex: 0 1 auto !important;
    box-sizing: border-box !important;
  }

  .logo-button {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 125px !important;
  }

  .logo-brand-text {
    font-size: 19px !important;
    letter-spacing: .8px !important;
  }

}

/* มือถือจอแคบมาก */
@media (max-width: 400px) {

  .header-inner {
    padding: 0 7px !important;
    gap: 5px !important;
  }

  .header-actions {
    gap: 4px !important;
  }

  .login-btn,
  .register-btn {
    height: 31px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
  }

  .logo-brand-text {
    font-size: 17px !important;
    letter-spacing: .5px !important;
  }

}

/* =========================================
   FOOTER IMAGE LOGO
========================================= */

.footer-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto 14px !important;
}

.footer-logo-image {
  display: block !important;
  width: 180px !important;
  max-width: 70vw !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .footer-logo-image {
    width: 145px !important;
    max-width: 65vw !important;
    max-height: 65px !important;
  }
}


/* =========================================
   FOOTER 1-STAKE + BANNER IMAGE
========================================= */

.footer-logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
}

.footer-logo .logo-brand-text {
  display: inline-block !important;
  color: #f5c34b !important;
  font-style: italic !important;
  font-weight: 1000 !important;
}

.footer-banner-image {
  display: block !important;
  width: 220px !important;
  max-width: 75vw !important;
  height: auto !important;
  max-height: 100px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

@media (max-width: 768px) {
  .footer-logo {
    gap: 12px !important;
  }

  .footer-banner-image {
    width: 170px !important;
    max-width: 70vw !important;
    max-height: 75px !important;
  }
}


/* =========================================
   FOOTER IMAGE - LARGE
========================================= */

.footer-banner-image {
  display: block !important;
  width: 420px !important;
  max-width: 85vw !important;
  height: auto !important;
  max-height: 180px !important;
  object-fit: contain !important;
  margin: 4px auto 0 !important;
}

@media (max-width: 768px) {
  .footer-banner-image {
    width: 300px !important;
    max-width: 88vw !important;
    max-height: 140px !important;
  }
}

@media (max-width: 400px) {
  .footer-banner-image {
    width: 270px !important;
    max-width: 90vw !important;
    max-height: 125px !important;
  }
}


/* =========================================
   FOOTER BANNER - EXTRA LARGE
========================================= */

.footer-banner-image {
  display: block !important;
  width: 650px !important;
  max-width: 90vw !important;
  height: auto !important;
  max-height: 280px !important;
  object-fit: contain !important;
  margin: 10px auto 0 !important;
}

@media (max-width: 768px) {
  .footer-banner-image {
    width: 420px !important;
    max-width: 92vw !important;
    max-height: 210px !important;
  }
}

@media (max-width: 400px) {
  .footer-banner-image {
    width: 360px !important;
    max-width: 94vw !important;
    max-height: 180px !important;
  }
}


/* =========================================
   STICKY GAME CATEGORY SIDEBAR
========================================= */

.game-category-sidebar {
  position: sticky !important;
  top: 90px !important;
  align-self: flex-start !important;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ซ่อน scrollbar แต่ยังเลื่อนได้ */
.game-category-sidebar::-webkit-scrollbar {
  width: 4px;
}

.game-category-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.game-category-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 189, 56, .35);
  border-radius: 10px;
}

/* มือถือไม่ต้อง sticky */
@media (max-width: 768px) {
  .game-category-sidebar {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* =========================================
   FINAL STICKY GAME CATEGORY SIDEBAR
========================================= */

.games-layout {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 24px !important;
  overflow: visible !important;
}

.game-category-sidebar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 95px !important;
  align-self: start !important;
  height: fit-content !important;
  max-height: calc(100vh - 115px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 20 !important;
}

/* scrollbar ของหมวดหมู่ */
.game-category-sidebar::-webkit-scrollbar {
  width: 4px;
}

.game-category-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.game-category-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 189, 56, .45);
  border-radius: 20px;
}

/* สำคัญ: ตัว parent ต้องไม่ตัด sticky */
.games-layout,
.games-content {
  overflow: visible !important;
}

/* Desktop */
@media (min-width: 769px) {
  .games-layout {
    position: relative !important;
  }

  .game-category-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 95px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .games-layout {
    display: block !important;
    overflow: visible !important;
  }

  .game-category-sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 20px !important;
  }
}


/* =========================================================
   FINAL FIX — STICKY GAME CATEGORY
   ========================================================= */

/* Desktop: หมวดหมู่ติดตามหน้าจอขณะเลื่อน */
@media (min-width: 769px) {

  .games-layout {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .games-content {
    min-width: 0 !important;
    overflow: visible !important;
  }

  .game-category-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 95px !important;

    align-self: start !important;

    width: 230px !important;
    max-height: calc(100vh - 115px) !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    z-index: 100 !important;
  }
}

/* Mobile: ให้หมวดหมู่เลื่อนตามหน้า ไม่ล็อก sticky */
@media (max-width: 768px) {

  .games-layout {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .game-category-sidebar {
    position: relative !important;
    top: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    z-index: 10 !important;
  }
}







/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 400px) {

  main .games-layout {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  main .games-layout > .game-category-sidebar {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;

    top: 70px !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-category {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;

    height: 54px !important;
    min-height: 54px !important;

    flex-basis: 54px !important;
  }

}


/* =========================================================
   CATEGORY IMAGE ICONS - AUTO
   ========================================================= */

main .games-layout .sidebar-category .category-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

main .games-layout .sidebar-category .category-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* Mobile */
@media (max-width: 768px) {
  main .games-layout > .game-category-sidebar .sidebar-category .category-icon {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-category .category-icon img {
    width: 27px !important;
    height: 27px !important;
    object-fit: contain !important;
  }
}


/* =========================================
   CATEGORY IMAGE ICON — MOBILE FINAL
========================================= */
@media (max-width: 768px) {

  main .games-layout > .game-category-sidebar .category-icon {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 42px !important;
  }

  main .games-layout > .game-category-sidebar
  .category-icon img {
    display: block !important;

    width: 40px !important;
    height: 40px !important;

    max-width: 40px !important;
    max-height: 40px !important;

    object-fit: contain !important;
  }

}


/* =========================================
   CATEGORY ICON — EXTRA LARGE MOBILE
========================================= */

@media (max-width: 768px) {

  main .games-layout > .game-category-sidebar .sidebar-category {
    height: 68px !important;
    min-height: 68px !important;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-category .category-icon {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    flex: 0 0 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-category .category-icon img {
    width: 48px !important;
    height: 48px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    transform: scale(1.35) !important;
    transform-origin: center center !important;

    display: block !important;
  }

}






/* =========================================================
   DESKTOP CATEGORY ICON — LARGE
   ========================================================= */

@media (min-width: 769px) {

  .game-category-sidebar .sidebar-category {
    min-height: 76px !important;
    height: 76px !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    overflow: visible !important;
  }

  .game-category-sidebar .sidebar-category .category-icon {
    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;
    min-height: 58px !important;

    flex: 0 0 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
  }

  .game-category-sidebar .sidebar-category .category-icon img {
    display: block !important;

    width: 58px !important;
    height: 58px !important;

    min-width: 58px !important;
    min-height: 58px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
  }

  .game-category-sidebar .sidebar-category .category-name {
    display: block !important;

    font-size: 13px !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
    overflow: visible !important;

    flex: 1 1 auto !important;
  }

}


/* =========================================================
   FINAL CATEGORY IMAGE FIX
========================================================= */

.category-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: visible !important;
  transform: none !important;
}

.category-icon img {
  display: block !important;

  width: 42px !important;
  height: 42px !important;

  min-width: 42px !important;
  min-height: 42px !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center !important;

  opacity: 1 !important;
  visibility: visible !important;
}

/* ตกปลา */
.category-icon-fish img,
.category-icon-fishing img {
  animation: categoryFishImage 2.2s ease-in-out infinite !important;
}

@keyframes categoryFishImage {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }

  25% {
    transform: translateX(3px) scaleX(1.03);
  }

  50% {
    transform: translateX(0) scaleX(1);
  }

  75% {
    transform: translateX(-3px) scaleX(.97);
  }
}

/* =========================================================
   MOBILE LOGIN - FIX ICON OVERLAP
========================================================= */

@media (max-width: 768px) {

  /* กล่อง Login */
  .login-form,
  .auth-form,
  .modal-content {
    position: relative !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* ช่องกรอกที่มีไอคอน */
  .login-form input,
  .auth-form input,
  .modal input {
    padding-left: 48px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* ไอคอนด้านในช่อง */
  .login-form .input-icon,
  .auth-form .input-icon,
  .modal .input-icon {
    position: absolute !important;
    left: 14px !important;
    right: auto !important;

    width: 22px !important;
    height: 22px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    pointer-events: none !important;
    z-index: 2 !important;
  }

  /* ป้องกัน icon ใหญ่เกิน */
  .login-form .input-icon img,
  .auth-form .input-icon img,
  .modal .input-icon img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
  }

  /* ปุ่มแสดง/ซ่อน password ไม่ให้ทับข้อความ */
  .login-form input[type="password"],
  .auth-form input[type="password"],
  .modal input[type="password"] {
    padding-right: 50px !important;
  }

}

/* =========================================================
   CATEGORY ICONS — FINAL DESKTOP + MOBILE
   ========================================================= */

/* Desktop */
@media (min-width: 769px) {
  .game-category-sidebar .sidebar-category {
    min-height: 76px !important;
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .game-category-sidebar .sidebar-category .category-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    flex: 0 0 64px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
    transform: none !important;
  }

  .game-category-sidebar .sidebar-category .category-icon img {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .game-category-sidebar .sidebar-category .category-name {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    flex: 1 1 auto !important;
  }
}


/* Mobile */
@media (max-width: 768px) {
  .game-category-sidebar .sidebar-category {
    min-height: 72px !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .game-category-sidebar .sidebar-category .category-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    flex: 0 0 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
    transform: none !important;
  }

  .game-category-sidebar .sidebar-category .category-icon img {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .game-category-sidebar .sidebar-category .category-name {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    flex: 1 1 auto !important;
  }
}


/* Fish / Fishing */
.category-icon-fish img,
.category-icon-fishing img {
  animation: categoryFishImage 2.2s ease-in-out infinite !important;
}

@keyframes categoryFishImage {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }

  25% {
    transform: translateX(3px) scaleX(1.03);
  }

  50% {
    transform: translateX(0) scaleX(1);
  }

  75% {
    transform: translateX(-3px) scaleX(.97);
  }
}


/* =========================================================
   MOBILE LOGIN / REGISTER — COMPACT
   ให้พอดีกับพื้นที่เกมบนมือถือ
========================================================= */

@media (max-width: 768px) {

  /* กล่องหลักของ Login/Register */
  .login-modal,
  .register-modal,
  .auth-modal,
  .login-container,
  .register-container,
  .auth-container {
    width: 92% !important;
    max-width: 360px !important;
    max-height: 88vh !important;
    margin: 0 auto !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }

  /* กล่องเนื้อหา modal */
  .login-modal .modal-content,
  .register-modal .modal-content,
  .auth-modal .modal-content,
  .login-container,
  .register-container {
    width: 100% !important;
    max-width: 360px !important;
    padding: 18px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  /* Logo */
  .login-modal img,
  .register-modal img,
  .auth-modal img {
    max-width: 120px !important;
    max-height: 55px !important;
    object-fit: contain !important;
  }

  /* หัวข้อ */
  .login-modal h1,
  .login-modal h2,
  .login-modal h3,
  .register-modal h1,
  .register-modal h2,
  .register-modal h3,
  .auth-modal h1,
  .auth-modal h2,
  .auth-modal h3 {
    font-size: 18px !important;
    margin: 6px 0 12px !important;
  }

  /* ช่องกรอก */
  .login-modal input,
  .register-modal input,
  .auth-modal input {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;
  }

  /* ระยะห่างแต่ละช่อง */
  .login-modal .form-group,
  .register-modal .form-group,
  .auth-modal .form-group {
    margin-bottom: 9px !important;
  }

  /* ปุ่ม Login/Register */
  .login-modal button,
  .register-modal button,
  .auth-modal button {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
    border-radius: 7px !important;
  }

  /* ข้อความ */
  .login-modal label,
  .register-modal label,
  .auth-modal label {
    font-size: 11px !important;
  }

  .login-modal p,
  .register-modal p,
  .auth-modal p {
    font-size: 11px !important;
    margin: 7px 0 !important;
  }

}


/* จอมือถือเล็กมาก */
@media (max-width: 400px) {

  .login-modal,
  .register-modal,
  .auth-modal,
  .login-container,
  .register-container,
  .auth-container {
    width: 94% !important;
    max-width: 330px !important;
    padding: 14px !important;
  }

  .login-modal .modal-content,
  .register-modal .modal-content,
  .auth-modal .modal-content {
    padding: 14px !important;
  }

  .login-modal img,
  .register-modal img,
  .auth-modal img {
    max-width: 100px !important;
    max-height: 45px !important;
  }

  .login-modal h1,
  .login-modal h2,
  .login-modal h3,
  .register-modal h1,
  .register-modal h2,
  .register-modal h3,
  .auth-modal h1,
  .auth-modal h2,
  .auth-modal h3 {
    font-size: 16px !important;
    margin-bottom: 9px !important;
  }

  .login-modal input,
  .register-modal input,
  .auth-modal input {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12px !important;
  }

  .login-modal button,
  .register-modal button,
  .auth-modal button {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12px !important;
  }

}


/* =========================================================
   MOBILE CATEGORY ICON — NEVER COVER LOGIN / REGISTER
========================================================= */

@media (max-width: 768px) {

  .game-category-sidebar {
    position: relative !important;
    z-index: 5 !important;
    overflow: hidden !important;
  }

  .game-category-sidebar .sidebar-category {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
  }

  .game-category-sidebar .sidebar-category .category-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;

    position: relative !important;
    z-index: 1 !important;

    overflow: hidden !important;
    transform: none !important;
  }

  .game-category-sidebar .sidebar-category .category-icon img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;

    max-width: 44px !important;
    max-height: 44px !important;

    object-fit: contain !important;

    position: relative !important;
    z-index: 1 !important;

    transform: none !important;
  }

  /* ปิด animation บนมือถือ
     ป้องกัน icon ขยับไปทับปุ่มด้านบน */
  .game-category-sidebar .category-icon,
  .game-category-sidebar .category-icon img {
    animation: none !important;
  }

  /* ให้ header / login / register อยู่เหนือ sidebar */
  header,
  .header,
  .site-header,
  .header-inner,
  .header-actions,
  .login-btn,
  .register-btn {
    position: relative !important;
    z-index: 100 !important;
  }

}


/* =========================================================
   MOBILE AUTH MODAL — STAY ABOVE GAME CATEGORY ICONS
   ไม่ลดขนาด icon
========================================================= */

@media (max-width: 768px) {

  /* พื้นที่ Login / Register ทั้ง overlay */
  .modal-overlay,
  .auth-overlay,
  .login-overlay,
  .register-overlay,
  .auth-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
  }

  /* กล่อง Login / Register */
  .modal-content,
  .auth-modal,
  .login-modal,
  .register-modal,
  .auth-container,
  .login-container,
  .register-container {
    position: relative !important;
    z-index: 10000 !important;
  }

  /* icon หมวดเกมให้อยู่ layer ด้านหลัง */
  .game-category-sidebar {
    position: relative !important;
    z-index: 1 !important;
  }

  .game-category-sidebar .sidebar-category {
    position: relative !important;
    z-index: 1 !important;
  }

}



/* =========================================================
   CLEAN CATEGORY SYSTEM
   One source of truth
========================================================= */

.game-category-sidebar {
  position: relative;
  z-index: 10;
}

.game-category-sidebar .sidebar-category {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 12px;

  overflow: visible;
}

.game-category-sidebar .sidebar-category .category-icon {
  position: relative;
  z-index: 1;

  flex: 0 0 58px;

  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.game-category-sidebar .sidebar-category .category-icon img {
  display: block;

  width: 58px;
  height: 58px;

  min-width: 58px;
  min-height: 58px;

  max-width: none;
  max-height: none;

  object-fit: contain;
  object-position: center;
}

.game-category-sidebar .sidebar-category .category-name {
  display: block;

  flex: 1 1 auto;

  white-space: nowrap;
  overflow: visible;

  font-size: 13px;
  line-height: 1.2;
}


/* =========================================================
   CATEGORY ICON ANIMATION
========================================================= */

.category-icon-fish img,
.category-icon-fishing img {
  animation: cleanCategoryFish 2.2s ease-in-out infinite;
}

@keyframes cleanCategoryFish {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }

  25% {
    transform: translateX(3px) scaleX(1.03);
  }

  50% {
    transform: translateX(0) scaleX(1);
  }

  75% {
    transform: translateX(-3px) scaleX(.97);
  }
}


/* =========================================================
   MOBILE CATEGORY
========================================================= */

@media (max-width: 768px) {

  main .games-layout > .game-category-sidebar {
    position: relative;
    z-index: 20;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: visible;
  }

  main .games-layout > .game-category-sidebar .sidebar-category {
    position: relative;
    z-index: 21;

    flex: 0 0 auto;

    min-height: 76px;
    height: 76px;

    overflow: visible;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-category .category-icon {

    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    overflow: visible;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-category .category-icon img {

    display: block;

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    max-width: none;
    max-height: none;

    object-fit: contain;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-category .category-name {

    display: block;

    font-size: 12px;
    line-height: 1.2;

    white-space: nowrap;
  }
}


/* =========================================================
   DESKTOP CATEGORY
========================================================= */

@media (min-width: 769px) {

  .game-category-sidebar {
    position: relative;
    z-index: 10;
  }

  .game-category-sidebar .sidebar-category {
    min-height: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    gap: 12px;

    overflow: visible;
  }

  .game-category-sidebar .sidebar-category .category-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    overflow: visible;
  }

  .game-category-sidebar .sidebar-category .category-icon img {
    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    max-width: none;
    max-height: none;

    object-fit: contain;
  }
}


/* =========================================================
   AUTH HEADER
   Login / Register stay above game category
========================================================= */

.header-inner {
  position: relative;
  z-index: 1000;
}

.header-actions {
  position: relative;
  z-index: 1100;
}

.header-actions .login-btn,
.header-actions .register-btn {
  position: relative;
  z-index: 1101;
}


/* =========================================================
   MOBILE AUTH HEADER
   Do NOT reduce button size.
   Only protect the area from category icons.
========================================================= */

@media (max-width: 768px) {

  .header-inner {
    position: relative;
    z-index: 1000;
  }

  .header-actions {
    position: relative;
    z-index: 1100;

    isolation: isolate;
  }

  .header-actions .login-btn,
  .header-actions .register-btn {
    position: relative;
    z-index: 1101;
  }

  /*
   * Category must never paint over Login/Register.
   */
  .game-category-sidebar {
    z-index: 20;
  }
}


/* =========================================================
   AUTH MODAL
   Always above everything
========================================================= */

.modal-bg,
.modal-overlay,
.auth-overlay,
.login-overlay,
.register-overlay,
.auth-modal-overlay {
  position: fixed !important;
  z-index: 99990 !important;
}

.modal,
.modal-content,
.auth-modal,
.login-modal,
.register-modal,
.auth-container,
.login-container,
.register-container {
  position: relative;
  z-index: 100000 !important;
}


/* =========================================================
   MOBILE AUTH MODAL
   Keep original size
========================================================= */

@media (max-width: 768px) {

  .modal-bg,
  .modal-overlay,
  .auth-overlay,
  .login-overlay,
  .register-overlay,
  .auth-modal-overlay {
    z-index: 99990 !important;
  }

  .modal,
  .modal-content,
  .auth-modal,
  .login-modal,
  .register-modal,
  .auth-container,
  .login-container,
  .register-container {
    position: relative !important;
    z-index: 100000 !important;
  }

  /*
   * Input icons stay inside their own input.
   */
  .modal input {
    box-sizing: border-box;
  }
}


/* =========================================================
   FINAL STACKING ORDER
========================================================= */

.game-category-sidebar {
  z-index: 20;
}

.header-inner {
  z-index: 1000;
}

.header-actions {
  z-index: 1100;
}

.modal-bg,
.modal-overlay,
.auth-overlay,
.login-overlay,
.register-overlay,
.auth-modal-overlay {
  z-index: 99990 !important;
}

.modal,
.modal-content,
.auth-modal,
.login-modal,
.register-modal,
.auth-container,
.login-container,
.register-container {
  z-index: 100000 !important;
}

/* =========================================================
   FINAL - MINIGAME CATEGORY ICON
   ใช้รูป SPRIBE Mi@2x.png เฉพาะไอคอนหมวด "มินิเกม"
========================================================= */

main .games-layout > .game-category-sidebar
.sidebar-category.category-minigame .category-icon,
main .games-layout > .game-category-sidebar
.sidebar-category.category-minigames .category-icon {
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

main .games-layout > .game-category-sidebar
.sidebar-category.category-minigame .category-icon img,
main .games-layout > .game-category-sidebar
.sidebar-category.category-minigames .category-icon img {
  content: url('/assets/category/minigame.png') !important;

  width: 42px !important;
  height: 42px !important;

  min-width: 42px !important;
  min-height: 42px !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;
  object-position: center !important;

  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  transform: none !important;
}

@media (max-width: 768px) {

  main .games-layout > .game-category-sidebar
  .sidebar-category.category-minigame .category-icon img,
  main .games-layout > .game-category-sidebar
  .sidebar-category.category-minigames .category-icon img {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
  }

}


/* DEPOSIT / WITHDRAW MENU ICONS */
.user-dropdown .menu-icon {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}


.user-dropdown .menu-icon {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.user-dropdown-item {
  min-height: 60px !important;
  gap: 12px !important;
}


/* LOGOUT ICON */
.user-dropdown .logout-item .menu-icon,
.mobile-auth-item.logout-item .menu-icon {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}


.user-dropdown .logout-item .menu-icon,
.mobile-auth-item.logout-item .menu-icon {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}


.user-dropdown .menu-icon,
.mobile-auth-item .menu-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ALIGN USER MENU ICONS */
.user-dropdown .user-dropdown-item,
.mobile-auth-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.user-dropdown .user-dropdown-item .menu-icon,
.mobile-auth-item .menu-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* TEXT STARTS AT EXACTLY THE SAME POSITION */
.user-dropdown .user-dropdown-item > span:last-child,
.mobile-auth-item > span:last-child {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 30px !important;
}


/* FINAL USER MENU ALIGNMENT */
.user-dropdown .user-dropdown-item {
  display: grid !important;
  grid-template-columns: 36px 1fr !important;
  align-items: center !important;
  column-gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.user-dropdown .user-dropdown-item .menu-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  display: block !important;
  justify-self: center !important;
  margin: 0 !important;
}

.user-dropdown .user-dropdown-item > span:last-child {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 30px !important;
  text-align: left !important;
  white-space: nowrap !important;
}

/* LOGOUT SAME ROW STRUCTURE */
.user-dropdown .logout-item {
  display: grid !important;
  grid-template-columns: 36px 1fr !important;
  align-items: center !important;
}

.user-dropdown .logout-item .menu-icon {
  grid-column: 1 !important;
}

.user-dropdown .logout-item > span:last-child {
  grid-column: 2 !important;
}

/* MOBILE */
.mobile-auth-item {
  display: grid !important;
  grid-template-columns: 36px 1fr !important;
  align-items: center !important;
  column-gap: 10px !important;
  text-align: left !important;
}

.mobile-auth-item .menu-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  justify-self: center !important;
  margin: 0 !important;
}

.mobile-auth-item > span:last-child {
  grid-column: 2 !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* USER MENU ICONS - ALIGNMENT */
.user-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.user-dropdown-item .menu-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 32px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.user-dropdown-item span:not(.menu-icon) {
  display: flex !important;
  align-items: center !important;
  line-height: 32px !important;
  margin: 0 !important;
}


/* SEARCH + PROVIDER */
.search-section {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.search-section .search-box {
  flex: 1;
  min-width: 0;
}

.provider-select-box {
  position: relative;
  width: 230px;
  min-width: 230px;
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 193, 7, .28);
  border-radius: 12px;
  background: rgba(20, 20, 20, .96);
  box-shadow:
    0 4px 18px rgba(0,0,0,.25),
    inset 0 0 12px rgba(255,190,45,.03);
  overflow: hidden;
}

.provider-icon {
  margin-left: 14px;
  font-size: 19px;
  flex-shrink: 0;
}

.provider-select-box select {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}

.provider-select-box select option {
  background: #171717;
  color: #fff;
}

.provider-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: #f5c451;
  font-size: 18px;
}

.provider-select-box:focus-within {
  border-color: rgba(255, 193, 7, .75);
  box-shadow:
    0 0 0 2px rgba(255,193,7,.08),
    0 6px 20px rgba(0,0,0,.3);
}

@media (max-width: 700px) {
  .search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-select-box {
    width: 100%;
    min-width: 0;
  }
}

/* Provider search */
.search-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-search-box {
  position: relative;
  flex: 0 0 240px;
}

.provider-search-box select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #151515;
  color: #fff;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.provider-search-box::after {
  content: '⌄';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-55%);
  color: #aaa;
  font-size: 18px;
  pointer-events: none;
}

.provider-search-box select:hover {
  border-color: rgba(255,255,255,.25);
}

.provider-search-box select:focus {
  border-color: rgba(255,255,255,.4);
}

.provider-search-box select option {
  background: #151515;
  color: #fff;
}

/* Desktop: game search takes remaining width */
.search-section .search-box {
  flex: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .search-section {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .provider-search-box {
    flex: none;
    width: 100%;
  }

  .provider-search-box select {
    height: 46px;
  }
}


/* =========================================
   MOBILE 1-STAKE LOGO SIZE
========================================= */

@media (max-width: 768px) {
  .logo-brand-text {
    font-size: 26px !important;
    letter-spacing: 1.5px !important;
    line-height: 1 !important;
  }

  .logo-button {
    gap: 8px !important;
  }
}

@media (max-width: 420px) {
  .logo-brand-text {
    font-size: 24px !important;
  }
}


.game-frame-wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.game-frame-wallet-icon {
  font-size: 18px;
}

.game-frame-wallet-label {
  font-size: 13px;
  opacity: 0.9;
}

.game-frame-wallet-balance {
  font-size: 15px;
}

@media (max-width: 600px) {
  .game-frame-wallet {
    padding: 6px 9px;
    gap: 4px;
  }

  .game-frame-wallet-label {
    display: none;
  }

  .game-frame-wallet-balance {
    font-size: 13px;
  }
}

/* ================= PROFILE MODAL ================= */

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.profile-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.profile-header {
  text-align: center;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 32px;
}

.profile-header h2 {
  margin: 0;
  font-size: 24px;
}

.profile-header p {
  margin: 6px 0 0;
  opacity: 0.65;
  font-size: 14px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.profile-info-row span {
  opacity: 0.75;
}

.profile-info-row strong {
  text-align: right;
  word-break: break-word;
}

.profile-info-row.wallet-row strong {
  font-size: 18px;
}

.profile-close-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.profile-menu-icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .profile-modal {
    padding: 22px;
  }

  .profile-info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .profile-info-row strong {
    text-align: left;
  }
}

/* ================= FORGOT PASSWORD ================= */

.forgot-password-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.forgot-password-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.forgot-password-header {
  text-align: center;
  margin-bottom: 24px;
}

.forgot-password-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.forgot-password-header h2 {
  margin: 0;
  font-size: 24px;
}

.forgot-password-header p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
}

.forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forgot-password-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: inherit;
  font-size: 15px;
}

.forgot-password-message {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  text-align: center;
  font-size: 13px;
}

.forgot-back-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  opacity: .8;
  color: inherit;
}

.forgot-back-btn:hover {
  opacity: 1;
}


.register-field-error {
  margin: -7px 0 2px;
  padding-left: 4px;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}



/* ================= REFERRAL ================= */

.referral-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(7px);
}

.referral-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .5);
}

.referral-header {
  text-align: center;
  margin-bottom: 24px;
}

.referral-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.referral-header h2 {
  margin: 0;
  font-size: 26px;
}

.referral-header p {
  margin: 8px 0 0;
  opacity: .7;
  font-size: 14px;
}

.referral-code-box,
.referral-link-box {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.referral-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  opacity: .65;
}

.referral-code-box strong {
  font-size: 22px;
  letter-spacing: 2px;
}

.referral-link-row {
  display: flex;
  gap: 8px;
}

.referral-link-row input {
  min-width: 0;
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: rgba(0,0,0,.3);
  color: inherit;
  font-size: 12px;
}

.referral-copy-btn {
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}

.referral-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.referral-total strong {
  font-size: 20px;
}

.referral-members-title {
  margin-bottom: 10px;
  font-weight: 700;
}

.referral-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin-bottom: 8px;
  border-radius: 13px;
  background: rgba(255,255,255,.05);
}

.referral-member-avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.referral-member-info {
  flex: 1;
  min-width: 0;
}

.referral-member-info strong,
.referral-member-info span {
  display: block;
}

.referral-member-info span {
  margin-top: 3px;
  font-size: 11px;
  opacity: .55;
}

.referral-member-status {
  font-size: 11px;
  white-space: nowrap;
}

.referral-empty,
.referral-loading,
.referral-message {
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  opacity: .7;
}

@media (max-width: 600px) {
  .referral-modal {
    padding: 22px 16px;
  }

  .referral-link-row {
    flex-direction: column;
  }

  .referral-copy-btn {
    min-height: 42px;
  }
}

/* =========================================================
   PROMOTIONS MODAL
========================================================= */

.promotion-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.promotion-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(780px, 90vh);
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(145deg, #151515, #080808);
  border: 1px solid rgba(255, 193, 7, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(255, 193, 7, 0.12);
  color: #fff;
  animation: promotionModalIn 0.22s ease-out;
}

@keyframes promotionModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.promotion-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.promotion-modal .modal-close:hover {
  background: rgba(255, 193, 7, 0.18);
}

.promotion-header {
  text-align: center;
  margin-bottom: 25px;
}

.promotion-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.25);
  font-size: 34px;
}

.promotion-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.promotion-header p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.promotion-loading,
.promotion-message,
.promotion-empty {
  padding: 35px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.promotion-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.promotion-card {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 193, 7, 0.12),
      rgba(255, 255, 255, 0.035)
    );
  border: 1px solid rgba(255, 193, 7, 0.22);
}

.promotion-card-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.promotion-badge {
  flex: 0 0 auto;
  min-width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #111;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.promotion-card-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.promotion-card-title span {
  display: block;
  margin-top: 5px;
  color: #ffc107;
  font-size: 13px;
  font-weight: 700;
}

.promotion-description {
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-size: 14px;
}

.promotion-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.promotion-detail {
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.promotion-detail span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.promotion-detail strong {
  color: #fff;
  font-size: 16px;
}

.promotion-claim-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.promotion-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.22);
}

.promotion-claim-btn:disabled,
.promotion-claim-btn.claimed {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 600px) {
  .promotion-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .promotion-modal {
    width: 100%;
    max-height: 88vh;
    padding: 22px 16px;
    border-radius: 22px 22px 14px 14px;
  }

  .promotion-header {
    margin-bottom: 18px;
  }

  .promotion-icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .promotion-header h2 {
    font-size: 23px;
  }

  .promotion-card {
    padding: 17px;
  }

  .promotion-badge {
    min-width: 62px;
    width: 62px;
    height: 62px;
    border-radius: 15px;
    font-size: 19px;
  }

  .promotion-card-title h3 {
    font-size: 17px;
  }

  .promotion-details {
    gap: 8px;
  }
}

/* =========================================================
   PROMOTION CLAIMED INFO
========================================================= */

.promotion-claimed-info {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.promotion-claimed-status {
  margin-bottom: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #ffd54a;
}

.promotion-claimed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.promotion-claimed-grid > div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.promotion-claimed-grid span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.promotion-claimed-grid strong {
  display: block;
  font-size: 16px;
  color: #fff;
}

@media (max-width: 600px) {
  .promotion-overlay {
    padding: 12px;
  }

  .promotion-modal {
    width: 100%;
    max-height: 92vh;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .promotion-claimed-grid {
    grid-template-columns: 1fr;
  }
}

.withdraw-locked-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.06);
  color: #fff;
  font-weight: 600;
}

.withdraw-locked-badge {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

.withdraw-name-note {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* =========================================================
   THAI GAME SUB-CATEGORIES
========================================================= */

.thai-subcategory-wrap {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(255, 193, 7, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 193, 7, 0.08),
      rgba(255, 255, 255, 0.025)
    );
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.12);
}

.thai-subcategory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.thai-subcategory-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.thai-subcategory-subtitle {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.58;
}

.thai-subcategory-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 6px;
  scrollbar-width: thin;
}

.thai-subcategory-item {
  flex: 0 0 auto;
  min-width: 105px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.thai-subcategory-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 193, 7, 0.38);
}

.thai-subcategory-item.selected {
  border-color: rgba(255, 193, 7, 0.72);
  background: rgba(255, 193, 7, 0.12);
  box-shadow:
    0 7px 22px rgba(255, 193, 7, 0.10);
}

.thai-subcategory-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.10);
  font-size: 17px;
}

.thai-subcategory-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  white-space: nowrap;
}

.thai-subcategory-text strong {
  font-size: 13px;
  font-weight: 700;
}

.thai-subcategory-text small {
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.52;
}

@media (max-width: 700px) {
  .thai-subcategory-wrap {
    margin-bottom: 15px;
    padding: 13px;
    border-radius: 15px;
  }

  .thai-subcategory-list {
    gap: 8px;
  }

  .thai-subcategory-item {
    min-width: 96px;
    padding: 8px 10px;
  }
}


/* =========================================================
   THAI GAME SUB-CATEGORIES
========================================================= */

.thai-subcategory-wrap {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(255, 193, 7, 0.18);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.thai-subcategory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.thai-subcategory-title {
  font-size: 18px;
  font-weight: 800;
}

.thai-subcategory-subtitle {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.58;
}

.thai-subcategory-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 6px;
}

.thai-subcategory-item {
  flex: 0 0 auto;
  min-width: 105px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.thai-subcategory-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 193, 7, 0.38);
}

.thai-subcategory-item.selected {
  border-color: rgba(255, 193, 7, 0.72);
  background: rgba(255, 193, 7, 0.12);
  box-shadow: 0 7px 22px rgba(255, 193, 7, 0.10);
}

.thai-subcategory-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.10);
  font-size: 17px;
}

.thai-subcategory-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  white-space: nowrap;
}

.thai-subcategory-text strong {
  font-size: 13px;
  font-weight: 700;
}

.thai-subcategory-text small {
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.52;
}

@media (max-width: 700px) {
  .thai-subcategory-wrap {
    margin-bottom: 15px;
    padding: 13px;
    border-radius: 15px;
  }

  .thai-subcategory-list {
    gap: 8px;
  }

  .thai-subcategory-item {
    min-width: 96px;
    padding: 8px 10px;
  }
}


/* =========================================================
   THAI SUB CATEGORY BAR
========================================================= */

.thai-subcategory-wrap {
  width: 100%;
  margin: 0 0 22px;
  padding: 18px;
  border-radius: 18px;

  border: 1px solid rgba(255, 193, 7, .18);

  background:
    linear-gradient(
      135deg,
      rgba(255, 193, 7, .10),
      rgba(255, 255, 255, .025)
    );

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.thai-subcategory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.thai-subcategory-title {
  font-size: 20px;
  font-weight: 800;
}

.thai-subcategory-subtitle {
  margin-top: 4px;
  font-size: 12px;
  opacity: .6;
}

.thai-subcategory-total {
  padding: 7px 13px;
  border-radius: 999px;

  color: #ffd45a;

  background: rgba(255,193,7,.10);
  border: 1px solid rgba(255,193,7,.25);

  font-size: 12px;
  font-weight: 700;
}

.thai-subcategory-list {
  display: flex;
  gap: 10px;

  overflow-x: auto;

  padding: 2px 2px 5px;

  scrollbar-width: thin;
}

.thai-subcategory-item {
  flex: 0 0 auto;

  min-width: 115px;
  min-height: 74px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 13px;

  border-radius: 14px;

  border: 1px solid rgba(255,255,255,.07);

  background: rgba(255,255,255,.035);

  color: inherit;

  cursor: pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.thai-subcategory-item:hover {
  transform: translateY(-2px);

  border-color: rgba(255,193,7,.35);

  background: rgba(255,193,7,.07);
}

.thai-subcategory-item.selected {
  border-color: rgba(255,193,7,.65);

  background:
    linear-gradient(
      135deg,
      rgba(255,193,7,.18),
      rgba(255,193,7,.06)
    );

  box-shadow:
    0 7px 20px rgba(255,193,7,.08),
    inset 0 0 0 1px rgba(255,193,7,.08);
}

.thai-subcategory-icon {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: rgba(255,255,255,.055);

  font-size: 18px;
}

.thai-subcategory-text {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 3px;
}

.thai-subcategory-text strong {
  white-space: nowrap;

  font-size: 12px;
  font-weight: 750;
}

.thai-subcategory-text small {
  white-space: nowrap;

  font-size: 10px;
  opacity: .55;
}

@media (max-width: 768px) {

  .thai-subcategory-wrap {
    padding: 13px;
    border-radius: 15px;
  }

  .thai-subcategory-title {
    font-size: 17px;
  }

  .thai-subcategory-total {
    display: none;
  }

  .thai-subcategory-item {
    min-width: 104px;
    min-height: 68px;
    padding: 9px 11px;
  }

}

/* =========================================================
   MOBILE CATEGORY — FINAL SINGLE LAYOUT
   Sidebar left / content right
   ========================================================= */

@media (max-width: 700px) {

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

  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* MAIN LAYOUT */
  main .games-layout {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;

    column-gap: 8px !important;
    row-gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* =========================================
     LEFT CATEGORY
     ========================================= */

  main .games-layout > .game-category-sidebar {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    height: auto !important;
    max-height: calc(100vh - 90px) !important;

    margin: 0 !important;
    padding: 6px 3px !important;

    box-sizing: border-box !important;

    position: sticky !important;
    top: 70px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    z-index: 20 !important;

    background: #0d0d0d !important;
  }

  /* TITLE */
  main .games-layout > .game-category-sidebar .sidebar-title {
    display: flex !important;
    flex-direction: column !important;

    width: 58px !important;
    max-width: 58px !important;

    margin: 0 0 7px 0 !important;
    padding: 5px 2px 8px !important;

    box-sizing: border-box !important;

    text-align: center !important;

    border-bottom: 1px solid #252525 !important;

    position: relative !important;
    z-index: 30 !important;

    background: #0d0d0d !important;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-title .eyebrow {
    display: block !important;

    width: 100% !important;

    font-size: 7px !important;
    line-height: 1.2 !important;

    white-space: nowrap !important;
    overflow: visible !important;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-title strong {
    display: block !important;

    width: 100% !important;

    margin-top: 2px !important;

    font-size: 8px !important;
    line-height: 1.2 !important;

    white-space: normal !important;
    word-break: keep-all !important;
  }

  /* CATEGORY BUTTON */
  main .games-layout > .game-category-sidebar
  .sidebar-category {

    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;

    min-height: 58px !important;

    margin: 0 0 6px 0 !important;
    padding: 5px 2px !important;

    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 3px !important;

    position: relative !important;
    z-index: 21 !important;
  }

  /* ICON */
  main .games-layout > .game-category-sidebar
  .category-icon {

    width: 34px !important;
    height: 34px !important;

    min-width: 34px !important;
    min-height: 34px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex-shrink: 0 !important;
  }

  main .games-layout > .game-category-sidebar
  .category-icon img {

    width: 32px !important;
    height: 32px !important;

    max-width: 32px !important;
    max-height: 32px !important;

    object-fit: contain !important;
  }

  /* NAME */
  main .games-layout > .game-category-sidebar
  .category-name {

    width: 100% !important;
    max-width: 100% !important;

    font-size: 8px !important;
    line-height: 1.15 !important;

    text-align: center !important;

    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* =========================================
     RIGHT — THAI SUB CATEGORY
     ========================================= */

  main .games-layout > .thai-subcategory-wrap {

    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    position: relative !important;
    z-index: 1 !important;
  }

  /* =========================================
     RIGHT — GAMES
     ========================================= */

  main .games-layout > .games-content {

    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    position: relative !important;
    z-index: 1 !important;

    overflow: hidden !important;
  }

  main .games-layout > .games-content .section {

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
  }

  main .games-layout > .games-content .game-grid {

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    display: grid !important;

    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    gap: 7px !important;

    margin-top: 8px !important;

    box-sizing: border-box !important;
  }

  main .games-layout > .games-content .game-card {

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    position: relative !important;
    z-index: 1 !important;

    overflow: hidden !important;
  }
}


/* VERY SMALL PHONE */

@media (max-width: 380px) {

  main .games-layout {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 6px !important;
  }

  main .games-layout > .game-category-sidebar {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-title {
    width: 52px !important;
    max-width: 52px !important;
  }

  main .games-layout > .game-category-sidebar
  .sidebar-category {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
  }

  main .games-layout > .game-category-sidebar
  .category-icon {
    width: 30px !important;
    height: 30px !important;
  }

  main .games-layout > .game-category-sidebar
  .category-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  main .games-layout > .game-category-sidebar
  .category-name {
    font-size: 8px !important;
  }
}


/* =========================================================
   FINAL DESKTOP GAME LAYOUT
   Sidebar | Thai subcategory | Games
   ========================================================= */

@media (min-width: 769px) {

  main .games-layout {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
    overflow: visible !important;
  }

  main .games-layout > .game-category-sidebar {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    position: sticky !important;
    top: 95px !important;
    align-self: start !important;
    z-index: 20 !important;
  }

  main .games-layout > .thai-subcategory-wrap {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
  }

  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-category {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   MOBILE — separate layout
   ========================================================= */

@media (max-width: 768px) {

  main .games-layout {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
  }

  main .games-layout > .game-category-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    position: relative !important;
    top: auto !important;
    margin: 0 !important;
    z-index: 30 !important;
  }

  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  main .games-layout > .thai-subcategory-wrap {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* =========================================================
   PC FINAL — GAME CATEGORY SIDEBAR
   ========================================================= */

@media (min-width: 769px) {

  main .games-layout {
    display: grid !important;

    grid-template-columns: 230px minmax(0, 1fr) !important;

    column-gap: 24px !important;
    row-gap: 0 !important;

    align-items: start !important;

    width: 100% !important;
    min-width: 0 !important;

    overflow: visible !important;
  }

  /* LEFT CATEGORY */
  main .games-layout > .game-category-sidebar {
    display: block !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;

    height: auto !important;

    position: sticky !important;
    top: 95px !important;

    margin: 0 !important;

    padding: 16px !important;

    box-sizing: border-box !important;

    visibility: visible !important;
    opacity: 1 !important;

    z-index: 100 !important;
  }

  /* TITLE */
  main .games-layout > .game-category-sidebar
  .sidebar-title {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  /* CATEGORY BUTTONS */
  main .games-layout > .game-category-sidebar
  .sidebar-category {
    display: flex !important;

    width: 100% !important;
    min-width: 0 !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  /* GAME CONTENT */
  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  /* IMPORTANT:
     Thai subcategory stays with the game content,
     NOT underneath the left sidebar.
  */
  main .games-layout > .thai-subcategory-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    z-index: 5 !important;
  }
}


/* =========================================================
   FIX: THAI SUBCATEGORY MUST NOT OVERLAP GAMES — PC
   ========================================================= */

@media (min-width: 769px) {

  main .games-layout {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 24px !important;
    row-gap: 14px !important;

    align-items: start !important;
    overflow: visible !important;
  }

  /* LEFT MENU */
  main .games-layout > .game-category-sidebar {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;

    position: sticky !important;
    top: 95px !important;

    z-index: 20 !important;
  }

  /* THAI SUB CATEGORY — อยู่ด้านบนของพื้นที่เกม */
  main .games-layout > .thai-subcategory-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    position: relative !important;
    z-index: 2 !important;

    margin: 0 !important;
  }

  /* GAME CONTENT — ลงมาอยู่ใต้หมวดย่อย */
  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    position: relative !important;
    z-index: 1 !important;

    margin: 0 !important;
  }

  /* ห้ามหมวดย่อยลอยทับการ์ด */
  main .thai-subcategory-wrap {
    float: none !important;
    clear: both !important;
  }

  main .thai-subcategory-list {
    position: relative !important;
    z-index: 3 !important;
  }
}


/* =========================================================
   FINAL — THAI SUBCATEGORY IMAGE ICONS
   ========================================================= */

.thai-subcategory-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 36px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}

.thai-subcategory-icon img {
  display: block !important;

  width: 32px !important;
  height: 32px !important;

  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 32px !important;
  max-height: 32px !important;

  object-fit: contain !important;
}

/* Mobile */
@media (max-width: 768px) {
  .thai-subcategory-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex-basis: 32px !important;
  }

  .thai-subcategory-icon img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
}


/* =========================================================
   FINAL MOBILE CATEGORY SIDEBAR
   Keep ALL categories visible including เกมไทย
   ========================================================= */

@media (max-width: 768px) {

  main .games-layout {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    align-items: start !important;
  }

  /* LEFT CATEGORY MENU */
  main .games-layout > .game-category-sidebar {
    display: flex !important;
    flex-direction: column !important;

    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    height: auto !important;
    max-height: none !important;

    position: relative !important;
    top: auto !important;

    margin: 0 !important;
    padding: 6px 3px !important;

    box-sizing: border-box !important;

    overflow: visible !important;

    visibility: visible !important;
    opacity: 1 !important;

    z-index: 100 !important;
  }

  /* TITLE */
  main .games-layout > .game-category-sidebar .sidebar-title {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 4px 0 8px !important;
    margin: 0 0 5px !important;

    overflow: visible !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-title .eyebrow {
    display: none !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-title strong {
    display: block !important;

    width: 100% !important;

    font-size: 8px !important;
    line-height: 1.15 !important;

    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
  }

  /* EVERY CATEGORY INCLUDING THAI */
  main .games-layout > .game-category-sidebar .sidebar-category {
    display: flex !important;

    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;

    min-height: 58px !important;
    height: 58px !important;

    margin: 0 auto 6px !important;
    padding: 4px 2px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;
    z-index: 101 !important;
  }

  /* ICON */
  main .games-layout > .game-category-sidebar .sidebar-category .category-icon {
    display: flex !important;

    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
    min-height: 32px !important;

    margin: 0 auto 2px !important;

    align-items: center !important;
    justify-content: center !important;

    flex-shrink: 0 !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-category .category-icon img {
    display: block !important;

    width: 30px !important;
    height: 30px !important;

    max-width: 30px !important;
    max-height: 30px !important;

    object-fit: contain !important;
  }

  /* CATEGORY NAME */
  main .games-layout > .game-category-sidebar .sidebar-category .category-name {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    font-size: 8px !important;
    line-height: 1.1 !important;

    text-align: center !important;

    white-space: normal !important;
    word-break: keep-all !important;

    overflow: hidden !important;
  }

  /* IMPORTANT: THAI MUST NOT BE HIDDEN */
  main .games-layout > .game-category-sidebar
  .sidebar-category.category-thai {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* THAI SUBCATEGORY */
  main .games-layout > .thai-subcategory-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;

    position: relative !important;
    z-index: 10 !important;

    overflow: visible !important;
  }

  /* GAMES */
  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    position: relative !important;
    z-index: 1 !important;
  }

}

/* =========================================================
   FINAL MOBILE CATEGORY SIDEBAR — NO OVERLAP
   ========================================================= */

@media (max-width: 768px) {

  main .games-layout {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* LEFT MENU */
  main .games-layout > .game-category-sidebar {
    display: flex !important;
    flex-direction: column !important;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;

    height: auto !important;

    margin: 0 !important;
    padding: 6px 3px !important;

    box-sizing: border-box !important;

    position: relative !important;
    top: 0 !important;

    overflow: visible !important;

    z-index: 50 !important;
  }

  /* TITLE */
  main .games-layout > .game-category-sidebar .sidebar-title {
    display: flex !important;
    width: 100% !important;

    padding: 3px 0 8px !important;
    margin: 0 0 5px !important;

    box-sizing: border-box !important;
  }

  main .games-layout > .game-category-sidebar .sidebar-title strong {
    display: block !important;

    width: 100% !important;

    font-size: 8px !important;
    line-height: 1.2 !important;

    text-align: center !important;
    white-space: normal !important;
  }

  /* ALL CATEGORY BUTTONS */
  main .games-layout > .game-category-sidebar > .sidebar-category {
    display: flex !important;

    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;

    height: 58px !important;
    min-height: 58px !important;

    margin: 0 auto 6px !important;
    padding: 4px 2px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    position: relative !important;
    z-index: 51 !important;
  }

  /* ICON */
  main .games-layout > .game-category-sidebar
  > .sidebar-category .category-icon {

    display: flex !important;

    width: 32px !important;
    height: 32px !important;

    min-width: 32px !important;
    min-height: 32px !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 32px !important;

    margin: 0 auto 2px !important;
  }

  main .games-layout > .game-category-sidebar
  > .sidebar-category .category-icon img {

    display: block !important;

    width: 30px !important;
    height: 30px !important;

    max-width: 30px !important;
    max-height: 30px !important;

    object-fit: contain !important;
  }

  /* NAME */
  main .games-layout > .game-category-sidebar
  > .sidebar-category .category-name {

    display: block !important;

    width: 100% !important;

    font-size: 8px !important;
    line-height: 1.15 !important;

    text-align: center !important;

    white-space: normal !important;
    word-break: keep-all !important;

    overflow: hidden !important;
  }

  /* FORCE THAI TO BE VISIBLE */
  main .games-layout > .game-category-sidebar
  > .sidebar-category.category-thai {

    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;
  }

  /* Thai subcategory stays beside sidebar, never over it */
  main .games-layout > .thai-subcategory-wrap {

    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    position: relative !important;
    z-index: 5 !important;
  }

  /* Games stay below the subcategory */
  main .games-layout > .games-content {

    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;

    position: relative !important;
    z-index: 1 !important;
  }
}

/* FINAL MOBILE — tighten category to games */
@media (max-width: 768px) {

  main .games-layout {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 4px !important;
  }

  main .games-layout > .game-category-sidebar {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  main .games-layout > .game-category-sidebar
  > .sidebar-category {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }

  main .games-layout > .games-content {
    min-width: 0 !important;
  }

}

/* =========================================================
   MOBILE — REMOVE LARGE VERTICAL GAP ABOVE GAMES
   ========================================================= */

@media (max-width: 768px) {

  main .games-layout {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    row-gap: 4px !important;
  }

  main .games-layout > .game-category-sidebar {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  main .games-layout > .thai-subcategory-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;

    align-self: start !important;

    margin: 0 !important;
    padding: 0 !important;

    height: auto !important;
    min-height: 0 !important;
  }

  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 2 !important;

    margin-top: 0 !important;
    padding-top: 0 !important;

    min-height: 0 !important;
  }

  /* ลดช่องว่าง header ของหมวดไทย */
  .thai-subcategory-header {
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
  }

  /* รายการหมวดไทย */
  .thai-subcategory-list {
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
  }

  /* ลดความสูงแต่ละปุ่ม */
  .thai-subcategory-item {
    min-height: 42px !important;
    height: 42px !important;
    margin-bottom: 0 !important;
  }

}

/* =========================================================
   FINAL MOBILE GAME LAYOUT
   Sidebar | Thai categories | Games
   No excessive vertical gap
   ========================================================= */

@media (max-width: 768px) {

  main .games-layout {
    display: grid !important;

    grid-template-columns: 58px minmax(0, 1fr) !important;

    /* IMPORTANT:
       Do NOT let the sidebar determine the height of the
       games row */
    grid-template-rows: auto auto !important;

    column-gap: 6px !important;
    row-gap: 6px !important;

    width: 100% !important;
    min-width: 0 !important;

    align-items: start !important;
  }

  /* LEFT CATEGORY */
  main .games-layout > .game-category-sidebar {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 4px 2px !important;

    position: relative !important;
    top: 0 !important;

    align-self: start !important;
  }

  /* THAI SUBCATEGORY */
  main .games-layout > .thai-subcategory-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: start !important;
  }

  /* GAMES — immediately below Thai categories */
  main .games-layout > .games-content {
    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: start !important;
  }

  /* Remove accidental top spacing */
  main .games-layout > .games-content > .section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  main .games-layout > .games-content .section-title {
    margin-top: 0 !important;
  }

  /* Thai subcategory itself */
  main .games-layout > .thai-subcategory-wrap
  .thai-subcategory-header {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 4px !important;
  }

  main .games-layout > .thai-subcategory-wrap
  .thai-subcategory-list {
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
  }

}

/* =========================================================
   SEO MANAGER
========================================================= */

.seo-manager-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
}

.seo-manager-modal {
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid rgba(245,181,27,.22);
  border-radius: 18px;
  background: #101010;
  box-shadow: 0 25px 90px rgba(0,0,0,.55);
  color: #eee;
}

.seo-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #292929;
}

.seo-manager-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-manager-brand > span {
  font-size: 26px;
}

.seo-manager-brand h2 {
  margin: 0;
  font-size: 20px;
}

.seo-manager-brand p {
  margin: 4px 0 0;
  color: #858585;
  font-size: 12px;
}

.seo-manager-close {
  width: 38px;
  height: 38px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #181818;
  color: #aaa;
  cursor: pointer;
}

.seo-manager-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 16px;
  border-bottom: 1px solid #242424;
  background: #0d0d0d;
}

.seo-manager-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  background: transparent;
  color: #888;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.seo-manager-tabs button.active {
  background: rgba(245,181,27,.12);
  color: #f5b51b;
}

.seo-manager-content {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 22px;
}

.seo-loading,
.seo-empty {
  padding: 50px 20px;
  text-align: center;
  color: #777;
}

.seo-success-message,
.seo-error-message {
  margin-bottom: 15px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 12px;
}

.seo-success-message {
  color: #8cdb72;
  background: rgba(72,170,57,.08);
  border: 1px solid rgba(72,170,57,.18);
}

.seo-error-message {
  color: #ff9292;
  background: rgba(255,60,60,.08);
  border: 1px solid rgba(255,60,60,.18);
}

.seo-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.seo-stat-card {
  padding: 18px;
  border: 1px solid #292929;
  border-radius: 13px;
  background: #151515;
}

.seo-stat-card > span {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.seo-stat-card strong {
  display: block;
  font-size: 24px;
}

.seo-stat-card small {
  color: #777;
  font-size: 11px;
}

.seo-dashboard-card,
.seo-page-editor,
.seo-settings-form {
  margin-top: 15px;
  padding: 20px;
  border: 1px solid #292929;
  border-radius: 13px;
  background: #151515;
}

.seo-dashboard-card h3,
.seo-section-head h3 {
  margin: 0;
  font-size: 16px;
}

.seo-overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #252525;
  font-size: 12px;
}

.seo-overview-row:last-child {
  border-bottom: 0;
}

.seo-overview-row span {
  color: #777;
}

.seo-overview-row strong {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ddd;
}

.seo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.seo-section-head p {
  margin: 5px 0 0;
  color: #777;
  font-size: 11px;
}

.seo-primary-btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  background: linear-gradient(135deg,#f8c52d,#d89b09);
  color: #080808;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.seo-primary-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.seo-form-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}

.seo-page-editor label,
.seo-settings-form label {
  display: block;
}

.seo-form-full {
  margin-top: 14px;
}

.seo-page-editor label > span,
.seo-settings-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #999;
  font-size: 11px;
  font-weight: 700;
}

.seo-page-editor input,
.seo-page-editor textarea,
.seo-page-editor select,
.seo-settings-form input,
.seo-settings-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #303030;
  border-radius: 9px;
  outline: none;
  padding: 11px 12px;
  background: #0e0e0e;
  color: #eee;
  font: inherit;
  font-size: 12px;
}

.seo-page-editor textarea,
.seo-settings-form textarea {
  resize: vertical;
}

.seo-page-editor input:focus,
.seo-page-editor textarea:focus,
.seo-page-editor select:focus,
.seo-settings-form input:focus,
.seo-settings-form textarea:focus {
  border-color: rgba(245,181,27,.55);
}

.seo-checkbox {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
}

.seo-checkbox input {
  width: 17px !important;
  height: 17px;
  accent-color: #f5b51b;
}

.seo-page-editor > .seo-primary-btn {
  margin-top: 18px;
}

.seo-pages-list {
  margin-top: 15px;
  border: 1px solid #292929;
  border-radius: 13px;
  overflow: hidden;
}

.seo-page-row,
.seo-log-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border-bottom: 1px solid #252525;
  background: #151515;
}

.seo-page-row:last-child,
.seo-log-row:last-child {
  border-bottom: 0;
}

.seo-page-row strong,
.seo-log-row strong {
  display: block;
  font-size: 12px;
}

.seo-page-row small,
.seo-log-row small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 10px;
}

.seo-page-enabled,
.seo-page-disabled {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.seo-page-enabled {
  color: #8ddd75;
  background: rgba(80,180,60,.09);
}

.seo-page-disabled {
  color: #888;
  background: rgba(255,255,255,.04);
}

.seo-page-actions {
  display: flex;
  gap: 6px;
}

.seo-page-actions button {
  border: 1px solid #333;
  border-radius: 7px;
  padding: 7px 10px;
  background: #1a1a1a;
  color: #bbb;
  font-size: 10px;
  cursor: pointer;
}

.seo-page-actions button.danger {
  color: #ff8585;
}

.seo-settings-form {
  display: grid;
  gap: 14px;
}

.seo-toggle-grid {
  display: flex;
  gap: 25px;
}

.seo-log-list {
  border: 1px solid #292929;
  border-radius: 13px;
  overflow: hidden;
}

.seo-log-row {
  grid-template-columns: 1fr auto;
}

.seo-log-row time {
  color: #666;
  font-size: 10px;
}

.seo-menu-item,
.seo-mobile-menu-item {
  color: #f5b51b !important;
}

@media (max-width: 800px) {
  .seo-manager-backdrop {
    padding: 0;
  }

  .seo-manager-modal {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .seo-manager-content {
    max-height: calc(100vh - 160px);
    padding: 15px;
  }

  .seo-stat-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .seo-form-grid {
    grid-template-columns: 1fr;
  }

  .seo-page-row {
    grid-template-columns: 1fr;
  }

  .seo-log-row {
    grid-template-columns: 1fr;
  }

  .seo-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .seo-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seo-toggle-grid {
    flex-direction: column;
    gap: 0;
  }
}

