:root {
  --bb-bg: #111;
  --bb-panel: #18191d;
  --bb-panel2: #24252a;
  --bb-line: rgba(255, 255, 255, .08);
  --bb-gold: #1db8d1;
  --bb-green: #19c75a;
  --bb-text: #f5f5f5;
  --bb-muted: #a7a9af;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #111;
  color: var(--bb-text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden
}

.shell {
  width: min(1510px, calc(100% - 24px));
  margin-inline: auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #151515;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  overflow: visible
}

.topbar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.6px;
  line-height: 1;
  white-space: nowrap
}

.brand b {
  color: var(--bb-gold)
}

.brand i {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4b4b4b, #1b1b1b 55%, #f2a916 58%, #f2a916 100%);
  border: 2px solid #3a3a3a
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto
}

.btn {
  border: 0;
  border-radius: 8px;
  height: 30px;
  padding: 0 22px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap
}

.btn-light {
  background: #fff;
  color: #111;
  border: 2px solid var(--bb-gold);
  text-decoration: underline
}

.btn-gold {
  background: linear-gradient(#ffc04a, #ee9d10);
  color: #111
}

.timer,
.dots,
.lang-btn {
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #28292e;
  color: #fff;
  font-weight: 800
}

.timer {
  display: grid;
  place-items: center;
  padding: 0 14px
}

.dots {
  width: 36px;
  font-size: 22px;
  line-height: 1
}

.lang-wrap {
  position: relative
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  appearance: none
}

.lang-btn em {
  font-style: normal;
  color: #bbb;
  font-size: 12px;
  margin-left: 1px
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 220;
  display: none;
  min-width: 154px;
  padding: 7px;
  border-radius: 8px;
  background: #202126;
  border: 1px solid var(--bb-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45)
}

.lang-wrap.is-open .lang-menu {
  display: grid;
  gap: 5px
}

.lang-menu button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #303139;
  color: #fff;
  text-align: left;
  padding: 0 10px;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  appearance: none
}

.lang-menu button b {
  width: 24px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  letter-spacing: .2px
}

.lang-menu button small {
  font-size: 12px;
  line-height: 1;
  color: #c3c7d0;
  font-weight: 800;
  white-space: nowrap
}

.lang-menu button:hover {
  background: #3a3b43
}

.bb-flag {
  width: 24px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 3px 10px rgba(0, 0, 0, .18);
  flex: 0 0 auto;
  background: #222
}

.bb-flag svg {
  display: block;
  width: 100%;
  height: 100%
}

.lang-current {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .25px;
  color: #fff;
  line-height: 1
}

.lang-menu {
  min-width: 188px
}

.lang-wrap.is-open .lang-btn {
  background: #32333a;
  border-color: rgba(125, 239, 255, .38);
  box-shadow: 0 0 0 2px rgba(125, 239, 255, .08)
}

/* Desktop header menu */
.desktop-nav {
  display: block;
  background: transparent;
  border: 0;
  padding: 0 0 8px;
  overflow: visible
}

.desktop-nav .nav-inner {
  width: min(1710px, calc(100% - 190px));
  height: 36px;
  margin-inline: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
  background: #38383b;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.nav-item {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 10
}

.nav-item>a {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap
}

.nav-item:first-child>a {
  border-radius: 4px 0 0 4px
}

.nav-item.active>a,
.nav-item:hover>a,
.nav-item.is-open>a {
  background: #29292c;
  color: #fff
}

.nav-item.active>a::before,
.nav-item:hover>a::before,
.nav-item.is-open>a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--bb-gold);
  border-radius: 2px 2px 0 0
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 9999;
  min-width: 216px;
  padding: 8px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #202020, #2b2b2b);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45)
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  display: grid;
  gap: 4px
}

.nav-dropdown a {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, .03)
}

.nav-dropdown a:hover {
  background: #343434;
  color: var(--bb-gold)
}

@media(min-width:721px) and (max-width:1500px) {
  .desktop-nav .nav-inner {
    width: calc(100% - 24px)
  }

  .nav-item>a {
    padding: 0 9px;
    font-size: 13px;
    gap: 5px
  }
}

@media(max-width:720px) {
  .shell {
    width: calc(100% - 8px)
  }

  .topbar {
    height: 52px
  }

  .brand {
    font-size: 26px
  }

  .brand i {
    width: 26px;
    height: 26px;
    margin-left: 6px
  }

  .btn {
    height: 28px;
    padding: 0 16px;
    font-size: 11px
  }

  .lang-wrap,
  .timer {
    display: none
  }

  .dots {
    width: 32px;
    height: 32px;
    border-radius: 50%
  }

  .desktop-nav {
    display: none
  }

  .site-header {
    z-index: 120
  }
}


/* === Header menu text center fix === */
@media (min-width:721px) {
  .desktop-nav .nav-inner {
    justify-content: center !important;
  }

  .nav-item {
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-item>a {
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    line-height: 36px;
  }

  .nav-item>a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}


/* COMMON UI FOR ALL PAGES: mobile drawer, bottom nav, auth modal, floating buttons */
.chat-btn {
  position: fixed;
  right: 22px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #ffba21;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  z-index: 90;
  display: grid;
  place-items: center;
  cursor: pointer
}

.nav-floating-btn {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(92, 92, 92, .85) !important;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  cursor: pointer
}

.nav-floating-btn.is-visible {
  display: flex
}

.nav-floating-btn:before {
  content: "";
  width: 19px;
  height: 19px;
  border-left: 4px solid #fff;
  border-top: 4px solid #fff;
  transform: rotate(45deg);
  margin-top: 8px
}

.mobile-bottom {
  display: none
}

.mobile-menu {
  display: none
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none
}

.auth-modal.is-open {
  display: block
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(2px)
}

.auth-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 30px));
  max-height: 88vh;
  background: #17181d;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .55)
}

.auth-modal[data-mode="login"] .auth-box {
  width: min(470px, calc(100vw - 28px))
}

.auth-head {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.auth-brand {
  font-size: 27px
}

.auth-switch {
  margin-left: auto;
  height: 34px;
  min-width: 100px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(#ffc242, #e8990e);
  color: #111;
  font-weight: 900;
  cursor: pointer
}

.auth-close {
  margin-left: 12px;
  border: 0;
  background: none;
  color: #d6d7db;
  font-size: 34px;
  line-height: 1;
  cursor: pointer
}

.auth-form {
  display: none;
  padding: 18px
}

.auth-modal[data-mode="register"] [data-auth-form="register"],
.auth-modal[data-mode="login"] [data-auth-form="login"] {
  display: block
}

.auth-form small {
  display: block;
  color: #a9abb2;
  font-weight: 800;
  margin-bottom: 6px
}

.auth-form h2 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 32px;
  line-height: .95;
  margin: 0 0 14px;
  font-weight: 800
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

.auth-form input,
.select-button {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: #3a3c42;
  color: #fff;
  padding: 0 12px;
  font-weight: 800;
  outline: none
}

.auth-form input::placeholder {
  color: #c0c2c7
}

.custom-select {
  position: relative;
  margin-top: 10px
}

.select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left
}

.select-button em {
  font-style: normal
}

.select-menu {
  position: absolute;
  z-index: 360;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  display: none;
  background: #303138;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .45)
}

.custom-select.is-open .select-menu {
  display: grid;
  gap: 3px
}

.select-menu button {
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer
}

.select-menu button:hover {
  background: #3e788a
}

.phone-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 8px;
  margin-top: 10px
}

.phone-row .custom-select {
  margin: 0
}

.warn {
  margin-top: 10px;
  border-radius: 7px;
  background: #841e2b;
  color: #fff;
  text-align: center;
  padding: 9px;
  font-size: 12px;
  font-weight: 900
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800
}

.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  background: #5a5d63;
  border: 1px solid rgba(255, 255, 255, .1);
  margin: 0;
  padding: 0;
  position: relative
}

.check input:checked {
  background: #23a146
}

.check input:checked:after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900
}

.auth-submit {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: #249b3b;
  color: #fff;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer
}

.forgot {
  display: block;
  text-align: center;
  color: #fff;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 18px 0 12px
}

.live-support {
  display: block;
  text-align: center;
  color: #bfc1c8;
  border-top: 2px solid rgba(255, 255, 255, .75);
  padding-top: 14px;
  font-weight: 900
}

.login-form {
  padding: 22px 26px 20px
}

.login-form input {
  margin-bottom: 10px
}

.login-form .check {
  margin: 4px 0 12px
}

@media(max-width:720px) {
  body {
    padding-bottom: 72px
  }

  .chat-btn {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 88px
  }

  .nav-floating-btn {
    bottom: 126px;
    width: 46px;
    height: 46px
  }

  .nav-floating-btn:before {
    width: 16px;
    height: 16px;
    border-width: 3px
  }

  .mobile-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    height: 66px;
    background: rgba(21, 22, 25, .98);
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding-bottom: 5px
  }

  .mobile-bottom a,
  .mobile-menu-trigger {
    position: relative;
    height: 56px;
    border: 0;
    background: none;
    text-decoration: none;
    color: #c5c7cc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 900
  }

  .mb-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #6e727b;
    display: grid;
    place-items: center;
    font-size: 13px
  }

  .mb-icon.support {
    border-color: #18bb64;
    color: #18bb64
  }

  .mobile-bottom i {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-4px);
    background: #ffbc1f;
    color: #111;
    border-radius: 50%;
    font-size: 9px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-style: normal
  }

  .mobile-menu-trigger b {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00daf3;
    color: #111;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-style: italic;
    line-height: 1;
    margin-top: -25px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .25)
  }

  .mobile-menu-trigger small {
    margin-top: -2px;
    color: #fff
  }

  .mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 52px;
    bottom: 66px;
    z-index: 125;
    display: none;
    background: #222;
    overflow-y: auto;
    padding: 8px 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(125, 239, 255, .35)
  }

  .mobile-menu.is-open {
    display: block
  }

  .mobile-menu-head {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
  }

  .drag-line {
    width: 30px;
    height: 2px;
    background: #575757;
    border-radius: 2px
  }

  .mobile-menu-close {
    position: absolute;
    right: 0;
    top: -3px;
    width: 30px;
    height: 30px;
    border: 0;
    background: #333;
    color: #fff;
    border-radius: 50%;
    font-size: 22px
  }

  .menu-search {
    display: flex;
    align-items: center;
    height: 38px;
    background: #333;
    border-radius: 7px;
    margin: 6px 0 10px;
    padding: 0 10px
  }

  .menu-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff
  }

  .mobile-menu-list {
    display: grid;
    gap: 7px
  }

  .mobile-menu-list a {
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(#2d2d2d, #272727);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    color: #d7d7d7;
    text-decoration: none;
    font-weight: 800
  }

  .mobile-menu-list i {
    width: 24px;
    text-align: center;
    font-style: normal;
    font-size: 19px;
    color: #bfc1c7
  }

  .auth-box {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 0
  }

  .auth-head {
    height: 46px;
    padding: 0 10px
  }

  .auth-brand {
    font-size: 22px
  }

  .auth-switch {
    background: none;
    color: #fff;
    text-decoration: underline;
    min-width: auto;
    height: auto
  }

  .auth-close {
    font-size: 30px
  }

  .auth-form {
    padding: 10px 8px
  }

  .auth-form h2 {
    font-size: 18px
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 7px
  }

  .auth-form input,
  .select-button {
    height: 36px;
    border-radius: 5px;
    font-size: 11px
  }

  .select-menu {
    max-height: 130px;
    overflow: auto
  }

  .phone-row {
    grid-template-columns: 74px 1fr;
    gap: 6px
  }

  .warn {
    font-size: 10px;
    padding: 7px
  }

  .check {
    font-size: 10px;
    margin: 8px 0
  }

  .check input {
    width: 17px;
    height: 17px;
    min-width: 17px
  }

  .auth-submit {
    height: 36px;
    font-size: 20px
  }

  .forgot {
    font-size: 19px;
    margin: 12px 0
  }

  .live-support {
    padding-top: 10px
  }

  .register-form {
    max-height: calc(100dvh - 46px);
    overflow-y: auto
  }

  .login-form {
    padding: 18px 16px 16px
  }

  .login-form .check {
    font-size: 11px
  }
}

.mobile-menu-list a.active {
  background: linear-gradient(135deg, rgba(255, 187, 36, .22), rgba(255, 187, 36, .08));
  color: #fff;
  border: 1px solid rgba(255, 187, 36, .35)
}

.mobile-menu-list a.active i {
  color: var(--bb-gold)
}


/* === v11 language flag header fix + logged header support === */
.header-actions .lang-wrap {
  flex: 0 0 auto
}

.header-actions .lang-btn,
.header-actions .lang-menu button {
  text-decoration: none !important;
  outline: none
}

.header-actions .lang-menu {
  right: 0;
  top: calc(100% + 8px);
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #24252b, #1b1c21)
}

.header-actions .lang-menu:before {
  content: "";
  position: absolute;
  right: 18px;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #24252b;
  border-left: 1px solid rgba(255, 255, 255, .12);
  border-top: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(45deg)
}

body.is-logged-in .header-actions {
  gap: 8px
}

@media(max-width:1100px) and (min-width:721px) {
  body.is-logged-in .timer {
    display: none
  }

  body.is-logged-in .lang-btn {
    min-width: 62px;
    padding: 0 8px
  }

  body.is-logged-in .lang-current {
    font-size: 11px
  }

  body.is-logged-in .bb-flag {
    width: 21px;
    height: 14px
  }
}

@media(max-width:720px) {
  .lang-menu {
    display: none !important
  }
}


/* === v11 clean flag dropdown arrow / remove TR separator artifact === */
.lang-btn {
  gap: 7px;
  line-height: 1;
  overflow: hidden
}

.lang-btn em {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #cfd3dc;
  font-size: 0;
  line-height: 0;
  color: transparent;
  transform: none;
  opacity: .92;
  flex: 0 0 auto
}

.lang-wrap.is-open .lang-btn em {
  border-top-color: #1db8d1;
  transform: rotate(180deg)
}

.lang-btn .bb-flag,
.lang-menu .bb-flag {
  pointer-events: none
}

.lang-btn svg,
.lang-menu svg {
  display: block
}

.lang-btn *,
.lang-menu * {
  text-decoration: none !important
}

body.is-logged-in .lang-btn {
  min-width: 72px;
  gap: 6px
}

@media(max-width:720px) {
  body.is-logged-in .lang-btn {
    min-width: 58px;
    padding: 0 7px
  }

  .lang-btn em {
    border-left-width: 3.5px;
    border-right-width: 3.5px;
    border-top-width: 4.5px
  }
}


/* FINAL HEADER FIX: remove broken empty grey area, keep nav compact */
@media(min-width:721px) {
  .site-header {
    background: #151515
  }

  .topbar.shell {
    width: min(1510px, calc(100% - 24px));
    height: 50px;
  }

  .desktop-nav {
    padding: 0 0 7px;
  }

  .desktop-nav .nav-inner {
    width: min(1510px, calc(100% - 24px)) !important;
    height: 36px;
    margin-inline: auto;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    justify-content: center !important;
    gap: 4px !important;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
  }

  .desktop-nav .nav-inner::-webkit-scrollbar {
    display: none
  }

  .nav-item {
    height: 36px;
    flex: 0 0 auto;
  }

  .nav-item>a {
    height: 36px;
    padding: 0 11px;
    border-radius: 4px !important;
    background: #343438;
    border: 1px solid rgba(255, 255, 255, .045);
    font-size: 13px;
    gap: 6px;
  }

  .nav-item.active>a,
  .nav-item:hover>a,
  .nav-item.is-open>a {
    background: #232326;
    color: #fff;
  }

  .nav-item.active>a::before,
  .nav-item:hover>a::before,
  .nav-item.is-open>a::before {
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
  }
}

@media(min-width:721px) and (max-width:1280px) {
  .nav-item>a {
    padding: 0 8px;
    font-size: 12px;
    gap: 5px;
  }

  .desktop-nav .nav-inner {
    justify-content: flex-start !important;
  }
}


/* FINAL FIX: Login / Register button text center */
.header-actions .btn,
.header-actions button.btn,
.btn-light,
.btn-gold {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: middle !important;
}

.header-actions .btn {
  height: 30px !important;
}

.btn-light,
.btn-gold {
  min-width: 86px;
}

.btn-light {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media(max-width:720px) {
  .header-actions .btn {
    height: 30px !important;
    min-width: 74px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* FINAL FIX: Desktop dropdown menus must open over the page */
@media(min-width:721px) {

  .site-header,
  .desktop-nav,
  .desktop-nav .nav-inner {
    overflow: visible !important;
  }

  .desktop-nav .nav-inner {
    position: relative;
  }

  .nav-item {
    position: relative;
    z-index: 20;
  }

  .nav-item:hover,
  .nav-item.is-open,
  .nav-item:focus-within {
    z-index: 99999;
  }

  .nav-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    z-index: 999999 !important;
    min-width: 220px !important;
    padding: 8px !important;
    border-radius: 0 0 8px 8px !important;
    background: linear-gradient(180deg, #25262b, #191a1f) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .55) !important;
    pointer-events: auto !important;
  }

  .nav-item:hover>.nav-dropdown,
  .nav-item:focus-within>.nav-dropdown,
  .nav-item.is-open>.nav-dropdown {
    display: grid !important;
    gap: 5px !important;
  }

  .nav-dropdown a {
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    color: #f2f2f2 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    background: rgba(255, 255, 255, .035) !important;
    white-space: nowrap !important;
  }

  .nav-dropdown a:hover {
    background: rgba(125, 239, 255, .16) !important;
    color: #7defff !important;
  }
}


/* FINAL LEFT MENU: horizontal header nav replaced by left sidebar */
@media(min-width:1025px) {
  body:not(.bb-profile-standalone) {
    padding-left: 296px;
  }

  .desktop-nav {
    display: none !important;
  }
}

.bb-side-menu {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 118;
  width: 296px;
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 16px;
  color: #f3f3f3;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 255, 110, .55) rgba(255, 255, 255, .06);
}

.bb-side-menu::-webkit-scrollbar {
  width: 6px
}

.bb-side-menu::-webkit-scrollbar-thumb {
  background: rgba(180, 255, 110, .55);
  border-radius: 20px
}

.bb-side-hamburger {
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 4px;
  margin: 0 0 16px 2px;
  cursor: pointer;
}

.bb-side-hamburger span {
  display: block;
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: #fff;
}

.bb-side-nav {
  display: grid;
  gap: 12px;
}

.bb-side-card {
  border: 1px solid rgba(255, 255, 255, .12);
  background: #262626;
  border-radius: 7px;
  overflow: hidden;
}

.bb-side-card>a,
.bb-side-accordion>button {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.bb-side-card>a {
  justify-content: flex-start;
}

.bb-side-card i,
.bb-side-accordion b i {
  width: 18px;
  min-width: 18px;
  display: inline-grid;
  place-items: center;
  font-style: normal;
}

.bb-side-accordion b {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bb-side-accordion em {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  font-style: normal;
  color: #fff;
  transition: .18s ease;
}

.bb-side-card>a:hover,
.bb-side-accordion>button:hover {
  background: rgba(255, 255, 255, .055);
}

.bb-side-sub {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 8px 10px 10px;
  background: rgba(0, 0, 0, .06);
}

.bb-side-accordion.is-open .bb-side-sub {
  display: grid;
  gap: 4px;
}

.bb-side-accordion.is-open>button em {
  transform: rotate(180deg);
}

.bb-side-sub a {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 6px;
  color: #e7e7e7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
}

.bb-side-sub a:hover {
  background: rgba(180, 255, 110, .10);
  color: #c8ff73;
}

.bb-side-card:first-of-type {
  border-color: rgba(180, 255, 110, .42);
}

@media(max-width:1024px) {
  .bb-side-menu {
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 260;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .45);
  }

  body.side-menu-open .bb-side-menu {
    transform: translateX(0);
  }
}

@media(max-width:720px) {
  .bb-side-menu {
    width: min(296px, 88vw);
    padding: 16px;
  }
}


/* FINAL THEME COLOR FIX: #02171e */
:root {
  --bb-bg: #02171e;
  --bb-panel: #02171e;
  --bb-panel2: #052631;
  --bb-line: rgba(255, 255, 255, .10);
  --bb-gold: #18a6bf;
  --bb-green: #19c75a;
}

body {
  background: #02171e !important
}

.site-header,
.topbar,
.mobile-menu,
.mobile-bottom,
.auth-box,
.auth-head,
.bb-side-menu,
.site-footer,
.bb-profile-panel,
.bb-inbox-panel,
.bb-detail-panel,
.guest-required-card {
  background: #02171e !important;
}

.bb-side-card,
.nav-item>a,
.auth-form input,
.auth-form .select-button,
.select-menu,
.bb-profile-sidebar,
.bb-profile-content,
.bb-card,
.bb-inbox-shell,
.bb-inbox-list article,
.bb-ticket-detail-card,
.bb-detail-list div,
.profile-sidebar,
.profile-content,
.profile-card {
  background: #052631 !important;
  border-color: rgba(255, 255, 255, .10) !important;
}

.btn-light,
.btn-gold,
.auth-switch,
.auth-submit,
.guest-required-btn.gold,
.bb-primary,
.spin-main {
  background: #02171e !important;
  color: #fff !important;
  border: 1px solid rgba(24, 166, 191, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 0, 0, .22) !important;
  text-decoration: none !important;
}

.btn-light:hover,
.btn-gold:hover,
.auth-switch:hover,
.auth-submit:hover,
.guest-required-btn.gold:hover,
.bb-primary:hover {
  background: #07313e !important;
}

.btn-light,
.btn-gold {
  min-width: 86px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.lang-btn,
.timer,
.dots,
.auth-close,
.bb-modal-close,
.bb-member-balance,
.bb-member-icon {
  background: #052631 !important;
  border-color: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

.brand b,
.card-title,
.panel-title-row span,
.bb-profile-title h2,
.auth-form h2,
.auth-form small,
.bb-side-sub a:hover {
  color: #21c5de !important;
}

.auth-modal .auth-backdrop,
.bb-modal-backdrop {
  background: rgba(2, 23, 30, .82) !important;
}

/* FINAL FIX: broken arrow glyphs */
.lang-btn em,
.select-button em,
.bb-side-accordion em {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -999px !important;
  color: transparent !important;
}

.lang-btn em::before,
.select-button em::before,
.bb-side-accordion em::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #d8f7ff !important;
  border-bottom: 2px solid #d8f7ff !important;
  transform: rotate(45deg) !important;
  display: block !important;
  margin-top: -3px !important;
}

.lang-wrap.is-open .lang-btn em::before,
.custom-select.open .select-button em::before,
.bb-side-accordion.is-open>button em::before {
  transform: rotate(225deg) !important;
  margin-top: 4px !important;
}

.bb-side-accordion em {
  background: rgba(255, 255, 255, .08) !important;
  border-radius: 6px !important;
}

@media(max-width:720px) {

  .btn-light,
  .btn-gold {
    min-width: 74px
  }
}


/* FINAL INTERACTION FIX: language + left menu */
.lang-wrap {
  position: relative !important;
  z-index: 380 !important;
}

.lang-btn {
  min-width: 76px !important;
  height: 32px !important;
  padding: 0 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  overflow: visible !important;
}

.lang-current {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.lang-btn .bb-flag {
  width: 23px !important;
  height: 15px !important;
}

.lang-btn em {
  position: relative !important;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  display: inline-block !important;
  flex: 0 0 12px !important;
  margin: 0 0 0 1px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  text-indent: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.lang-btn em:before {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  top: 1px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #d8f7ff !important;
  border-bottom: 2px solid #d8f7ff !important;
  transform: rotate(45deg) !important;
  margin: 0 !important;
  display: block !important;
}

.lang-wrap.is-open .lang-btn em:before {
  top: 5px !important;
  transform: rotate(225deg) !important;
}

.lang-menu {
  z-index: 999999 !important;
  background: #052631 !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

@media(min-width:1025px) {
  body:not(.bb-profile-standalone) {
    padding-left: 296px !important;
    transition: padding-left .22s ease;
  }

  body.side-menu-collapsed:not(.bb-profile-standalone) {
    padding-left: 72px !important;
  }

  body.side-menu-collapsed .bb-side-menu {
    width: 72px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  body.side-menu-collapsed .bb-side-card {
    border-color: transparent !important;
    background: transparent !important;
  }

  body.side-menu-collapsed .bb-side-card span,
  body.side-menu-collapsed .bb-side-accordion em,
  body.side-menu-collapsed .bb-side-sub {
    display: none !important;
  }

  body.side-menu-collapsed .bb-side-card>a,
  body.side-menu-collapsed .bb-side-accordion>button {
    justify-content: center !important;
    padding: 0 !important;
    min-height: 42px !important;
  }

  body.side-menu-collapsed .bb-side-accordion b {
    justify-content: center !important;
    gap: 0 !important;
  }
}

.bb-side-menu {
  display: block !important;
}

@media(max-width:1024px) {
  body.side-menu-open:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
  }

  body.side-menu-open .bb-side-menu {
    transform: translateX(0) !important;
  }
}

.select-button em,
.bb-side-accordion em {
  text-indent: 0 !important;
}


/* FINAL BLUE THEME + CLEAN DROPDOWN ARROW */
:root {
  --bb-bg: #02171e !important;
  --bb-panel: #02171e !important;
  --bb-panel2: #052631 !important;
  --bb-panel3: #0a4050 !important;
  --bb-gold: #1db8d1 !important;
  --gold: #1db8d1 !important;
  --gold-2: #7defff !important;
  --wheel-gold: #1db8d1 !important;
  --wheel-gold2: #7defff !important;
  --bb-line: rgba(125, 239, 255, .20) !important;
}

body {
  background: #02171e !important
}

.site-header,
.topbar,
.mobile-menu,
.mobile-bottom,
.auth-box,
.auth-head,
.bb-side-menu,
.site-footer,
.bb-profile-panel,
.bb-inbox-panel,
.bb-detail-panel,
.guest-required-card {
  background: #02171e !important;
  border-color: rgba(125, 239, 255, .14) !important;
}

.bb-side-card,
.nav-item>a,
.lang-btn,
.timer,
.dots,
.auth-form input,
.auth-form .select-button,
.select-menu,
.bb-profile-sidebar,
.bb-profile-content,
.bb-card,
.bb-inbox-shell,
.bb-inbox-list article,
.bb-ticket-detail-card,
.bb-detail-list div,
.profile-sidebar,
.profile-content,
.profile-card,
.prize-item,
.winner-row,
.sports-card,
.detail-panel {
  background: #052631 !important;
  border-color: rgba(125, 239, 255, .14) !important;
}

.bb-side-card:hover,
.bb-side-card>a:hover,
.bb-side-accordion>button:hover,
.lang-menu button:hover,
.select-menu button:hover,
.bb-tabs button.active,
.bb-pagination button.active,
.bb-primary,
.auth-submit,
.auth-switch,
.btn-light,
.btn-gold,
.spin-main,
.guest-required-btn.gold {
  background: #07313e !important;
  color: #ffffff !important;
  border-color: rgba(125, 239, 255, .42) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

.bb-primary:hover,
.auth-submit:hover,
.auth-switch:hover,
.btn-light:hover,
.btn-gold:hover,
.spin-main:hover,
.guest-required-btn.gold:hover {
  background: #0a4050 !important;
}

.brand b,
.bb-side-sub a:hover,
.card-title,
.panel-title-row span,
.bb-profile-title h2,
.bb-inbox-detail-card>span,
.bb-detail-panel header span,
.auth-form h2,
.auth-form small,
.wheel-title,
.stage-title,
.prize-icon,
.winner-prize,
.guest-required-kicker,
.bb-badge.gold,
.bb-pill,
.bb-subtitle {
  color: #7defff !important;
}

.bb-side-card:first-of-type {
  border-color: rgba(125, 239, 255, .38) !important;
}

.lang-menu,
.select-menu {
  background: #052631 !important;
  border-color: rgba(125, 239, 255, .18) !important;
}

.lang-wrap.is-open .lang-btn,
.custom-select.open .select-button {
  background: #07313e !important;
  border-color: rgba(125, 239, 255, .45) !important;
  box-shadow: 0 0 0 2px rgba(125, 239, 255, .08) !important;
}

.lang-btn em,
.select-button em,
.bb-side-accordion em {
  position: relative !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  text-indent: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lang-btn em::before,
.select-button em::before,
.bb-side-accordion em::before {
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 6px solid #d8f7ff !important;
  border-bottom: 0 !important;
  transform: none !important;
  margin: 0 !important;
  display: block !important;
}

.lang-wrap.is-open .lang-btn em::before,
.custom-select.open .select-button em::before,
.bb-side-accordion.is-open>button em::before {
  border-top: 0 !important;
  border-bottom: 6px solid #d8f7ff !important;
  transform: none !important;
  margin: 0 !important;
}

.lang-btn {
  gap: 7px !important;
  min-width: 78px !important;
  padding-right: 8px !important;
}

.lang-current {
  line-height: 1 !important
}

.auth-modal .auth-backdrop,
.bb-modal-backdrop {
  background: rgba(2, 23, 30, .82) !important;
}

/* Auth Message Style */
.auth-message {
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(227, 10, 23, 0.1);
  border: 1px solid rgba(227, 10, 23, 0.4);
  color: #ff4757;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(227, 10, 23, 0.05);
}

.auth-message:empty {
  display: none !important;
}

.auth-message::before {
  content: '⚠️';
  margin-right: 6px;
  font-size: 14px;
}

.auth-message.success {
  background: rgba(30, 215, 96, 0.1);
  border-color: rgba(30, 215, 96, 0.4);
  color: #1ed760;
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.05);
}

.auth-message.success::before {
  content: '✅';
}

/* Domain Notice Bar Styling */
.bb-domain-notice-bar {
  background: linear-gradient(90deg, #07313e, #07313e);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  position: relative;
  z-index: 101;
  display: flex;
  justify-content: center;
}

.bb-domain-notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1510px, 100%);
}

.bb-domain-notice-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-muted, #a7a9af);
  letter-spacing: 0.2px;
}

.bb-domain-notice-text b,
.bb-domain-notice-text strong {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  margin: 0 4px;
  display: inline-block;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.bb-domain-notice-text strong {
  color: #ffc04a;
  /* Gold color to highlight next domain */
  background: rgba(255, 192, 74, 0.1);
  border-color: rgba(255, 192, 74, 0.15);
}

.bb-domain-notice-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  /* Push to the right if space allows */
  transition: all 0.2s ease;
}

.bb-domain-notice-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffc04a;
}

@media (max-width: 720px) {
  .bb-domain-notice-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .bb-domain-notice-text {
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    flex: 1;
  }

  .bb-domain-notice-text b,
  .bb-domain-notice-text strong {
    padding: 2px 5px;
    margin: 0 2px;
  }

  .bb-domain-notice-bar {
    padding: 6px 10px;
  }

  .bb-domain-notice-close {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
  }
}