/* ===== INDEX.CSS — универсальные стили для всех страниц ===== */

/* ---- RESET & BASE ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0f13;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #eef4f8;
  line-height: 1.5;
  min-height: 100vh;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px 0;
  /* padding-top компенсирует фиксированную шапку (динамически обновляется в header-scroll.js) */
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---- УНИВЕРСАЛЬНАЯ ШАПКА ---- */
/* ===== НАВБАР — ФИКСИРОВАННЫЙ С АВТО-СКРЫТИЕМ ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #1a2a32;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;

  /* Фиксация сверху на всю ширину */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  /* Центрирование — как у .app (max-width 1400px) */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;

  /* Фон, чтобы контент не просвечивал */
  background: #0a0f13;

  /* Плавное скрытие/появление */
  transition: transform 0.3s ease;
}

/* Скрытое состояние — уезжает вверх */
.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
  color: #4f8aaa;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #eef4f8;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: #4f8aaa;
}

/* ---- НАВИГАЦИЯ (центр) ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #8aa6b8;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a i {
  font-size: 15px;
}

.nav-links a:hover {
  color: #dce9f2;
  background: #162026;
}

.nav-links a.active-link {
  color: #dce9f2;
  background: #1a2a34;
}

/* ---- ПОИСК В ХЕДЕРЕ (компактный) ---- */
.header-search {
  display: flex;
  align-items: center;
  background: #10181e;
  border: 1px solid #1f2f38;
  border-radius: 40px;
  padding: 4px 14px;
  transition: 0.2s ease;
  max-width: 280px;
  gap: 8px;
  margin-right: 4px;
}

.header-search:focus-within {
  border-color: #3f8ab0;
  box-shadow: 0 0 0 3px rgba(60, 150, 200, 0.1);
}

.header-search i {
  color: #4f6a7a;
  font-size: 14px;
  flex-shrink: 0;
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #eef4f8;
  font-size: 13px;
  font-family: inherit;
  padding: 4px 0;
  width: 100%;
  min-width: 100px;
}

.header-search input::placeholder {
  color: #4f6a7a;
  font-size: 12px;
}

/* ---- ПРАВАЯ ЧАСТЬ (кнопки) ---- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Кнопка авторизации */
.btn-auth {
  background: transparent;
  border: 1px solid #2f404a;
  color: #b0ccdd;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth i {
  font-size: 14px;
  color: #4f8aaa;
}

.btn-auth:hover {
  background: #162026;
  border-color: #4f8aaa;
  color: #dce9f2;
}

.btn-auth.logged-in {
  background: rgba(60, 150, 200, 0.1);
  border-color: #3f8ab0;
}

.btn-auth.logged-in:hover {
  background: rgba(60, 150, 200, 0.2);
}

/* Кнопка Pro */
.btn-pro {
  background: linear-gradient(135deg, #f7b731, #f5a623);
  border: none;
  color: #0a0f13;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.btn-pro i {
  font-size: 14px;
}

.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.3);
}

/* ===== АВАТАР В ШАПКЕ ===== */
.btn-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a2a34;
  border: 1px solid #2f404a;
  color: #8aa6b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-avatar:hover {
  border-color: #4f8aaa;
  color: #dce9f2;
  background: #1a2a34;
}

.btn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-avatar i {
  font-size: 18px;
  color: #8aa6b8;
}

/* ---- ПОИСК И ФИЛЬТРЫ (для ленты) ---- */
.search-section {
  margin: 20px 0 32px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: #10181e;
  border: 1px solid #1f2f38;
  border-radius: 60px;
  padding: 8px 20px;
  transition: 0.2s ease;
  max-width: 600px;
}

.search-wrapper:focus-within {
  border-color: #3f8ab0;
  box-shadow: 0 0 0 3px rgba(60, 150, 200, 0.1);
}

.search-wrapper i {
  color: #4f6a7a;
  margin-right: 12px;
  font-size: 16px;
}

.search-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: #eef4f8;
  font-size: 15px;
  font-family: inherit;
  padding: 8px 0;
  width: 100%;
}

.search-wrapper input::placeholder {
  color: #4f6a7a;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #e06c6c;
  background: transparent;
  border: 1px solid #3f2a2a;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.clear-filters:hover {
  color: #ff8a8a;
  border-color: #e06c6c;
  background: rgba(224, 108, 108, 0.08);
}

.clear-filters:active {
  transform: scale(0.96);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tabs span {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #6d8fa0;
  background: transparent;
  border: 1px solid #1f2f38;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tabs span:hover {
  color: #b0ccdd;
  border-color: #2f404a;
}

.filter-tabs span.active {
  color: #dce9f2;
  background: #1a2a34;
  border-color: #3f6a80;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #6d8fa0;
  background: transparent;
  border: 1px solid #1f2f38;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: #b0ccdd;
  border-color: #2f404a;
}

.filter-btn:active {
  transform: scale(0.96);
}

/* ---- ЧИП АКТИВНОЙ КАТЕГОРИИ ---- */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #dce9f2;
  background: #1a2a34;
  border: 1px solid #3f6a80;
  cursor: default;
  white-space: nowrap;
}

.category-chip i:first-child {
  color: #4f8aaa;
  font-size: 13px;
}

.category-chip .fa-times {
  color: #5f8095;
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: 0.2s ease;
}

.category-chip .fa-times:hover {
  color: #ff8a8a;
  background: rgba(224, 108, 108, 0.12);
}

/* ---- СЕТКА КАРТОЧЕК (лента) ---- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.model-card {
  background: #0f171e;
  border: 1px solid #1a2a32;
  border-radius: 24px;
  overflow: hidden;
  transition: 0.3s ease;
}

.model-card:hover {
  border-color: #2f4a5a;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-thumb {
  height: 180px;
  background: #0d151a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #1a2a32;
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #2f4a5a;
  z-index: 0;
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 15, 19, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  color: #8aa6b8;
  border: 1px solid #1f2f38;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 16px 18px 18px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: #dce9f2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-title i {
  font-size: 14px;
  color: #4f8aaa;
}

.card-meta {
  font-size: 13px;
  color: #5f8095;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #1a2a32;
}

.author {
  font-size: 14px;
  color: #8aa6b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.author-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-avatar-img.hidden + i,
.author i.hidden {
  display: none;
}

/* ===== Имя автора в карточке модели ===== */
.card-author-pro {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #8aa6b8;
}
.card-author-pro .author-name-text {
  color: #8aa6b8;
  transition: color 0.2s;
}
.card-author-pro .author-name-text.username-pro {
  color: #f5a623 !important;
  text-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}
.card-author-pro .pro-badge i {
  font-size: 12px;
  color: #f5a623;
  filter: drop-shadow(0 0 3px rgba(245, 166, 35, 0.4));
}

/* Скрытие иконки-заглушки когда есть аватар */
.card-author-pro i.hidden,
.author i.hidden {
  display: none;
}

/* ---- УНИВЕРСАЛЬНЫЙ ПОДВАЛ ---- */
.footer {
  margin-top: auto;
  padding: 24px 0 20px;
  border-top: 1px solid #1a2a32;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #5f8095;
  font-size: 14px;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #8aa6b8;
}

.footer-copy {
  color: #4f6a7a;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-social {
  display: flex;
  align-items: center;
}

.footer-social a {
  color: #5f8095;
  font-size: 20px;
  transition: 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: #4f8aaa;
  transform: scale(1.1);
}

/* ---- ПРЕВЬЮ МОДЕЛЕЙ В КАРТОЧКАХ ---- */
.card-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.card-thumb {
  overflow: hidden;
  position: relative;
}

/* Ховер-оверлей на превью */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10, 15, 19, 0) 30%, rgba(10, 15, 19, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.model-card:hover .card-hover-overlay {
  opacity: 1;
}

.card-open-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 30, 0.85);
  border: 1px solid #2f4a5a;
  color: #dce9f2;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 40px;
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.model-card:hover .card-open-hint {
  transform: translateY(0);
}

.card-open-hint i {
  color: #4f8aaa;
}

/* ---- СКЕЛЕТОНЫ ЗАГРУЗКИ КАРТОЧЕК ---- */
.skeleton-card {
  pointer-events: none;
}

.skeleton-thumb {
  background: #0d151a;
}

.skeleton-line {
  background: #162026;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ---- АНИМАЦИИ ---- */
@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- СИСТЕМНЫЕ Z-INDEX ---- */
.auth-overlay,
.pro-overlay,
.filtres-overlay {
  z-index: 9999 !important;
}
.auth-message {
  z-index: 99999 !important;
}

/* ===== ФИЛЬТРЫ МОДАЛКА ===== */
.filtres-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filtres-overlay.open {
  opacity: 1;
  visibility: visible;
}

.filtres-modal {
  background: #0f171e;
  border: 1px solid #1a2a32;
  border-radius: 28px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.filtres-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a2a34;
  border: 1px solid #2f404a;
  color: #8aa6b8;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  z-index: 10;
}

.filtres-close:hover {
  background: #2f404a;
  color: #dce9f2;
}

.filtres-header {
  text-align: center;
  padding: 32px 24px 20px;
  border-bottom: 1px solid #1a2a32;
}

.filtres-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a2a34;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.filtres-icon {
  font-size: 24px;
  color: #4f8aaa;
}

.filtres-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #dce9f2;
  margin-bottom: 6px;
}

.filtres-header p {
  font-size: 14px;
  color: #5f8095;
}

.filtres-scrollable {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

/* ---- СЕКЦИИ ФИЛЬТРОВ ---- */
.filtres-section {
  margin-bottom: 20px;
}

.filtres-section:last-child {
  margin-bottom: 0;
}

.filtres-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #a0c0d8;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filtres-section-title i {
  color: #4f8aaa;
  font-size: 13px;
}

/* ---- ЧИПЫ ФОРМАТОВ ---- */
.filtres-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filtres-format-chip {
  position: relative;
  cursor: pointer;
}

.filtres-format-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filtres-format-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #0a1318;
  border: 1px solid #1f2f38;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #8aa6b8;
  transition: 0.2s;
  user-select: none;
}

.filtres-format-chip:hover .filtres-format-label {
  border-color: #2f4a5a;
  color: #a0c0d8;
}

.filtres-format-chip input[type="checkbox"]:checked + .filtres-format-label {
  background: rgba(60, 150, 200, 0.12);
  border-color: #4f8aaa;
  color: #70c0e0;
  box-shadow: 0 0 10px rgba(60, 150, 200, 0.15);
}

/* ---- ФУТЕР МОДАЛКИ ФИЛЬТРОВ ---- */
.filtres-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #1a2a32;
}

.filtres-reset-btn {
  background: #11191e;
  border: 1px solid #2f404a;
  color: #8aa6b8;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filtres-reset-btn:hover {
  background: #1a2a34;
  border-color: #3f6a80;
  color: #dce9f2;
}

.filtres-apply-btn {
  flex: 1;
  background: linear-gradient(135deg, #1f3e4f, #0f2838);
  border: 1px solid #2f5a70;
  color: #e0f0ff;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filtres-apply-btn:hover {
  background: linear-gradient(135deg, #2a5068, #163240);
  border-color: #4080a0;
}

.filtres-apply-btn i {
  color: #80c8f0;
}

/* ---- TOAST УВЕДОМЛЕНИЯ ---- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a2a34;
  color: #dce9f2;
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid #3f6a80;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 10000 !important;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- КНОПКА «НАВЕРХ» ---- */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a2a34;
  border: 1px solid #2f404a;
  color: #8aa6b8;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: #2f404a;
  border-color: #4f8aaa;
  color: #dce9f2;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* ---- NOSCRIPT FALLBACK ---- */
body {
  opacity: 1;
}
body.loaded {
  opacity: 1;
}

/* ---- СООБЩЕНИЯ ---- */
.auth-message {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 12px;
}

/* ---- АДАПТИВНОСТЬ ---- */
@media (max-width: 820px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .logo-area {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .nav-right {
    justify-content: center;
  }

  .search-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .feed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app {
    padding: 0 12px;
  }

  .nav-links a {
    padding: 4px 10px;
    font-size: 12px;
  }

  .nav-links a span {
    display: none;
  }

  .btn-auth {
    padding: 6px 14px;
    font-size: 12px;
  }

  .btn-auth span {
    display: none;
  }

  .btn-pro {
    padding: 6px 14px;
    font-size: 12px;
  }

  .btn-pro span {
    display: none;
  }

  .btn-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

.filter-tabs span,
  .filter-btn {
    font-size: 12px;
    padding: 4px 12px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

    /* Стили для закладок */
    .bookmark-btn {
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    color: #5f8095;
  }

  .bookmark-btn .bookmark-icon {
    transition: 0.2s;
    font-size: 16px;
  }

  .bookmark-btn.active .bookmark-icon {
    color: #4f8aaa;
  }

  .bookmark-btn:not(.active) .bookmark-icon {
    color: #5f8095;
  }

  .bookmark-btn:hover {
    background: #1a2a34;
  }

  .bookmark-btn .bookmark-count {
    font-size: 14px;
    color: #5f8095;
    transition: 0.2s;
  }

  .bookmark-btn.active .bookmark-count {
    color: #8aa6b8;
  }

  /* === СТРОКА СТАТИСТИКИ === */
  .card-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    font-size: 12px;
    color: #4f6a7a;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .stat-item i {
    font-size: 12px;
    width: 14px;
    color: #3f5a6a;
  }

  /* === РЕЙТИНГ НА КАРТОЧКЕ (в строке статистики) === */
  .card-rating i {
    color: #4f8aaa;
  }

  .card-rating {
    color: #c0d8ea;
    font-weight: 500;
  }

  /* === БЕДЖ КАТЕГОРИИ === */
  .card-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 15, 19, 0.85);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    color: #6d8fa0;
    border: 1px solid #1f2f38;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: lowercase;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* === ПУСТОЕ СОСТОЯНИЕ ЛЕНТЫ === */
  .section-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    background: #0f171e;
    border: 2px solid #2f404a;
    border-radius: 24px;
    margin: 20px 0 40px;
    width: 100%;
    min-height: 260px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }

  .section-empty.grid-span-full {
    grid-column: 1 / -1;
  }

  .section-empty .empty-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #1a2a34;
    border: 1px solid #2f404a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s ease;
  }

  .section-empty .empty-icon-wrapper i {
    font-size: 30px;
    color: #4f8aaa;
  }

  .section-empty p {
    font-size: 16px;
    font-weight: 500;
    color: #8aa6b8;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .section-empty .empty-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #dce9f2;
    background: #1a2a34;
    border: 1px solid #3f6a80;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
  }

  .section-empty .empty-reset-btn:hover {
    color: #ffffff;
    border-color: #4f8aaa;
    background: #2f404a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 150, 200, 0.2);
  }

  .section-empty .empty-reset-btn:active {
    transform: scale(0.96);
  }

  .section-empty .empty-reset-btn i {
    color: #4f8aaa;
    font-size: 13px;
  }

  @keyframes emptyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  .section-empty .empty-icon-wrapper {
    animation: emptyPulse 3s ease-in-out infinite;
  }

  @media (max-width: 600px) {
    .section-empty {
      padding: 48px 16px;
    }

    .section-empty .empty-icon-wrapper {
      width: 60px;
      height: 60px;
    }

    .section-empty .empty-icon-wrapper i {
      font-size: 24px;
    }

    .section-empty p {
      font-size: 14px;
    }

    .section-empty .empty-reset-btn {
      padding: 8px 18px;
      font-size: 13px;
    }
  }

  /* ============================================================
     КНОПКИ СОЦСЕТЕЙ (.social-links / .social-btn)
     Переиспользуются в шапке профиля (profile.html / user.html) и в
     author-card (model.html) — стили общие.
     ============================================================ */
  .social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 40px;
      background: transparent;
    border: 1px solid #2f404a;
    color: #8aa6b8;
    font-size: 13px;
      font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
      white-space: nowrap;
  }
  .social-btn i {
    font-size: 15px;
    color: #4f8aaa;
  }
  .social-btn:hover {
    background: #162026;
    border-color: #4f8aaa;
    color: #dce9f2;
  }
  .social-btn:hover i {
    color: #6fb0d0;
  }

  /* Разновидности по сети */
  .social-btn.social-telegram:hover i { color: #2aabee; }
  .social-btn.social-github:hover i { color: #c9d1d9; }
  .social-btn.social-website:hover i { color: #4f8aaa; }

  /* Компактный вариант (только иконка, для сайдбара модели) */
  .social-btn.social-icon-only {
    padding: 9px;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .social-btn.social-icon-only i {
    font-size: 16px;
  }
