/* выпадающее меню */
.header-dd {
  position: absolute;
  top: calc(100% + 12px);        /* чуть ниже кнопки, как у тебя на 2 скрине */
  left: 0;
  min-width: 240px;
  background: #0F1417;
  border: 1px solid #1C2529;
  border-radius: 20px;
  padding: 10px 0;               /* без лишнего воздуха сверху/снизу */
  display: none;
  z-index: 200;
}

/* пункт */
.header-dd a {
  display: block;
  padding: 10px 22px;            /* вот оно – как на втором скрине */
  font-size: 14px;               /* шрифт не мелкий */
  line-height: 1.4;
  color: #E6EAE9;
  text-decoration: none;
  border-radius: 14px;           /* чтобы при ховере был скруглённый фон */
}

/* ховер по пункту */
.header-dd a:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* показать */
.header-dd.show {
  display: block;
}

/* активная кнопка в хедере (саму кнопку можно подсветить) */
.header-btn.is-open {
  background: rgba(255, 255, 255, 0.03);
}


/* сетка в редакторе профиля */
.user-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.user-edit-grid .form-group {
  margin-bottom: 0;
}
.user-edit-grid .full {
  grid-column: 1 / -1;
}

.user-edit-subtitle {
  font-weight: 600;
  color: #e6eae9;
  background: rgba(15,20,23,.3);
  border: 1px solid rgba(28,37,41,.3);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
}

.user-edit-form .wide,
.user-edit-form textarea,
.user-edit-form input[type="file"],
.user-edit-form select {
  width: 100%;
  background: #0f1417;
  border: 1px solid #1c2529;
  border-radius: 10px;
  color: #e6eae9;
  padding: 6px 10px;
  font-size: 13px;
}

.form_submit {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* нормальная кнопка */
.btn-green {
  background: rgb(34, 197, 94);
  color: #0b0f0d;
  border: none;
  border-radius: 10px;
  padding: 7px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn-green:hover {
  filter: brightness(0.97);
}
.delete-link {
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 900px) {
  .user-edit-grid {
    grid-template-columns: 1fr;
  }
}





















.userpage {
  background: transparent;
}
.userpage-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}
.userpage-left {
  width: 230px;
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.user-ava-card {
  background: #12181b;
  border: 1px solid #1c2529;
  border-radius: 18px;
  padding: 14px 14px 16px;
  text-align: center;
}
.user-ava-img {
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  margin-bottom: 10px;
}
.user-ava-name {
  color: #e6eae9;
  font-weight: 600;
  margin-bottom: 10px;
}
.user-ava-btn,
.user-ava-btn-alt {
  display: block;
  width: 100%;
  border-radius: 9999px;
  background: rgba(34,197,94,.16);
  border: 1px solid #1c2529;
  color: #e6eae9;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
}
.user-side-block {
  background: #12181b;
  border: 1px solid #1c2529;
  border-radius: 16px;
  padding: 12px 14px;
}
.user-side-title {
  font-size: 13px;
  color: #e6eae9;
  font-weight: 600;
  margin-bottom: 8px;
}
.user-side-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #a7b2ae;
}

.userpage-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.user-tabbar {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.user-tabbar li a {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  color: #e6eae9;
  font-size: 13px;
}
.user-tabbar li.active a {
  background: rgba(34,197,94,.16);
}
.user-tab-content {
  display: block;
}
.user-tab-pane {
  display: none;
}
.user-tab-pane.active {
  display: block;
}
.user-card {
  background: #12181b;
  border: 1px solid #1c2529;
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 12px;
}
.top-card {
  margin-bottom: 14px;
}
.user-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.user-card-name {
  font-weight: 600;
  color: #e6eae9;
}
.user-card-meta {
  font-size: 12px;
  color: #a7b2ae;
}
.user-stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.user-stat {
  background: rgba(15,20,23,.4);
  border: 1px solid rgba(28,37,41,.3);
  border-radius: 14px;
  padding: 6px 10px;
  min-width: 130px;
}
.user-stat-title {
  font-size: 11px;
  color: #a7b2ae;
}
.user-stat-val {
  font-size: 16px;
  font-weight: 600;
  color: #e6eae9;
}
.user-stat-link {
  font-size: 11px;
  color: #22c55e;
}
.user-card-title {
  font-weight: 600;
  color: #e6eae9;
  margin-bottom: 8px;
}
.user-grid {
  display: grid;
  gap: 6px;
}
.user-grid-row {
  display: flex;
  gap: 12px;
}
.user-grid-label {
  width: 160px;
  font-size: 12px;
  color: #a7b2ae;
}
.user-grid-val {
  flex: 1;
  font-size: 13px;
  color: #e6eae9;
}
.user-card-text {
  font-size: 13px;
  color: #e6eae9;
}
.user-edit-form {
  max-width: 780px;
}
.user-edit-form .wide,
.user-edit-form textarea,
.user-edit-form input[type="file"],
.user-edit-form select {
  background: #0f1417;
  border: 1px solid #1c2529;
  border-radius: 10px;
  color: #e6eae9;
}
.user-edit-form .form-group {
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .userpage-shell {
    flex-direction: column;
  }
  .userpage-left {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .userpage-right {
    width: 100%;
  }
  .user-card-top {
    flex-direction: column;
  }
  .user-grid-row {
    flex-direction: column;
  }
}

/* карточки редактирования */
.user-edit-section {
  background: rgba(15, 20, 23, 0.4);
  border: 1px solid #1c2529;
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin-bottom: 14px;
}

.user-edit-section-title {
  font-weight: 600;
  color: #e6eae9;
  margin-bottom: 10px;
  font-size: 14px;
}

/* сетка внутри секции */
.user-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 14px 16px;
}
.user-edit-grid .full {
  grid-column: 1 / -1;
}

/* поля */
.user-edit-section .wide,
.user-edit-section textarea,
.user-edit-section input[type="file"],
.user-edit-section select {
  width: 100%;
  background: #0f1417;
  border: 1px solid #1c2529;
  border-radius: 10px;
  color: #e6eae9;
  padding: 6px 10px;
  font-size: 13px;
}

/* кнопка */
.btn-green {
  background: rgb(34, 197, 94);
  color: #0b0f0d;
  border: none;
  border-radius: 10px;
  padding: 7px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.btn-green:hover {
  filter: brightness(0.97);
}
.delete-link {
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
}

.form_submit {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* адаптив */
@media (max-width: 900px) {
  .user-edit-grid {
    grid-template-columns: 1fr;
  }
}



/* карточка редактирования целиком */
.user-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* заголовок сверху "Редактирование профиля" */
.user-card-title {
  font-weight: 600;
  color: #e6eae9;
  font-size: 16px;
}

/* одна секция (Основное / Безопасность / Аватар / О себе) */
.user-edit-section {
  background: #0f1417;
  border: 1px solid #1c2529;
  border-radius: 14px;
  padding: 14px 14px 16px;
}

/* заголовок секции */
.user-edit-section-title {
  font-weight: 600;
  color: #e6eae9;
  margin-bottom: 12px;
  font-size: 14px;
}

/* сетка полей внутри секции */
.user-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 18px;
}

/* если надо во всю ширину */
.user-edit-grid .full {
  grid-column: 1 / -1;
}

/* обычное поле */
.user-edit-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* подпись к полю */
.user-edit-section .form-group label {
  font-size: 12px;
  color: #a7b2ae;
}

/* инпуты */
.user-edit-section .form-group input[type="text"],
.user-edit-section .form-group input[type="email"],
.user-edit-section .form-group input[type="password"],
.user-edit-section .form-group input[type="file"],
.user-edit-section .form-group textarea,
.user-edit-section .form-group select {
  background: #0b0f11;
  border: 1px solid #1c2529;
  border-radius: 10px;
  padding: 6px 10px;
  color: #e6eae9;
  font-size: 13px;
}

/* textarea побольше */
.user-edit-section .form-group textarea {
  min-height: 110px;
}

/* чекбоксы */
.user-edit-section .checkbox,
.user-edit-section .checkbox label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #e6eae9;
}

/* нижний блок с кнопкой */
.form_submit {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* зелёная кнопка "Сохранить" */
.btn-green {
  background: #22c55e;
  border: none;
  color: #0b0f0d;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
}

/* "Удалить аккаунт" справа */
.delete-link {
  color: #f43f5e;
  font-size: 13px;
  cursor: pointer;
}

/* адаптив под мобилку */
@media (max-width: 700px) {

  .user-edit-section {
    padding: 12px 10px 14px;
  }
  .user-edit-grid {
    grid-template-columns: 1fr;
  }
}
/* кнопка Telegram */
.tg-button {
  display: inline-block;
  background: rgba(34,197,94,0.16);
  border: 1px solid #1c2529;
  color: #e6eae9;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}
.tg-button:hover {
  background: rgba(34,197,94,0.25);
  border-color: #22c55e;
  color: #22c55e;
}

/* Telegram-кнопка */
.tg-button {
  display: block; /* вместо inline-block */
  width: 100%; /* растягиваем по всей ширине */
  background: #14532d;
  border: 1px solid #166534;
  color: #e6eae9;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}

.tg-button:hover {
  background: #15803d;
  border-color: #16a34a;
  color: #fff;
}

/* Общие стили для боковых кнопок */
.profile-buttons a {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 0;
  border-radius: 10px; /* <-- чуть-чуть округлённые */
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.2s ease;
}

/* Кнопка "Редактировать" — серая */
.profile-buttons .edit-btn {
  background: #1e2529;
  color: #d1d5db;
  border: 1px solid #2b3438;
}
.profile-buttons .edit-btn:hover {
  background: #2b3438;
  color: #fff;
}

/* Кнопка "Написать ПС" — зелёная с иконкой */
.profile-buttons .pm-btn {
  background: #166534;
  color: #e6eae9;
  border: 1px solid #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.profile-buttons .pm-btn:hover {
  background: #15803d;
  border-color: #16a34a;
  color: #fff;
}

/* Иконка письма */
.profile-buttons .pm-btn i {
  font-size: 14px;
  line-height: 1;
}
/* Общий контейнер */
.user-ava-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}


.user-ava-btn {
  display: block; /* вместо inline-block */
  width: 100%; /* растягиваем по всей ширине */
  background: #1e2529;
  border: 1px solid #2b3438;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}




.user-ava-btn:hover {
  background: #2b3438;
  color: #fff;
  border-color: #3b454a;
}

.user-card-meta {
  color: #a7b2ae;
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dot-sep {
  color: #444;
}

.user-card.main-info {
  margin-top: 12px;
}

.user-card.top-card {
  background: #111518;
  border: 1px solid #1c2529;
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin-bottom: 14px;
}

.user-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.user-card-name {
  font-weight: 600;
  font-size: 15px;
  color: #e6eae9;
}

.user-card-activity {
  font-size: 13px;
  color: #a7b2ae;
  white-space: nowrap;
}

.user-card-sep {
  border: 0;
  border-top: 1px solid #1c2529;
  margin: 12px 0 14px;
}

.user-info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 6px;
  column-gap: 16px;
  margin-bottom: 16px;
}

.user-info-label {
  font-size: 13px;
  color: #a7b2ae;
}

.user-info-val {
  font-size: 13px;
  color: #e6eae9;
}

.user-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.user-stat {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.01);
  border-radius: 10px;
  padding: 10px 12px 9px;
  min-width: 140px;
}

.user-stat-title {
  font-size: 12px;
  color: #a7b2ae;
  margin-bottom: 3px;
}

.user-stat-val {
  font-size: 16px;
  font-weight: 600;
  color: #e6eae9;
}

.user-stat-link {
  font-size: 11px;
  color: #22c55e;
}
@media (max-width: 720px) {
  .user-card-topline {
    flex-direction: column;
    align-items: flex-start;
  }
  .user-info-grid {
    grid-template-columns: 1fr;
  }
}









.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

/* стрелки */
.pagination .page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0f1417;
  border: 1px solid #1c2529;
  color: #e6eae9;
  transition: all 0.15s ease;
  font-size: 14px;
}
.pagination .page-arrow:hover {
  background: #162024;
}

/* цифры страниц */
.pagination-pages a,
.pagination-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0f1417;
  border: 1px solid #1c2529;
  color: #e6eae9;
  font-weight: 500;
  transition: all 0.15s ease;
  font-size: 14px;
  margin: 0 2px;
}

/* hover */
.pagination-pages a:hover {
  background: #162024;
}

/* активная страница */
.pagination-pages span,
.pagination-pages .current,
.pagination-pages span.nav_ext {
  background: #14532d;
  border-color: #14532d;
  color: #fff;
}

