@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Manuale:ital,wght@0,300..800;1,300..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s;
  border: 0;
  color: rgb(255, 255, 255);
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 0 0 30px 0;
  background: rgb(24, 24, 24);
  position: relative;
}

body.no-scroll {
  overflow: hidden;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: white;
}

.displaynone {
  display: none;
}

.displayopen {
  display: flex;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 98%;
  height: auto;
  background: rgb(44, 44, 44);
  top: 15px;
  z-index: 10;
  padding: 12px;
  border-radius: 20px;
  position: fixed;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .header {
    top: auto;
    bottom: 10px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 30px;
  }
}

.header_logo {
  width: 55px;
  height: 50px;
  margin-left: 15px;
  margin-right: 60px;
  background-image: url(/static/img/logo.PNG);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  cursor: pointer;
}

.header_logo:hover {
  transform: rotate(10deg);
}

@media (max-width: 900px) {
  .header_logo {
    display: none;
  }
}

.header_nav {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

@media (max-width: 900px) {
  .header_nav {
    margin-right: 0;
    opacity: 0.6;
  }
}

@media (max-width: 600px) {
  .header_nav {
    margin-left: 0px;
    width: 100%;
    padding: 0 20px;
    gap: 30px !important;
  }
}

.header_nav_a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 550;
  opacity: 0.7;
}
@media (max-width: 900px) {
  .header_nav_a {
    justify-content: space-between;
  }
}

.header_nav_a:hover {
  background-color: rgba(140, 87, 219, 0.119);
}

.header_nav_icon {
  display: inline-block;
  font-size: 40px !important;
}

@media (min-width: 701px) {
  .header_nav_icon {
    display: none !important;
  }
}

.header_nav_text {
  display: inline;
}

@media (max-width: 700px) {
  .header_nav_icon {
    display: block;
  }

  .header_nav_text {
    display: none;
  }

  .header_nav_a {
    padding: 8px;
  }
}

@media (max-width: 500px) {
  .header_nav {
    gap: 2px;
  }

  .header_nav_a {
    padding: 5px;
  }
}

.header_nav_a.admin-button {
  color: #7a4ef3 !important;
  font-weight: bold !important;
  position: relative;
}

.header_nav_a.admin-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, #7a4ef3, transparent);
  border-radius: 2px;
}

.header_nav_a.admin-button:hover {
  background: linear-gradient(90deg, rgba(122, 78, 243, 0.1), transparent);
}

.header_profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  padding: 7px;
  border-radius: 30px;
  background: rgba(59, 59, 59, 0.906);
  cursor: pointer;
}
@media (max-width: 700px) {
  .header_profile {
    margin-right: 0px;
    background: rgba(59, 59, 59, 0) !important;
  }
}

.header_profile_ava {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 700px) {
  .header_profile_ava {
    width: 65px !important;
    height: 65px !important;
  }
}

@media (max-width: 400px) {
  .header_profile_ava {
    width: 55px !important;
    height: 55px !important;
  }
}

.header_profile_conh1 {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.header_profile_conh1_h1 {
  font-size: 17px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .header_profile_conh1_h1 {
    display: none;
  }
}

.header_profile_conh1_p {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .header_profile_conh1_p {
    display: none;
  }
}

/* Иконка стрелки */
.header_profile_ico {
  display: block;
  margin-right: 10px;
  margin-left: 10px;
  font-size: 15px;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .header_profile_ico {
    display: none !important;
  }
}

.header_profile_block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 70px;
  width: auto;
  height: auto;
  padding: 10px;
  border-radius: 25px;
  background: rgba(59, 59, 59, 0.906);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.header_profile_block.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .header_profile_block {
    top: -275px;
    right: -12px;
  }
}
@media (max-width: 700px) {
  .header_profile_block {
    top: -275px;
  }
}
@media (max-width: 700px) {
  .header_profile_block {
    background: rgb(48, 48, 48);
  }
}

.header_profile_block:hover {
  opacity: 1;
  cursor: default;
  background: rgb(48, 48, 48);
}

/* Контейнер 1 в блоке профиля */
.header_profile_block_con1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.header_profile_block_con1:hover {
  cursor: pointer;
}

.header_profile_block_con1:hover .header_profile_block_con1_con11_name {
  color: rgb(142, 101, 247);
}

.header_profile_block_con1_ava {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.3s ease;
}

.header_profile_block_con1_ava:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.header_profile_block_con1_con11 {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.header_profile_block_con1_con11_name {
  font-size: 20px;
  font-weight: 600;
}

.con_tg111 {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header_profile_block_con1_con11_tg {
  color: rgb(153, 143, 187);
  font-size: 15px;
  font-weight: 600;
}

.header_profile_block_con2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 0 0 0;
  border-top: 1px solid rgb(77, 77, 77);
}

.header_profile_block_con2 a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgb(185, 185, 185);
  font-size: 15px;
  font-weight: 550;
}

.header_profile_block_con2 a i {
  width: 20px;
  font-size: 15px;
  text-align: center;
  color: rgb(185, 185, 185);
}

.header_profile_block_con2 a:hover {
  color: white;
}

.header_profile_block_butt {
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: 3px solid rgb(87, 32, 225);
  border-radius: 15px;
  background: rgba(55, 55, 55, 0);
  color: rgb(87, 32, 225);
  font-size: 15px;
  font-weight: 650;
}

.header_profile_block_butt i {
  width: 20px;
  font-size: 15px;
  text-align: center;
  color: rgb(197, 197, 197);
}

.header_profile_block_butt .out {
  color: rgb(87, 32, 225);
}

.header_profile_block_butt:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

.header_register {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-right: 20px;
}
@media (max-width: 900px) {
  .header_register {
    margin-right: 1px;
  }
}
@media (max-width: 500px) {
  .header_register {
    gap: 5px;
  }
}

.header_register_a_vh {
  padding: 5px 10px;
  border: 3px solid rgb(136, 52, 255);
  border-radius: 17px;
  background: rgb(61 32 102 / 30%);
  color: rgb(136, 52, 255);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 900px) {
  .header_register_a_vh {
    padding: 6px 10px;
    border: 3px solid rgb(136, 52, 255);
    font-size: 15px;
  }
}
@media (max-width: 500px) {
  .header_register_a_vh {
    margin-left: -25px;
  }
}

.header_register_a_vh:hover {
  transform: scale(0.97);
}

.modal_con {
  display: none;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  position: absolute;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.678);
}

.modal_con .modal_block {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: fixed;
  z-index: 21;
  width: 800px;
  margin-top: 50px;
  padding: 40px;
  border-radius: 15px;
  background: rgb(38, 38, 38);
  opacity: 0.93;
}

@media (max-width: 1300px) {
  .modal_con .modal_block {
    width: 90%;
    box-shadow: 0 0 200px 50px black;
  }
}

@media (max-width: 500px) {
  .modal_con .modal_block {
    position: static;
    height: 700px;
  }
}

.modal_con .modal_block .modal_con_h1rg {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 500px) {
  .modal_con .modal_block .modal_con_h1rg {
    gap: 60px;
    margin-bottom: 20px;
  }
}

.modal_con .modal_block .modal_con_h1rg .modal_block_h1rg,
.modal_con .modal_block .modal_con_h1rg .modal_block_h1rg_rg {
  margin-left: 40%;
  color: #7a4ef3;
  font-size: 25px;
  font-weight: 700;
}

.modal_con .modal_block .modal_block_h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 500px) {
  .modal_con .modal_block .modal_block_h1 {
    margin-right: 100px;
  }
}

.modal_con .modal_block .modal_block_h1:hover {
  background-color: rgba(0, 0, 0, 0.322);
  transform: rotate(30deg);
}

/* Поля ввода */
.modal_con .modal_block .modal_nick,
.modal_con .modal_block .modal_pass,
.modal_con .modal_block .modal_2pass {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal_con .modal_block .modal_nick_h1,
.modal_con .modal_block .modal_pass_h1,
.modal_con .modal_block .modal_2pass_h1 {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
}

.modal_con .modal_block .modal_nick_input,
.modal_con .modal_block .modal_pass_input,
.modal_con .modal_block .modal_2pass_input {
  height: 50px;
  padding: 5px;
  border-radius: 20px;
  background: rgb(56, 56, 56);
  opacity: 0.9;
}

/* Поле Telegram */
.modal_con .modal_block .modal_tg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal_con .modal_block .modal_tg_h1 {
  margin-left: 8px;
  font-size: 16px;
  font-weight: 700;
}

.modal_con .modal_block .modal_tg_con {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 2px solid rgb(50, 63, 78);
  border-radius: 20px;
  background: rgb(42, 49, 58);
  opacity: 0.9;
}

.modal_con .modal_block .modal_tg_con_input {
  width: 100%;
  height: 50px;
  border: 2px solid rgb(62, 85, 110);
  border-radius: 20px;
  background: linear-gradient(
    167.76deg,
    rgb(51, 64, 81) 34.271%,
    rgba(51, 64, 81, 0) 99.263%
  );
  opacity: 0.9;
}

.modal_con .modal_block .modal_tg_con_p {
  padding: 5px;
  border-radius: 20px;
  background: rgb(39, 61, 89);
  font-size: 15px;
  text-align: center;
  opacity: 0.9;
}

.modal_con_rg_block_vh_vhod {
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(
    183.34deg,
    rgb(82, 0, 142) -38.98%,
    rgb(126, 32, 255) 67.52%
  );
  color: rgb(232, 232, 232);
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .modal_con_rg_block_vh_vhod {
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
  }
}

.modal_con_rg_block_vh_vv {
  padding: 15px;
  border: 3px solid rgb(66, 66, 66);
  border-radius: 20px;
  background: rgb(36, 36, 36);
  color: rgb(232, 232, 232);
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .modal_con_rg_block_vh_vv {
    padding: 10px;
    border-radius: 10px;
    font-size: 10px;
  }
}

/* ===== АВАТАР С ГРАДИЕНТОМ ===== */
.gradient-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-size: cover !important;
  color: white !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
}

.header_profile_block_butt .out {
  color: rgb(100, 36, 250) !important;
}

.create_max900 {
  position: fixed;
  z-index: 30;
  bottom: 50px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7c4dff, #4a00e0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(124, 77, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-right-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  animation: pulse 5s infinite;
  opacity: 0.9;
}
.create_max900:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 30px rgba(124, 77, 255, 0.6);
  background: linear-gradient(135deg, #926aff, #5a1aff);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .create_max900 {
    bottom: 160px;
    right: 25px;
    z-index: 9;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 133, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

/* Скрываем мобильные подписи на десктопе */
.header_nav_mobile-text {
  display: none;
}

/* НАДПИСИ ПОД ИКОНКАМИ Для мобильных устройств */
@media (max-width: 700px) {
  .header_nav_a {
    flex-direction: column;
    gap: 2px;
    padding: 5px;
  }

  .header_nav_mobile-text {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    text-align: center;
  }

  .header_nav_text {
    display: none;
    font-size: 18px;
  }
}
@media (max-width: 400px) {
  .header_nav_mobile-text {
    font-size: 10px;
    font-weight: 700;
  }
}

.header_profile_block_con2_balance > span {
  font-size: 20px;
  width: 20px;
  text-align: center;
  color: rgb(197, 197, 197);
}

@media (max-width: 900px) {
  .header_register_a_rg {
    display: none !important;
  }
}

.header_nav_icon.filled,
.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1 !important;
}

.header_register_a_vh {
  animation: gentleBounce 0.5s ease 3;
}

@keyframes gentleBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.header_profile_block_con2 a,
.header_profile_block_butt,
.header_register button {
  display: flex;
  align-items: center;
}

.header_profile_block_con2 a i,
.header_profile_block_butt i,
.header_register button i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}
.header_profile_block_butt .out {
  color: rgb(49, 80, 255);
}

.scroll-top-btn {
  position: fixed;
  bottom: 52px;
  right: 120px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a4ef3, #5a2ae0);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(122, 78, 243, 0.4);
}

.scroll-top-btn .material-symbols-outlined {
  font-size: 28px;
  color: white;
}

.scroll-top-btn.visible {
  opacity: 0.5;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #8a5eff, #6a3aff);
  box-shadow: 0 6px 20px rgba(122, 78, 243, 0.6);
  opacity: 1;
}

.scroll-top-btn:active {
  transform: scale(0.95);
}

/* На мобильных - поднимаем выше, чтобы не перекрывать фильтры */
@media (max-width: 900px) {
  .scroll-top-btn {
    bottom: 160px;
    right: 95px;
    width: 44px;
    height: 44px;
  }
  .scroll-top-btn .material-symbols-outlined {
    font-size: 24px;
  }
}

/* Сдвигаем кнопки вверх, когда мобильные фильтры скрыты */
body.filters-hidden .create_max900 {
  bottom: 120px !important;
  transition: bottom 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body.filters-hidden .scroll-top-btn {
  bottom: 125px !important;
  transition: bottom 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.header_profile_block_con2_random > span,
.admin-test-user-btn > span,
.admin-test-offer-btn > span,
.header_profile_block_con2_statis > span {
  font-size: 15px;
}

.header_profile_block_con2_random {
  margin-top: 10px;
}
.header_profile_block_con1_con11_name {
  white-space: nowrap; /* Запрещаем перенос текста */
  overflow: hidden; /* Скрываем выходящий за границы текст */
  text-overflow: ellipsis; /* Добавляем многоточие при обрезании */
  max-width: 100%; /* Ограничиваем ширину родительским контейнером */
}
.con_tg111 {
  align-items: start;
}
/* В выпадающем меню соцсети – только текст, без клика */
.header_profile_block .con_tg111 div {
  cursor: default !important;
  pointer-events: none;
}
footer {
  z-index: 10 !important;
}
@media (max-width: 900px) {
  footer {
    z-index: 1 !important;
    bottom: 70px !important;
    opacity: 0.8;
  }
  footer > a,
  footer > span {
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  footer {
    z-index: 1 !important;
    bottom: 70px !important;
    opacity: 0.7;
  }
  footer > a,
  footer > span {
    font-size: 8px;
  }
}
@media (max-width: 900px) {
  #cookie-banner {
    bottom: 100px !important;
    width: 90% !important;
  }
}
#cookie-banner {
  z-index: 10 !important;
}
@media (min-width: 900px) {
  .container {
    margin-top: 100px !important;
  }
  .terms-container {
    margin-top: 120px !important;
  }
}
.header_profile:hover {
  background: rgb(48, 48, 48);
}
