/* ==========================================================================
   DC Bet — shell: header, sidebar, content, footer
   ========================================================================== */

.shell {
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-left: var(--sidebar-w);
  transition: padding-left .28s var(--ease);
}

body.nav-min .shell {
  padding-left: var(--sidebar-w-min);
}

.wrap {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------- header -- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--gutter) 0 16px;
  background: rgba(10, 10, 12, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.hdr__burger {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: background .18s var(--ease), color .18s var(--ease);
}

.hdr__burger:hover {
  background: var(--surface-2);
  color: var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(232, 184, 75, .3));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .06em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__tag {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.hdr__spacer {
  flex: 1;
}

.hdr__search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.hdr__search:hover {
  border-color: rgba(232, 184, 75, .45);
  box-shadow: 0 0 18px rgba(232, 184, 75, .12);
  color: var(--text);
}

.hdr__search span {
  font-size: 13.5px;
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.hdr__icon {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--muted);
}

.hdr__icon:hover {
  color: var(--gold);
  background: var(--surface-2);
}

/* logged-in cluster */
.levelchip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.levelchip:hover {
  border-color: var(--gold-dim);
  background: var(--surface-2);
}

.levelchip__tier {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.1;
  color: var(--gold-2);
  white-space: nowrap;
}

.levelchip__pts {
  font-size: 11px;
  line-height: 1.1;
  color: var(--text-dim);
  white-space: nowrap;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-gold);
  color: #0a0a0c;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid rgba(0, 0, 0, .4);
}

.userbox {
  position: relative;
}

.userbox__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 236px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  display: none;
  z-index: 70;
}

.userbox.is-open .userbox__menu {
  display: block;
}

.userbox__head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}

.userbox__name {
  font-weight: 600;
  font-size: 14px;
}

.userbox__mail {
  font-size: 12px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.userbox__menu a,
.userbox__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: #cfcbc3;
  font-size: 13.5px;
  text-align: left;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.userbox__menu a:hover,
.userbox__menu button:hover {
  background: var(--surface-2);
  color: var(--gold);
}

/* -------------------------------------------------------------- sidebar -- */
.nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 55;
  background: #0c0c0f;
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 10px 28px;
  transition: width .28s var(--ease), transform .28s var(--ease);
}

body.nav-min .nav {
  width: var(--sidebar-w-min);
  padding-left: 8px;
  padding-right: 8px;
}

.nav__pills {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0d0d10;
  overflow: hidden;
  position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.pill:hover {
  transform: translateX(3px);
  color: #0d0d10;
}

.pill--cashback {
  background: linear-gradient(100deg, #f7d67e, #d19a25);
  box-shadow: 0 4px 16px rgba(209, 154, 37, .28);
}

.pill--vip {
  background: linear-gradient(100deg, #cfd6e4, #8d97ab);
  box-shadow: 0 4px 16px rgba(141, 151, 171, .22);
}

.pill--promo {
  background: linear-gradient(100deg, #e0b06a, #a86a2d);
  box-shadow: 0 4px 16px rgba(168, 106, 45, .26);
}

.pill svg {
  flex-shrink: 0;
}

.nav__group {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  margin-top: 4px;
}

.nav__toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: #cfcbc3;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.nav__toggle:hover {
  background: var(--surface-2);
  color: var(--gold);
}

.nav__toggle .chev {
  margin-left: auto;
  transition: transform .22s var(--ease);
}

.nav__toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.nav__sub {
  display: grid;
  gap: 2px;
  padding: 2px 0 6px;
}

.nav__toggle[aria-expanded="false"] + .nav__sub {
  display: none;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: #a5a3ab;
  font-size: 13px;
  transition: background .16s var(--ease), color .16s var(--ease);
}

.nav__link:hover {
  background: var(--surface-2);
  color: var(--gold);
}

.nav__link.is-active {
  background: linear-gradient(90deg, rgba(232, 184, 75, .16), rgba(232, 184, 75, 0));
  color: var(--gold);
  box-shadow: inset 2px 0 0 var(--gold);
}

.nav__link svg,
.nav__toggle svg:first-child {
  flex-shrink: 0;
  opacity: .85;
}

.nav__label,
.pill span,
.nav__toggle span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nav-min .nav__label,
body.nav-min .pill span,
body.nav-min .nav__toggle span,
body.nav-min .nav__toggle .chev,
body.nav-min .nav__sub {
  display: none;
}

body.nav-min .nav__toggle,
body.nav-min .pill,
body.nav-min .nav__link {
  justify-content: center;
  padding: 0;
}

.nav__scrim {
  display: none;
}

/* --------------------------------------------------------------- footer -- */
.ftr {
  margin-top: 60px;
  background: #08080a;
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 96px;
}

.ftr__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.ftr__about p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 46ch;
}

.ftr__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ftr h4 {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.ftr__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.ftr__list a {
  color: #b6b3ba;
  font-size: 13.5px;
}

.ftr__list a:hover {
  color: var(--gold);
}

.ftr__contact {
  display: grid;
  gap: 12px;
}

.ftr__contact-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: #cfcbc3;
}

.ftr__contact-item:hover {
  border-color: rgba(232, 184, 75, .4);
  color: var(--gold);
}

.ftr__contact-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.rgbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px 0 20px;
  border-top: 1px solid var(--line-soft);
}

.rgbar a {
  display: inline-flex;
  line-height: 0;
}

.rgbar img {
  height: 30px;
  width: auto;
  opacity: .6;
  transition: opacity .18s var(--ease);
}

.rgbar a:hover img,
.rgbar a:focus-visible img {
  opacity: 1;
}

.ftr__legal {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.8;
  max-width: 92ch;
  margin: 0 auto;
}

.ftr__legal strong {
  color: #b6b3ba;
  letter-spacing: .04em;
}

.ftr__licence {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: .08em;
  color: #cfcbc3;
  background: var(--surface);
}

/* ------------------------------------------------------------ mobile nav */
.mnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 10, 12, .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom);
}

.mnav a {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 9px 2px 11px;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
}

.mnav a.is-active {
  color: var(--gold);
}

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 1100px) {
  .ftr__top {
    grid-template-columns: 1fr 1fr;
  }

  .ftr__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 58px;
  }

  .shell {
    padding-left: 0;
  }

  .hdr__search {
    display: none;
  }

  .hdr__icon {
    display: grid;
  }

  .brand__tag {
    display: none;
  }

  .hdr {
    gap: 8px;
    padding: 0 10px;
  }

  .hdr__spacer {
    flex: 0 1 auto;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 17px;
  }

  .hdr__icon {
    flex: 0 0 38px;
  }

  .levelchip {
    padding: 0 12px;
  }

  .levelchip__tier {
    font-size: 12px;
  }

  .nav {
    transform: translateX(-100%);
    width: 272px;
    box-shadow: 22px 0 60px rgba(0, 0, 0, .6);
  }

  body.nav-open .nav {
    transform: none;
  }

  body.nav-min .nav {
    width: 272px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.nav-min .nav__label,
  body.nav-min .pill span,
  body.nav-min .nav__toggle span,
  body.nav-min .nav__toggle .chev {
    display: block;
  }

  body.nav-min .nav__sub {
    display: grid;
  }

  body.nav-min .nav__toggle[aria-expanded="false"] + .nav__sub {
    display: none;
  }

  body.nav-min .nav__toggle,
  body.nav-min .pill,
  body.nav-min .nav__link {
    justify-content: flex-start;
    padding: 0 12px;
  }

  body.nav-open .nav__scrim {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(0, 0, 0, .62);
    z-index: 54;
  }

  .mnav {
    display: grid;
  }

  .ftr {
    padding-bottom: 110px;
  }
}

@media (max-width: 480px) {
  .hdr {
    gap: 6px;
    padding: 0 8px;
  }

  .brand__name {
    font-size: 15px;
    letter-spacing: .04em;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .hdr__actions {
    gap: 6px;
  }

  .hdr__actions .btn--sm {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hdr__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .hdr__burger {
    width: 34px;
    flex: 0 0 34px;
  }

  .levelchip {
    display: none;
  }
}

@media (max-width: 640px) {
  .ftr__top {
    grid-template-columns: 1fr;
  }

  .rgbar img {
    height: 24px;
  }
}
