



body {
    margin: 0;
    font-family: sans-serif;
    background-image: url("/static/images/background.png");
    background-size: cover;
    color: white;
    user-select: none;          /* Забороняє виділення тексту */
    -webkit-user-select: none;  /* Safari */
    -ms-user-select: none;      /* IE/Edge */
    touch-action: manipulation; /* Забороняє подвійний зум на мобільному */
    background-attachment: fixed; /* не зникає при скролі */
    background-position: center;
    background-repeat: no-repeat;
    overscroll-behavior: none; /* блокує "білі просвіти" при скролі */
    }





  
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/images/background.png");
    background-size: cover;
    background-position: center;
    z-index: -1;
    }
      

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
 
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
    margin-bottom: 20px;
    font-size: 11px;

  }

  .grid-item {
    background: #222222;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    padding: 5%;
    padding-bottom: 14%;
  }

  .grid-item img {
    width: 85px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 8px;
  }
  .bonus-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .bonus-section img {
    width: 48%;
    border-radius: 10px;
  }
  .main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 22px;
    background-color: #FA2A0F;
    border: none;
    border-radius: 18px;
    font-weight: bold;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
  }
 



  
  .container {
    padding: 24px;
    padding-bottom: 100px; /* щоб кнопка не ховалась за меню */
  }

  
  
  .balance-box {
    background: #222222;
    border-radius: 28px;
    padding: 24px;
    margin: 32px 0;
  }
  
  .balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .balance-amount {
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
  }
  
  .balance-text {
    font-size: 20px;
    color: #FFFFFF;
  }
  
  .balance-buttons {
    display: flex;
    justify-content: space-between;
  }
  
  .balance-buttons button {
    width: 48%;
    padding: 6px;
    height: 46px;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
  }
  
  .btn-topup {
    background-color: white;
    color: black;
  }
  
  .btn-withdraw {
    background-color: #FA2A0F;
    color: white;
  }

  .bonus-section {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 16px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .bonus-section::-webkit-scrollbar {
    display: none;
  }
  .bonus-section img {
    width: 240px;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
  }
  
  



  .bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgb(25 25 25 / 52%);
    border-radius: 24px;
    padding: 12px 0;
    backdrop-filter: blur(10px); /* для сучасного ефекту */
    z-index: 100;
    border: 1px solid rgba(224, 128, 115, 0.31); /* #E08073 з прозорістю 31% */

  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: white;
  }
  
  .bottom-nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }



  .bottom-nav-item.active img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(99%) saturate(7456%) hue-rotate(357deg) brightness(101%) contrast(106%);
  }
  
  
  .bottom-nav-item.active span {
    color: #FA2A0F; /* Яскраво-жовтий */
    font-weight: bold;
  }
  
  













  

  .modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  /* Хрестик у правому верхньому куті екрана */
  .modal-global-close {
    position: absolute;
    top: 40px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }
  
  .modal-global-close img {
    width: 28px;
    height: 28px;
  }
  
  .modal-content {
    position: relative;
    background-color: #222222;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    width: 93%;
    color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid #CA7777;
    box-sizing: border-box;
  }
  
  .modal-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .modal-content input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background-color: #333333;
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  
  .modal-content input::placeholder {
    color: #999;
  }
  
  .modal-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
  }
  
  .btn-check {
    flex: 1;
    background-color: #FA2A0F;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px;
    font-weight: bold;
  }
  
  .btn-register {
    flex: 1;
    background-color: #FFFFFF;
    border: none;
    border-radius: 12px;
    color: black;
    padding: 12px;
    font-weight: bold;
  }
  
  /* Іконка i на правому верхньому куті модального вікна */
  .modal-info {
    position: absolute;
    top: -6%;
    right: -3%;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px rgba(255, 70, 50, 0.8));
    pointer-events: none;
    animation: pulse-glow 1s infinite ease-in-out;
  }
  
  


  @keyframes pulse-glow {
    0% {
      filter: drop-shadow(0 0 5px rgba(255, 70, 50, 0.4));
    }
    50% {
      filter: drop-shadow(0 0 16px rgba(255, 70, 50, 1));
    }
    100% {
      filter: drop-shadow(0 0 5px rgba(255, 70, 50, 0.4));
    }
  }
  







  .modal-info-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 900;
    display: none;
  }

  .modal-info-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  background: transparent;
  border: none;
  cursor: pointer;
  animation: pulse-glow 1.6s infinite ease-in-out;
  z-index: 950;
}

.modal-info-btn img {
  width: 32px;
  height: 32px;
}

/* Підказка */
.modal-info-popup {
  position: absolute;
  top: 1%;
  right: 0%;
  width: 280px;
  padding: 16px 18px;
  background-color: #222222;
  color: white;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #D37F7F;
  box-shadow: 0 0 18px rgba(255, 70, 50, 0.3);
  display: none;
  z-index: 920;
}

.modal-info-popup p {
  margin: 0;
  font-weight: 400;
}

.modal-info-popup strong {
  font-weight: 600;
  color: #fff;
}







.preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: black;
}

.preloader-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bear-video {
  width: 250px;
  height: 250px;
  object-fit: contain;
  z-index: 10;
  pointer-events: none;
}

.progress-container {
  width: 80%;
  max-width: 300px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 11;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF8C00, #FFA500);
  transition: width 0.2s ease-in-out;
  border-radius: 50px;
}













.main-btn .btn-icon {
  margin-left: 8px; /* Відступ між текстом і іконкою */
  width: 24px; /* Фіксований розмір іконки, налаштовуйте за потребою */
  height: auto;
}




.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* напівпрозорий чорний */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #ff3d00;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



#checkmarkVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 10000;
  background-color: black;
}


#lockVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 10000;
  background-color: black;
}

#stepText {
  position: fixed;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 26px;
  z-index: 10010;
}



.id-error-message {
  color: #fff;
  background-color: #6F2117;
  border: 1px dashed #CD3E2C;
  padding: 10px;
  margin: 10px 0;
  font-size: 14px;
  border-radius: 10px;
}





.success-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Внутрішній вміст */
.success-modal .modal-content {
  position: relative;
  background-color: #222222;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  width: 90%;
  color: white;
  border: 1px solid #CA7777;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* Інфа-попап */
#successInfoPopup {
  position: absolute;
  top: 1%;
  right: 0%;
  width: 280px;
  padding: 16px 18px;
  background-color: #222222;
  color: white;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #D37F7F;
  box-shadow: 0 0 18px rgba(255, 70, 50, 0.3);
  display: none;
  z-index: 920;
}

#successInfoPopup p {
  margin: 0;
}

#successInfoOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 900;
  display: none;
}


.verify-tip-text {
  text-align: center;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.3;
  color: white;
  font-weight: 400;
}
.verify-tip-text strong {
  font-weight: 600;
  font-size: 15px;
}

.success-top {
  text-align: center;
  margin-bottom: 10px;
  margin-top: -20px;
  padding: 0 20px;
}
.success-emoji {
  width: 140px;
  margin-bottom: 10px;
}
.success-title {
  font-size: 22px;
  margin: 0;
}
.success-desc {
  font-size: 14px;
  margin-top: 10px;
  color: white;
  line-height: 1.4;
}



.success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  max-width: 100%;
}

.success-top {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 24px;
}

.success-emoji {
  width: 140px;
  margin-bottom: 10px;
}

.success-title {
  font-size: 22px;
  margin: 0;
}

.success-desc {
  font-size: 14px;
  margin-top: 10px;
  color: white;
  line-height: 1.4;
}




@media only screen 
  and (device-width: 430px) 
  and (device-height: 932px)
  and (-webkit-device-pixel-ratio: 3) {

  .bottom-nav-item span {
    font-size: 10px;
  }
  .bottom-nav-item img {
    width: 20px;
    height: 20px;
  }

}


@media only screen 
  and (device-width: 390px) 
  and (device-height: 844px)
  and (-webkit-device-pixel-ratio: 3) {

  

  .bottom-nav-item span {
    font-size: 10px;
  }
  .bottom-nav-item img {
    width: 20px;
    height: 20px;
  }

}


.modal-top-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}



.header__back{
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background-color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: -17px;
  left: -10px;
  
  cursor: pointer;
  z-index: 950;
  border: 1px solid #ffffff;

}

.setting{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100svh;
    z-index: 9999;
}
.setting.open{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a49493f;
}
.setting__content{
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px 24px;
    background-color: #222222;
    border: 1px solid #CA7777;
    border-radius: 25px;
    width: -webkit-fill-available;
    margin: 0 25px;     
}
.setting__language{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 10px;
    background-color: #FFFFFF;
}
.setting__language-dropdown{
    display: none;
}
.setting__language-main{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.setting__language-main__flag{
    width: 30px;
    height: 30px;
    overflow: hidden;
}
.setting__language-main__flag img, .setting__language-dropdown__item-flag img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.setting__arrow{
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #000000;
}
.setting__language-main__name, .setting__language-dropdown-item__name{
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: #000000;
}
.setting__language.open .setting__arrow{
    transform: rotate(180deg);
}
.setting__language.open .setting__language-dropdown{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.setting__language-dropdown__item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 92%;
    padding: 0 16px;
    border-radius: 10px;
    background-color: #EDEDED;
}
.setting__language-dropdown__item.setting__language-active{
    display: none;
}
.setting__language-dropdown__item-flag{
    width: 20px;
    height: 20px;
    overflow: hidden;
}
.setting__close{
    position: absolute;
    top: 36px;
    right: 20px;
    width: 36px;
    height: 36px;
}
.setting__close svg{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    pointer-events: none;
}

.setting__theme{
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 10px;
    background-color: #FFFFFF;
    position: relative;
}
.setting__theme-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.setting__theme-switch{
    width: 48px;
    height: 28px;
    padding: 4px;
    background-color: #6FB823;
    border-radius: 255px;
    display: flex;
    justify-content: space-between;
}
.setting__theme-switch__item{
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: transparent;
}
.setting__theme-switch__item.setting__theme-active{
    background-color: #FFFFFF;
}



/* --- About (info) modal --- */
.about-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;                 /* показуємо через JS */
  justify-content:center;
  align-items:center;
  z-index:10000;
}
.about-content{
  position:relative;
  width:90%;
  max-width:420px;
  max-height:90svh;
  background:#222;
  border:1px solid #CA7777;
  border-radius:22px;
  padding:26px 22px 32px;
  color:#fff;
  box-sizing:border-box;
  overflow:hidden;
}
.about-scroll{
  overflow-y:auto;
  max-height:calc(90svh - 90px); /* щоб текст скролився всередині */
  font-size:14px;
  line-height:1.4;
}
.about-close{
  position:absolute;
  top:14px; right:14px;
  background:transparent;
  border:none;
  cursor:pointer;
}
.about-close svg{
  width:26px; height:26px;
}
