/* ==========================================================================
   BloxTrades — основной файл стилей
   Тёмная игровая тема: фиолетово-циановые градиенты, стеклянные панели
   ========================================================================== */

:root {
  --bg: #070910;
  --bg-soft: #0b0e17;
  --panel: rgba(17, 21, 34, 0.86);
  --panel-solid: #101422;
  --panel-2: rgba(26, 31, 48, 0.68);
  --panel-3: rgba(35, 42, 64, 0.55);
  --border: rgba(148, 163, 200, 0.14);
  --border-strong: rgba(148, 163, 200, 0.26);
  --text: #eef1fb;
  --text-soft: #c7cee3;
  --muted: #9aa4bf;
  --muted-2: #6f7a99;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-deep: #6d28d9;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --pink: #f472b6;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --orange: #f59e0b;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 20px 60px rgba(109, 40, 217, 0.25);
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Unbounded', 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --topbar-height: 74px;
}

/* ------------------------------- Сброс ---------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--violet-2);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #d4c9ff;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
}

h2 {
  font-size: clamp(22px, 2.7vw, 32px);
}

h3 {
  font-size: clamp(17px, 1.8vw, 21px);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

strong,
b {
  font-weight: 700;
  color: var(--text);
}

small {
  font-size: 0.82em;
}

code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #d8ccff;
  word-break: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #080a12;
}

::-webkit-scrollbar-thumb {
  background: #2a3149;
  border-radius: 99px;
  border: 2px solid #080a12;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4465;
}

/* --------------------------- Фон и раскладка ---------------------------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(109, 40, 217, 0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(180deg, #070910 0%, #080b14 55%, #060810 100%);
}

.site-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.site-bg-glow-1 {
  width: 560px;
  height: 560px;
  left: -180px;
  top: 120px;
  background: rgba(124, 58, 237, 0.22);
}

.site-bg-glow-2 {
  width: 520px;
  height: 520px;
  right: -160px;
  top: 620px;
  background: rgba(34, 211, 238, 0.12);
}

.site-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 200, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 75%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.container-narrow {
  max-width: 860px;
}

.section {
  padding: 78px 0;
}

.section-tight {
  padding: 34px 0 72px;
}

#main {
  position: relative;
}

.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.text-muted {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-2);
  font-weight: 600;
  font-size: 14px;
}

.text-link span {
  transition: transform 0.18s ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.muted-note {
  color: var(--muted-2);
  font-size: 13px;
}

.gradient-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 38%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 99px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.08);
  color: #d5c8ff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.glass-card {
  background: linear-gradient(160deg, rgba(24, 30, 48, 0.82), rgba(13, 17, 28, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.panel {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(12, 16, 27, 0.9));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  margin-bottom: 24px;
}

.panel > h2:first-child {
  margin-top: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-head h2 {
  margin-bottom: 4px;
  font-size: clamp(20px, 2vw, 25px);
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head > div {
  max-width: 720px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head-center > div {
  margin: 0 auto;
}

.section-head-compact {
  margin-bottom: 20px;
}

.section-head-compact h2 {
  font-size: clamp(20px, 2vw, 26px);
}

.heading-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  margin-left: 6px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #d8ccff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

/* ------------------------------- Кнопки --------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-color: var(--text);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 19px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  --btn-bg: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 55%, #5b21b6 100%);
  --btn-color: #fff;
  --btn-border: rgba(167, 139, 250, 0.5);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  --btn-color: #fff;
  box-shadow: 0 14px 34px rgba(109, 40, 217, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #9a6ff8 0%, #7c3aed 55%, #6d28d9 100%);
}

.btn-secondary {
  --btn-bg: rgba(139, 92, 246, 0.1);
  --btn-color: #ded4ff;
  --btn-border: rgba(139, 92, 246, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  --btn-bg: rgba(139, 92, 246, 0.18);
  --btn-color: #fff;
  --btn-border: rgba(167, 139, 250, 0.5);
}

.btn-ghost {
  --btn-bg: rgba(148, 163, 200, 0.06);
  --btn-color: var(--text-soft);
  --btn-border: rgba(148, 163, 200, 0.18);
}

.btn-ghost:hover {
  --btn-bg: rgba(148, 163, 200, 0.12);
  --btn-color: #fff;
  --btn-border: rgba(148, 163, 200, 0.32);
}

.btn-danger-ghost {
  --btn-bg: rgba(251, 113, 133, 0.07);
  --btn-color: #ffb3be;
  --btn-border: rgba(251, 113, 133, 0.28);
}

.btn-danger-ghost:hover {
  --btn-bg: rgba(251, 113, 133, 0.15);
  --btn-color: #ffd5da;
  --btn-border: rgba(251, 113, 133, 0.5);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15.5px;
  border-radius: 14px;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 9px;
  gap: 6px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.06);
  color: var(--text-soft);
  transition: all 0.18s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.14);
}

.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--violet-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.text-button:hover {
  color: #e2d9ff;
  text-decoration: underline;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.07);
  color: var(--muted);
  font-size: 14px;
  vertical-align: middle;
}

.copy-btn:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
}

/* ------------------------------- Шапка ---------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 10, 18, 0.78);
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--topbar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand:hover {
  color: #fff;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #8b5cf6, #5b21b6 60%, #4c1d95);
  color: #fff;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.logo-mark svg {
  width: 25px;
  height: 25px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-word span {
  color: var(--cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(148, 163, 200, 0.07);
}

.nav-link.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.14);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 206px;
  padding: 0 12px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(10, 13, 22, 0.7);
  transition: border-color 0.18s ease, width 0.2s ease;
}

.quick-search:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.quick-search svg {
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  flex: 0 0 auto;
}

.quick-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}

.quick-search input::placeholder {
  color: var(--muted-2);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 4px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.06);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  max-width: 170px;
}

.user-pill:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.36);
}

.user-pill-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shortcut {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.07);
}

.admin-shortcut:hover {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.13);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.06);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-soft);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-extra {
  display: none;
}

.security-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  background: rgba(251, 191, 36, 0.08);
  color: #fde9b8;
  font-size: 13.5px;
}

.security-banner a {
  color: #fff;
  text-decoration: underline;
}

.security-banner-icon {
  font-size: 18px;
}

/* ------------------------------ Аватары --------------------------------- */

.avatar {
  --avatar-color: #8b5cf6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.32), transparent 46%),
    linear-gradient(150deg, var(--avatar-color), color-mix(in srgb, var(--avatar-color) 45%, #070910));
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.avatar-lg { width: 56px; height: 56px; font-size: 21px; }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; }
.avatar-2xl { width: 104px; height: 104px; font-size: 40px; }

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  margin-left: -9px;
  border: 2px solid #0b0e17;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

/* ------------------------- Бейджи и статусы ----------------------------- */

.category-badge,
.role-badge,
.rarity-badge,
.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.07);
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.role-badge {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.13);
  color: #d8ccff;
}

.role-admin {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.11);
  color: #fde9b8;
}

.role-banned {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.1);
  color: #ffb3be;
}

.rarity-badge {
  border-color: rgba(148, 163, 200, 0.22);
  background: rgba(148, 163, 200, 0.08);
  color: #cbd3e8;
}

.rarity-badge.rarity-common,
.item-chip.rarity-common,
.picker-chip.rarity-common {
  --rarity: #9aa4bf;
}

.rarity-common { --rarity: #9aa4bf; }
.rarity-uncommon { --rarity: #34d399; }
.rarity-rare { --rarity: #60a5fa; }
.rarity-legendary { --rarity: #fbbf24; }
.rarity-mythical { --rarity: #f472b6; }

.rarity-badge.rarity-uncommon { border-color: rgba(52, 211, 153, 0.36); background: rgba(52, 211, 153, 0.1); color: #a7f3d0; }
.rarity-badge.rarity-rare { border-color: rgba(96, 165, 250, 0.36); background: rgba(96, 165, 250, 0.1); color: #bfdbfe; }
.rarity-badge.rarity-legendary { border-color: rgba(251, 191, 36, 0.38); background: rgba(251, 191, 36, 0.1); color: #fde68a; }
.rarity-badge.rarity-mythical { border-color: rgba(244, 114, 182, 0.42); background: rgba(244, 114, 182, 0.11); color: #fbcfe8; }
.rarity-badge.rarity-common { border-color: rgba(148, 163, 200, 0.28); background: rgba(148, 163, 200, 0.09); color: #cbd3e8; }

.provider-badge.provider-adsense { border-color: rgba(96, 165, 250, 0.34); background: rgba(96, 165, 250, 0.1); color: #bfdbfe; }
.provider-badge.provider-custom { border-color: rgba(139, 92, 246, 0.34); background: rgba(139, 92, 246, 0.11); color: #d8ccff; }
.provider-badge.provider-placeholder { border-color: rgba(148, 163, 200, 0.28); color: var(--muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.07);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-active,
.status-accepted,
.status-visible,
.status-resolved {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.09);
  color: #6ee7b7;
}

.status-pending,
.status-open {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.09);
  color: #fcd34d;
}

.status-declined,
.status-removed,
.status-hidden {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.09);
  color: #fda4af;
}

.status-closed,
.status-withdrawn,
.status-dismissed {
  border-color: rgba(148, 163, 200, 0.24);
  background: rgba(148, 163, 200, 0.07);
  color: #b3bcd4;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 700;
}

.trend-up { color: #6ee7b7; }
.trend-down { color: #fda4af; }
.trend-stable { color: var(--muted); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.08);
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 800;
}

/* ----------------------------- Уведомления ------------------------------ */

.flash-container {
  padding-top: 16px;
}

.flash-stack {
  display: grid;
  gap: 10px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(17, 21, 34, 0.92);
  color: var(--text-soft);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  animation: alert-in 0.3s ease both;
}

@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(148, 163, 200, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.alert-text {
  flex: 1 1 auto;
  padding-top: 2px;
  color: inherit;
}

.alert-text a {
  color: #fff;
  text-decoration: underline;
}

.alert-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}

.alert-close:hover {
  background: rgba(148, 163, 200, 0.1);
  color: #fff;
}

.alert-success { border-color: rgba(52, 211, 153, 0.32); background: rgba(16, 38, 32, 0.88); }
.alert-success .alert-icon { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.alert-error { border-color: rgba(251, 113, 133, 0.34); background: rgba(43, 20, 27, 0.9); }
.alert-error .alert-icon { background: rgba(251, 113, 133, 0.16); color: #fda4af; }
.alert-warning { border-color: rgba(251, 191, 36, 0.32); background: rgba(43, 35, 15, 0.88); }
.alert-warning .alert-icon { background: rgba(251, 191, 36, 0.16); color: #fcd34d; }
.alert-info { border-color: rgba(96, 165, 250, 0.3); background: rgba(16, 28, 46, 0.88); }
.alert-info .alert-icon { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.05);
  font-size: 14px;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(148, 163, 200, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.notice-warning {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.06);
}

.notice-warning .notice-icon {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.notice-info {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(96, 165, 250, 0.05);
}

.notice-info .notice-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

/* ------------------------------- Подвал --------------------------------- */

.site-footer {
  position: relative;
  margin-top: 40px;
  padding-top: 54px;
  border-top: 1px solid rgba(148, 163, 200, 0.1);
  background:
    radial-gradient(600px 240px at 15% 0%, rgba(109, 40, 217, 0.12), transparent 70%),
    rgba(7, 9, 16, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-brand p {
  max-width: 340px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.footer-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h3 {
  margin-bottom: 5px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col a {
  color: var(--muted);
  font-size: 13.5px;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--violet-2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(148, 163, 200, 0.08);
  color: var(--muted-2);
  font-size: 12px;
}

.footer-disclaimer {
  max-width: 640px;
  text-align: right;
}

/* -------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  padding: 68px 0 54px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(109, 40, 217, 0.18), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero-trust-copy b {
  color: var(--text);
}

.hero-trust-copy a {
  color: var(--violet-2);
}

.hero-trust-copy a:hover {
  text-decoration: underline;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orbs span:nth-child(1) {
  width: 320px;
  height: 320px;
  top: 20px;
  right: 40px;
  background: radial-gradient(circle at 35% 30%, rgba(139, 92, 246, 0.35), rgba(76, 29, 149, 0.08) 60%, transparent 70%);
  animation: float-slow 9s ease-in-out infinite;
}

.hero-orbs span:nth-child(2) {
  width: 180px;
  height: 180px;
  bottom: 0;
  left: 10px;
  background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, 0.28), transparent 68%);
  animation: float-slow 12s ease-in-out infinite reverse;
}

.hero-orbs span:nth-child(3) {
  width: 90px;
  height: 90px;
  top: 0;
  left: 34%;
  background: radial-gradient(circle at 35% 30%, rgba(244, 114, 182, 0.25), transparent 68%);
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(8px); }
}

.market-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  border-radius: 26px;
  transform: rotate(-0.6deg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.12);
}

.market-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.market-card-head h2 {
  margin: 8px 0 0;
  font-size: 24px;
}

.market-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-updated::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.market-list {
  display: flex;
  flex-direction: column;
}

.market-row {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.16s ease;
}

.market-row + .market-row {
  border-top: 1px solid rgba(148, 163, 200, 0.08);
}

.market-row:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
}

.market-rank {
  color: var(--muted-2);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 11px;
}

.market-item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.market-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}

.market-item-copy span {
  color: var(--muted-2);
  font-size: 11px;
}

.market-item-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.market-item-value strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
}

.market-item-value span {
  font-size: 10.5px;
}

.market-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.16);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.market-card-footer span {
  transition: transform 0.18s ease;
}

.market-card-footer:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
}

.market-card-footer:hover span {
  transform: translateX(4px);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 18, 30, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: float-card 6s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.25;
}

.floating-card span:not(.floating-icon) {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
}

.floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.14);
  font-size: 17px;
}

.floating-card-rating {
  top: 24px;
  left: -8px;
}

.floating-card-trades {
  right: -4px;
  bottom: 34px;
  animation-delay: -2.5s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.visual-stats-wrap {
  position: relative;
  z-index: 4;
  margin-top: -6px;
}

.visual-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px;
  border-radius: 20px;
}

.visual-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
}

.visual-stat + .visual-stat {
  border-left: 1px solid rgba(148, 163, 200, 0.1);
}

.visual-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.16);
  font-size: 18px;
}

.visual-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

.visual-stat span {
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------- Реклама -------------------------------- */

.ad-banner-wrap,
.footer-ad-wrap {
  margin: 26px auto;
}

.footer-ad-wrap {
  margin: 0 0 36px;
}

.ad-slot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(13, 17, 28, 0.7);
}

.ad-slot .ad-label,
.house-ad .ad-label {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 1;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(8, 10, 18, 0.82);
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot .adsbygoogle {
  min-height: 90px;
}

.ad-slot.ad-sidebar {
  margin-bottom: 20px;
  min-height: 250px;
}

.ad-slot-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 24px;
  border-style: dashed;
  border-color: rgba(148, 163, 200, 0.18);
  background: rgba(148, 163, 200, 0.025);
  color: var(--muted-2);
  font-size: 12px;
  text-align: center;
}

.ad-slot-hint p {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
}

.ad-slot-hint a {
  color: var(--violet-2);
  text-decoration: underline;
}

.ad-placeholder {
  background: rgba(148, 163, 200, 0.03);
}

.ad-placeholder-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 72px;
  padding: 20px;
  color: var(--muted-2);
  font-size: 12px;
}

.ad-placeholder-inner a {
  color: var(--violet-2);
  text-decoration: underline;
}

.ad-placeholder-icon {
  color: var(--violet-2);
}

.house-ad {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 18px 18px;
  color: var(--text);
  background:
    radial-gradient(300px 120px at 85% 20%, rgba(34, 211, 238, 0.08), transparent 70%),
    linear-gradient(105deg, rgba(139, 92, 246, 0.1), rgba(13, 17, 28, 0.5));
}

.house-ad:hover {
  color: var(--text);
  background:
    radial-gradient(300px 120px at 85% 20%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(105deg, rgba(139, 92, 246, 0.16), rgba(13, 17, 28, 0.5));
}

.house-ad-media {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
}

.house-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-ad-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.house-ad-copy strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.house-ad-copy span {
  color: var(--muted);
  font-size: 12px;
}

.house-ad-cta {
  flex: 0 0 auto;
  color: var(--violet-2);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.feed-ad-wrap {
  grid-column: 1 / -1;
}

.feed-ad-wrap .ad-slot {
  background: rgba(13, 17, 28, 0.55);
}

/* --------------------------- Карточки обменов --------------------------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.8), rgba(11, 15, 25, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px 160px at 50% -10%, rgba(139, 92, 246, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.listing-card:hover::before {
  opacity: 1;
}

.listing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.listing-time {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.listing-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.listing-title:hover {
  color: #e5dcff;
}

.listing-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
}

.listing-author-name {
  color: var(--text-soft);
  font-weight: 600;
}

.listing-author-name:hover {
  color: var(--violet-2);
}

.listing-author .stars {
  margin-left: 2px;
}

.rating-number {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
}

.new-trader {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.08);
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
}

.trade-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.55);
  border: 1px solid rgba(148, 163, 200, 0.08);
}

.trade-side {
  min-width: 0;
}

.trade-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trade-label-have::before,
.trade-label-want::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.trade-label-have::before { background: var(--pink); box-shadow: 0 0 7px var(--pink); }
.trade-label-want::before { background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }

.trade-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 7px 3px 4px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--rarity, #9aa4bf) 30%, transparent);
  background: color-mix(in srgb, var(--rarity, #9aa4bf) 8%, rgba(10, 13, 22, 0.8));
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.item-chip .item-emoji {
  font-size: 12px;
}

.item-chip .item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-chip-xs {
  padding: 2px 6px 2px 4px;
  font-size: 10px;
  gap: 3px;
}

.item-chip b {
  color: var(--rarity, var(--muted));
  font-size: 9px;
  font-weight: 700;
}

.more-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(148, 163, 200, 0.1);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.trade-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
}

.trade-arrows {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: var(--violet-2);
  font-size: 11px;
}

.listing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.listing-values {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 700;
}

.listing-values small {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
}

.value-arrow {
  color: var(--muted-2);
}

.listing-stats {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.listing-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.listing-stats svg {
  width: 13px;
  height: 13px;
}

/* ------------------------------ Пустые состояния ------------------------ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 200, 0.18);
  background: rgba(148, 163, 200, 0.025);
  text-align: center;
}

.empty-state-large {
  padding: 70px 24px;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  font-size: 28px;
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.empty-state p {
  max-width: 460px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mini-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 200, 0.16);
  color: var(--muted);
  font-size: 13px;
}

.mini-empty > span {
  font-size: 20px;
}

.mini-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* -------------------------- Страничный заголовок ------------------------ */

.page-hero {
  position: relative;
  padding: 46px 0 38px;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 200, 0.14) 30%, rgba(148, 163, 200, 0.14) 70%, transparent);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 8%;
  width: 520px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(109, 40, 217, 0.16), transparent 75%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-hero-inner > div {
  min-width: 0;
}

.page-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--violet-2);
}

.breadcrumbs span {
  color: var(--muted-2);
}

/* ---------------------------- Фильтры ленты ----------------------------- */

.filter-panel {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  padding: 18px;
  border-radius: 18px;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(150px, 0.8fr) auto;
  align-items: end;
  gap: 12px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.filter-field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select,
.admin-filter input,
.admin-filter select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.7);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-field select,
.admin-filter select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa4bf' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 38px;
}

.filter-submit {
  height: 42px;
}

.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 200, 0.08);
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.category-tab:hover {
  color: #fff;
  background: rgba(148, 163, 200, 0.07);
}

.category-tab.is-active {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.24);
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
}

.clear-filters {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11.5px;
}

.clear-filters:hover {
  color: var(--red);
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: rgba(139, 92, 246, 0.09);
  color: #d8ccff;
  font-size: 11px;
}

.filter-chip:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.5);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 10px;
}

.filter-pill:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.16);
}

/* --------------------------- Контент и сайдбар -------------------------- */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 26px;
}

.content-main {
  min-width: 0;
}

.content-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.side-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.9));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.side-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
}

.side-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.11);
  border: 1px solid rgba(139, 92, 246, 0.18);
  font-size: 18px;
}

.side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.side-card-head h3 {
  margin: 0;
}

.side-card-head a {
  color: var(--muted-2);
  font-size: 11.5px;
}

.side-card-head a:hover {
  color: var(--violet-2);
}

.side-card-cta {
  border-color: rgba(139, 92, 246, 0.26);
  background:
    radial-gradient(280px 180px at 110% -20%, rgba(34, 211, 238, 0.14), transparent 65%),
    linear-gradient(160deg, rgba(52, 32, 96, 0.55), rgba(14, 17, 29, 0.92));
}

.side-card-cta h3 {
  position: relative;
}

.side-card-cta .btn {
  margin-top: 5px;
}

.side-glow {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.22);
  filter: blur(40px);
  pointer-events: none;
}

.side-card-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-card-links h3 {
  margin-bottom: 8px;
}

.side-card-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 200, 0.08);
  color: var(--text-soft);
  font-size: 12.5px;
}

.side-card-links a:last-child {
  border-bottom: 0;
}

.side-card-links a:hover {
  color: var(--violet-2);
}

.side-card-links a span {
  color: var(--muted-2);
  font-size: 11px;
}

.side-card-links a:hover span {
  color: var(--cyan);
}

.side-divider {
  height: 1px;
  margin: 16px 0;
  background: rgba(148, 163, 200, 0.1);
}

.side-note {
  margin: 12px 0;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* --------------------------- Таблицы и поинты ------------------------- */

.table-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.8), rgba(11, 15, 25, 0.9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.12);
  background: rgba(8, 11, 19, 0.4);
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.07);
  color: var(--text-soft);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.045);
}

.table-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.table-item:hover {
  color: var(--violet-2);
}

.table-item span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.table-item strong {
  font-size: 13px;
  font-weight: 700;
}

.table-item small {
  color: var(--muted-2);
  font-size: 10.5px;
}

.value-cell {
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.demand-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.demand-track {
  display: block;
  width: 58px;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.14);
}

.demand-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.item-emoji-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--rarity, #9aa4bf) 30%, transparent);
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--rarity, #9aa4bf) 18%, transparent), transparent 70%),
    rgba(10, 13, 22, 0.7);
  font-size: 19px;
}

.item-emoji-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 15px;
}

.count-link {
  color: var(--violet-2);
  font-size: 12px;
  font-weight: 600;
}

.count-link:hover {
  text-decoration: underline;
}

.values-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
}

.values-toolbar .category-tabs {
  margin: 0;
  padding: 0;
  border: 0;
}

.values-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.values-search .input-with-icon {
  width: 230px;
}

.values-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.7);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.values-search .input-with-icon svg {
  width: 15px;
  height: 15px;
}

.values-search input:focus {
  border-color: rgba(139, 92, 246, 0.5);
}

.values-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.values-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
}

.demand-legend {
  display: inline-block;
  width: 26px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.values-table-card {
  overflow-x: auto;
}

.values-table {
  min-width: 680px;
}

/* --------------------------- Рынок на главной --------------------------- */

.section-market {
  position: relative;
  padding: 64px 0;
  background:
    radial-gradient(700px 300px at 90% 20%, rgba(34, 211, 238, 0.05), transparent 70%),
    linear-gradient(180deg, rgba(10, 13, 22, 0.5), transparent);
  border-top: 1px solid rgba(148, 163, 200, 0.07);
  border-bottom: 1px solid rgba(148, 163, 200, 0.07);
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 26px;
}

.market-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.top-traders {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px;
}

.top-trader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
  color: var(--text);
  transition: background 0.16s ease;
}

.top-trader:hover {
  background: rgba(139, 92, 246, 0.07);
  color: var(--text);
}

.trader-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(148, 163, 200, 0.08);
  color: var(--muted);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.trader-rank.is-first {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--gold);
}

.top-trader-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.top-trader-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.top-trader-copy .inline-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.top-trader-trades {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  line-height: 1.15;
}

.top-trader-trades b {
  font-family: var(--font-display);
  font-size: 12px;
}

.top-trader-trades small {
  color: var(--muted-2);
  font-size: 9px;
}

/* ------------------------------- Отзывы --------------------------------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  position: relative;
  padding: 20px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.8), rgba(11, 15, 25, 0.9));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.review-card::before {
  content: '“';
  position: absolute;
  top: 4px;
  right: 16px;
  color: rgba(139, 92, 246, 0.16);
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  pointer-events: none;
}

.review-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.review-card-head > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.5;
}

.review-card-head > div strong {
  font-size: 12.5px;
}

.review-card-head > div span {
  color: var(--muted-2);
}

.review-card-head > div a {
  color: var(--text-soft);
}

.review-card-head > .stars {
  flex: 0 0 auto;
  margin-left: auto;
}

.review-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: rgba(148, 163, 200, 0.28);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.stars .star.is-on {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
}

.stars-sm {
  font-size: 11px;
  gap: 0;
  letter-spacing: 0.5px;
}

.inline-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.inline-rating b {
  color: var(--gold);
  font-size: 12px;
}

/* ------------------------------- Шаги ----------------------------------- */

.how-section {
  position: relative;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(109, 40, 217, 0.09), transparent 70%);
  border-top: 1px solid rgba(148, 163, 200, 0.07);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.8), rgba(11, 15, 25, 0.9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.step-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  filter: blur(30px);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(148, 163, 200, 0.16);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: rgba(139, 92, 246, 0.11);
  font-size: 22px;
}

.step-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 50px 52px;
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(130deg, rgba(58, 33, 105, 0.72), rgba(16, 19, 33, 0.94) 62%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.cta-band-glow {
  position: absolute;
  top: -100px;
  left: 20%;
  width: 380px;
  height: 260px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.22);
  filter: blur(70px);
  pointer-events: none;
}

.cta-band-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.cta-band h2 {
  margin: 14px 0 10px;
  font-size: clamp(25px, 3.2vw, 38px);
  letter-spacing: -0.03em;
}

.cta-band p {
  max-width: 540px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.cta-band-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-fruit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.cta-fruit-1 { width: 84px; height: 84px; top: 34px; right: 10%; font-size: 44px; transform: rotate(-12deg); }
.cta-fruit-2 { width: 62px; height: 62px; bottom: 46px; right: 22%; font-size: 32px; transform: rotate(9deg); }
.cta-fruit-3 { width: 50px; height: 50px; top: 42%; right: 4%; font-size: 26px; transform: rotate(16deg); opacity: 0.75; }
.cta-fruit-4 { width: 46px; height: 46px; bottom: 30px; right: 5%; font-size: 24px; transform: rotate(-8deg); opacity: 0.6; }

/* ------------------------------ Трейдеры -------------------------------- */

.traders-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.rating-explainer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
}

.trader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trader-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.3);
}

.trader-card.is-top {
  border-color: rgba(251, 191, 36, 0.2);
  background:
    radial-gradient(280px 160px at 50% -30%, rgba(251, 191, 36, 0.08), transparent 70%),
    linear-gradient(165deg, rgba(24, 27, 41, 0.85), rgba(11, 15, 25, 0.92));
}

.trader-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.trader-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.07);
  color: var(--muted);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.trader-rank-badge.rank-gold { border-color: rgba(251, 191, 36, 0.36); background: rgba(251, 191, 36, 0.11); color: #fde68a; }
.trader-rank-badge.rank-silver { border-color: rgba(203, 213, 225, 0.3); background: rgba(203, 213, 225, 0.08); color: #e2e8f0; }
.trader-rank-badge.rank-bronze { border-color: rgba(217, 119, 6, 0.34); background: rgba(217, 119, 6, 0.1); color: #fdba74; }

.trader-card-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
}

.trader-card-profile > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trader-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.trader-name:hover {
  color: var(--violet-2);
}

.trader-rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted-2);
  font-size: 11px;
}

.trader-rating-line strong {
  color: var(--gold);
  font-size: 12px;
}

.trader-joined {
  color: var(--muted-2);
  font-size: 10.5px;
}

.trader-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 2.9em;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.trader-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.5);
  border: 1px solid rgba(148, 163, 200, 0.08);
  text-align: center;
}

.trader-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
}

.trader-metrics span {
  color: var(--muted-2);
  font-size: 10px;
}

/* ------------------------------ Страница предмета ----------------------- */

.item-hero {
  position: relative;
  padding: 30px 0 10px;
}

.item-hero .breadcrumbs {
  margin-bottom: 20px;
}

.item-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  align-items: center;
  gap: 28px;
  padding: 30px;
  overflow: hidden;
}

.item-hero-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 2%;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.item-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--rarity, #9aa4bf) 34%, transparent);
  background:
    radial-gradient(circle at 36% 28%, color-mix(in srgb, var(--rarity, #9aa4bf) 24%, transparent), transparent 62%),
    rgba(8, 11, 19, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 44px rgba(0, 0, 0, 0.28);
}

.item-hero-emoji {
  position: relative;
  z-index: 2;
  font-size: 82px;
  line-height: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.item-hero-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rarity, #9aa4bf) 32%, transparent);
  filter: blur(40px);
}

.item-hero-copy {
  position: relative;
  z-index: 1;
}

.item-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.item-hero-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.item-hero-copy p {
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.item-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.item-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.item-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.45);
}

.item-stat > span:first-child {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.item-stat strong {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}

.item-stat small {
  margin-left: 2px;
  color: var(--muted-2);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
}

.item-stat-value {
  grid-column: span 2;
  background:
    radial-gradient(200px 80px at 90% 0%, rgba(251, 191, 36, 0.12), transparent 70%),
    rgba(8, 11, 19, 0.5);
  border-color: rgba(251, 191, 36, 0.18);
}

.item-stat-value strong {
  color: var(--gold);
  font-size: 26px;
}

.item-stat .demand-track {
  width: 100%;
  margin-top: 4px;
}

.item-stat .trend {
  font-family: var(--font);
  font-size: 14px;
}

.info-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.7), rgba(11, 15, 25, 0.85));
}

.info-panel h3 {
  margin-bottom: 16px;
  font-size: 17px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.mini-item-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 4px -6px 8px;
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 9px;
  color: var(--text);
}

.mini-item:hover {
  background: rgba(139, 92, 246, 0.07);
  color: var(--text);
}

.mini-item-rank {
  width: 16px;
  color: var(--muted-2);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 9.5px;
}

.mini-item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.35;
}

.mini-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}

.mini-item-copy span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.mini-item-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ------------------------------ Профиль --------------------------------- */

.profile-hero {
  position: relative;
  padding-bottom: 8px;
}

.profile-cover {
  position: relative;
  height: 176px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background:
    radial-gradient(500px 200px at 20% 10%, rgba(139, 92, 246, 0.32), transparent 65%),
    radial-gradient(400px 180px at 85% 30%, rgba(34, 211, 238, 0.18), transparent 65%),
    linear-gradient(120deg, #1a1030, #0b1220);
}

.profile-cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 90% at 40% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 40% 40%, #000, transparent 80%);
}

.profile-cover-orb {
  position: absolute;
  top: -60px;
  right: 12%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.015), 0 0 0 58px rgba(255, 255, 255, 0.01);
}

.profile-cover-fruit {
  position: absolute;
  font-size: 44px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  opacity: 0.85;
}

.profile-cover-fruit-1 { right: 24%; top: 38px; transform: rotate(-10deg); }
.profile-cover-fruit-2 { right: 8%; bottom: 22px; font-size: 34px; transform: rotate(12deg); opacity: 0.6; }

.profile-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 0 26px;
  margin-top: -42px;
}

.profile-avatar {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.profile-head-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 6px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-name-row h1 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
}

.profile-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.profile-bio {
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 26px;
}

.profile-main {
  min-width: 0;
}

.profile-listing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-reviews {
  margin-bottom: 20px;
}

.profile-review {
  padding: 18px 20px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(17, 21, 34, 0.55);
}

.profile-review + .profile-review {
  margin-top: 10px;
}

.profile-review-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-review-author {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

.profile-review-author strong {
  font-size: 12.5px;
}

.profile-review-author span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.profile-review-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.profile-review > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.profile-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.rating-summary-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(251, 191, 36, 0.08), transparent 70%),
    linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.rating-summary-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.rating-big {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.rating-big strong {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rating-big span {
  color: var(--muted-2);
  font-size: 13px;
}

.rating-summary-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-bar-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.rating-bar-row > span:last-child {
  text-align: right;
}

.rating-bar-track {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.13);
}

.rating-bar-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.rating-trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 200, 0.1);
}

.rating-trust p {
  margin: 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.trust-icon {
  font-size: 16px;
}

.profile-facts {
  margin: 0;
}

.profile-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148, 163, 200, 0.08);
}

.profile-facts > div:last-child {
  border-bottom: 0;
}

.profile-facts dt {
  color: var(--muted-2);
  font-size: 11px;
}

.profile-facts dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
}

.report-card summary {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.report-card summary::-webkit-details-marker {
  display: none;
}

.report-card summary::before {
  content: '⚑';
  margin-right: 7px;
  color: var(--orange);
}

.report-card[open] summary {
  margin-bottom: 14px;
  color: var(--red);
}

.report-card .stack-form label {
  display: block;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.report-card select,
.report-card textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.7);
  color: var(--text);
  font-size: 12px;
}

/* --------------------------- Страница объявления ------------------------ */

.listing-hero {
  padding: 26px 0 8px;
}

.listing-hero .breadcrumbs {
  margin-bottom: 18px;
}

.listing-hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding: 22px 0 8px;
}

.listing-hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.listing-hero-main h1 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.03em;
}

.listing-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.listing-hero-meta a {
  color: var(--text-soft);
  font-weight: 600;
}

.listing-hero-meta a:hover {
  color: var(--violet-2);
}

.meta-dot {
  opacity: 0.5;
}

.listing-manage {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.listing-manage form {
  margin: 0;
}

.trade-board {
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.trade-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.35);
}

.trade-board-head h2 {
  margin: 0;
  font-size: 19px;
}

.trade-board-head > span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.trade-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
}

.trade-column {
  min-width: 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.36);
}

.trade-column-have {
  border-color: rgba(244, 114, 182, 0.16);
  background:
    radial-gradient(240px 120px at 0% 0%, rgba(244, 114, 182, 0.06), transparent 70%),
    rgba(8, 11, 19, 0.4);
}

.trade-column-want {
  border-color: rgba(34, 211, 238, 0.16);
  background:
    radial-gradient(240px 120px at 0% 0%, rgba(34, 211, 238, 0.06), transparent 70%),
    rgba(8, 11, 19, 0.4);
}

.trade-column h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.trade-direction-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 9px var(--pink);
}

.dot-have {
  background: var(--pink);
  box-shadow: 0 0 9px var(--pink);
}

.dot-want {
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.trade-column-want .trade-direction-dot {
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.trade-item-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.trade-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.trade-item-row:hover {
  background: rgba(148, 163, 200, 0.06);
  border-color: rgba(148, 163, 200, 0.1);
  color: var(--text);
}

.trade-item-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.4;
}

.trade-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.trade-item-copy span {
  color: var(--muted-2);
  font-size: 10px;
}

.trade-item-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.trade-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 200, 0.16);
  color: var(--muted);
  font-size: 11px;
}

.trade-total strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
}

.trade-vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.26);
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-2);
  font-size: 17px;
}

.trade-board-foot {
  padding: 0 24px 22px;
}

.fairness {
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.38);
}

.fairness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 11px;
}

.fairness-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-weight: 700;
}

.fairness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

.fairness-close .fairness-dot {
  background: var(--gold);
  box-shadow: 0 0 9px var(--gold);
}

.fairness-uneven .fairness-dot {
  background: var(--red);
  box-shadow: 0 0 9px var(--red);
}

.fairness-diff {
  color: var(--muted-2);
}

.fairness-track {
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.12);
}

.fairness-have {
  height: 100%;
  background: linear-gradient(90deg, #db2777, #f472b6);
}

.fairness-want {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}

.fairness-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10px;
}

.fairness-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fairness-legend b {
  color: var(--text-soft);
}

.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-have { background: var(--pink); }
.legend-want { background: var(--cyan); }
.legend-users { background: var(--violet); }
.legend-listings { background: var(--cyan); }
.legend-offers { background: var(--gold); }

.prose {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-line;
}

.listing-details-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 200, 0.08);
  color: var(--muted-2);
  font-size: 10.5px;
}

.offer-ready-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.offer-ready-panel h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.offer-ready-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.offer-form-panel .panel-head {
  margin-bottom: 18px;
}

.trade-offer-form .picker-columns {
  margin-bottom: 18px;
}

.offer-mini-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.offer-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 200, 0.08);
  background: rgba(8, 11, 19, 0.3);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.offer-mini:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.24);
  color: var(--text);
}

.offer-mini-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.offer-mini-main strong {
  font-size: 12px;
}

.offer-mini-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 10.5px;
}

.offer-mini-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10.5px;
  white-space: nowrap;
}

.offer-mini-time {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}

.seller-card {
  padding: 22px;
}

.seller-card-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seller-card-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.seller-card-profile > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.seller-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.seller-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  padding: 11px 6px;
  border-radius: 11px;
  background: rgba(8, 11, 19, 0.5);
  border: 1px solid rgba(148, 163, 200, 0.08);
  text-align: center;
}

.seller-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
}

.seller-metrics span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.mini-steps {
  margin: 0 0 12px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.mini-steps li {
  margin-bottom: 5px;
}

.report-details summary {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.report-details[open] summary {
  margin-bottom: 16px;
  color: var(--red);
}

/* --------------------------- Страница предложения ----------------------- */

.offer-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.offer-title-row h1 {
  margin: 0;
}

.offer-board {
  padding: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.offer-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.35);
}

.offer-participants {
  display: flex;
  align-items: center;
  gap: 14px;
}

.offer-participant {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.offer-participant > span:last-child {
  display: flex;
  flex-direction: column;
}

.offer-participant small {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offer-participant strong {
  font-size: 12.5px;
}

.offer-participants-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet-2);
  font-size: 12px;
}

.offer-created {
  color: var(--muted-2);
  font-size: 10.5px;
}

.offer-message {
  margin: 0 24px 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: rgba(139, 92, 246, 0.055);
}

.offer-message-label {
  display: block;
  margin-bottom: 5px;
  color: var(--violet-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-message p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.offer-actions-panel .panel-head {
  margin-bottom: 16px;
}

.offer-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------- Чат по сделке ------------------------------- */

.panel[id] {
  scroll-margin-top: calc(var(--topbar-height) + 18px);
}

.panel.chat-panel {
  padding: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--topbar-height) + 18px);
}

.chat-panel:target {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.26), 0 22px 54px rgba(0, 0, 0, 0.3);
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
  background:
    radial-gradient(340px 130px at 4% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
    rgba(8, 11, 19, 0.35);
}

.chat-head h2 {
  margin-bottom: 4px;
  font-size: clamp(18px, 2vw, 22px);
}

.chat-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.09);
  color: #a7f3d0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.chat-status[data-tone="error"] {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.09);
  color: #fecdd3;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.13);
}

.chat-status[data-tone="error"] .chat-status-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.13);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  max-height: 460px;
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.chat-log:empty {
  display: none;
}

.chat-log::-webkit-scrollbar {
  width: 7px;
}

.chat-log::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.32);
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: 84%;
  align-self: flex-start;
}

.chat-message.is-mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-avatar {
  flex: 0 0 auto;
}

.chat-message-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.chat-message.is-mine .chat-meta {
  flex-direction: row-reverse;
}

.chat-meta strong {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.chat-meta time {
  font-size: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(148, 163, 200, 0.14);
  background: rgba(148, 163, 200, 0.075);
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.is-mine .chat-bubble {
  border-radius: 14px 14px 4px 14px;
  border-color: rgba(139, 92, 246, 0.34);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.5), rgba(34, 211, 238, 0.16));
  color: #f4f0ff;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  text-align: center;
}

.chat-empty[hidden] {
  display: none;
}

.chat-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.09);
  font-size: 22px;
}

.chat-empty p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.chat-error {
  margin: 0 24px 12px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  font-size: 12.5px;
}

.chat-error[hidden] {
  display: none;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.32);
}

.chat-form textarea {
  width: 100%;
  min-height: 54px;
  max-height: 180px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.62);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-form textarea::placeholder {
  color: var(--muted-2);
}

.chat-form textarea:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.chat-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-form-foot .field-hint {
  margin: 0;
}

.chat-staff-note {
  margin-bottom: 22px;
}

.deal-banner {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background:
    radial-gradient(300px 140px at 10% 0%, rgba(52, 211, 153, 0.12), transparent 70%),
    rgba(14, 26, 26, 0.72);
}

.deal-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.24);
  font-size: 22px;
}

.deal-banner h2 {
  margin-bottom: 4px;
  font-size: 19px;
}

.deal-banner p {
  margin: 0;
  color: #b7e9d8;
  font-size: 12.5px;
}

.deal-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 0 0 16px 2px;
  color: var(--muted-2);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 200, 0.16);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 200, 0.4);
  background: #0b0e17;
}

.timeline-item.is-done .timeline-dot {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 9px rgba(52, 211, 153, 0.6);
}

.timeline-item.is-current .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 9px rgba(251, 191, 36, 0.6);
}

.timeline-item > div {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.timeline-item strong {
  color: var(--text-soft);
  font-size: 11.5px;
}

.timeline-item span {
  color: var(--muted-2);
  font-size: 10px;
}

.timeline-item.is-current strong {
  color: #fcd34d;
}

.offer-listing-ref {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offer-listing-ref > span:first-child {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-listing-ref a,
.offer-listing-ref > strong {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.offer-listing-ref .status-pill {
  align-self: flex-start;
  margin-top: 2px;
}

.offer-counterpart {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 0 2px;
  color: var(--text);
}

.offer-counterpart > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.offer-counterpart strong {
  font-size: 13px;
}

.offer-counterpart span span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.offer-counterpart:hover strong {
  color: var(--violet-2);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-list-item {
  padding: 16px 18px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.3);
}

.review-list-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 7px;
}

.review-list-author {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

.review-list-author strong {
  font-size: 12px;
}

.review-list-author span {
  color: var(--muted-2);
  font-size: 10px;
}

.review-list-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.review-list-item > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.review-form-panel .panel-head {
  margin-bottom: 18px;
}

/* ---------------------------- Шкала рейтинга ---------------------------- */

.rating-input {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: fit-content;
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
}

.rating-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rating-input label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: rgba(148, 163, 200, 0.3);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: #fbbf24;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

.rating-input label:hover {
  transform: scale(1.12);
}

.rating-input .rating-star {
  font-size: 32px;
  line-height: 1;
}

.rating-input .rating-hint {
  color: var(--muted-2);
  font-size: 11px;
}

.rating-input .rating-hint.is-set {
  color: #fcd34d;
}

.rating-input input:focus-visible + label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 8px;
}

/* -------------------------------- Формы --------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label-row .field-label {
  margin: 0;
}

.field-hint {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.field-hint-top {
  display: block;
  margin: -8px 0 14px;
}

.required {
  color: var(--red);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field input[type="number"],
.field input[type="url"],
.field input[type="tel"],
.field select,
.field textarea,
.stack-form select,
.stack-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.7);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea,
.stack-form textarea {
  resize: vertical;
  min-height: 90px;
}

.field select,
.stack-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa4bf' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder,
.stack-form textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.stack-form select:focus,
.stack-form textarea:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: rgba(11, 15, 25, 0.85);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.form-row .field {
  margin-bottom: 16px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--violet);
  cursor: pointer;
}

.checkbox-row a {
  color: var(--violet-2);
  text-decoration: underline;
}

.field-checkbox {
  justify-content: flex-end;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.form-actions-split {
  justify-content: space-between;
}

.form-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-note {
  color: var(--muted-2);
  font-size: 11px;
}

.form-note a {
  color: var(--violet-2);
  text-decoration: underline;
}

.form-card {
  padding: 28px;
  margin-bottom: 22px;
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}

.form-card-head-spaced {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 200, 0.1);
}

.form-card-head h2 {
  margin-bottom: 3px;
  font-size: 20px;
}

.form-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.13);
  color: #d8ccff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 26px;
}

.form-main {
  min-width: 0;
}

.form-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stack-form .panel-head {
  margin-bottom: 18px;
}

.form-alert {
  margin-bottom: 18px;
}

.settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 18px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.35);
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.3);
}

.avatar-editor-controls {
  flex: 1 1 auto;
  min-width: 0;
}

.avatar-file-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 200, 0.26);
  background: rgba(8, 11, 19, 0.42);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.avatar-file-input::file-selector-button {
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 7px;
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.avatar-file-input:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.avatar-file-error {
  color: #fca5a5;
  font-size: 11px;
  line-height: 1.4;
}

.avatar-remove-row {
  margin: 0 0 12px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.color-picker-row input[type="color"] {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.color-picker-row input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.color-swatch {
  width: 27px;
  height: 27px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--swatch);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/* ------------------------------ Item picker ------------------------------ */

.picker-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.picker-field {
  min-width: 0;
}

.picker-field > .field-label {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
}

.item-picker {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.55);
  transition: border-color 0.18s ease;
}

.item-picker:focus-within {
  border-color: rgba(139, 92, 246, 0.4);
}

.picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 11px 0;
  min-height: 42px;
}

.picker-empty {
  padding: 2px 2px 11px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 5px 4px 6px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--rarity, #9aa4bf) 36%, transparent);
  background: color-mix(in srgb, var(--rarity, #9aa4bf) 9%, rgba(10, 13, 22, 0.8));
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.picker-chip-emoji {
  font-size: 13px;
}

.picker-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-chip-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
}

.picker-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.picker-chip-remove:hover {
  background: rgba(251, 113, 133, 0.18);
  color: #ffb3be;
}

.picker-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px 10px;
  border-top: 1px solid rgba(148, 163, 200, 0.07);
}

.picker-selected:not(:has(.picker-chip)) + .picker-input-row {
  border-top: 0;
}

.picker-input-row svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted-2);
}

.picker-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}

.picker-input-row input::placeholder {
  color: var(--muted-2);
}

.picker-count {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.09);
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.item-picker .field-hint {
  padding: 0 11px 10px;
  margin: 0;
}

.picker-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #0d111c;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.picker-results[hidden] {
  display: none;
}

.picker-result {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
}

.picker-result:hover,
.picker-result.is-active {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
}

.picker-result-emoji {
  font-size: 18px;
}

.picker-result-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.picker-result-meta {
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}

.picker-result-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  white-space: nowrap;
}

.picker-result[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.picker-no-results {
  padding: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
  text-align: center;
}

/* ------------------------------ Сводка обмена --------------------------- */

.trade-summary {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.summary-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: rgba(8, 11, 19, 0.4);
  font-size: 11.5px;
}

.summary-side span {
  color: var(--muted);
}

.summary-side strong {
  font-family: var(--font-display);
  font-size: 12.5px;
}

.summary-have strong { color: var(--pink); }
.summary-want strong { color: var(--cyan); }

.summary-bar {
  display: flex;
  height: 6px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.12);
}

.summary-bar-have {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #db2777, #f472b6);
  transition: width 0.25s ease;
}

.summary-bar-want {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  transition: width 0.25s ease;
}

.summary-hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.tip-list {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.tip-list li {
  margin-bottom: 7px;
}

/* -------------------------------- Вход ---------------------------------- */

.auth-main {
  padding: 42px 0 72px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: stretch;
  gap: 26px;
  max-width: 1080px;
}

.auth-card {
  padding: 34px;
  border-radius: 26px;
}

.auth-head {
  margin-bottom: 22px;
}

.auth-head h1 {
  margin: 15px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
}

.auth-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-form .field {
  margin-bottom: 15px;
}

.auth-form .btn-block {
  margin-top: 6px;
}

.auth-switch {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 200, 0.09);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.auth-switch a {
  color: var(--violet-2);
  font-weight: 700;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-forgot {
  margin: -4px 0 16px;
  text-align: right;
  font-size: 12px;
}

.auth-forgot a {
  color: var(--violet-2);
  font-weight: 600;
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.mail-meta {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.auth-aside {
  min-width: 0;
}

.auth-aside-art {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 34px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  background:
    radial-gradient(500px 300px at 80% 10%, rgba(34, 211, 238, 0.14), transparent 65%),
    radial-gradient(460px 300px at 10% 80%, rgba(139, 92, 246, 0.22), transparent 65%),
    linear-gradient(145deg, #1b1033, #0a0f1d 65%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.auth-aside-art-register {
  background:
    radial-gradient(500px 300px at 70% 0%, rgba(244, 114, 182, 0.13), transparent 65%),
    radial-gradient(460px 300px at 0% 90%, rgba(34, 211, 238, 0.16), transparent 65%),
    linear-gradient(145deg, #0e1a2b, #160e2a 70%);
}

.auth-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-orbit-1 {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -90px;
}

.auth-orbit-2 {
  width: 210px;
  height: 210px;
  bottom: -80px;
  left: -60px;
  border-color: rgba(34, 211, 238, 0.12);
}

.auth-fruit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.auth-fruit-1 { width: 54px; height: 54px; top: 26px; right: 30px; font-size: 27px; transform: rotate(-8deg); }
.auth-fruit-2 { width: 42px; height: 42px; bottom: 28px; right: 24%; font-size: 21px; transform: rotate(12deg); opacity: 0.8; }
.auth-fruit-3 { width: 36px; height: 36px; top: 36%; left: 20px; font-size: 18px; transform: rotate(-14deg); opacity: 0.6; }

.auth-aside-card {
  position: relative;
  z-index: 2;
  max-width: 380px;
}

.auth-aside-card h2 {
  margin: 14px 0 9px;
  font-size: clamp(23px, 2.8vw, 31px);
  letter-spacing: -0.03em;
}

.auth-aside-card > p {
  color: var(--text-soft);
  font-size: 13px;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 22px;
}

.auth-benefits > div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.auth-benefits > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
}

.auth-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.auth-benefits strong {
  display: block;
  margin-bottom: 1px;
  color: var(--text);
  font-size: 12px;
}

/* ------------------------------ Пагинация ------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 28px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 200, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.page-btn:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.page-btn.is-current {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.18);
}

.page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page-arrow {
  font-size: 14px;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--muted-2);
}

/* ----------------------------- Личный кабинет --------------------------- */

.dashboard-hero h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.account-nav {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.85), rgba(11, 15, 25, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.account-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
}

.account-nav-user > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.account-nav-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.account-nav-user span {
  color: var(--muted-2);
  font-size: 10px;
}

.account-nav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.account-nav nav a:hover {
  color: #fff;
  background: rgba(148, 163, 200, 0.07);
}

.account-nav nav a.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: inset 3px 0 0 var(--violet);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 13px;
}

.account-nav-cta {
  margin-top: 12px;
}

.account-nav-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 200, 0.08);
}

.nav-logout {
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font-size: 11.5px;
  text-align: left;
}

.nav-logout:hover {
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
}

.dashboard-main {
  min-width: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.9));
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.stat-icon-gold { background: rgba(251, 191, 36, 0.11); color: var(--gold); border: 1px solid rgba(251, 191, 36, 0.2); }
.stat-icon-violet { background: rgba(139, 92, 246, 0.12); color: var(--violet-2); border: 1px solid rgba(139, 92, 246, 0.2); }
.stat-icon-cyan { background: rgba(34, 211, 238, 0.1); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.2); }
.stat-icon-green { background: rgba(52, 211, 153, 0.1); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.2); }

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}

.stat-card span:last-child {
  color: var(--muted-2);
  font-size: 10px;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.attention-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.06);
  color: var(--text);
}

.attention-card:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.attention-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.12);
  font-size: 16px;
}

.attention-card > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.attention-card strong {
  font-size: 11.5px;
}

.attention-card span:not(.attention-icon):not(.attention-arrow) {
  color: var(--muted-2);
  font-size: 10px;
}

.attention-arrow {
  color: var(--violet-2);
  font-size: 14px;
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dash-grid-2 > .panel {
  margin-bottom: 0;
}

.dash-grid-2 + .panel,
.dash-grid-2 + .dash-grid-2 {
  margin-top: 20px;
}

.dashboard-main > .panel {
  margin-top: 20px;
  margin-bottom: 0;
}

.dash-rating-grid {
  align-items: stretch;
  margin-bottom: 20px;
}

.rating-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.5);
  overflow-x: auto;
  max-width: 100%;
}

.segmented-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.segmented-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 16px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(148, 163, 200, 0.1);
  font-size: 9.5px;
}

.segmented-tab:hover {
  color: #fff;
  background: rgba(148, 163, 200, 0.07);
}

.segmented-tab.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.segmented-tabs-lg .segmented-tab {
  padding: 9px 17px;
  font-size: 12.5px;
}

.inline-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.inline-filters .filter-pill {
  padding: 5px 11px;
  font-size: 11px;
}

.manage-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.manage-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(17, 21, 34, 0.6);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.manage-listing:hover {
  border-color: rgba(139, 92, 246, 0.24);
  background: rgba(20, 25, 41, 0.78);
}

.manage-listing-full {
  align-items: flex-start;
}

.manage-listing-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
}

.manage-listing-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.manage-listing-title > a {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.manage-listing-title > a:hover {
  color: var(--violet-2);
}

.manage-listing-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  color: var(--muted-2);
  font-size: 10px;
}

.manage-listing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
}

.manage-listing-actions form {
  margin: 0;
}

.manage-trade-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: 10px;
}

.manage-trade-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.manage-trade-side b {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.manage-trade-arrow {
  color: var(--violet-2);
  font-size: 11px;
}

.manage-list-compact .manage-listing {
  padding: 11px 13px;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  padding: 17px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.8), rgba(11, 15, 25, 0.9));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.offer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.offer-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.offer-card-user > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.offer-card-user strong {
  font-size: 11.5px;
}

.offer-card-user span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.offer-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: 0 0 auto;
}

.offer-date {
  color: var(--muted-2);
  font-size: 9px;
}

.offer-card-listing {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(8, 11, 19, 0.4);
  color: var(--text);
}

.offer-card-listing:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

.offer-card-listing span {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-card-listing strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}

.offer-card-trade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 200, 0.08);
  background: rgba(8, 11, 19, 0.3);
}

.offer-trade-side {
  min-width: 0;
}

.offer-trade-side .trade-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 118px;
  overflow-y: auto;
}

.offer-trade-side .trade-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-side-total {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
}

.offer-trade-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-2);
  font-size: 13px;
}

.offer-card-message {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.offer-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.offer-card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.opportunity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opportunity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 200, 0.08);
  background: rgba(8, 11, 19, 0.3);
  color: var(--text);
}

.opportunity:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.24);
  background: rgba(139, 92, 246, 0.06);
}

.opportunity-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.opportunity-main strong {
  font-size: 11.5px;
}

.opportunity-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 10px;
}

.mini-review-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini-review {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 200, 0.08);
  background: rgba(8, 11, 19, 0.28);
}

.mini-review-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
}

.mini-review-time {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9px;
}

.mini-review p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.account-quick-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(17, 21, 34, 0.65);
}

.account-quick-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 16px;
}

.account-quick-stats > div + div {
  border-left: 1px solid rgba(148, 163, 200, 0.1);
}

.account-quick-stats strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.account-quick-stats span {
  color: var(--muted-2);
  font-size: 9px;
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  font-size: 18px;
}

/* ------------------------------- Админка -------------------------------- */

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.admin-nav {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  padding: 13px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.88), rgba(11, 15, 25, 0.94));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.admin-nav-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 6px 13px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
}

.admin-badge {
  width: fit-content;
  padding: 2px 7px;
  margin-bottom: 4px;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.26);
  color: var(--gold);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.admin-nav-head strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.admin-nav-head > span:last-child {
  color: var(--muted-2);
  font-size: 10px;
}

.admin-nav nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.admin-nav nav a > span {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  font-size: 12px;
}

.admin-nav nav a:hover {
  color: #fff;
  background: rgba(148, 163, 200, 0.07);
}

.admin-nav nav a.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 200, 0.09);
}

.admin-nav-footer a,
.admin-nav-footer button {
  width: 100%;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: left;
}

.admin-nav-footer a:hover,
.admin-nav-footer button:hover {
  background: rgba(148, 163, 200, 0.06);
  color: var(--text-soft);
}

.admin-main {
  min-width: 0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.9));
  color: var(--text);
}

.admin-stat:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.3);
}

.admin-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: rgba(139, 92, 246, 0.09);
  font-size: 16px;
}

.admin-stat div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.admin-stat strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.admin-stat span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted-2);
  font-size: 9.5px;
  white-space: nowrap;
}

.admin-chart-panel {
  padding: 22px;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted-2);
  font-size: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-bars {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 190px;
  padding-top: 16px;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.chart-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 10px;
  padding: 16px 4px 0;
  border-radius: 8px;
  background: rgba(8, 11, 19, 0.28);
  border-bottom: 1px solid rgba(148, 163, 200, 0.12);
}

.chart-bar {
  display: block;
  width: 22%;
  min-width: 3px;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.15s ease;
}

.chart-bar-users { background: linear-gradient(180deg, #a78bfa, #6d28d9); }
.chart-bar-listings { background: linear-gradient(180deg, #67e8f9, #0891b2); }
.chart-bar-offers { background: linear-gradient(180deg, #fcd34d, #d97706); }

.chart-stack:hover .chart-bar {
  opacity: 0.75;
}

.chart-total {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 8.5px;
}

.chart-label {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-grid-2 > .panel {
  margin-bottom: 0;
}

.admin-mini-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 7px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.15s ease;
}

.admin-mini:hover {
  background: rgba(139, 92, 246, 0.06);
  color: var(--text);
}

.admin-mini > .status-pill,
.admin-mini > .audit-action {
  flex: 0 0 auto;
}

.admin-mini-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.admin-mini-main strong,
.admin-mini-main a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.admin-mini-main a:hover {
  color: var(--violet-2);
}

.admin-mini-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 9px;
}

.admin-mini-arrow {
  color: var(--muted-2);
  font-size: 12px;
}

.admin-muted {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.audit-action {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #d8ccff;
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 15px;
}

.admin-filter .filter-field {
  min-width: 150px;
}

.admin-filter .filter-field-search {
  flex: 1 1 220px;
}

.admin-status-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -28px;
  padding: 0 28px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.admin-table th {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.12);
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 11px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.07);
  color: var(--text-soft);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.035);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
}

.admin-user-cell > div {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.admin-user-cell a {
  color: var(--text);
}

.admin-user-cell a:hover {
  color: var(--violet-2);
}

.admin-user-cell strong {
  font-size: 11.5px;
}

.admin-user-cell span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.select-sm {
  height: 30px;
  padding: 0 26px 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background-color: rgba(8, 11, 19, 0.7);
  color: var(--text-soft);
  font-size: 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239aa4bf' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-row-actions form {
  margin: 0;
}

.admin-listing-title {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-listing-title:hover {
  color: var(--violet-2);
}

.admin-inline-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  white-space: nowrap;
}

.admin-item-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.admin-item-cell > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.admin-item-cell strong {
  font-size: 11px;
}

.admin-item-cell:hover strong {
  color: var(--violet-2);
}

.demand-cell .demand-track {
  width: 44px;
}

.inline-rating {
  white-space: nowrap;
}

.admin-review-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.admin-review {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.3);
}

.admin-review.is-hidden {
  opacity: 0.62;
  border-style: dashed;
}

.admin-review-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
}

.admin-review-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

.admin-review-authors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}

.admin-review-authors a {
  color: var(--text-soft);
}

.admin-review-authors a:hover {
  color: var(--violet-2);
}

.admin-review-authors > span {
  color: var(--muted-2);
}

.admin-review-text {
  margin: 0 0 9px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.admin-review-head .inline-rating {
  flex: 0 0 auto;
  margin-left: auto;
}

.admin-review-head .status-pill {
  flex: 0 0 auto;
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.admin-report {
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.3);
}

.admin-report-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}

.admin-report-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
  font-size: 11.5px;
}

.admin-report-copy a {
  color: var(--text-soft);
  font-weight: 600;
}

.admin-report-copy a:hover {
  color: var(--violet-2);
}

.admin-report-reason {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.12);
}

.admin-report-reason strong {
  color: #fcd34d;
  font-size: 11.5px;
}

.admin-report-reason p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  white-space: pre-line;
}

.report-target {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: rgba(8, 11, 19, 0.4);
  border: 1px solid rgba(148, 163, 200, 0.08);
  font-size: 11px;
}

.report-target-label {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-target a {
  color: var(--violet-2);
  font-weight: 600;
}

.admin-chart-panel .panel-head {
  margin-bottom: 8px;
}

/* ------------------------------- AdSense --------------------------------- */

.adsense-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-color: rgba(96, 165, 250, 0.2);
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(96, 165, 250, 0.08), transparent 70%),
    linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.9));
}

.adsense-status.is-ready {
  border-color: rgba(52, 211, 153, 0.24);
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(52, 211, 153, 0.07), transparent 70%),
    linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.9));
}

.adsense-status-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.adsense-status-main h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.adsense-status-main p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.adsense-status-main code {
  font-size: 9.5px;
}

.adsense-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.adsense-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 0 0 auto;
}

.ad-provider-fields {
  padding: 16px;
  margin: 6px 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 200, 0.11);
  background: rgba(8, 11, 19, 0.3);
}

.ad-provider-fields .field:last-child {
  margin-bottom: 0;
}

.ad-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px dashed rgba(139, 92, 246, 0.2);
}

.ad-preview-note .ad-label {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-preview-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.admin-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.admin-quick-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 200, 0.09);
  background: rgba(8, 11, 19, 0.3);
  color: var(--text-soft);
  font-size: 11.5px;
}

.admin-quick-links a:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.07);
}

.admin-quick-links a span {
  font-size: 14px;
}

.admin-ip {
  font-size: 9.5px;
}

.audit-table td {
  font-size: 10.5px;
}

/* --------------------------- Правила и политика -------------------------- */

.rules-layout,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.rules-panel {
  margin-bottom: 18px;
}

.rules-panel h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rule-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.32);
}

.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.17);
  font-size: 16px;
}

.rule-card h3 {
  margin-bottom: 5px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.rule-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.rule-steps li {
  margin-bottom: 9px;
  padding-left: 3px;
}

.rule-steps strong {
  color: var(--text-soft);
}

.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.rule-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
}

.rule-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 10px;
}

.rating-explainer-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.3);
}

.flow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.14);
  color: #d8ccff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.flow-step strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.rules-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 10.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 200, 0.1);
  background: rgba(8, 11, 19, 0.3);
}

.faq-item summary {
  padding: 11px 13px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--muted-2);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  color: var(--violet-2);
}

.faq-item p {
  margin: 0;
  padding: 0 13px 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.rules-side,
.legal-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.legal-panel {
  padding: 32px;
}

.legal-panel h2 {
  margin: 30px 0 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.legal-panel a {
  color: var(--violet-2);
  text-decoration: underline;
}

.legal-panel code {
  font-size: 10px;
}

.legal-short {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-short li {
  position: relative;
  padding: 5px 0 5px 18px;
  color: var(--muted);
  font-size: 11.5px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.07);
}

.legal-short li:last-child {
  border-bottom: 0;
}

.legal-short li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 9px;
}

/* -------------------------------- Ошибки -------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64vh;
  padding: 50px 0;
}

.error-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 170px;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 880px;
  padding: 40px;
  overflow: hidden;
}

.error-code {
  color: transparent;
  background: linear-gradient(160deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-display);
  font-size: clamp(70px, 11vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  filter: drop-shadow(0 12px 30px rgba(139, 92, 246, 0.3));
}

.error-copy h1 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.error-copy p {
  max-width: 420px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-art {
  position: relative;
  height: 150px;
}

.error-fruit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  font-size: 28px;
}

.error-fruit-1 { top: 0; right: 0; transform: rotate(-10deg); }
.error-fruit-2 { bottom: 0; left: 10px; font-size: 34px; transform: rotate(10deg); }
.error-fruit-3 { top: 48%; right: 34px; font-size: 20px; transform: rotate(18deg); opacity: 0.7; }

/* ------------------------------ Утилиты --------------------------------- */

.hide-mobile {
  display: table-cell;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

[hidden] {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ----------------------------- Адаптивность ----------------------------- */

@media (max-width: 1660px) {
  /* Кнопка чата остаётся отдельной, но на средних экранах превращается в иконку,
     чтобы шапка не выходила за пределы контейнера. */
  .chat-shortcut-label {
    display: none;
  }

  .chat-shortcut {
    padding: 8px 10px;
  }

  .quick-search {
    width: 170px;
  }
}

@media (max-width: 1180px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid,
  .trader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-content h1 {
    font-size: clamp(36px, 5vw, 54px);
  }

  .quick-search {
    width: 170px;
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 1060px) {
  .nav-toggle {
    display: flex;
  }

  .quick-search {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 20px 24px 40px;
    overflow-y: auto;
    background: rgba(8, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 16px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 200, 0.12);
  }

  .mobile-search {
    display: flex;
    gap: 7px;
    margin-bottom: 4px;
  }

  .mobile-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(8, 11, 19, 0.7);
    color: var(--text);
    outline: none;
  }

  .mobile-search button {
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.16);
    color: #fff;
    font-weight: 700;
  }

  .mobile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
  }

  .mobile-user > div {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
  }

  .mobile-user a {
    color: var(--text);
    font-weight: 700;
  }

  .mobile-user span {
    color: var(--muted-2);
    font-size: 10.5px;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* backdrop-filter у шапки создаёт containing block для position: fixed,
     из-за чего мобильное меню прижимается к высоте шапки. Отключаем фильтр,
     пока меню открыто. */
  body.nav-open .topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .content-layout,
  .market-layout,
  .profile-layout,
  .form-layout,
  .rules-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-side,
  .market-side,
  .profile-side,
  .form-side,
  .rules-side,
  .legal-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .form-side .trade-summary {
    position: static;
  }

  .content-side .ad-slot,
  .form-side .ad-slot {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 520px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-nav {
    position: static;
    padding: 12px;
  }

  .account-nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-nav-user {
    display: none;
  }

  .account-nav-cta {
    max-width: 260px;
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-nav {
    position: static;
    padding: 10px;
  }

  .admin-nav-head {
    display: none;
  }

  .admin-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-nav nav a {
    padding: 7px 10px;
  }

  .admin-nav-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
  }

  .admin-nav-footer a,
  .admin-nav-footer button {
    width: auto;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-bars {
    height: 160px;
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
  }

  .auth-aside {
    display: none;
  }

  .legal-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 42px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .eyebrow {
    margin: 0 auto;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
    padding: 24px 0 34px;
  }

  .market-card {
    max-width: 480px;
    transform: none;
  }

  .floating-card-rating {
    left: 2px;
  }

  .floating-card-trades {
    right: 2px;
    bottom: 10px;
  }

  .hero-orbs span:nth-child(1) {
    right: 50%;
    margin-right: -160px;
  }

  .visual-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 200, 0.1);
  }

  .visual-stat:nth-child(4) {
    border-top: 1px solid rgba(148, 163, 200, 0.1);
  }

  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding: 26px 0 56px;
  }

  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .page-hero-inner > .btn,
  .page-hero-inner > .admin-hero-actions {
    align-self: flex-start;
  }

  .account-quick-stats {
    align-self: stretch;
    justify-content: center;
  }

  .item-hero-card {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .item-hero-art {
    width: 130px;
    height: 130px;
    border-radius: 24px;
  }

  .item-hero-emoji {
    font-size: 62px;
  }

  .item-hero-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .item-stat-value {
    grid-column: auto;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-field-search {
    grid-column: 1 / -1;
  }

  .filter-submit {
    width: 100%;
  }

  .trade-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trade-vs {
    padding: 0;
  }

  .trade-vs span {
    transform: rotate(90deg);
  }

  .offer-board .trade-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pie-layout {
    grid-template-columns: 1fr;
  }

  .picker-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-filter .filter-field-search {
    flex-basis: 100%;
  }

  .rules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rating-explainer-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px;
  }

  .error-code {
    font-size: 74px;
  }

  .error-art {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 440px) {
  /* На узких экранах оставляем только знак бренда, чтобы кнопки
     чата, профиля, создания обмена и меню помещались в шапку. */
  .brand-word {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }
  .topbar-inner {
    gap: 12px;
    min-height: 64px;
  }

  :root {
    --topbar-height: 64px;
  }

  .brand-word {
    font-size: 16px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .logo-mark svg {
    width: 22px;
    height: 22px;
  }

  .topbar-actions .user-pill-name,
  .topbar-actions .btn-ghost,
  .admin-shortcut {
    display: none;
  }

  .topbar-create {
    font-size: 12px;
    padding: 8px 11px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .floating-card {
    display: none;
  }

  .market-card {
    padding: 18px;
    border-radius: 20px;
  }

  .market-row {
    grid-template-columns: 18px 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 4px;
    margin: 0;
  }

  .market-item-copy strong {
    font-size: 12px;
  }

  .market-item-value strong {
    font-size: 12px;
  }

  .visual-stat {
    padding: 13px;
    gap: 9px;
  }

  .visual-stat strong {
    font-size: 18px;
  }

  .visual-stat span {
    font-size: 10px;
  }

  .visual-stat-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .listing-grid,
  .review-grid,
  .trader-grid,
  .profile-listing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .section-head .btn {
    align-self: flex-start;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    padding: 32px 24px;
  }

  .cta-band-art {
    display: none;
  }

  .cta-band .hero-actions .btn {
    width: auto;
  }

  .content-side,
  .market-side,
  .profile-side,
  .form-side,
  .rules-side,
  .legal-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
    margin-top: -34px;
  }

  .profile-avatar {
    width: 84px;
    height: 84px;
    font-size: 32px;
  }

  .profile-head-copy {
    padding-bottom: 0;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .btn {
    flex: 1 1 auto;
  }

  .profile-cover {
    height: 130px;
    border-radius: 18px;
  }

  .profile-cover-fruit-1 {
    right: 8%;
    top: 26px;
    font-size: 34px;
  }

  .profile-cover-fruit-2 {
    display: none;
  }

  .item-hero-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
    padding: 22px;
  }

  .item-badges,
  .item-hero-actions {
    justify-content: center;
  }

  .item-hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .item-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .item-stat-value {
    grid-column: span 2;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-hero-main {
    flex-direction: column;
    gap: 16px;
  }

  .listing-manage {
    justify-content: flex-start;
    width: 100%;
  }

  .trade-board-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 15px 16px;
  }

  .trade-board-grid {
    padding: 16px;
    gap: 12px;
  }

  .trade-board-foot {
    padding: 0 16px 16px;
  }

  .trade-column {
    padding: 12px;
  }

  .offer-board-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 16px;
  }

  .offer-participants {
    flex-wrap: wrap;
  }

  .offer-message {
    margin: 0 16px 16px;
  }

  .fairness-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .fairness-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .offer-ready-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .panel {
    padding: 20px;
    border-radius: 18px;
  }

  .panel-head {
    flex-direction: column;
    gap: 10px;
  }

  .admin-table-wrap {
    margin: 0 -20px;
    padding: 0 20px;
  }

  .admin-hero-actions {
    width: 100%;
  }

  .admin-hero-actions .btn {
    flex: 1 1 auto;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stat {
    padding: 11px;
    gap: 8px;
  }

  .admin-stat-icon {
    width: 31px;
    height: 31px;
    font-size: 14px;
  }

  .admin-stat strong {
    font-size: 16px;
  }

  .admin-chart-panel {
    padding: 18px;
  }

  .chart-legend {
    gap: 8px;
  }

  .chart-bars {
    height: 140px;
    gap: 5px;
  }

  .chart-stack {
    padding: 15px 2px 0;
  }

  .chart-label {
    font-size: 8px;
  }

  .admin-review-head {
    flex-wrap: wrap;
  }

  .admin-review-head .inline-rating {
    margin-left: 0;
  }

  .admin-quick-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .adsense-status {
    flex-direction: column;
    gap: 14px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    padding: 20px;
  }

  .picker-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-main {
    padding: 22px 0 50px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 20px;
  }

  .auth-head h1 {
    font-size: 26px;
  }

  .dashboard-layout {
    gap: 16px;
  }

  .account-nav nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .manage-listing {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .manage-listing-actions {
    justify-content: flex-start;
  }

  .segmented-tabs {
    width: 100%;
  }

  .segmented-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 9px;
  }

  .offer-participants {
    gap: 8px;
  }

  .offer-participant small {
    display: none;
  }

  .offer-action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .offer-action-buttons form,
  .offer-action-buttons .btn {
    width: 100%;
  }

  .rules-panel,
  .legal-panel {
    padding: 20px;
  }

  .auth-switch {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    padding-bottom: 20px;
  }

  .section {
    padding: 46px 0;
  }

  .section-tight {
    padding: 22px 0 46px;
  }

  .page-hero {
    padding: 30px 0 26px;
  }

  .filter-panel {
    padding: 14px;
  }

  .filter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-field-search {
    grid-column: auto;
  }

  .values-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .values-search {
    flex-wrap: wrap;
  }

  .values-search .input-with-icon {
    flex: 1 1 160px;
    width: auto;
  }

  .values-table {
    min-width: 590px;
  }

  .hide-mobile {
    display: none !important;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .error-main {
    padding: 30px 0;
  }

  .error-card {
    padding: 24px;
  }

  .error-code {
    font-size: 62px;
  }
}

@media (max-width: 440px) {
  .topbar-actions .btn-ghost {
    display: none;
  }

  .hero-trust {
    flex-direction: column;
    gap: 8px;
  }

  .visual-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-stat + .visual-stat,
  .visual-stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 200, 0.1);
  }

  .visual-stat:nth-child(4) {
    border-top: 1px solid rgba(148, 163, 200, 0.1);
  }

  .market-row {
    grid-template-columns: 16px 30px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .market-item-value span {
    display: none;
  }

  .admin-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-card {
    padding: 12px;
  }

  .offer-card-trade {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-trade-arrow {
    padding: 2px 0;
  }

  .offer-trade-side .trade-items {
    max-height: none;
  }

  .profile-name-row h1 {
    font-size: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-band .hero-actions .btn {
    width: 100%;
  }

  .auth-fruit-3 {
    display: none;
  }
}

@media (max-width: 640px) {
  .chat-head {
    padding: 16px 18px;
    flex-direction: column;
  }

  .chat-log {
    max-height: 55vh;
    min-height: 130px;
    padding: 16px 18px;
  }

  .chat-message {
    max-width: 94%;
  }

  .chat-empty {
    padding: 26px 18px;
  }

  .chat-error {
    margin: 0 18px 10px;
  }

  .chat-form {
    padding: 12px 18px 16px;
  }

  .chat-form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .chat-form-foot .btn {
    width: 100%;
  }
}

@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;
  }
}

/* ============================ Рамки предложений ========================= */

.frame-standard { --frame-accent: #8b5cf6; --frame-soft: rgba(139, 92, 246, 0.38); }
.frame-bronze { --frame-accent: #c77a45; --frame-soft: rgba(199, 122, 69, 0.42); }
.frame-silver { --frame-accent: #cbd5e1; --frame-soft: rgba(203, 213, 225, 0.4); }
.frame-gold { --frame-accent: #facc15; --frame-soft: rgba(250, 204, 21, 0.42); }
.frame-neon { --frame-accent: #22d3ee; --frame-soft: rgba(34, 211, 238, 0.44); }
.frame-referral { --frame-accent: #f472b6; --frame-soft: rgba(244, 114, 182, 0.48); }

.avatar {
  position: relative;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-initial {
  line-height: 1;
}

/* Рамка относится только к предложениям: карточкам, мини-спискам и странице. */
.offer-card[class*="frame-"],
.offer-mini[class*="frame-"],
.offer-board[class*="frame-"],
.offer-frame-preview[class*="frame-"] {
  border-color: color-mix(in srgb, var(--frame-accent) 50%, rgba(148, 163, 200, 0.18));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--frame-soft), 0 0 26px color-mix(in srgb, var(--frame-accent) 16%, transparent);
}

.offer-mini[class*="frame-"] {
  box-shadow: 0 0 0 1px var(--frame-soft) inset, 0 0 18px color-mix(in srgb, var(--frame-accent) 10%, transparent);
}

.offer-card[class*="frame-"]:hover,
.offer-mini[class*="frame-"]:hover {
  border-color: var(--frame-accent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--frame-soft), 0 0 30px color-mix(in srgb, var(--frame-accent) 24%, transparent);
}

/* ------------------------- Выбор рамки предложения ----------------------- */

.frame-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.frame-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 200, 0.14);
  background: rgba(8, 11, 19, 0.36);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.frame-option:hover {
  border-color: color-mix(in srgb, var(--frame-accent) 40%, rgba(148, 163, 200, 0.2));
  background: rgba(148, 163, 200, 0.06);
}

.frame-option.is-selected,
.frame-option:has(input:checked) {
  border-color: var(--frame-accent);
  background: color-mix(in srgb, var(--frame-accent) 9%, rgba(8, 11, 19, 0.4));
  box-shadow: 0 0 0 1px var(--frame-soft) inset;
}

.frame-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.frame-option-swatch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--frame-accent);
  background:
    radial-gradient(circle at 24% 0%, color-mix(in srgb, var(--frame-accent) 22%, transparent), transparent 60%),
    linear-gradient(155deg, rgba(24, 30, 48, 0.95), rgba(7, 9, 16, 0.95));
  box-shadow: 0 0 0 2px var(--frame-soft);
}

.frame-option-swatch::before,
.frame-option-swatch::after {
  content: "";
  position: absolute;
  left: 7px;
  height: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--frame-accent) 72%, #fff);
}

.frame-option-swatch::before {
  top: 8px;
  width: 18px;
}

.frame-option-swatch::after {
  right: 20px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.frame-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.frame-option-copy strong {
  font-size: 12px;
  line-height: 1.25;
}

.frame-option-copy small {
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.3;
}

.offer-frame-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 200, 0.18);
  background: rgba(148, 163, 200, 0.07);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.offer-frame-current::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 9px var(--violet-2);
}

.offer-frame-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.offer-frame-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 200, 0.16);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.84), rgba(11, 15, 25, 0.92));
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.offer-frame-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.offer-frame-preview-badge {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-frame-preview-title {
  color: var(--text);
  font-size: 13px;
}

.offer-frame-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.offer-frame-preview-item {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 200, 0.12);
  background: rgba(8, 11, 19, 0.42);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.offer-frame-preview-arrow {
  color: var(--violet-2);
  font-size: 13px;
}

.offer-frame-preview-note {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.45;
}

/* ----------------------------- Рефералка --------------------------------- */

.referral-panel .panel-head {
  align-items: center;
}

.referral-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(244, 114, 182, 0.32);
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.14), rgba(139, 92, 246, 0.08));
}

.referral-counter strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: #fbcfe8;
}

.referral-counter span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.copy-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.copy-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 200, 0.16);
  background: rgba(8, 11, 19, 0.55);
  color: var(--text-soft);
  font-size: 12.5px;
  font-family: var(--font-mono, ui-monospace, monospace);
}

.referral-invite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--frame-accent) 40%, rgba(148, 163, 200, 0.16));
  background: linear-gradient(135deg, color-mix(in srgb, var(--frame-accent) 10%, transparent), rgba(139, 92, 246, 0.05));
}

.referral-invite-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.referral-invite-copy > span {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-invite-copy strong {
  color: #fff;
  font-size: 14px;
}

.referral-invite-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

/* ----------------------- Переключатель фруктов --------------------------- */

.fruit-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 16px;
}

.fruit-switch-label {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fruit-switch .segmented-tabs {
  margin: 0;
}

/* --------------------------- Страница сообщений -------------------------- */

.chat-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chat-shortcut svg {
  width: 16px;
  height: 16px;
}

.chat-shortcut.is-active {
  border-color: rgba(139, 92, 246, 0.48);
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.messages-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.messages-sidebar {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(20, 25, 41, 0.82), rgba(11, 15, 25, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.messages-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.1);
}

.messages-sidebar-head h2 {
  margin: 0;
  font-size: 16px;
}

.messages-sidebar-head .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--violet-2);
  font-size: 10.5px;
  font-weight: 800;
}

.conversation-list {
  max-height: calc(100vh - 268px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.32) transparent;
}

.conversation-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(148, 163, 200, 0.07);
  transition: background 0.16s ease;
}

.conversation-item:last-child {
  border-bottom: 0;
}

.conversation-item:hover {
  background: rgba(148, 163, 200, 0.055);
}

.conversation-item.is-active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.04));
}

.conversation-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--frame-accent, var(--violet));
}

.conversation-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.conversation-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.conversation-top strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-top time {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 9.5px;
}

.conversation-listing {
  overflow: hidden;
  color: var(--violet-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-last {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
  font-size: 9.5px;
  font-weight: 800;
}

.messages-chat {
  margin-bottom: 0;
  min-width: 0;
}

.messages-chat-head {
  align-items: center;
}

.messages-partner {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.messages-partner > div {
  min-width: 0;
}

.messages-partner h2 {
  margin: 0 0 2px;
}

.messages-listing-link {
  display: block;
  overflow: hidden;
  color: var(--violet-2);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-chat .messages-chat-log {
  min-height: 430px;
  max-height: calc(100vh - 318px);
}

.messages-empty {
  min-height: 320px;
}

@media (max-width: 1180px) {
  .chat-shortcut-label {
    display: none;
  }

  .chat-shortcut {
    padding: 8px 10px;
  }
}

@media (max-width: 980px) {
  .offer-frame-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .messages-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-list {
    display: flex;
    gap: 10px;
    max-height: none;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .conversation-item {
    flex: 0 0 280px;
    border: 1px solid rgba(148, 163, 200, 0.12);
    border-radius: 12px;
    padding: 11px 12px;
  }

  .conversation-item:last-child {
    border-bottom: 1px solid rgba(148, 163, 200, 0.12);
  }

  .conversation-item.is-active::before {
    display: none;
  }

  .conversation-item.is-active {
    border-color: rgba(139, 92, 246, 0.45);
  }

  .messages-chat .messages-chat-log {
    min-height: 340px;
    max-height: 58vh;
  }
}

@media (max-width: 860px) {
  .frame-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .frame-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .avatar-editor {
    flex-direction: column;
    align-items: flex-start;
  }

  .avatar-editor-controls {
    width: 100%;
  }

  .referral-panel .panel-head {
    align-items: flex-start;
  }

  .referral-counter {
    flex-direction: row;
    gap: 7px;
    min-width: 0;
    align-self: flex-start;
    padding: 8px 13px;
  }

  .referral-counter strong {
    font-size: 20px;
  }

  .referral-counter span {
    margin-top: 0;
  }

  .copy-field {
    flex-direction: column;
  }

  .copy-field .btn {
    width: 100%;
  }

  .referral-invite {
    flex-wrap: wrap;
  }

  .referral-invite-copy {
    flex-basis: calc(100% - 58px);
  }

  .fruit-switch {
    align-items: stretch;
    flex-direction: column;
  }

  .messages-sidebar-head {
    padding: 13px 14px;
  }

  .conversation-item {
    flex-basis: 250px;
  }

  .messages-chat-head {
    align-items: flex-start;
  }

  .messages-partner {
    align-items: flex-start;
  }

  .messages-chat .messages-chat-log {
    min-height: 300px;
    max-height: 52vh;
  }
}
