BODY::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
}

BODY::-webkit-scrollbar-track {
  background: #314033;
}

#side_menu {
    --side-menu-bg: #2b2e3b;
    --side-menu-surface: #3a3e4e;
    --side-menu-surface-color: #fff;
    --side-menu-surface-hover: #4a4f60;
    --side-menu-control: var(--secondary_btn_bg, #141b2e);
    --side-menu-text: var(--text_color, #ffffff);
    --side-menu-text-secondary: rgba(255, 255, 255, 0.72);
    --side-menu-text-muted: rgba(255, 255, 255, 0.48);
    --side-menu-accent: var(--main_color, #0095ff);
    --side-menu-border: rgba(255, 255, 255, 0.06);
    --side-menu-balance-background: #ffdf38;
    --side-menu-balance-label: rgba(0, 0, 0, 0.5);
    --side-menu-balance-value: #000;
}

.content.sport{
  max-width: none;
}

.home-block {
  background: none;
  border-radius: 0;
  padding: 0;
}

.home-block__slider{
  background: none;
  border-radius: 0;
  padding: 0;
}


.home-block .home-block__header{
  margin-bottom: 15px;
}
.home-block .home-block__header .home-block__title{
  font-size: 28px;
}

.home-block .home-block__more a{
  background: #191919;
  padding: 10px 15px;
  border-radius: 50px;
  color: #ffdf38;
      min-width: 100px;
}

.home-block .swiper-buttons{
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-block .swiper-buttons .swiper-button-next, 
.home-block .swiper-buttons .swiper-button-prev{
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 50px;
  background-color: #191919;
  margin: 0;
}
.home-block .swiper-buttons .swiper-button-next:after, 
.home-block .swiper-buttons .swiper-button-prev:after{
  font-size: 14px!important;
  color: #ffdf38;
}

.home_slider .swiper{
  overflow: hidden;
  padding-bottom: 25px;
}

.home_slider .swiper-button-next, 
.home_slider .swiper-button-prev{
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background-color: #191919;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  bottom: 0;
  top: calc(50% - 12.5px);
  margin: 0;
}

.home_slider .swiper-button-next:after, 
.home_slider .swiper-button-prev:after{
  font-size: 18px!important;
  color: #ffdf38;
  font-weight: 600;
}

.home_slider .swiper-pagination-bullet{
  background: #e7e7e7!important;
  opacity: 1;
}
.home_slider .swiper-pagination-bullet-active {
  background: #ffdf38!important;
}

.home_slider .swiper-pagination{
  position: absolute;
  bottom: 0!important;
}
.home-block .home_casino_list{
  grid-template-columns: repeat(6, 1fr);
}

.footer__content{
  max-width: var(--main_width);
  margin: 0 auto;
}


#balance .tab_selector{
  padding-right: 20px;
}

#balance .deposit {
  border-width: 2px;
  background-color: var(--modal-surface);
}

#balance .deposit:hover, #balance .deposit.active {
  border-color: #ffffff;
  border-width: 2px;
}

.casino-sidebar__search-btn{
  background: #2b2e3b!important;
}

.casino-tabs__item--active{
  background: #ffdf38!important;
  color: #000!important;
}

#casino-search .tab_selector{
  border-bottom: 1px solid var(--modal-line)!important;
}
#casino-search .tab_selector a.act{
  color: #fff!important;
  border-bottom: 1px solid #ffffff!important;
}

.casino_head{
  display: flex;
  align-items: center;
  gap: 5px;
}

.casino_head img{
  width: 24px;
  height: 24px;
}
.casino-menu__shadow::before{
  display: none;
}

.casino_mobile_nav_btns{
  background: rgba(255, 255, 255, .06)
}

.casino_mobile_nav .casino-menu__search input{
  background: rgba(255, 255, 255, .06)
}

.game_interface{
  border-radius: var(--main_radius);
  background: rgba(255, 255, 255, .04);
  height: 40px;
}

.game_interface > div{
  background: transparent;
}


.casino-menu__search input{
  background: rgba(255, 255, 255, .06);
}

.home_slider .swiper-slide{
  background: transparent;
  max-width: var(--main_width);
  padding: 0 15px;
}
.home_events .event-wrap .odds-list .stake-button{
  background: rgba(255, 255, 255, .06);
}

.navigation-block {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  width: 100%;
  margin: 40px 0;
}
.navigation-block__items {
  grid-gap: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}
.nav-item__button {
  align-items: center;
  background-color: #f2f2f2;
  border: 1px solid #cdcdcd;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  gap: 5px;
  padding: 9px 8px;
  text-align: center;
  transition: all .3s ease-in-out;
  white-space: nowrap;
}

.nav-item__button:hover {
  background-color: #ffdf38;
  border: 1px solid #ffdf38;
  color: #000;
}

.nav-item__icon-container {
  align-items: center;
  display: flex;
  justify-content: center;
  transition: all .3s ease-in-out;
  padding: 4px;
}
.nav-item__icon-container {
  background: #2d3344;
  border-radius: 5px;
  height: 32px;
  width: 32px;
}

.page .profile{
  gap: 0;
}
.page .profile__menu{
  background: none;
}

.page .profile__left{
  background: #2b2e3b;
  border-radius: 16px;
}

.page .promocode{
  background: none;
  padding: 10px;
}

.page .profile{
  background: #3a3e4e;
  border-radius: 16px;
}

.page .profile .page__title{
  margin-top: 5px;
  margin-bottom: 5px;
}

.page .profile .page__title > span{
  margin: 0;
}
.page .profile__menu .profile-info{
  background: #ffdf38;
  color: #000;
}

.page .profile__menu .menu__row{
  background: #3a3e4e;
}
.page .profile__menu .menu__row:not(:last-child){
  margin-bottom: 5px;
}

.page .profile__menu .menu__row.active{
  background: #ffdf38;
  color: #000;
}

.page .button{
  background: #3BA745;
  min-height: 48px;
  min-width: 150px;
}

.page .verification-block{
  background: rgba(255, 255, 255, .04);
}

div.page .tab_selector,
div.page .page__title{
  border-bottom: 1px solid transparent;
}



.home_providers .swiper-slide{
  height: auto;
  width: auto;
  background: none;
  border-radius: 0;
}
.home_providers .swiper-slide .provider{
  display: flex;
  flex-direction: column;
  align-items: initial;
  width: 156px;
  background-color: #3a3e4e;
  border-radius: 16px;
  padding: 0;
}
.home_providers .swiper-slide .provider .provider__image{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  color: #000;
}

.home_providers .swiper-slide .provider .provider__image img{
  margin: 0;
  min-width: 30px;
  min-height: 30px;
}

.home_providers .swiper-slide .provider .provider__name{
  padding: 16px 0;
  font-size: 16px;
}

.home_sports .swiper-slide a{
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 10px 15px;
  min-width: 100px;
}



.home_sports .swiper-slide{
  height: auto;
  background: var(--home_block_element_bg);
  border-radius: var(--secondary_radius);
}

.home_sports .swiper-slide img{
  margin: 0;
}
a{
  color: var(--text_color);
}

.wrap_content{
  padding: 0px 15px;
}

.page .history-row{
  background: rgba(255, 255, 255, .06);
}

.page .profile-bonus {
  background: rgba(255, 255, 255, .06);
}

.page .bets .bet{
  background: rgba(255, 255, 255, .06);
}


.page .pagination button{
  background: rgba(255, 255, 255, 0.32);
}


side[data-side=left] > div {
  margin: 0 23px 0 15px;
  width: 100%;
  height: 100%;
  margin: 0;
}

.side_menu_user{
  padding-top: 20px;
  background: transparent;
}

.side_menu_user a{
  cursor: pointer;
}

side,
#casino_mobile_side{
  background: #2B2E3B;
}

.side_menu_user .menu_balance{
  background: rgba(255, 255, 255, .06);
}

.drop_lang_btn{
  background: rgba(255, 255, 255, .06);
}

.page{
  min-height: 100vh;
}

.header__content .header__links{
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.header__content .header__links > .header__link {
  position: relative;
  text-decoration: none;
  color: var(--header_color);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 10px;
  height: calc(100% - 2px);
  display: flex;
  align-items: center;
  text-wrap: nowrap;
  border-bottom: 2px solid #0000;
  transition: all .3s ease-in-out;
}
.header__content .header__links > .header__link.active,
.header__content .header__links > .header__link:hover{
  border-color: #ffdf38;
}


.header__content .sidebar{
  margin-right: 15px;
}

.header__content .logo{
  border-radius: 0;
  margin-left: 0!important;
  padding-left: 15px;
  padding-right: 15px;
}

.header__content .logo img,
.header__content .logo video{
  display: block;
  margin: 0 auto;
  width: var(--logo_width);
  height: var(--logo_height);
}

.promocode div.promocode__input{
  background: rgba(255, 255, 255, .06);
  height: 48px;
  width: 100%;
}

.promocode button{
  height: 48px;
}

/* Modal palette. Same two-tone scale as the sidebar and the profile page:
   --modal-bg is the card, --modal-surface is anything sitting on it.
   The notification drawer and the push prompt are popovers rather than
   modals, but they are dialog surfaces, so they read the same scale. */
div.modal,
.reg-modal,
.reg-bonus,
#notifyDrawer,
#pushSubscriptionPanel{
  --modal-bg: #2b2e3b;
  --modal-surface: #3a3e4e;
  --modal-surface-hover: #464b5e;
  --modal-text: #fff;
  --modal-text-muted: rgba(255, 255, 255, .55);
  --modal-line: rgba(255, 255, 255, .1);
  --modal-accent: #ffdf38;
  --modal-accent-text: #000;
  --modal-green: #3ba745;
}

.modal,
.reg-bonus,
.reg-modal{
  background: var(--modal-bg)!important;
  color: var(--modal-text);
}

/* modal.css sets color:#000 on .modal.is-open, which outranks the rule above,
   so every string in a modal without a colour of its own was black on black. */
.modal.is-open{
  color: var(--modal-text);
}

.modal .modal_head{
  color: #fff;
}

button.reg-bonus__cancel{
  background: #000!important;
  border: none!important;
  color: #fff!important;
}

.modal .reg-modal__form{
  background: var(--modal-bg)!important
}
.modal-seperator{
  background: var(--modal-line, rgb(229 229 229 / 12%));
}

.modal button{
  color: #000;
}
div#balance .balance__row{
  background-color: var(--modal-surface);
}

div#balance .balance__row .balance__row--left div:first-child{
  color: var(--modal-text-muted);
}

div#balance .tab_selector{
  border-bottom: 1px solid var(--modal-line);
}

div#balance .tab_selector a.act{
  color: #fff;
  border-bottom: 1px solid #ffffff;
}

/* Outside modals this only reaches the profile form, which overrides the fill
   through --profile_input_bg further down. */
div.input-block input,
div.input-block select{
  background: transparent;
  border: 1px solid #646668;
  color: #fff;
}

select option{
  color: #000;
}

div.input-block span.placeholder{
  color: #6c757d!important;
}

div.input-block input:focus, div.input-block select:focus, div.input-block input:focus + span.placeholder, div.input-block select:focus + span.placeholder{
  color: #fff;
}

.mobile-coupon-button {
  position: fixed;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3a3e4e;
  border: 1px solid #212633;
  display: none;
  justify-content: center;
  align-items: center;
  bottom: 55px;
  right: 2rem;
  cursor: pointer;
  z-index: 999;
  transform: translate(-50%, -50%);
  left: 50%;
}
.mobile-coupon-button svg {
  display: inherit;
  fill: currentColor;
  flex: none;
  height: 1em;
  overflow: visible;
}
.mobile-coupon-button .mobile-coupon-button__count {
  position: absolute;
  color: #000;
  font-weight: 600;
  font-size: 12px;
  top: 15px;
  text-align: center;
}

@media (max-width: 800px) {
  .reg-modal {
      background: var(--modal-bg)!important;
  }
}


@media(max-width: 1000px){
  .mobile-coupon-button {
    display: flex;
  }
  .footer_content{flex-direction: column;}
  .footer_content > div:nth-child(3){
    justify-content: center;
  }
  .footer{
    padding-bottom: 15px;
  }
  .f_btns{
    bottom: 15px;
  }
  .page.game .navigation {
    display: none;
  }
  .header__content--top .header__balance{
    display: none;
  }

  .header__content--bottom{
    display: block;
  }


  .header__content--bottom .header__balance{
    width: 100%;
  }

  .header__content--top .header__user{ 
    display: none;
  }

  .header__content--top .lang.dropdown{
    display: none;
  }

  .header__content .header__content--top div.header__auth{
    display: none;
  }
  .header__content .logo{
    padding: 0;
  }
  .header__content .logo img{
    height: 32px; 
    margin: 0;
  }
   
  .page.game .casino_game{
    background: transparent;
  }
  
  .casino_iframe_wrap iframe{
    border-radius: 0;
  }
  
  .game_interface{
    border-radius: 0;
  }

  .home-block .home_casino_list{
    grid-template-columns: repeat(4, 1fr);
  }

  .page .profile__content{
    padding: 10px!important;
  }

  .navigation-block__items{
    gap: 9px;
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-item__button{
    flex-direction: column;
    background-color: #3a3e4e;
    border: 1px solid #fff;
    color: #fff;
  }

  .home_slider .swiper-button-next, 
  .home_slider .swiper-button-prev{
    width: 32px;
    height: 32px;
  }

  .home_slider .swiper-button-next:after, .home_slider .swiper-button-prev:after{
    font-size: 12px!important;
  }
}

@media(max-width: 730px){
  .home-block .home_casino_list{
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal a{
  color: var(--link_color);
}
.modal .reg-modal .tab_selector{
  gap: 10px;
}
.modal .reg-modal .tab_selector a{
  font-size: 14px;
}

#account_details.modal input{
  /* disabled fields showing the generated login and password --
     #000 on the dark modal made them unreadable */
  color: #fff;
  font-weight: 600;
}

#balance .tab_selector a{
  font-size: 14px;
}

.pageloader img {
  width: 120px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
.casino-button{
  display: block;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  text-decoration: none;
  font-weight: 700;
  padding: 0px 15px;
  border-radius: var(--main_radius);
  background: var(--primary_btn_bg) !important;
  color: var(--primary_btn_color) !important;
  text-align: center;
  min-width: 300px;
  margin: 0 auto;
  margin-top: 20px;
}

.casino-layout{
  width: 100%;
  max-width: var(--main_width);
  margin: 0 auto;
}

.casino-content__main .casino-games__grid{
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr))!important;
}

@media (max-width: 1000px) {
    .casino-content__main .casino-games__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))!important; 
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .casino-content__main .casino-games__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))!important;
        gap: 10px;
    }
}

/* ==========================================================================
   Profile page
   profile.css is linked from pages/profile.php, i.e. AFTER this file, so its
   rules win any specificity tie. Everything below is deliberately one step
   more specific than the profile.css selector it replaces.
   ========================================================================== */

/* profile.css reads the field colours from these theme variables; the defaults
   in main.css are the old navy palette (#121829). Scoped to #app rather than
   :root because index.php prints the DB :root block after this stylesheet. */
#app {
    --profile_input_bg: rgba(255, 255, 255, .06);
    --profile_input_color: #fff;
}

/* The settings form sits on the #3a3e4e profile card, so the fields use the
   same translucent inset treatment as .promocode__input / .history-row, one
   step lighter than the card, plus a hairline instead of a hard outline. */
.page .settings div.input-block input,
.page .settings div.input-block select {
    border: 1px solid rgba(255, 255, 255, .1);
}

.page .settings div.input-block input:hover,
.page .settings div.input-block select:hover {
    border-color: rgba(255, 255, 255, .2);
}

.page .settings div.input-block input:focus,
.page .settings div.input-block select:focus {
    color: #fff;
    border-color: #ffdf38;
}

.page .settings div.input-block input:disabled,
.page .settings div.input-block select:disabled {
    color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .06);
    cursor: not-allowed;
}

/* The global placeholder colour in this file is #6c757d !important, which is
   almost unreadable on the card; the label needs !important to beat it. */
.page .settings div.input-block span.placeholder {
    color: rgba(255, 255, 255, .55) !important;
}

.page .settings div.input-block input:focus + span.placeholder,
.page .settings div.input-block select:focus + span.placeholder {
    color: #ffdf38 !important;
}

/* Chrome repaints autofilled fields white; the inset shadow is the only way to
   force the field colour back. #464a59 is rgba(255,255,255,.06) over #3a3e4e. */
.page .settings div.input-block input:-webkit-autofill,
.page .settings div.input-block input:-webkit-autofill:hover,
.page .settings div.input-block input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #464a59 inset;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

/* intlTelInput's country button inherits color:#000 from main.css .iti, so the
   flag/dial code render black on the dark field. The variables are set on the
   collapsed control only --iti-hover-color also tints the highlighted row
   in the country dropdown, which stays light. */
.page .settings .iti__selected-country {
    --iti-arrow-color: rgba(255, 255, 255, .7);
    --iti-hover-color: rgba(255, 255, 255, .08);
    color: #fff;
}

.page .settings .iti__selected-dial-code {
    color: rgba(255, 255, 255, .75);
}


/* ==========================================================================
   Modals - dark theme pass
   modal.css and main.css were written for the light theme and both load
   before this file, so same-specificity overrides win there. casino.css is
   linked from pages/casino.php, i.e. AFTER this file, so the #casino-search
   rules are id-scoped to outrank it.
   Everything below reads the --modal-* palette declared near the top.
   ========================================================================== */

/* --- fields -------------------------------------------------------------- */

/* Filled, borderless, one look across #auth, #reg, #forgot and #casino-search.
   div.input-block input is (0,1,2), so the modal rule needs the extra step. */
.modal input,
.modal select,
.modal textarea,
.modal div.input-block input,
.modal div.input-block select {
    background: var(--modal-surface);
    border: none;
    color: var(--modal-text);
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: var(--modal-text-muted);
}

.modal div.input-block span.placeholder {
    color: var(--modal-text-muted) !important;
}

.modal div.input-block input:focus + span.placeholder,
.modal div.input-block select:focus + span.placeholder {
    color: var(--modal-accent) !important;
}

/* Chrome repaints autofilled fields white - most visible in #auth and #reg. */
.modal input:-webkit-autofill,
.modal input:-webkit-autofill:hover,
.modal input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #3a3e4e inset;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

/* intlTelInput: .iti__selected-country is a <button>, so `.modal button` above
   paints the flag and the +XX dial code black on the dark field. */
.modal .iti__selected-country {
    --iti-arrow-color: rgba(255, 255, 255, .7);
    --iti-hover-color: rgba(255, 255, 255, .08);
    color: var(--modal-text);
}

.modal .iti__selected-dial-code {
    color: var(--modal-text-muted);
}

/* --- shared modal chrome ------------------------------------------------- */

/* The toggle colours live in the theme :root, which index.php prints after
   this file, so they are set on div.modal to outrank it. */
div.modal {
    --checkbox_of_bg: rgba(255, 255, 255, .2);
    --checkbox_on_bg: var(--modal-accent);
}

/* Close button was a light #f0f2f5 square; its icon is grey #99A2AD and reads
   fine either way. */
.modal .modal_head a {
    background-color: var(--modal-surface);
}

.modal .modal_head a:hover {
    background-color: var(--modal-surface-hover);
}

/* modal.css gives .modal_content a white scrollbar track. */
.modal .modal_content {
    --sb-track-color: transparent;
    --sb-thumb-color: rgba(255, 255, 255, .16);
}

/* Chip tabs (#reg, #forgot). #balance and #casino-search use the underline
   variant from main.css, whose id selectors outrank this one. */
.modal .tab_selector a {
    background-color: var(--modal-surface);
    color: var(--modal-text);
}

.modal .tab_selector .act {
    background: var(--modal-accent);
    color: var(--modal-accent-text);
}

/* --- #balance / wallet --------------------------------------------------- */

/* main.css declares this whole block in light-theme values. */
.wallet-modal {
    --wallet-ink: var(--modal-text);
    --wallet-muted: var(--modal-text-muted);
    --wallet-line: var(--modal-line);
    --wallet-soft: var(--modal-surface);
    --wallet-green: var(--modal-green);
    --wallet-green-dark: #2f8b38;
}

/* Two light fills in main.css bypass the variables above. */
.wallet-modal__method {
    background: var(--modal-surface);
}
.wallet-modal__receive{
  background: none;
}
.wallet-modal__form-wrap button[type="submit"]{
  box-shadow: none;
}

.wallet-modal__method:hover {
    background: var(--modal-surface-hover);
}

.wallet-modal__field-note b {
    color: var(--modal-text);
}

.wallet-modal__input-error {
    color: #ff6b6b;
}

/* main.css forces #000 on the back button with !important. */
#balance .wallet-modal__back {
    color: var(--modal-text-muted) !important;
}

#balance .wallet-modal__back:hover {
    color: var(--modal-text) !important;
}

/* --- #casino-search ------------------------------------------------------
   casino.css loads after this file, so these need the id to win. */

#casino-search .casino-search__input {
    background: var(--modal-surface);
    border: none;
    color: var(--modal-text);
}

#casino-search .casino-search__input::placeholder {
    color: var(--modal-text-muted);
}

#casino-search .casino-search__section-title,
#casino-search .casino-search__loading {
    color: var(--modal-text-muted);
}

#casino-search .casino-search__provider-card {
    background: var(--modal-surface);
}

#casino-search .casino-search__provider-card:hover {
    background: var(--modal-surface-hover);
}

#casino-search .casino-search__provider-name {
    color: var(--modal-text);
}

#casino-search .casino-search__results {
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
    scrollbar-width: thin;
}

/* --- #reg / #auth -------------------------------------------------------- */

/* main.css lays #reg out as a transparent flex row holding the form and the
   bonus cards as two separate panels; the `.modal { ... !important }` rule
   above was filling the gap between them in. */
#reg.modal.is-open {
    background: transparent !important;
}

/* Bonus list rendered inside the reg form (the mobile variant, under 1000px). */
.modal .modal-bonus__desc {
    color: var(--modal-text-muted);
}

.modal .modal-bonus__details svg {
    fill: var(--modal-text);
}

button.modal-bonus__cancel {
    border-color: rgba(255, 255, 255, .3);
    color: var(--modal-text);
}

/* modal.css and main.css use #0da151 here; the CTA green of the site is
   #3ba745, same as .page .button. */
button.modal-bonus__apply,
button.reg-bonus__apply,
.modal.confirm-modal .confirm-modal__btn--confirm {
    background: var(--modal-green);
}

/* --- confirm modal ------------------------------------------------------- */

/* --border is never defined, so this fell back to a bright #e0e0e0 outline,
   and `.modal button { color: #000 }` above made the label invisible. */
.modal.confirm-modal .confirm-modal__btn--cancel {
    border-color: rgba(255, 255, 255, .25);
    color: var(--modal-text);
}

/* --- bonus detail modal --------------------------------------------------
   modal.css styles this one entirely for the light theme, so it was still a
   white card. Drop this section if you want it to stay light. */

.modal .modal_content.bonus-modal__content,
.modal .bonus-modal__footer {
    background: var(--modal-bg);
}

.modal .bonus-modal__footer {
    border-top-color: var(--modal-line);
}

.modal .bonus-modal__title,
.modal .bonus-modal__summary-value,
.modal .bonus-modal__accordion-head,
.modal .bonus-modal__detail-value,
.modal .bonus-modal__available span {
    color: var(--modal-text);
}

.modal .bonus-modal__summary-card,
.modal .bonus-modal__accordion-item {
    background: var(--modal-surface);
}

.modal .bonus-modal__timer-block {
    background: var(--modal-surface-hover);
    color: var(--modal-text);
}

.modal .bonus-modal__empty {
    background: var(--modal-surface);
    color: var(--modal-text-muted);
}

.modal .bonus-modal__summary-note,
.modal .bonus-modal__timer-label,
.modal .bonus-modal__detail-label,
.modal .bonus-modal__meta {
    color: var(--modal-text-muted);
}

.modal .bonus-modal__timer-separator,
.modal .bonus-modal__accordion-icon {
    color: var(--modal-text-muted);
}

.modal .bonus-modal__accordion-item.is-open,
.modal .bonus-modal__accordion-item.block {
    border-color: var(--modal-line);
}

.modal .bonus-modal__divider {
    background: var(--modal-line);
}

.modal .bonus-modal__badge {
    background: var(--modal-accent);
    color: var(--modal-accent-text);
}

.modal .bonus-modal__rules-link {
    color: var(--link_color);
}

/* modal.css pins every tag inside the description to #000; the extra
   .modal_content step is what outranks that list. */
.modal .modal_content .bonus-modal__desc,
.modal .modal_content .bonus-modal__desc * {
    color: var(--modal-text);
}

.modal .modal_content .bonus-modal__desc a {
    color: var(--link_color);
}

/* This close button sits on the bonus image banner, so it needs a dark scrim
   instead of the surface-coloured chip the other modal heads use. */
.modal .bonus-modal__head .bonus-modal__close {
    background-color: rgba(0, 0, 0, .45);
}


/* ==========================================================================
   Notification drawer + push prompt
   Both are popovers anchored to the header, not modals, so only the palette
   is shared - the layout, the anchoring and the slideInDown animation stay
   as they are in main.css.
   main.css styles them through very generic class names (.panel, .head,
   .tabs, .list, .empty, .n, .foot, .icon-btn) and .empty in particular is
   also used by the profile page, so everything here is scoped by id.
   ========================================================================== */

/* --- panel shell --------------------------------------------------------- */

#notifyDrawer .panel,
#pushSubscriptionPanel .push-subscription-panel__content {
    background: var(--modal-bg);
}

/* --- drawer head --------------------------------------------------------- */

#notifyDrawer .head h2 {
    color: var(--modal-text);
}

#notifyDrawer .icon-btn {
    color: var(--modal-text-muted);
}

#notifyDrawer .icon-btn:hover {
    background: var(--modal-surface);
    color: var(--modal-text);
}

/* --- drawer tabs --------------------------------------------------------- */

#notifyDrawer .tabs {
    border-bottom-color: var(--modal-line);
}

#notifyDrawer .tab {
    color: var(--modal-text-muted);
}

#notifyDrawer .tab:hover {
    color: rgba(255, 255, 255, .8);
}

#notifyDrawer .tab[aria-selected="true"] {
    color: var(--modal-text);
}

/* was #f4a51b, an orange that belongs to no other part of the site */
#notifyDrawer .tab[aria-selected="true"]::after {
    background: var(--modal-accent);
}

#notifyDrawer .tab .count {
    background: var(--modal-surface);
    color: var(--modal-text-muted);
}

/* the red unread counter is a signal, so it keeps its own colour */
#notifyDrawer .tab[data-tab="read"][aria-selected="true"] .count {
    background: var(--modal-surface-hover);
    color: var(--modal-text);
}

/* --- drawer list --------------------------------------------------------- */

#notifyDrawer .list {
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

#notifyDrawer .list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .16);
}

#notifyDrawer .empty {
    color: var(--modal-text-muted);
}

#notifyDrawer .empty svg {
    color: rgba(255, 255, 255, .2);
}

#notifyDrawer .empty .t {
    color: var(--modal-text);
}

/* --- notification item --------------------------------------------------- */

#notifyDrawer .n:hover {
    background: var(--modal-surface);
}

#notifyDrawer .n.unread::before {
    background: var(--modal-green);
    box-shadow: 0 0 0 3px rgba(59, 167, 69, .22);
}

#notifyDrawer .n .ico {
    background: var(--modal-surface);
    color: var(--modal-text-muted);
}

/* The type tints were pastel fills meant for a white card; on the dark panel
   they become a translucent wash of the icon colour itself. */
#notifyDrawer .n.bonus .ico {
    background: rgba(255, 176, 32, .16);
    color: #ffb020;
}

#notifyDrawer .n.win .ico {
    background: rgba(59, 167, 69, .18);
    color: #5ecb6a;
}

#notifyDrawer .n.system .ico {
    background: rgba(42, 123, 240, .18);
    color: #63a4ff;
}

#notifyDrawer .n.warn .ico {
    background: rgba(217, 59, 59, .18);
    color: #ff6b6b;
}

#notifyDrawer .n .title span.t {
    color: var(--modal-text);
}

#notifyDrawer .n .time {
    color: var(--modal-text-muted);
}

#notifyDrawer .n .text {
    color: rgba(255, 255, 255, .75);
}

#notifyDrawer .n.read .title,
#notifyDrawer .n.read .title span.t {
    color: rgba(255, 255, 255, .75);
}

#notifyDrawer .n.read .text {
    color: var(--modal-text-muted);
}

#notifyDrawer .n .cta {
    background: var(--modal-green);
    color: #fff;
}

#notifyDrawer .n .cta:hover {
    background: #2f8b38;
}

/* --- drawer foot --------------------------------------------------------- */

#notifyDrawer .foot {
    border-top-color: var(--modal-line);
}

#notifyDrawer .foot .all {
    color: var(--link_color);
}

#notifyDrawer .foot .mark {
    color: var(--modal-text-muted);
}

#notifyDrawer .foot .mark:hover {
    color: var(--modal-text);
}

/* --- push prompt --------------------------------------------------------- */

#pushSubscriptionPanel .push-subscription-panel__close {
    color: var(--modal-text-muted);
}

#pushSubscriptionPanel .push-subscription-panel__close:hover {
    background: var(--modal-surface);
    color: var(--modal-text);
}

#pushSubscriptionPanel .push-subscription-panel__title {
    color: var(--modal-text);
}

#pushSubscriptionPanel .push-subscription-panel__description {
    color: rgba(255, 255, 255, .75);
}

#pushSubscriptionPanel .push-subscription-panel__btn-later {
    color: var(--modal-text-muted);
}

#pushSubscriptionPanel .push-subscription-panel__btn-later:hover {
    background: var(--modal-surface);
    color: var(--modal-text);
}

/* Primary action of a dialog, so it matches Deposit / Verification in the
   wallet rather than the green used for inline actions. */
#pushSubscriptionPanel .push-subscription-panel__btn-subscribe {
    background: var(--modal-accent);
    color: var(--modal-accent-text);
    box-shadow: none;
}

#pushSubscriptionPanel .push-subscription-panel__btn-subscribe:hover {
    background: #ffe86b;
}
