/* ===== IThub Store — старый дизайн (тёмная тема + оранжевый градиент) ===== */

:root {
  --bg: #1c1c1c;
  --bg-soft: #232323;
  --card: #1e1e1e;
  --card-hover: #2a2a2a;
  --line: #333333;
  --text: #e0e0e0;
  --muted: #9a9a9a;
  --accent: #ff9100;
  --accent-2: #f12905;
  --accent-dark: #d97700;
  --green: #6cc36c;
  --red: #f15b5b;
  --orange: #ff9100;
  --grad: linear-gradient(135deg, #ff9100, #f12905);
  --radius: 12px;
  --shadow: 0 8px 25px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffb347; }
img { max-width: 100%; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px 40px; }

/* ---------- Шапка ---------- */
.topbar {
  background: #1e1e1e;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
  position: relative;
  z-index: 1;
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.logo span { color: inherit; }
.top-nav { display: flex; gap: 4px; align-items: center; }
.top-nav a {
  color: #d0d0d0;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  background: var(--grad);
  background-size: 0 3px;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  transition: .3s;
}
.top-nav a:hover { color: #fff; background-size: 100% 3px; transform: translateY(-2px); }
.top-nav a.active { color: #fff; background-size: 100% 3px; }

.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cart-btn {
  position: relative;
  color: #d0d0d0;
  font-size: 22px;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
}
.cart-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.cart-count {
  position: absolute;
  right: -2px;
  top: -2px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d0d0d0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.user-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* Поиск в шапке */
.search-form { position: relative; flex: 1; max-width: 460px; margin: 0 10px; }
.search-input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  border-radius: 25px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: .3s;
}
.search-input:focus { background: #333; box-shadow: 0 0 0 2px var(--accent); }
.search-input::placeholder { color: #999; }
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}
.search-btn:hover { color: var(--accent); }

/* Настраиваемая шапка сайта (баннер) */
.site-banner {
  position: relative;
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 46px 24px;
  overflow: hidden;
}
.site-banner.has-image { background-size: cover; background-position: center; }
.site-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}
.site-banner .sb-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.site-banner h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 44px); font-weight: 700; }
.site-banner p { margin: 0; font-size: 17px; opacity: .92; }

/* ---------- Герой ---------- */
.hero {
  background:
    radial-gradient(900px 360px at 80% -60%, rgba(255, 145, 0, .18), transparent 60%),
    linear-gradient(180deg, #232323, #1c1c1c);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
  margin-bottom: 30px;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--muted); font-size: 17px; margin: 0; max-width: 640px; }

/* ---------- Разделы ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  margin: 34px 0 18px;
  font-weight: 700;
  color: #fff;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--grad);
  border-radius: 3px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filter-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  color: #cfcfcf;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------- Карточки игр ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.product-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
  cursor: pointer;
  position: relative;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  z-index: 2;
}
.product-card:hover { transform: translateY(-10px); border-color: rgba(255, 123, 0, .9); box-shadow: 0 15px 35px rgba(0, 0, 0, .4); }
.product-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #101010; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.08); }
.product-media .badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.product-media .badge.free { background: var(--green); }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-title { font-weight: 600; font-size: 17px; color: #fff; line-height: 1.25; }
.product-genre {
  color: #aaa;
  font-size: 13px;
  align-self: flex-start;
  background: rgba(0, 0, 0, .4);
  padding: 4px 12px;
  border-radius: 20px;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.product-rating { display: flex; align-items: center; gap: 4px; color: #aaa; font-size: 13px; }
.product-rating .bx { color: var(--red); font-size: 16px; }

/* ---------- Цены ---------- */
.price { color: #fff; font-size: 15px; font-weight: 700; }
.price-free { color: var(--green); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.discount { background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.btn-buy {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.btn-buy:hover { filter: brightness(1.12); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--card); color: #fff; border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--card-hover); color: #fff; }
.btn-green { background: var(--green); color: #0a1a08; }
.btn-green:hover { filter: brightness(1.08); color: #0a1a08; }
.btn-danger { background: rgba(241, 91, 91, .14); color: var(--red); border: 1px solid rgba(241, 91, 91, .4); }
.btn-danger:hover { background: rgba(241, 91, 91, .26); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Страница игры ---------- */
.breadcrumbs { color: var(--muted); font-size: 13px; margin: 22px 0 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: #fff; }
.game-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.game-main { min-width: 0; }
.game-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.game-poster-box { position: relative; }
.game-poster-box img {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #101010;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
.game-title { margin: 0 0 12px; font-size: 2rem; line-height: 1.2; color: #fff; }
.game-meta { color: #aaa; font-size: 14px; display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.game-meta b { color: #cfcfcf; font-weight: 500; }
.game-desc { color: #ccc; font-size: 15px; margin: 0 0 16px; white-space: pre-line; }
.game-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.game-genres .chip { cursor: default; }
.game-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.game-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-panel .price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-panel .price-row .price { font-size: 22px; }
.game-panel .meta-list { margin: 6px 0; font-size: 13px; color: var(--muted); }
.game-panel .meta-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.game-panel .meta-list b { color: #e0e0e0; font-weight: 500; }
.wish-row { display: flex; gap: 8px; margin-top: 4px; }
.wish-row .btn { flex: 1; justify-content: center; }

/* Виджеты лайк / закладка (в духе старых страниц) */
.react-row { display: flex; align-items: center; gap: 14px; }
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  color: #d0d0d0;
  border-radius: 22px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.react-btn .bx { font-size: 18px; }
.react-btn:hover { border-color: var(--accent); color: #fff; }
.react-btn.on { background: var(--grad); border-color: transparent; color: #fff; }
.react-btn.on.fav { background: linear-gradient(135deg, #ffd54a, #ff9100); color: #2a1a00; }
.react-btn.on .bx-heart, .react-btn.on .bx-heart-broken { color: #fff; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.gallery a { border-radius: 8px; overflow: hidden; display: block; border: 1px solid var(--line); background: #101010; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Комментарии ---------- */
.comments { margin-top: 34px; }
.comments h2 { font-size: 20px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.comment-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px 14px;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .cf-foot { display: flex; justify-content: flex-end; margin-top: 8px; }

.comment-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.comment.hidden { opacity: .55; border-style: dashed; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.comment-author { color: #fff; font-weight: 600; font-size: 14px; }
.comment-author.admin::after { content: "админ"; margin-left: 6px; font-size: 10px; background: var(--grad); color: #fff; padding: 1px 6px; border-radius: 8px; vertical-align: middle; }
.comment-date { color: var(--muted); font-size: 12px; margin-left: auto; }
.comment-body { color: #dcdcdc; font-size: 14px; white-space: pre-line; }
.comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13px; }
.comment-actions button, .comment-actions a {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; padding: 0;
}
.comment-actions button:hover, .comment-actions a:hover { color: var(--accent); }
.comment-actions .liked { color: var(--accent); }
.comment-replies { margin: 12px 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.reply-form { margin-top: 10px; display: none; }
.reply-form.open { display: block; }
.reply-form textarea { width: 100%; min-height: 60px; resize: vertical; padding: 10px 12px; background: #141414; border: 1px solid var(--line); border-radius: 8px; color: #fff; font: inherit; font-size: 13px; }

/* ---------- Алерты ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 14px; }
.alert-ok { background: rgba(108, 195, 108, .12); border: 1px solid rgba(108, 195, 108, .4); color: var(--green); }
.alert-error { background: rgba(241, 91, 91, .12); border: 1px solid rgba(241, 91, 91, .4); color: var(--red); }
.alert-warn { background: rgba(255, 145, 0, .12); border: 1px solid rgba(255, 145, 0, .4); color: var(--orange); }

/* ---------- Формы ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; }
.form-card h2 { margin: 0 0 18px; font-size: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #cfcfcf; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-help { font-size: 13px; text-align: center; margin-top: 14px; color: var(--muted); }

/* Зона загрузки файла (drag & drop) */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  background: #141414;
  cursor: pointer;
  transition: .2s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); color: #fff; background: rgba(255, 145, 0, .06); }
.dropzone .dz-icon { font-size: 38px; color: var(--accent); display: block; margin-bottom: 6px; }
.dropzone .dz-name { color: #fff; font-weight: 600; margin-top: 8px; word-break: break-all; }
.dropzone input[type=file] { display: none; }

/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.cart-item img { width: 96px; border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; background: #101010; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-title { color: #fff; font-weight: 600; }
.cart-item .ci-price { color: var(--green); font-weight: 700; }
.cart-item .ci-remove { color: var(--muted); font-size: 20px; padding: 6px; }
.cart-item .ci-remove:hover { color: var(--red); }
.cart-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 16px; }
.cart-summary .total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; margin: 14px 0 4px; color: #fff; }
.cart-summary .total small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .bx { font-size: 56px; color: var(--line); }
.empty-state p { font-size: 16px; }

/* ---------- Оформление заказа ---------- */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.pay-method { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #141414; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.pay-method:hover { border-color: #4a4a4a; }
.pay-method input { margin-top: 3px; }
.pay-method b { color: #fff; }
.pay-method .pm-desc { font-size: 12px; color: var(--muted); }
.wallet-box { background: #141414; border: 1px dashed #4a4a4a; border-radius: 8px; padding: 12px; font-family: monospace; font-size: 13px; word-break: break-all; color: var(--accent); margin: 10px 0; }

/* ---------- Таблицы (админка, библиотека) ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
table.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.pill { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.pill.pending { background: rgba(255, 145, 0, .15); color: var(--orange); }
.pill.approved { background: rgba(108, 195, 108, .15); color: var(--green); }
.pill.paid { background: rgba(108, 195, 108, .15); color: var(--green); }
.pill.declined, .pill.cancelled { background: rgba(241, 91, 91, .15); color: var(--red); }
.pill.draft { background: rgba(154, 154, 154, .15); color: #c8c8c8; }
.pill.hidden { background: rgba(154, 154, 154, .15); color: var(--muted); }

/* ---------- Вики ---------- */
.wiki-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.wiki-nav { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 16px; }
.wiki-nav h3 { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.wiki-nav h3:first-child { margin-top: 0; }
.wiki-nav a { display: block; padding: 7px 10px; border-radius: 6px; color: #cfcfcf; font-size: 14px; }
.wiki-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.wiki-nav a.active { background: var(--grad); color: #fff; }
.wiki-body { max-width: 760px; }
.wiki-body h1 { margin: 0 0 6px; font-size: 26px; }
.wiki-body .wiki-upd { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.wiki-body h2 { font-size: 19px; margin: 28px 0 10px; color: #fff; }
.wiki-body h3 { font-size: 16px; margin: 20px 0 8px; color: #fff; }
.wiki-body p { color: #ccc; }
.wiki-body ul, .wiki-body ol { color: #ccc; padding-left: 22px; }
.wiki-body li { margin: 6px 0; }
.wiki-body b, .wiki-body strong { color: #fff; }

/* ---------- Профиль ---------- */
.profile-banner {
  height: 200px;
  border-radius: var(--radius);
  background: var(--grad);
  background-size: cover;
  background-position: center;
  margin: 22px 0 20px;
  position: relative;
  overflow: hidden;
}
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.profile-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.profile-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 700; color: #fff; margin-bottom: 14px;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-side h2 { margin: 0 0 4px; font-size: 20px; }
.profile-side .role { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 600; }
.profile-side .bio { color: #ccc; font-size: 13px; margin: 10px 0; white-space: pre-line; }
.profile-side .meta { color: var(--muted); font-size: 13px; margin: 12px 0; }
.profile-side .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.profile-main h1 { margin: 0 0 4px; font-size: 24px; }
.profile-main .lib-count { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* ---------- Библиотека ---------- */
.lib-item { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.lib-item img { width: 110px; border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; background: #101010; }
.lib-item .li-info { flex: 1; }
.lib-item .li-title { color: #fff; font-weight: 600; }
.lib-item .li-meta { color: var(--muted); font-size: 12px; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0; color: var(--muted); font-size: 13px; background: #1e1e1e; }
.site-footer .foot-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Аватары ---------- */
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.nav-avatar-letter {
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.comment-avatar { object-fit: cover; }

/* ---------- Статистика профиля ---------- */
.profile-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.stat-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.stat-card > .bx { font-size: 26px; color: var(--accent); }
.stat-card b { display: block; font-size: 20px; color: #fff; line-height: 1.1; }
.stat-card span { font-size: 12px; color: var(--muted); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mini-stats > div { background: #141414; border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; }
.mini-stats b { display: block; color: #fff; font-size: 18px; }
.mini-stats span { font-size: 11px; color: var(--muted); }

.settings-avatar { display: flex; gap: 16px; align-items: flex-start; }
.settings-avatar .profile-avatar { margin-bottom: 0; }
.bio.muted { color: var(--muted); font-style: italic; }

/* ---------- Общие списки/строки (вне панели игры) ---------- */
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-list { font-size: 13px; color: var(--muted); }
.meta-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.meta-list b { color: #e0e0e0; font-weight: 500; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .game-layout, .cart-layout, .wiki-layout, .profile-grid { grid-template-columns: 1fr; }
  .search-form { order: 3; max-width: 100%; width: 100%; margin: 8px 0 0; }
  .topbar-inner { flex-wrap: wrap; }
  .top-nav { order: 2; }
}
@media (max-width: 640px) {
  .game-hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .top-nav { display: none; }
}
