body {
  background-color: #fcfcfc;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.prizes-section {
  display: none;
}
:root{
  --accent: #FF9412;
  --white: #ffffff;
  --accent-soft: #fffbf8;
  --accent-border: #FFD9BD;
}
.no-listings {
 color: #b9b9b9;
}
#languageModal.busy { pointer-events: none; }
#languageModal.busy .modal-content { pointer-events: auto; }

/* Основные стили профиля */
.profile-main {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px auto 0;
}

.left {
  width: 400px;
}

.profile-header {
  padding: 20px;
  background: none;
}

/* Блок аватара */
.avatar-block {
  display: flex;
  gap: 20px;
  align-items: center;
}

.avatar-circle {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-border {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.avatar-dude {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 73%;
  height: 73%;
  pointer-events: none;
}

/* Информация профиля */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-name {
  font-weight: 800;
  font-size: 25px;
  margin: 0;
  color: rgb(0, 0, 0);
}

/* Языковые флаги */
.language-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.language-flag {
  object-fit: cover;
}


/*Переключатели*/

/* Блок видимости */
.visibility-section {
  margin-top: 20px;
  padding: 0;
  background: none;
}

.visibility-section h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}

.visibility-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.visibility-value {
  margin-left: 10px;
  font-size: 18px;
}

/* Стили для переключателя */
.switch {
  position: relative;
  display: inline-block;
  min-width: 54px;  /* уменьшено с 60px */
  height: 30.6px;  /* уменьшено с 34px */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 30.6px;  /* соответствует новой высоте */
}

.slider:before {
  position: absolute;
  content: "";
  height: 23.4px;  /* уменьшено с 26px */
  width: 23.4px;   /* уменьшено с 26px */
  left: 3.6px;     /* уменьшено с 4px */
  bottom: 3.6px;   /* уменьшено с 4px */
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #FF9412;
}

input:checked + .slider:before {
  transform: translateX(23.4px);  /* уменьшено с 26px */
}

/*Блок ссылок*/

.useful-links-section {
  margin-top: 15px;
  padding: 0;
  border-radius: 8px;
}

.useful-links-section h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.useful-link {
  width: 250px;
  display: flex;
  justify-content: center;
  padding: 8px 12px;
  background: #fff;
  /*border: 1px solid #ddd;
  */
  border-radius: 40px;
  color: #3B3B3B;
  text-decoration: none;
  transition: all 0.2s;

}

.useful-link:hover {
  background: #fff7f0;
   color: #FF9412;
}

.no-links {
  color: #666;
  font-style: italic;
  margin: 0;
}

.edit-links {
  margin-top: 10px;
  color: #FF9412;
  cursor: pointer;
  font-size: 14px;
}

.edit-links:hover {
  text-decoration: underline;
}
/* НЕАКТИВНЫЕ слоты ссылок */
.useful-link.disabled {
  color: #9aa0a6;
  background: #f1f3f4;
  border: 1px dashed #d7dbe0;
  pointer-events: none;       /* не кликается */
}
.useful-link.disabled:hover {
  color: #9aa0a6;
  background: #f1f3f4;
}

/* НЕАКТИВНЫЕ (приглушённые) контакты 3–5 */
.social-contact.dim {
  opacity: 0.45;
  pointer-events: none;       /* не кликается */
}
.social-contact.dim .social-value {
  text-decoration: none;      /* без подчёркивания при наведении */
}

/*Links*/

/* Стили для модального окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.edit-links-modal {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 0px;
  right: 6px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #333;
}

.links-list {
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.link-url {
  flex-grow: 1;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-actions {
  display: flex;
  gap: 7px;
}

.edit-btn, .delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-btn {
  background: #ff941200;
  color: rgb(255, 166, 0);
}

.delete-btn {
  background: #ff4d4d00;
  color: #ff4d4d;
}

.add-link-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.add-link-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.add-link-form button, .add-link-btn {
  padding: 10px 15px;
  border: none;
  transition: 0.2s;
  border-radius: 5px;
  cursor: pointer;
  align-self: flex-end;

  background: #fff;
  border: 1.5px solid #FF9412;
  color: #FF9412;
}

.add-link-btn {
  width: 100%;
}

.add-link-btn:hover {
    background: #FF9412;
  color: white;
}

.no-links-message {
  text-align: center;
  margin: 20px 0;
  color: #666;
}

/*Social Media*/

/* Стили для социальных контактов */
.social-contacts-section {
  margin-top: 25px;
}

.social-contacts-section h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.social-contact {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  /*box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 12px;
  border-radius: 50px;
  background: white;
  */
}



.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  border-radius: 50%;
}

.social-icon img {
  width: 40px;
  height: 40px;
}

.social-value {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.social-value:hover {
  color: #FF9412;
  text-decoration: underline;
}

.no-contacts {
  color: #666;
  font-style: italic;
  margin: 0;
}

.edit-social-contacts {
  margin-top: 10px;
  color: #FF9412;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 0;
}

.edit-social-contacts:hover {
  text-decoration: underline;
}

/* Иконки для разных соцсетей */
.social-icon.instagram { background: #f9f0ff; }
.social-icon.telegram { background: #e6f7ff; }
.social-icon.whatsapp { background: #f6ffed; }
.social-icon.viber { background: #f0f5ff; }
.social-icon.vk { background: #f0f9ff; }
.social-icon.facebook { background: #f0f2ff; }

/* Стили для Бонусов */

.prizes-section {
  margin-top: 25px;
}

.prizes-section h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  margin-top: 20px;
}

.prizes-actions a {
  color: #FF9412;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.prizes-actions a:hover {
  text-decoration: underline;
}


/* Блок призов */

.button.tiny:hover { filter: brightness(0.95); }
.perk-note {
  margin-top: 0;
  padding:8px;
  border-radius:6px;
  background:#eefbea;
  color:#1b5e20;
  font-size: 14px;
}
/* Активные бусты */
.active-boosts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; margin-top: 10px; }
.active-boost {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ef;
  border-left: 3px solid #FF9412;
}
.active-boost .boost-main { display: flex; gap: 8px; align-items: baseline; }
.active-boost .boost-title { font-weight: 600; color: #333; }
.active-boost .boost-price { font-weight: 600; color: #1e1e1e; }
.active-boost .boost-meta { font-size: 12px; color: #7a4a00; grid-column: 1 / -1; }
/* Карточки призов — двухстрочный макет */
.prizes-list { display: flex; flex-direction: column; gap: 10px;  margin-top: 6px; }

.prize-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 3px 0 rgba(136, 136, 136, 0.138);
  background: #ffffff22;
  transition: all .2s;
}

.prize-row:hover {box-shadow: 0 2px 5px 0 rgba(255, 128, 82, 0.279);}

.prize-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.prize-kind { font-weight: 600; color: #333; }
.prize-exp  { font-size: 12px; color: #666; }

.prize-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.prize-actions .listing-select {
  flex: 1 1 auto;           /* селект на всю строку */
  min-width: 0;
  padding: 8px 8px;
  border: 2px solid #c6c6c6;
  border-radius: 999px;
  background: #fff;
  color: #333;
  outline: none;
  transition: all .2s;
}
.prize-actions .listing-select:hover {border: 2px solid #FF9412;}
.prize-actions .listing-select:focus {border: 2px solid #FF9412;}

.button.tiny {
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #FF9412;
  cursor: pointer;
  font-weight: 400;
  white-space: nowrap;
  transition: all .2s;
}
.button.tiny:hover { background: #FF9412; color: #fff;}


/* Стили для модального окна контактов */
.edit-modal {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;

  width: 100%;          /* вместо 476px */
  max-width: 100%;
  height: auto;         /* вместо 40px */
  min-height: 44px;     /* комфортный тап */

  background: #fff;
  border: 1px solid #f5f5f5;
  border-radius: 12px;
  box-sizing: border-box;
}
.contact-info { min-width: 0; }
.contact-info a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.contact-info {
  display: flex;
  align-items: center;
}

.contact-info a {color: #000; text-decoration: none; transition: all .2s; }

.contact-info a:hover {color:#FF9412;}

.contact-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.social-select {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-input-container {
  display: flex;
  gap: 10px;
}

.contact-input-container input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-input-container button {
  padding: 0 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* Стили для ограничения количества контактов */
.max-contacts-msg {
  color: #666;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  background: #fff9f9;
  border-radius: 5px;
  border: 1px solid #ffecec;
}

.add-contact-section {
  /* margin-top: 20px; */
  /* padding: 15px; */
  background: #fff;
  border-radius: 8px;
}

.add-contact-section h4 {
  margin-bottom: 10px;
  color: #333;
}

.save-contact-btn {
  background: #ffffff;
  border: 1.5px solid #FF9412;
  color: #FF9412;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.save-contact-btn:hover {
  background: #FF9412;
  color: #fff;

}

.delete-contact {
  background: none;
  border: none;
  cursor: pointer;
  color: #ff4d4d;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-contacts-msg {
  text-align: center;
  color: #b9b9b9;
  font-size: 16px;
  font-style: italic;
}


/* СТИЛИ ПРАВАЯ ЧАСТЬ */

.right {
  margin-bottom: 100px;
}

/* Вкладки */
.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 10px;
  width: 900px;
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding-top: 20px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.tab-btn.active {
  opacity: 1;
  color: #FF9412;
}

.tab-btn img {
  width: 24px;
  height: 24px;
}

.divider-line {
  height: 1.5px;
  background-color: #F8A873;
  margin-bottom: 30px;
}

/* Контейнер объявлений */
.listings-container {
  display: flex;
  flex-wrap: wrap;         /* Позволяет переносить карточки на новую строку */
  gap: 20px 20px;          /* Вертикальный и горизонтальный отступ */
  justify-content: flex-start; /* Выравнивание по левому краю */
  width: 900px;            /* Задать фиксированную ширину, если нужно */
}

.listings-container.liked {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Карточка объявления */
.listing-card {
  width: 430px;            /* Уже задано правильно */
  height: 320px;
  box-shadow: 0 2px 3px 0 rgba(136, 136, 136, 0.138);
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff22;
  box-sizing: border-box; /* Обязательно для расчёта ширины с padding */
}

.listing-content {
  display: flex;
  padding: 5px;
  gap: 10px;
  max-height: 244px;
}

.listing-image {
  width: 190px;
  height: 235px;
  object-fit: cover;
  border-radius: 8px;
}

.listing-details {
  flex: 1;
}

.listing-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.listing-description {
  font-size: 14px;
  color: #000000;
  margin-bottom: 20px;
}

.reason-label {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0;
  color: #737373;
}

.listing-reason {
  font-size: 14px;
  color: #000000;
  margin-top: 5px;
}

.listing-price {
  font-size: 20px;
  font-weight: 700;
  padding: 0 0 0 20px;
  margin-top: 7px;
}

.listing-stats {
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-top: 7px;
  gap: 15px;
  font-size: 20;
  font-weight: 600;
  color: #535353;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.edit-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}


/* Карточки Лайка */


.card {
  width: 284px;
  height: 400px;
  border-radius: 12px;
  padding: 7px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 3px 0 rgba(136, 136, 136, 0.138);
  background-color: #ffffff22;
  cursor: pointer;
}

.card img {width: 268px;height: 320px;object-fit: cover;border-radius: 10px;margin: 0 auto 10px;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}

.card-info .price {
  font-weight: bold;
  font-size: 24px;
  color: var(--accent);
}

.card-info .like {
  cursor: pointer;
}

.card-title {
  font-size: 15px;
  margin-top: 6px;
  padding: 0 8px 8px;
}

button {
  border: none;
  background: none;
}

.heart-icon {
  fill: #cecece;

  cursor: pointer;
  transition: fill 0.3s ease;
}

.heart-icon:hover {
  fill: red;
}

.heart-icon.liked path {
  fill: red;
}

/* Стили флагов Языка */

.language-tags {
  max-width: 160px;
}

.flag-icon {
  width: 44px;
  border-radius: 3px;
  box-shadow: 0 2px 3px 0 rgba(255, 255, 255, 0.561);
  transition: all 0.3s;
}

.add-language-btn {
  width: 48px;
  height: 31.45px;
  cursor: pointer;
}

.add-language-btn img {
  width: 48px;
  box-shadow: 0 2px 3px 0 rgba(255, 255, 255, 0.561);
  transition: all 0.3s;
}

.add-language-btn img:hover {
  box-shadow: 0 2px 3px 0 rgba(255, 210, 173, 0.561);
}
/* Модалка языков — те же стили, что у ссылок */

.edit-links-modal h3 {
  margin: 1rem 0 0.5rem 0;
}

.edit-links-modal p {
  color: #b9b9b9;
  font-size: 16px;
  font-style: italic;
  margin: 0 0 1rem 0;
}

#languageModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}

#languageModal .edit-links-modal {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

#languageModal .close-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

#languageModal .close-modal:hover {
  color: #333;
}

/* Язык: выбранный или доступный */
.selected-language, .language-option {
  display: flex;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  background: #f5f5f5;
  border-radius: 5px;
  cursor: pointer;
  color: #333;
  transition: all 0.2s;
}

.selected-language:hover,
.language-option:hover {
  background: #FFF4E6; color:#FF9412;
}

.selected-language img,
.language-option img {
  width: 32px;
  height: 22px;
  margin-right: 10px;
  border-radius: 3px;
}

.selected-language span,
.language-option span {
  font-size: 16px;
}

/* Поле поиска */
#languageSearch {
  max-width: 500px;
  width: 480px;
  padding: 10px;
  margin: 10px 0 20px;
  border: 2px solid #ddd;
  border-radius: 20px;
  outline: none;
  box-shadow: none;
  background-color: #fff;
  transition: all 0.2s;
}

#languageSearch:-webkit-autofill {
  background-color: #fff !important;
  border: 1.5px solid #ddd;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
}

#languageSearch:hover {
  border-color: #FF9412; /* Оранжевый как в вашем дизайне */
  background-color: #fff;
}


#languageSearch:focus {
  border-color: #FF9412; /* Оранжевый как в вашем дизайне */
  background-color: #fff;
}

#languageSearch::placeholder {
  color: #ddd;
  opacity: 1;
}



.selected-language {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 10px 10px;
  border-radius: 6px;
}

.lang-flag-and-label {
  display: flex;
  align-items: center;
}





.language-info {
  display: flex;
  align-content: center;
}



.delete-language-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.delete-language {
  color: red;
}

.delete-language-btn:hover img {
  opacity: 1;
}

.rent-suffix {
  margin-left: 4px;
  font-size: 14px;
  opacity: .7;
  white-space: nowrap;
}
.listing-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 14px;
}


/* Контент справа от фото в карточке профиля */
.listing-card .listing-details {
  max-height: 234px;       /* подгони под свой дизайн */
  overflow: auto;
  padding-right: 6px;      /* чтобы скролл не налезал на текст */
}

/* аккуратный тонкий скролл (webkit) */
.listing-card .listing-details::-webkit-scrollbar {
  width: 6px;
}
.listing-card .listing-details::-webkit-scrollbar-thumb {
  background: #E2E2E2;
  border-radius: 6px;
}
.listing-card .listing-details::-webkit-scrollbar-track {
  background: transparent;
}


/* Активные Boost Plus — фиолетовая тема на базе #7A3EF0 */
.active-boost.plus {
  background: #F3EEFF;        /* светлый фон вместо зелёного (#eefbea) */
  border-left-color: #7A3EF0; /* основной фиолетовый */
}

.active-boost.plus .boost-meta {
  color: #7A3EF0;             /* текст «В топ плюс…» */
}

.active-boost .boost-switch {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  width: 335px;
}

.active-boost .boost-switch .listing-select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #fff;
  border-radius: 999px;
  outline: none;
  background: #fff;
  transition: all .2s;
}

/* hover/focus — фиолетовая обводка вместо зелёной */
.active-boost .boost-switch .listing-select:hover {
  border: 1px solid #7A3EF0;
}
.active-boost .boost-switch .listing-select:focus {
  border: 1px solid #7A3EF0;
}

/* Кнопка: белая с фиолетовым текстом и бордером; при hover — инверсия */
.active-boost.plus .button.tiny {
  background: #fff;
  color: #7A3EF0;
  border: 1px solid #fff;
  transition: all .2s;
}
.active-boost.plus .button.tiny:hover {
  background: #7A3EF0;
  color: #fff;
  filter: brightness(0.95);
}
/* Бейджи BOOST / BOOST+ внутри заголовка */
.badge-boost{
  display:inline-block;
  margin-left:6px;
  padding: 6px 10px 5px 10px;  
  border-radius: 999px;
  font-weight:700;
  font-size:12px;
  line-height:1;
  color:#fff;
  background:#ff8a00;      /* обычный BOOST — оранжевый */
}

.badge-plus{
  display:inline-block;
  margin-left:6px;
  padding: 6px 10px 5px 10px;  
  border-radius: 999px;
  font-weight:700;
  font-size:12px;
  line-height:1;
  color:#fff;
  background:#7A3EF0;      /* BOOST+ — сиреневый по ТЗ */
}

.badge-contacts {
  display:inline-block;   padding: 6px 10px 5px 10px;   border-radius:8px;
  background:#ff8a00; color:#fff; font-size:12px; font-weight:700; line-height:1;
  margin-left:6px;

  display: none;
}

.muted {
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #666;
  font-style: italic;
}
.muted.small {
  margin: 0;
  font-weight: 300;
  font-size: 12px;
}
.prizes-link { margin: 4px 0 10px; }
#activeBoosts > .h3, #activeBoosts > h3.h3 { margin: 18px 0 10px; }

.bonus-banner.ok {
  background: #fbf4ea;
  color: #FF9412;
  border: 1px solid #ecdcc6;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 14px;
}/* profile.css (или общий css) — добавить рядом с другими бейджами */

.activeTitle {
  margin-top: 20px;
}

/* Кастомный селект для бонусов */
.custom-select {
  position: relative;      /* база для абсолютной панели */
  width: 200px;
}

.custom-select .select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
  padding: 8px 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.custom-select .select-toggle .label-text {
  width: 180px;
}

.prize-row .label-text {
  width: 150px;
}
.prize-row .custom-select {
  width: 160px;
}

.custom-select .select-toggle:hover,
.custom-select .select-toggle:focus {
  border-color: #FF9412;
}

.custom-select .select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 1000;
  display: none;
}

.custom-select .select-panel.open {
  display: block;
}

.custom-select .option {
  padding: 10px 12px;
  white-space: nowrap;
  cursor: pointer;
}

.custom-select .option:hover {
  background: #fff7ef;     /* как в вашей цветовой схеме */
}

.custom-select .option.selected {
  font-weight: 600;
}

.active-boost.plus .boost-switch .select-toggle:hover {border-color: #7A3EF0;}
.active-boost.plus .boost-switch .select-toggle:focus {border-color: #7A3EF0;}
/* Баннер активной подписки */
.sub-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4efff;             /* светлый оттенок фиолетового */
  border-left: 3px solid #7A3EF0;   /* ваш основной цвет */
}

.sub-badge {
  padding: 4px 10px 3px 10px;
  border-radius: 999px;
  background: #7A3EF0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.sub-title {
  font-weight: 600;
  color: #7A3EF0;
}
.sub-title.hidden {
  display: none;
}
/* SELLER PLUS — фиолетовый (#7A3EF0) */
.sub-badge--plus {
  background: #7A3EF0;
}

/* SELLER PRO — лёгкий фиолетово-зелёный градиент */
.sub-badge--pro {
  background: linear-gradient(135deg, #7A3EF0 0%, #6EE7B7 100%);
}

.sub-left {
  margin-left: auto;
  font-size: 12px;
  color: #7a7a7a; /* серый текст: "осталось …" */
}


.prize-row.has-icon {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0px;
  align-items: center;
}
.prize-row .prize-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prize-row .prize-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.prize-row .prize-main .prize-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* --- Fix: placeholder в селекте бонусов не вылезает за рамки --- */
.prize-row .prize-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

/* сам селект занимает всё доступное слева от кнопки */
.prize-row .select {
  flex: 1 1 260px;
  max-width: 100%;
  min-width: 220px;
}

/* кнопка-капсула селекта растягивается на всю ширину */
.prize-row .select-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 36px; /* запас под иконку-стрелку */
  overflow: hidden;    /* важное: обрезаем содержимое */
  white-space: nowrap; 
  text-overflow: ellipsis;
}

/* если у стрелки используется псевдоэлемент — подвинем внутрь */
.prize-row .select-toggle::after,
.prize-row .select .caret,
.prize-row .select .arrow {
  right: 12px !important;
}



/* кнопка "Применить" — фиксированной ширины, не сжимать текст */
.prize-row .button.apply {
  flex: 0 0 auto;
  white-space: nowrap;
}


/* кнопки в блоке статистики */
.listing-stats .delete-btn,
.listing-stats .edit-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 6px;
  opacity: 0.9;
}
.listing-stats .delete-btn img { width: 22px; height: 22px; filter: grayscale(1); }

.btn-secondary { background:#eee; color:#111; border:1px solid #ddd; padding:8px 12px; border-radius:8px; }
.btn-danger    { background:#d9534f; color:#fff; border:0; padding:8px 12px; border-radius:8px; }
.btn-secondary:hover, .btn-danger:hover { opacity:.9; }

.listing-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.listing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.listing-actions {
  margin-left: auto;        /* уезжаем вправо */
  padding-right: 1rem;;
  display: flex;
  gap: 8px;
}
.listing-actions .edit-btn,
.listing-actions .delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.listing-actions .edit-btn img,
.listing-actions .delete-btn img { width: 18px; height: 18px; }

/* ===================== MOBILE LAYOUT: profile ===================== */
@media (max-width: 768px) {
  .prizes-section {
    margin: 0;
  }
  #helpMeFab {
    display: none;
  }

  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* запрет горизонтального скролла */
  }

  .profile-main {
    display: flex;
    flex-direction: column;     /* left сверху, right снизу */
    align-items: stretch;
    gap: 0px;
    margin: 0;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .left,
  .right {
    width: 100%;
    max-width: 100%;
  }

  .right {
    margin-bottom: 40px;
  }

  /* вкладки не должны иметь фикс 900px */
  .profile-tabs {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  /* listings: одна колонка */
  .listings-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    box-sizing: border-box;
  }

  /* liked тоже в одну колонку (сейчас у тебя grid 3 колонки) */
  .listings-container.liked {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* карточки объявлений: на всю ширину */
  .listing-card {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .listing-content {
    max-height: none;
  }

  /* картинку ужимаем, чтобы не разносило карточку */
  .listing-image {
    width: 120px;
    height: 145px;
    flex: 0 0 120px;
  }

  /* карточки лайков (если используешь .card) */
  .card {
    width: 100%;
    height: auto;
  }

  .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
}
/* ===================== MOBILE: left block tweaks ===================== */
@media (max-width: 768px){
  .profile-header {
    padding: 0;
  }
  /* 1) шрифты -20% только в левом блоке */
  .left{
    font-size: 0.8em;
  }

  /* 2) Useful + Social в одну строку */
  .left-mini-row{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
  }

  .left-mini-row .useful-links-section,
  .left-mini-row .social-contacts-section{
    flex: 1 1 0;
    min-width: 0;                 /* важно, чтобы не раздвигали экран */
    padding: 10px;                /* чуть компактнее */
    border-radius: 12px;
    padding-bottom: 0;
  }

  /* чтобы эти блоки визуально были "в 2 раза меньше" по плотности */
  .left-mini-row h3{
    font-size: 1em;
    margin: 6px 0 10px;
  }

  /* ссылки и контакты делаем компактнее */
  .useful-link{
    padding: 8px 10px;
    font-size: 0.95em;
  }

  .contact-item{
    gap: 8px;
    font-size: 0.95em;
  }

  .contact-item img,
  .contact-item svg{
    width: 22px;
    height: 22px;
    flex: 0 0 26px;
  }

  /* если списки длинные — не раздуваем экран, а скроллим внутри */
  .left-mini-row .useful-links-section,
  .left-mini-row .social-contacts-section{
    max-height: 280px;
    overflow: auto;
  }
}
@media (max-width: 768px){

  /* 1) выравниваем верх у обоих блоков */
  .left-mini-row .useful-links-section,
  .left-mini-row .social-contacts-section{
    margin-top: 0 !important;
    padding-top: 10px;
  }

  .left-mini-row .useful-links-section h3,
  .left-mini-row .social-contacts-section h3{
    margin-top: 0 !important;
  }

  /* 2) блок ссылок делаем узким (макс 150px) */
  .left-mini-row .useful-links-section{
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
  }

  .left-mini-row .social-contacts-section{
    flex: 1 1 auto !important;
    min-width: 0;
  }

  /* сами “плашки” ссылок не должны раздувать ширину */
  .left-mini-row .useful-link{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9em;
    padding: 6px 8px;
  }

  /* 3) edit-links и edit-social-contacts меньше */
  .left-mini-row .edit-links,
  .left-mini-row .edit-social-contacts{
    font-size: 0.85em !important;
    margin-top: 6px !important;
  }

  /* 4) social-icon меньше (подстраховка под разные реализации) */
  .left-mini-row .social-icon,
  .left-mini-row .social-icon img,
  .left-mini-row .social-icon svg{
    width: 26px !important;
    height: 26px !important;
  }

  /* и чтобы строка контакта выглядела компактнее */
  .left-mini-row .contact-item{
    gap: 8px;
    font-size: 0.92em;
  }
}
@media (max-width: 768px){

  /* 1) avatar-circle и имя меньше на ~20% */
  .avatar-circle{
    width: 104px !important;   /* было ~130 */
    height: 104px !important;
    min-width: 104px ;
    min-height: 104px ;
    flex: 0 0 104px !important;
  }
  .flag-icon {
    width: 36px;
    height: 24px;
  }
  .add-language-btn img {
    width: 36px;
    height: 24px;
  }
  .language-tags {}
  .add-language-btn {
    width: 36px;
    height: 24px;
  }
  .profile-name{
    font-size: 1.6em !important; /* было 2em, -20% */
    line-height: 1.1;
  }

  /* 2) profile-tabs: иконки по центру */
  .profile-tabs{
    display: flex;
    justify-content: center;   /* центрируем всю группу */
    align-items: center;
    gap: 30px;                 /* чтобы было как две "кнопки" слева/справа */
    padding: 0;
  }

  .profile-tabs .tab{
    display: flex;
    justify-content: center;   /* центрируем саму иконку в табе */
    align-items: center;
    flex: 0 0 auto;
    padding: 6px 10px;
  }

  /* на случай если иконки это img/svg */
  .profile-tabs .tab img,
  .profile-tabs .tab svg{
    display: block;
    margin: 0 auto;
  }
}
@media (max-width: 768px){

  /* 1) profile-header: выравнивание по центру по вертикали */
  .profile-header{
    align-items: center; /* было flex-start/не задано */
  }

  /* 2) карточки объявлений: типографика и иконки */

  /* заголовок: 16px и без верхнего отступа */
  .listing-title{
    font-size: 16px !important;
    margin-top: 0 !important;
    line-height: 1.2;
  }

  /* описание: 12px */
  .listing-description{
    font-size: 12px !important;
    line-height: 1.25;
    margin-bottom: 0;
  }

  /* stats: на 10% меньше (и текст, и иконки) */
  .listing-stats{
    transform: scale(0.9);
    transform-origin: left center;
  }

  /* чтобы transform не ломал кликабельность/выравнивание, чуть компенсируем */
  .listing-stats .stat-item{
    gap: 4px;
  }

  /* icons в listing-actions = такой же размер, как в stats (одинаковые) */
  .listing-actions img,
  .listing-actions svg{
    width: 16px !important;
    height: 16px !important;
  }

  /* на всякий случай: если внутри stats иконки тоже img/svg */
  .listing-stats img,
  .listing-stats svg{
    width: 21px !important;
    height: 21px !important;
  }
}
/* ===================== Mobile Header (Profile) ===================== */
.mobile-header{
  display: none;                 /* по умолчанию скрыт на десктопе */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  height: 56px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-header__left{
  display: flex;
  align-items: center;
}

.mobile-header__right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header{
  display: none;
}

.mobile-logo{
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #ff7a00;               /* под твой NARUKE */
  font-size: 18px;
}

.mobile-header{
  display: none;
}

.mobile-header{
  display: none;
}

.mobile-header{
  display: none;
}

/* кнопки как в main-store/create-card */
.mh-btn{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255, 122, 0, 0.25);
  background: #fff;
  box-sizing: border-box;
}

.mh-btn svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ff7a00;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Переключение на мобиле */
@media (max-width: 768px){

  /* показываем mobile header */
  .mobile-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* скрываем десктопный header (у тебя он <header class="header">) */
  header.header{
    display: none !important;
  }

  /* чтобы контент не уехал под sticky header */
  main.profile-main{
    padding-top: 8px;
  }
}
/* desktop: mobile header hidden */
.mobile-header{ display: none; }

/* ===================== MOBILE HEADER (MVP) ===================== */
@media (max-width: 768px) {
  .right {
    padding-top: 1rem;
  }
  /* прячем ПК header на мобиле */
  header.header{ display: none !important; }

  /* показываем mobile header */
  .mobile-header{ display: flex; }

  .mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 50px;
    width: 100vw;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 12px;
    box-sizing: border-box;
    z-index: 4500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  /* чтобы контент не уезжал под фиксированный header */
  body{ padding-top: 50px; }

  .mobile-logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.3px;
    color: var(--accent);
    text-decoration: none;
    line-height: 1;
  }

  .mobile-header__right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mh-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    border: 1.5px solid var(--accent-border);
    background: var(--accent-soft);
    cursor: pointer;
    box-sizing: border-box;
    transition: .2s;
  }

  .mh-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
  }
  .mh-btn svg rect,
  .mh-btn svg circle { stroke: var(--accent); }

  .mh-btn:active { transform: scale(0.96); }
  .mh-btn--link { text-decoration: none; }
}

/* ===================== MOBILE: liked cards same as main-store ===================== */
@media (max-width: 768px) {

  /* на всякий случай убираем горизонтальный скролл */
  html, body { max-width: 100%; overflow-x: hidden; }

  /* контейнер лайкнутых карточек: 2 колонки, как в main-store */
  #listingsContainer[data-mode="liked"],
  .listings-container.liked {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    justify-content: flex-start;
    flex-direction: row;
  }
  .tab-btn {
    padding: 0;
  }
  .tab-btn img {
    width: 20px;
    height: 20px;
  }
  .divider-line {
    margin-bottom: 10px;
  }
  /* карточка: размеры и поведение как в main-store mobile */
  #listingsContainer[data-mode="liked"] .card,
  .listings-container.liked .card {
    width: calc(50% - 10px) !important;
    height: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* картинка: убираем фиксированные 268x320 из desktop-стилей */
  #listingsContainer[data-mode="liked"] .card img,
  .listings-container.liked .card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 !important;
  }

  /* текст/цена как в main-store mobile */
  #listingsContainer[data-mode="liked"] .card-info,
  .listings-container.liked .card-info {
    padding: 3px 6px 0 !important;
  }

  #listingsContainer[data-mode="liked"] .card-info .price,
  .listings-container.liked .card-info .price {
    font-size: 18px !important;
  }

  #listingsContainer[data-mode="liked"] .card-title,
  .listings-container.liked .card-title {
    font-size: 12px !important;
    margin-top: 0 !important;
    padding: 0 8px 4px !important;
  }

}
/* ===== MOBILE MODALS FIX ===== */
@media (max-width: 768px) {
  /* чтобы модалка не прилипала к краям */
  .modal-overlay {
    padding: 14px;
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    box-sizing: border-box;

    /* центрируем модалку */
    align-items: center;
    justify-content: center;
  }

  /* общий вид модалок на мобиле */
  .edit-links-modal,
  .edit-modal {
    width: 100%;
    max-width: 520px;               /* можно оставить 500, но не критично */
    margin: 0 auto;
    border-radius: 16px;
    max-height: calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;                 /* если контента много - скролл внутри */
    box-sizing: border-box;
    padding: 18px;
    max-height: 85vh;
  }

  /* крестик чтобы не уезжал */
  .close-modal {
    top: 10px;
    right: 12px;
  }
}
@media (max-width: 768px) {
  .links-list {
    max-height: calc(100vh - 260px);
  }
}
/* Компактная модалка языков */
#languageModal .edit-links-modal {
  width: min(92vw, 380px);
  max-width: 380px;
  max-height: min(78vh, 640px);
  padding: 18px 18px 16px;
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}

#languageModal .edit-links-modal h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

#languageModal .edit-links-modal p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.35;
}

#languageModal .close-modal {
  top: 10px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
}

/* Контейнеры языков компактнее */
#userLanguagesContainer,
#languageOptionsContainer {
  margin: 12px 0;
}

#languageOptionsContainer {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Чиним убегающий input */
#languageSearch {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 8px 0 14px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 14px;
}

/* Компактнее элементы списка */
.selected-language,
.language-option {
  min-height: 48px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-sizing: border-box;
}

.selected-language img,
.language-option img {
  width: 28px;
  height: 20px;
  margin-right: 10px;
}

.selected-language span,
.language-option span {
  font-size: 15px;
  line-height: 1.2;
}

.lang-flag-and-label {
  min-width: 0;
  gap: 0;
}

.lang-flag-and-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Кнопка удаления языка аккуратнее */
.delete-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 10px;
}

@media (max-width: 480px) {
  #languageModal .edit-links-modal {
    width: min(94vw, 360px);
    max-width: 360px;
    padding: 16px 14px 14px;
  }

  #languageOptionsContainer {
    max-height: 250px;
  }
}

@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  .store-page,
  .store-content,
  .catalog-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #listingContainer,
  .listings-grid,
  .card-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  #listingContainer .card,
  .listings-grid .card,
  .card-grid .card {
    width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 0 !important;
  }

  #listingContainer .card img,
  .listings-grid .card img,
  .card-grid .card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
  }
}