* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: firasansreg, sans-serif;
}

.container {
  width: 100%;
  max-width: 500px;
  height: 100vh;
  max-height: 100vh;
  padding: 20px;
  background: #020A0C;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  z-index: 3;
}

.auth-title {
  color: white;
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

.token-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #70F6F9;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.76);
  color: white;
  font-size: 26px;
  outline: none;
  transition: border-color 0.3s;
  z-index: 1;
  text-align: center;
}

.token-input:focus {
  border-color: #40F3F7;
}

.enter-btn {
  width: 100%;
  padding: 12px;
  background: #40F3F7;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.enter-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.enter-btn:active {
  transform: translateY(0);
}

.error-message {
  color: #FF9500;
  font-size: 16px;
  margin-top: -10px;
  display: none;
  text-align: center;
}

.welcome-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  height: 68%;
}

.welcome-title {
  color: white;
  font-size: 74px;
  font-weight: bold;
  font-family: firasansreg, sans-serif;
}

.welcome-subtitle {
  color: white;
  font-size: 29px;
  font-family: firasansreg, sans-serif;
}

.get-offers-btn {
  
  padding: 13px 30px 13px 30px;
  background: #40F3F7;
  color: black;
  border: none;
  border-radius: 10px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-bottom: 40%;
}

.get-offers-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.tier-screen, .country-screen, .offers-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  width: 100%;
  height: 67%;
  justify-content: center;
  margin-left: 20px;
  margin-right: 20px;
  z-index: 2;
  margin-top: 10%;
}

.screen-title {
  color: white;
  font-size: 30px;
  font-family: firasansreg, sans-serif;
  text-align: center;
  margin-bottom: 10px;
}

.tier-list, .country-list {
  width: 100%;
  max-height: 70%;
  overflow-y: auto;
  
  border-radius: 5px;
  padding: 10px;
}

.tier-item, .country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.tier-item:last-child, .country-item:last-child {
  border-bottom: none;
}

.tier-item:hover, .country-item:hover {
  background-color: rgba(76, 201, 240, 0.1);
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: #4cc9f0;
}

.checkbox-item label {
  font-size: 20px;
  color: white;
  margin-left: 5px;
  font-family: firasansreg, sans-serif;
  letter-spacing: 2px;
}
.checkbox-item span {
  display: flex;
  align-items: center;
  height: 20px;
}
}

.checkbox-item-req input {
  width: 18px;
  height: 18px;
  accent-color: #4cc9f0;
}

.checkbox-item-req label {
  font-size: 18px;
  color: white;
  margin-left: 5px;
  font-family: firasansreg, sans-serif;
  
}
.tier-list .tier-item label {
  font-size: 32px;
  color: white;
  font-family: firasansbold, sans-serif;
  letter-spacing: 2px;
}
.tier-label {
  font-size: 16px;
  background: #40F3F7;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  color: black !important;

}

.submit-btn, .continue-btn {
  width: 40%;
  padding: 12px;
  background: white;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.submit-btn:hover, .continue-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Offers screen styles */
.offers-list {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 12px;
}

.offer-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  border: 1px solid #40F3F7;
}

.offer-id {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4cc9f0;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.offer-title {
  font-weight: normal;
  font-size: 18px;
  margin-bottom: 10px;
  color: white;
}

.offer-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 18px;
  color: #FFF;
}

.offer-meta span {
  display: flex;
  align-items: start;
  gap: 5px;
  text-align: start;
}

.back-btn {
  position: absolute;
  top: 30px;
  cursor: pointer;
  left: 30px;
  font-size: 24px;
  font-weight: normal;
  color: #FFFFFF;
  background: #0C3847;
  padding: 20px;
  border-radius: 7px;
  display: none;
  align-items: center;
  line-height: 1;
  justify-content: center;
  flex-wrap: nowrap;
  height: 40px;
  width: 130px;
  z-index: 10;
}

/* Bottom navigation styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: space-around;
  align-items: center;
  background-color: #0C3847;
  padding: 10px 0;
  max-width: 500px;
  margin: 0 auto;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  z-index: 100;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-btn img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
}

.nav-btn.active img{
  filter: drop-shadow(0 0 15px #40F3F7);
}

.nav-btn:hover img{
  filter: drop-shadow(0 0 15px #40F3F7);
}

.select-all-container {
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
@font-face {
  font-family: 'firasansreg';
  src: url('../Fonts/firasanslight.ttf') format('truetype');
}
@font-face {
  font-family: 'firasansbold';
  src: url('../Fonts/firasansbold.ttf') format('truetype');
}
.checkbox-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px; /* Увеличиваем размер чекбокса */
    height: 20px;
    border: 2px solid white;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.checkbox-item-req input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px; /* Увеличиваем размер чекбокса */
    height: 20px;
    border: 2px solid white;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.checkbox-item-req input[type="checkbox"]:checked {
    background-color: transparent;
}

.checkbox-item-req input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Уменьшаем галочку */
    color: white;
    font-size: 14px;
    font-weight: bold;
}
.checkbox-item input[type="checkbox"]:checked {
    background-color: transparent;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Уменьшаем галочку */
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.button-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  
}
/* Общий стиль для всех скроллбаров */
::-webkit-scrollbar {
  width: 6px;      /* вертикальный скролл */
  height: 6px;     /* горизонтальный скролл */
}

/* Трек (фон скроллбара) */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Ползунок */
::-webkit-scrollbar-thumb {
  background-color: #40F3F7;
  border-radius: 10px; /* ← Скругление углов */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #1bc5d8;
}

/* Упростить скролл в Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #40F3F7 transparent;
}
::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}
.offer-top-labels {
  position: absolute;
  top: -12px; /* Поднимаем выше границы */
  right: 10px; /* Отступ от правого края */
  display: flex;
  gap: 5px;
  background: transparent;
  z-index: 2;
}

.offer-top-badge {
  background-color: #40F3F7;
  color: black;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 15px;
  border-radius: 4px;
  border: 1px solid #40F3F7;
  height: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.star-badge {
  font-size: 18px;
  background-color: #40F3F7;
  cursor: pointer;
  padding: 2px 5px 4px 5px;

}
.trash-badge.favorite {
  font-size: 18px;
  background-color: #40F3F7;
  cursor: pointer;
  padding: 2px 5px 4px 5px;

}
.category-string {
  position: absolute;
  top: 90px; /* Располагаем под кнопкой Back */
  left: 30px;
  right: 30px;
  color: white;
  font-size: 16px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: firasansreg, sans-serif;
}
.continue-btn {
  width: 50%;
  padding: 12px;
  background: white;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-left: auto;
  display: block;
}

.continue-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}





/* Стили для экрана поиска */
.search-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 95%;
  height: 80%;
  justify-content: flex-start;
  margin-left: 20px;
  margin-right: 20px;
}

.search-filters {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 95%;
}

.search-input-container {
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #40F3F7;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.0);
  color: white;
  font-size: 16px;
  outline: none;
}

.filter-row {
  display: flex;
  gap: 10px;
  width: 100%;
}



.filter-dropbtn {
  width: 100%;
  padding: 12px 15px;
  background-color: transparent;
  border: 1px solid #fd6c6c00;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}





.filter-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
}

.filter-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.filter-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.apply-btn {
  background: #40F3F7;
  color: black;
  margin-left: auto;
}

.clear-btn {
  background: #f72585;
  color: white;
}

.search-results-placeholder {
  color: white;
  text-align: center;
  margin-top: 30px;
  font-size: 18px;
  opacity: 0.7;
}

.search-results {
  width: 100%;
  overflow-y: auto;
  padding: 17px;

}







/* Стили для избранного */
.star-badge.favorite {
  color: gold;
  background-color: rgba(255, 215, 0, 0.2);
}

.favorites-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  height: 77%;
  justify-content: flex-start;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 20px;
}

.no-favorites {
  color: white;
  text-align: center;
  margin-top: 50px;
  font-size: 18px;
}
.sort-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
  display: flex;
}
.sort-dropdown span {
  color: white;
  align-content: center;
}

.sort-dropbtn {
  
  
  padding: 5px 10px;
  background-color: #58ecec;
  border: 0px solid #40F3F7;
  
  color: black;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 10px;
}

.sort-dropdown-content {
  display: none;
  position: absolute;
  background-color: #020A0C;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #40F3F7;
  border-radius: 5px;
  z-index: 3;
  padding: 10px;
  margin-top: 5px;
}

.sort-dropdown.active .sort-dropdown-content {
  display: block;
}

.sort-dropdown.active .sort-dropbtn {
  border-color: #f72585;
}

.sort-option {
  padding: 8px 0;
  color: white;
  cursor: pointer;
}

.sort-option:hover {
  color: #40F3F7;
}
 
/* Основные стили контейнера */
.container {
  position: relative; /* Для абсолютного позиционирования moon-изображений */
  /* остальные существующие стили */
}

/* Welcome screen стили */
.welcome-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: none; /* Изначально скрыт */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Стили для moon-изображений */
.moon-corner {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 60%; /* Настройте по необходимости */
  height: auto;
  z-index: 0;
  
}

.moon-wall {
  position: absolute;
  bottom: 5%;
  left: 0px;
  width: 45%; /* Настройте по необходимости */
  height: auto;
  z-index: 1;
  display: none;
  
}
.rocket-wall {
  position: absolute;
  bottom: -2%;
  left: 0px;
  width: 69%;
  height: auto;
  z-index: 0;
  
}
.copyable-id {
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s;
}

.copyable-id:hover {
  color: #2196F3;
}
@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-20px); }
  }
.offer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-title-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1.4;
}

.offer-prefix {
  white-space: nowrap;
  margin-right: 4px;
}

.copyable-id {
  cursor: pointer;
  text-decoration: underline dotted;
  font-weight: bold;
  white-space: nowrap;
  margin-right: 4px;
}

.copyable-id:hover {
  color: #2196F3;
}

.offer-title {
  white-space: normal;
  word-wrap: break-word;
  text-indent: 0;
  margin-left: 0;
  display: inline;
}

/* Для перенесенных строк */
.offer-title-wrapper::after {
  content: "";
  display: inline-block;
  width: 100%;
}


.spinner {
  --r: 228%; /* радиус от центра */
  position: relative;
  width: 100%;
  height: 66%;
  background: #0C3847;
  border-radius: 13px;
}


.spinner div {
  position: absolute;
  top: 45%;
  left: 48%;
  width: 4%;
  height: 9%;
  background: white;
  border-radius: 13px;
  transform: rotate(0deg) translateY(-28px); /* Смещение наружу */
  transform-origin: center center;
  animation: fade 1.2s linear infinite;
}

/* Размещение по кругу и задержки */
.spinner div:nth-child(1)  { transform: rotate(0deg)   translateY(calc(-1 * var(--r))); animation-delay: -1.1s; }
.spinner div:nth-child(2)  { transform: rotate(30deg)  translateY(calc(-1 * var(--r))); animation-delay: -1s; }
.spinner div:nth-child(3)  { transform: rotate(60deg)  translateY(calc(-1 * var(--r))); animation-delay: -0.9s; }
.spinner div:nth-child(4)  { transform: rotate(90deg)  translateY(calc(-1 * var(--r))); animation-delay: -0.8s; }
.spinner div:nth-child(5)  { transform: rotate(120deg) translateY(calc(-1 * var(--r))); animation-delay: -0.7s; }
.spinner div:nth-child(6)  { transform: rotate(150deg) translateY(calc(-1 * var(--r))); animation-delay: -0.6s; }
.spinner div:nth-child(7)  { transform: rotate(180deg) translateY(calc(-1 * var(--r))); animation-delay: -0.5s; }
.spinner div:nth-child(8)  { transform: rotate(210deg) translateY(calc(-1 * var(--r))); animation-delay: -0.4s; }
.spinner div:nth-child(9)  { transform: rotate(240deg) translateY(calc(-1 * var(--r))); animation-delay: -0.3s; }
.spinner div:nth-child(10) { transform: rotate(270deg) translateY(calc(-1 * var(--r))); animation-delay: -0.2s; }
.spinner div:nth-child(11) { transform: rotate(300deg) translateY(calc(-1 * var(--r))); animation-delay: -0.1s; }
.spinner div:nth-child(12) { transform: rotate(330deg) translateY(calc(-1 * var(--r))); animation-delay: 0s; }

@keyframes fade {
  0%   { opacity: 1; }
  100% { opacity: 0.1; }
}

.offer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.offer-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-action-button {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #FFF;
  color: black;
  border: none;
  border-radius: 3px 0px 0px 3px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: -15px;
  font-size: 14px;
  padding: 10px 15px 10px 15px;
}

.offer-action-button:hover {
  background-color: #45a049;
}

/* Стили для экрана запроса оффера */

.request-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(2, 10, 12, 0.95);
  z-index: 5;
  overflow-y: auto; /* Добавьте это для прокрутки */
  padding-top: 80px; 
  box-sizing: border-box; /* Учитываем padding в высоте */
}
.request-subscreen {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 80px; /* Добавьте отступ снизу */
  margin-top: auto;
  margin-bottom: auto;
}
.request-message {
  background: #40F3F7;
  color: black;
  padding: 30px;
  border-radius: 10px;
  font-size: 24px;
  text-align: center;
  width: 80%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.country-flag {
  display: flex;
  align-items: center;
  height: 20px;
}
.country-flag img {
  height: 100%;
  width: 25px;
  object-fit: contain;
  margin-left: 5px;
}
.payout-info {
  color: white;
  text-align: left;
  margin: 20px auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  justify-content: center;
}

.more-offers-btn {
  margin: 10px auto;
  display: block;
}
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Контейнер для спиннера аутентификации */
.auth-spinner {
  width: 120px;
  height: 40px;
  margin: 0 auto;
  display: none;
  position: relative;
}

/* Стили спиннера */
.auth-spinner .spinner {
  --r: 140%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: transparent;
}

.auth-spinner .spinner div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8%;
  height: 24%;
  background: #0C3847;
  border-radius: 3px;
  transform-origin: center center;
  animation: fade 1.2s linear infinite;
  opacity: 0;
}

/* Анимация и позиционирование точек */
@keyframes fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.auth-spinner .spinner div:nth-child(1)  { transform: rotate(0deg)   translateY(calc(-1 * var(--r))); animation-delay: -1.1s; }
.auth-spinner .spinner div:nth-child(2)  { transform: rotate(30deg)  translateY(calc(-1 * var(--r))); animation-delay: -1s; }
.auth-spinner .spinner div:nth-child(3)  { transform: rotate(60deg)  translateY(calc(-1 * var(--r))); animation-delay: -0.9s; }
.auth-spinner .spinner div:nth-child(4)  { transform: rotate(90deg)  translateY(calc(-1 * var(--r))); animation-delay: -0.8s; }
.auth-spinner .spinner div:nth-child(5)  { transform: rotate(120deg) translateY(calc(-1 * var(--r))); animation-delay: -0.7s; }
.auth-spinner .spinner div:nth-child(6)  { transform: rotate(150deg) translateY(calc(-1 * var(--r))); animation-delay: -0.6s; }
.auth-spinner .spinner div:nth-child(7)  { transform: rotate(180deg) translateY(calc(-1 * var(--r))); animation-delay: -0.5s; }
.auth-spinner .spinner div:nth-child(8)  { transform: rotate(210deg) translateY(calc(-1 * var(--r))); animation-delay: -0.4s; }
.auth-spinner .spinner div:nth-child(9)  { transform: rotate(240deg) translateY(calc(-1 * var(--r))); animation-delay: -0.3s; }
.auth-spinner .spinner div:nth-child(10) { transform: rotate(270deg) translateY(calc(-1 * var(--r))); animation-delay: -0.2s; }
.auth-spinner .spinner div:nth-child(11) { transform: rotate(300deg) translateY(calc(-1 * var(--r))); animation-delay: -0.1s; }
.auth-spinner .spinner div:nth-child(12) { transform: rotate(330deg) translateY(calc(-1 * var(--r))); animation-delay: 0s; }

/* Состояние загрузки */
.auth-loading .enter-btn {
  display: none;
}

.auth-loading .auth-spinner {
  display: block;
}

.cancel-btn {
  width: 100%;
  padding: 12px;
  background: #40F3F7;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.end-of-offers-message {
  text-align: center;
  color: #888;
  margin: 20px 0;
  font-size: 14px;
}
.disabled-badge {
  background-color: #0C3847;
}

/* Стили для формы запроса */

.request-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
  padding-left: 10px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  width: 100%;
  padding: 12px 15px;
  background-color: transparent;
  border: 1px solid #40F3F7;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-select option {
  background-color: #222;
}

textarea {
  width: 100%;
  padding: 10px;
  color: #fff;
  min-height: 100px;
  resize: vertical;
  border: 1px solid #FFF;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.0);
  color: white;
  font-size: 18px;
  outline: none;
  transition: border-color 0.3s;
  z-index: 1;
  letter-spacing: normal;
  
}

/* Стили для placeholder */
textarea::placeholder {
  letter-spacing: normal;
  color: #888;
  font-family: firasansreg, sans-serif;
}

textarea::-webkit-input-placeholder {
  letter-spacing: normal;
  color: #888;
  font-family: firasansreg, sans-serif;
}

textarea::-moz-placeholder {
  letter-spacing: normal;
  color: #888;
  font-family: firasansreg, sans-serif;
}

textarea:-ms-input-placeholder {
  letter-spacing: normal;
  color: #888;
  font-family: firasansreg, sans-serif;
}

.char-counter {
  text-align: right;
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

/* File upload styles */
.file-upload-container {
  width: 100%;
}

.file-upload-input {
  margin-bottom: 10px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.file-upload-label:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.file-upload-text {
  font-size: 18px;
  color: #ffffff85;
  line-height: 1;
  display: flex;
  align-items: center;
}

.file-upload-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.file-upload-description {
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0;
  padding: 0 5px;
}

.file-upload-error {
  color: #ff8c00;
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0;
  padding: 8px 12px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 6px;
  text-align: center;
}

.uploaded-files {
  margin-top: 15px;
}

.uploaded-file {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  gap: 10px;
}

.file-preview-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: transparent;
  display: block;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.file-name {
  color: white;
  font-size: 14px;
  text-align: center;
}

.file-size {
  color: #888;
  font-size: 18px;
  display: none;
}

.delete-file-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-file-btn:hover {
  background: rgba(255, 107, 107, 0.1);
}

.delete-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px;
}

.form-buttons button {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0px;
}

.form-buttons .cancel-btn {
  width: 50%;
  background-color: #0C3847;
  color: #fff;
  border: none;
}

.form-buttons .submit-btn {
  width: 50%;
  background-color: #40F3F7;
  color: #000;
  border: none;
}

.submit-btn:disabled {
  background-color: #444;
  cursor: not-allowed;
}
.traffic-sources-container {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #40F3F7;
  border-radius: 5px;
  margin-bottom: 15px;
}

.traffic-sources-container .checkbox-item {
  padding: 8px 0;
}

.filter-dropdown-req {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  width: 100%;
  background-color: transparent;
  border: 1px solid #FFF;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  text-align: left;
  font-family: firasansreg, sans-serif;
  scrollbar-color: #FFF #8c7777b2;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.traffic-sources-input-container {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 48px;
  gap: 8px;
  cursor: pointer;
}

.traffic-sources-input-container.has-selection {
  cursor: default;
}

.traffic-sources-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-height: 32px;
  align-items: center;
}

.traffic-source-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background-color: #666;
  border-radius: 4px;
  font-size: 14px;
  color: white;
  max-width: 200px;
}

.traffic-source-chip .chip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.traffic-source-chip .remove-chip {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.traffic-source-chip .remove-chip:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.traffic-sources-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.traffic-sources-controls.has-selection {
  flex: none;
}

.clear-all-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.clear-all-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.filter-dropbtn-req {
  width: 100%;
  
  background-color: transparent;
  border: 1px solid #FFF0;
  border-radius: 5px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.filter-dropbtn {
  width: 100%;
  padding: 12px 15px;
  background-color: transparent;
  border: 1px solid #40F3F7;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-dropdown-conten-req {
  display: none;
  background-color: #020A0C;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #B3C5C600;
  border-radius: 5px;
  z-index: 1;
  padding: 10px;
}
.filter-dropdown-content {
  display: none;
  position: absolute;
  background-color: #020A0C;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #40F3F7;
  border-radius: 5px;
  z-index: 1;
  padding: 10px;
  margin-top: 5px;
}
.filter-dropdown-content-req {
  display: none;
  background-color: #020A0C;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #B3C5C600;
  border-radius: 5px;
  z-index: 1;
  margin-top: -10px;
}

.filter-dropdown-req.active .filter-dropdown-content-req {
  display: block;
}
  padding: 10px;
}
.filter-dropdown-content .checkbox-item {
  display: flex;
  margin-top: 10px;
  gap: 8px;
}

.filter-dropdown.active .filter-dropdown-content-req {
  display: block;
}

.filter-dropdown-req.active .filter-dropbtn-req {
  border-color: #fff0;
  
}
.filter-dropdown.active .filter-dropdown-content {
  display: block;
}

.filter-dropdown.active .filter-dropbtn {
  border-color: #f72585;
}
.auth-instruction {
  border: 1px solid #70F6F9;
  background-color: black;
  font-size: 20px;
  border-radius: 10px;
  color: white;
  padding: 10px;
  margin-top: 20px;
  z-index: 3;
}
.spacer {
  flex: 1; /* занимает всё оставшееся место */
  display: flex;
  flex-direction: column;
  justify-content: center; /* выравнивает вложенные по центру по вертикали */
  align-items: center; /* выравнивает по горизонтали */
}
.sort-dropdown[style*="display: none"] {
  opacity: 0.0;
  pointer-events: none;
}
.request-header-text {
    text-align: center; /* Выравнивание текста по центру */
    color: white;
    font-size: 18px;
    margin-bottom: 5%;
    width: 100%; /* Занимает всю доступную ширину */
    max-width: 61%; /* Ограничиваем максимальную ширину как у формы */
    margin-left: auto; /* Автоматические отступы по бокам */
    margin-right: auto;
    padding: 0 20px; /* Добавляем отступы по бокам для маленьких экранов */
    box-sizing: border-box; /* Учитываем padding в ширине */
}
.filter-dropdown-span {
  color: #888888;
}
.filter-dropdown-span.active {
  color: #fff0;

}
.filter-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
}
.filter-dropdown-content-req.active {
  display: block;
}
.filter-dropdown-content-req.checkbox-item {
  display: flex;
  margin-top: 10px;
}
.checkbox-item-req {
  display: flex;
  margin-top: 10px;
}
.country-name-flag {
  margin-left: 10px;
}