@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================================
   FurNest — единый стиль (v3)
   Тёмная тема + Unbounded/Manrope + живой текст
   ========================================================== */

:root {
  /* Базовая палитра */
  --bg-main:    #0f0f18;
  --bg-card:    #1a1a28;
  --bg-header:  #0a0a12;
  --bg-soft:    #22223a;
  --bg-elevated:#20202e;

  /* Акценты */
  --accent:        #a855f7;
  --accent-hover:  #9333ea;
  --accent-soft:   rgba(168,85,247,0.15);
  --accent-glow:   rgba(168,85,247,0.35);
  --accent-2:      #22d3ee;

  /* Текст */
  --text-main:  #f5f5f7;
  --text-muted: #b4b4c4;
  --text-dim:   #8585a0;

  /* Служебные */
  --border-color: #2a2a3a;
  --border-soft:  rgba(255,255,255,0.06);
  --danger:  #e11d48;
  --success: #22c55e;
  --warning: #f59e0b;

  /* Тени */
  --shadow-sm:     0 2px 6px rgba(0,0,0,0.25);
  --shadow-md:     0 6px 20px rgba(0,0,0,0.35);
  --shadow-lg:     0 14px 40px rgba(0,0,0,0.45);
  --shadow-accent: 0 6px 20px rgba(168,85,247,0.35);

  /* Скругления */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Скорости */
  --t-fast: 0.15s ease;
  --t-mid:  0.25s ease;

  /* Шрифты */
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

::selection { background: var(--accent-glow); color: #fff; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb {
  background: #2e2e42;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Фокус для клавиатуры */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Единый стиль заголовков */
.logo,
.hero-content h1,
.section-title h2,
.page-head h1,
.admin-card h2,
.post-title,
.topic-view h1,
.profile-info h1,
.profile-preview-info h3,
.dialogs-list h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ ШАПКА ============ */
header {
  background: rgba(10,10,18,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  transition: color var(--t-fast), text-shadow var(--t-fast);
}
.logo:hover {
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

header nav { flex: 1; }
header nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
header nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
header nav a:hover {
  color: var(--text-main);
  background: var(--accent-soft);
}
header nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
header nav a.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.user-chip:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.user-chip img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ============ БАННЕР EMAIL ============ */
.verify-banner {
  background: linear-gradient(90deg, rgba(225,29,72,0.2), rgba(168,85,247,0.2));
  border-bottom: 1px solid rgba(225,29,72,0.4);
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
}
.verify-banner a { color: #ff8099; font-weight: 700; margin-left: 6px; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 24px rgba(168,85,247,0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 6px 20px rgba(225,29,72,0.3);
}
.btn-danger:hover { background: #be123c; color: #fff; }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius-md); }

/* ============ HERO ============ */
.hero {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  position: relative;
  padding: 90px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,24,0.65), rgba(20,20,32,0.92));
}
.hero-content {
  position: relative;
  max-width: 660px;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-content p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.feature-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 26px; line-height: 1; }
.feature-text h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.feature-text p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* ============ ОСНОВНОЙ КОНТЕНТ ============ */
.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .main-content { grid-template-columns: 1fr; } }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title h2 { font-size: 18px; font-weight: 700; }
.section-title a { font-size: 13px; }

/* ============ РАБОТЫ ============ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.works-grid-wide  { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.works-grid-small { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-soft);
}
.work-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
  transition: transform var(--t-mid);
}
.work-card:hover > img { transform: scale(1.03); }

.work-image-link { display: block; overflow: hidden; }

.work-info {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-info h4 { font-size: 15px; font-weight: 700; }
.work-info h4 a { color: inherit; }
.work-info h4 a:hover { color: var(--accent); }

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.work-meta a { color: var(--accent); }
.work-meta-right { display: inline-flex; align-items: center; gap: 6px; }

.work-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 6px 0;
  line-height: 1.45;
}

.like-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.like-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(225,29,72,0.08);
}
.like-btn.liked {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(225,29,72,0.12);
}

/* ============ КОММЕНТАРИИ В КАРТОЧКЕ ============ */
.work-comments {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}
.comments-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.comment {
  font-size: 13px;
  padding: 6px 0;
  color: var(--text-main);
  border-bottom: 1px dashed var(--border-color);
}
.comment:last-child { border-bottom: none; }
.comment b { color: var(--accent); }
.comment-form { display: flex; gap: 6px; }
.comment-form input {
  flex: 1;
  padding: 7px 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.comment-form input::placeholder { color: var(--text-dim); }
.comment-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form button {
  padding: 7px 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.comment-form button:hover { background: var(--accent-hover); }

/* ============ АКТИВНОСТЬ ============ */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast);
}
.news-item:hover { border-color: var(--accent); }
.news-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.news-content { min-width: 0; flex: 1; }
.news-content .date { color: var(--text-dim); font-size: 11px; }
.news-content h4 { font-size: 13px; margin: 2px 0; }
.news-content p { color: var(--text-muted); font-size: 12px; }

/* ============ ПОЛЬЗОВАТЕЛИ ============ */
.users-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.user-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: all var(--t-fast);
  min-height: 92px;
  box-sizing: border-box;
}
.user-card:hover {
  border-color: var(--accent) !important;
  background: rgba(168,85,247,0.08) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.user-card > img,
.user-card > a > img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  flex: 0 0 64px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  aspect-ratio: 1 / 1 !important;
  border: 2px solid var(--border-color);
  transition: border-color var(--t-fast);
}
.user-card:hover > img,
.user-card:hover > a > img { border-color: var(--accent); }

.user-card-info {
  flex: 1 1 auto !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-card-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  word-break: break-word;
}
.user-card-username { color: var(--text-muted); font-size: 12px; }
.user-card-status { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.user-card-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ============ ПОИСК ============ */
.search-form {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.search-form input {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  min-width: 240px;
  flex: 1;
  max-width: 400px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-form input::placeholder { color: var(--text-dim); }
.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============ ЗАГОЛОВОК СТРАНИЦЫ ============ */
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.page-head h1 { font-size: 24px; font-weight: 700; }
.page-head > p { color: var(--text-muted); font-size: 13px; width: 100%; }

/* ============ ФОРУМ ============ */
.topics-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.topic-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: inherit;
  transition: all var(--t-fast);
}
.topic-item:hover {
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}
.topic-icon {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
  color: var(--text-dim);
}
.topic-body { flex: 1; min-width: 0; }
.topic-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.topic-meta { color: var(--text-muted); font-size: 12px; }
.topic-count {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  min-width: 60px;
}
.topic-count b { color: var(--text-main); font-size: 16px; }

.new-topic { margin: 14px 0; }
.new-topic summary::-webkit-details-marker { display: none; }
.new-topic summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.new-topic-form {
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.topic-view {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 14px;
}
.topic-view h1 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.topic-view-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.topic-view-text { white-space: pre-wrap; line-height: 1.75; }

.reply-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: border-color var(--t-fast);
}
.reply-item:hover { border-color: var(--accent-soft); }
.reply-avatar {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 56px !important;
}
.reply-body { flex: 1; min-width: 0; }
.reply-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.reply-text { font-size: 14px; line-height: 1.65; }

/* ============ АДМИН-КАРТОЧКИ / ФОРМЫ ============ */
.admin-wrap { max-width: 900px; margin: 30px auto; padding: 0 20px; }

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.admin-card h2 {
  font-size: 16px;
  margin-bottom: 14px;
  font-weight: 700;
}
.admin-card p { margin-bottom: 6px; }

.admin-card-matte {
  background: rgba(26, 26, 40, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: var(--shadow-md);
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .admin-card-matte { background: rgba(26, 26, 40, 0.92); }
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="url"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  caret-color: var(--accent);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-dim); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row input[type="file"] { padding: 8px; cursor: pointer; }

/* ============ ALERT ============ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
  animation: alertIn 0.25s ease;
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); color: #4ade80; }
.alert-error   { background: rgba(225,29,72,0.15); border: 1px solid rgba(225,29,72,0.4); color: #ff8099; }

/* ============ БЕЙДЖИ ============ */
.admin-badge {
  display: inline-block;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(168,85,247,0.4);
}
.role-badge, .friend-status {
  display: inline-block;
  background: rgba(168,85,247,0.15);
  color: #c4a5ff;
  border: 1px solid rgba(168,85,247,0.4);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-left: 6px;
  margin-top: 4px;
}
.roles-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.nav-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 800;
  line-height: 1.4;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0.6); }
  50%      { box-shadow: 0 0 0 4px rgba(225,29,72,0); }
}

/* ============ ПРОФИЛЬ ============ */
.profile-outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.profile-page {
  border-radius: var(--radius-lg);
  padding: 20px;
  background-color: var(--bg-main);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.profile-page.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 20, 32, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}
.profile-page > * { position: relative; z-index: 1; }

.profile-hero {
  position: relative;
  margin-bottom: 24px;
}
.profile-banner {
  height: 220px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}
.profile-banner.no-image {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  opacity: 0.9;
}

.profile-hero-body {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  margin-top: 0;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.profile-avatar {
  width: 160px !important;
  height: 160px !important;
  min-width: 160px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border: 4px solid var(--bg-main);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent), 0 12px 32px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin-top: -80px;
}

.profile-info {
  flex: 1;
  min-width: 0;
  padding-top: 12px;
  padding-bottom: 8px;
}
.profile-info h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-handle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 12px;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.profile-chips .role-badge,
.profile-chips .chip {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: #c4a5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.profile-status {
  display: inline-block;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 6px;
}
.profile-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.profile-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-content {
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-content .admin-card { margin-bottom: 0; }

@media (max-width: 720px) {
  .profile-outer { padding: 20px 14px; }
  .profile-banner { height: 150px; }
  .profile-hero-body {
    gap: 14px;
    padding: 0 14px;
    margin-top: 0;
    align-items: flex-start;
  }
  .profile-avatar {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    border-width: 3px;
    margin-top: -50px;
  }
  .profile-info { padding-top: 8px; }
  .profile-info h1 { font-size: 20px; }
  .profile-handle { font-size: 14px; }
  .profile-content { padding: 8px 14px 16px; }
}

/* ============ ПРЕВЬЮ ПРОФИЛЯ ============ */
.profile-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 40, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.profile-preview.has-bg {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
}
.profile-preview.has-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(20, 20, 32, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}
.profile-preview > * { position: relative; z-index: 1; }

.profile-avatar-sm {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(168,85,247,0.35);
}
.profile-preview-info { flex: 1; min-width: 0; }
.profile-preview-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text-main);
}
.profile-preview-info span { font-size: 13px; color: var(--text-muted); }

@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .profile-preview { background: rgba(26, 26, 40, 0.95); }
  .profile-preview.has-bg::before { background: rgba(20, 20, 32, 0.85); }
}

/* ============ ОФОРМЛЕНИЕ ПРОФИЛЯ ============ */
.skin-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.skin-preview {
  background-color: #17172a;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow var(--t-fast);
}
.skin-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  border: 2px solid var(--border-color);
}
.skin-avatar.is-set { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.skin-banner {
  width: 220px; height: 100px; border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}
.skin-banner.is-set { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.skin-letter { font-size: 36px; font-weight: 800; color: var(--text-dim); opacity: 0.6; }
.skin-check {
  position: absolute; right: -4px; bottom: -4px;
  background: var(--success); color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 10px rgba(34,197,94,0.5);
}
.skin-info { flex: 1; min-width: 200px; }
.skin-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.skin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.skin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg-main); border: 1px solid var(--border-color);
  color: var(--text-main); font-weight: 700; font-size: 13px;
  cursor: pointer; text-decoration: none;
  transition: all var(--t-fast); font-family: inherit;
}
.skin-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.skin-btn input[type="file"] { display: none; }
.skin-btn-danger { border-color: var(--danger); color: var(--danger); }
.skin-btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.skin-hint {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin: 6px 0 0 0;
}

/* ============ МЕССЕНДЖЕР ============ */
.messages-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  min-height: 520px;
}
@media (max-width: 720px) { .messages-layout { grid-template-columns: 1fr; } }

.dialogs-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  max-height: 640px;
  overflow-y: auto;
}
.dialogs-list h3 { font-size: 14px; margin-bottom: 10px; font-weight: 700; }
.dialogs-search { margin-bottom: 10px; }
.dialogs-search input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dialogs-search input::placeholder { color: var(--text-dim); }
.dialogs-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dialog-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  margin-bottom: 6px;
  transition: background var(--t-fast);
  align-items: center;
}
.dialog-item:hover { background: var(--accent-soft); }
.dialog-item.active { background: rgba(168,85,247,0.22); }
.dialog-item img {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 46px !important;
}
.dialog-name { font-weight: 700; font-size: 14px; }
.dialog-preview { color: var(--text-muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.dialog-date { color: var(--text-dim); font-size: 11px; margin-top: 2px; }

.dialog-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}
.dialog-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.15);
}
.dialog-header img {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex: 0 0 42px !important;
}
.dialog-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg { max-width: 72%; }
.msg.mine { align-self: flex-end; }
.msg.theirs { align-self: flex-start; }
.msg-text {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-soft);
  font-size: 14px;
  text-align: left;
  word-break: break-word;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}
.msg.mine .msg-text {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 4px 14px rgba(168,85,247,0.35);
}
.msg-date { color: var(--text-dim); font-size: 11px; margin-top: 3px; }

.msg-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 78%;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-wrap.mine { align-self: flex-end; align-items: flex-end; }
.msg-wrap.theirs { align-self: flex-start; align-items: flex-start; }
.msg-wrap.flash .msg-text,
.msg-wrap.flash .msg-attach {
  box-shadow: 0 0 0 3px var(--accent);
  transition: box-shadow var(--t-mid);
}
.msg-actions {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.msg-wrap:hover .msg-actions { opacity: 1; }
.msg-actions button {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: all var(--t-fast);
}
.msg-actions button:hover { color: var(--accent); border-color: var(--accent); }

.msg-reply-quote {
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.25);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--t-fast);
}
.msg-reply-quote:hover { opacity: 1; }
.msg-attach {
  max-width: 260px;
  max-height: 240px;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  cursor: pointer;
  object-fit: cover;
  transition: transform var(--t-fast);
}
.msg-attach:hover { transform: scale(1.02); }
.msg-reactions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}
.reaction:hover { border-color: var(--accent); transform: scale(1.05); }
.reaction.mine {
  background: rgba(168,85,247,0.2);
  border-color: var(--accent);
  color: #c4a5ff;
}
.reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}
.reply-bar b { color: var(--accent); }
.reply-bar button {
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 16px;
}
.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-color);
  max-height: 160px;
  overflow-y: auto;
}
.emoji-picker button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 20px;
  padding: 4px 6px;
  cursor: pointer;
  transition: all var(--t-fast);
  line-height: 1;
}
.emoji-picker button:hover {
  background: var(--bg-main);
  border-color: var(--accent);
  transform: scale(1.15);
}
.attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 18px;
  transition: all var(--t-fast);
  color: var(--text-main);
  flex-shrink: 0;
}
.attach-btn:hover { border-color: var(--accent); }
.attach-btn.has-file { border-color: var(--success); background: rgba(34,197,94,0.15); }

.dialog-form {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--border-color);
}
.dialog-form input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  caret-color: var(--accent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dialog-form input[type="text"]::placeholder { color: var(--text-dim); }
.dialog-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============ АДМИН-СПИСКИ ============ */
.admin-list { list-style: none; padding: 0; }
.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.admin-list li:last-child { border-bottom: none; }

/* ============ РОЛИ В АДМИНКЕ ============ */
.role-form {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--bg-main);
  transition: border-color var(--t-fast);
}
.role-form:hover { border-color: var(--accent-soft); }
.role-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.role-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.role-form-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.role-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
}
.role-check input { accent-color: var(--accent); }

/* ============ СТАТУСЫ ============ */
.status-ok    { color: #4ade80; font-weight: 600; }
.status-muted { color: var(--text-muted); }
.status-new   { color: #c4a5ff; font-weight: 600; }
.status-err   { color: #ff6b6b; font-weight: 600; }

/* ============ ПОДВАЛ ============ */
footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* ============ СТРАНИЦА ПОСТА ============ */
.post-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.post-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 700;
}
.post-author img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}
.post-author:hover { color: var(--accent); }

.post-image-wrap {
  margin: 0 0 18px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-main);
}
.post-image-wrap img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  display: block;
}

.post-description {
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  margin-bottom: 18px;
  color: var(--text-main);
}

.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.post-comments h2 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
}
.post-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-comment {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  border-bottom: none;
  transition: border-color var(--t-fast);
}
.post-comment:hover { border-color: var(--accent-soft); }
.comment-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  flex: 0 0 40px !important;
  background: var(--bg-soft);
}
.comment-avatar-stub { border-radius: 50%; background: var(--bg-soft); }
.comment-body { flex: 1; min-width: 0; }
.comment-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  font-size: 13px;
}
.comment-head b { color: var(--accent); }
.comment-del {
  margin-left: auto;
  padding: 2px 8px !important;
  font-size: 12px !important;
}
.comment-text {
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}

.comment-form-full {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}
.comment-form-full input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  caret-color: var(--accent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.comment-form-full input::placeholder { color: var(--text-dim); }
.comment-form-full input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form-full button {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-accent);
}
.comment-form-full button:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(168,85,247,0.5);
}

/* ============ Бургер-меню ============ */
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--t-fast);
}
.burger:hover { border-color: var(--accent); }
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Анимация лайка ============ */
.like-btn.pop { animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* ============ Мобильное меню ============ */
@media (max-width: 860px) {
  .burger { display: flex; }
  #main-nav {
    display: none;
    width: 100%;
    order: 10;
    margin-top: 8px;
  }
  #main-nav.open { display: block; animation: slideDown 0.2s ease; }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  #main-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  #main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }
  #main-nav a.active::after { display: none; }
  .header-inner { flex-wrap: wrap; }
}

/* ============ Скелетон картинок ============ */
.work-card > img,
.post-image-wrap img {
  background: linear-gradient(90deg, var(--bg-soft) 25%, #2c2c44 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ Прочее ============ */
.logout-text { display: inline; }
@media (max-width: 600px) {
  .logout-text { display: none; }
  .user-chip span { display: none; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  header nav { order: 3; width: 100%; }
  header nav ul { justify-content: center; }
  .header-actions { margin-left: auto; }
  .hero-content h1 { font-size: 26px; }
  .skin-avatar { width: 80px; height: 80px; }
  .skin-banner { width: 100%; height: 90px; }
  .skin-row { flex-direction: column; text-align: center; }
  .skin-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .btn { padding: 8px 12px; font-size: 13px; }
}

/* ============ TOAST ============ */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.toast.hide { opacity: 0; transform: translateX(20px); }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--accent); }
.toast-icon { font-size: 18px; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .work-card:hover > img { transform: none; }
}