/* Nuvio — маркетплейс. Самодостаточная тема: тёмный синий + фиолетовый. */

:root {
  --bg: #060711;
  --bg-2: #090b16;
  --panel: #0d1020;
  --panel-2: #111528;
  --panel-3: #151a30;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1ff;
  --muted: #8d95b2;
  --muted-2: #626a86;
  --violet: #8b5cf6;
  --violet-2: #6d4aff;
  --indigo: #4f46e5;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --pink: #f472b6;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-violet: 0 18px 50px -22px rgba(124, 58, 237, 0.65);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -12%, rgba(109, 74, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 96% -8%, rgba(34, 211, 238, 0.08), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(79, 70, 229, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- фоновое свечение ------------------------------------------------------- */

.aurora {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
}

.aurora-1 {
  width: 620px;
  height: 620px;
  top: -240px;
  left: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 520px;
  height: 520px;
  top: 10%;
  right: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 65%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.aurora-3 {
  width: 700px;
  height: 700px;
  bottom: -420px;
  left: 38%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.26), transparent 65%);
  animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-30px, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, 30px, 0) scale(1.08);
  }
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.noscript {
  max-width: 720px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 14px;
  text-align: center;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.star,
.icon.heart-filled {
  fill: currentColor;
  stroke: currentColor;
}

/* --- шапка ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 17, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, #a78bfa, #6d4aff 55%, #4338ca);
  box-shadow: 0 8px 24px -6px rgba(109, 74, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.logo-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.logo-sub {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 560px;
  height: 44px;
  padding: 0 13px;
  background: rgba(14, 17, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.searchbar:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  background: #0f1224;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.searchbar .search-icon {
  width: 19px;
  height: 19px;
  color: var(--muted-2);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: 0;
  font-size: 13.5px;
}

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

.searchbar input::-webkit-search-cancel-button {
  display: none;
}

.search-key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-family: var(--mono);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.head-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.head-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.head-btn:active {
  transform: scale(0.94);
}

.head-btn .icon {
  width: 21px;
  height: 21px;
}

.dot-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #6d4aff);
  border: 2px solid var(--bg);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
}

.mobile-menu {
  display: none;
}

/* аккаунт в шапке */

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 6px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(15, 18, 36, 0.8);
  transition: border-color 0.2s, background 0.2s;
}

.account-chip:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(140deg, #8b5cf6, #4338ca);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar .initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.account-avatar.c0 {
  background: linear-gradient(140deg, #8b5cf6, #4338ca);
}
.account-avatar.c1 {
  background: linear-gradient(140deg, #22d3ee, #2563eb);
}
.account-avatar.c2 {
  background: linear-gradient(140deg, #f472b6, #7c3aed);
}
.account-avatar.c3 {
  background: linear-gradient(140deg, #34d399, #0f766e);
}
.account-avatar.c4 {
  background: linear-gradient(140deg, #fbbf24, #b45309);
}

.sk-cover {
  height: 118px;
  border-radius: 0;
}

.sk-w40 {
  width: 40%;
}
.sk-w55 {
  width: 55%;
}
.sk-w80 {
  width: 80%;
}

.modal-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.crumb-sep {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
}

.panel-head .link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.panel-head .link:hover {
  color: #c4b5fd;
}

.panel-head .link .icon {
  width: 13px;
  height: 13px;
}

.rub {
  font-weight: 600;
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  color: var(--muted);
}

.tg-off {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
  font-size: 11px;
}

.tg-consent {
  margin: 6px 0 0;
  text-align: center;
  font-size: 10px;
}

.tg-off .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #93c5fd;
}

.auth-legal {
  margin-top: 16px;
  text-align: center;
}

.reset-card {
  width: min(460px, 100%);
  padding: 26px;
}

.reset-card h1 {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.reset-card .auth-form {
  margin-top: 18px;
}

.reset-card [hidden] {
  display: none !important;
}

.deal-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.deal-preview-top img {
  width: 74px;
  height: 47px;
  border-radius: 7px;
  object-fit: cover;
  flex: none;
}

.deal-preview-top strong {
  display: block;
  font-size: 12.5px;
}

.deal-preview-top span {
  color: var(--muted-2);
  font-size: 10.5px;
}

@media (max-width: 440px) {
  .account-avatar .initials {
    font-size: 11px;
  }
}

.account-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.15;
}

.account-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 650;
}

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

.account-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #8b5cf6, #6d4aff);
  color: #fff;
  margin-left: 2px;
}

.account-plus .icon {
  width: 16px;
  height: 16px;
}

.account {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  padding: 8px;
  background: #0f1222;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: 0.18s ease;
  z-index: 30;
}

.account.is-open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.account-menu a:hover,
.account-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.account-menu .icon {
  width: 17px;
  height: 17px;
}

.menu-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

/* --- каркас ---------------------------------------------------------------- */

.app-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 24px 64px;
}

.app-layout.has-right {
  grid-template-columns: 238px minmax(0, 1fr) 300px;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  align-self: start;
  height: calc(100vh - var(--header-h) - 40px);
  max-height: 900px;
  overflow-y: auto;
  padding-right: 2px;
}

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

.side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.16s, background 0.16s, transform 0.16s;
}

.side-item .icon {
  width: 19px;
  height: 19px;
  color: var(--muted-2);
  transition: color 0.16s;
}

.side-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.side-item:hover .icon {
  color: #bdb4ff;
}

.side-item.is-active {
  color: #fff;
  background: linear-gradient(100deg, rgba(124, 58, 237, 0.26), rgba(79, 70, 229, 0.08));
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.side-item.is-active .icon {
  color: #c4b5fd;
}

.side-item.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #a78bfa, #6d4aff);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

.side-sep {
  height: 1px;
  margin: 12px 6px;
  background: var(--line);
}

.pill {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pill-new {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.seller-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 60%),
    linear-gradient(165deg, #141126, #0c0e1c);
  box-shadow: var(--shadow);
}

.seller-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.9);
}

.seller-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.seller-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.side-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.side-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.side-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
  animation: blink 2.4s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.view {
  min-width: 0;
  outline: 0;
  animation: viewIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rightcol {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding-bottom: 4px;
}

/* --- кнопки, поля, мелочи --------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.16s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #5b46e8 55%, #4338ca);
  box-shadow: 0 10px 26px -10px rgba(109, 74, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -10px rgba(124, 58, 237, 1);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.45);
}

.btn-soft {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

.btn-soft:hover {
  background: rgba(139, 92, 246, 0.2);
}

.btn-danger {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}

.btn-sm {
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12.5px;
}

.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 14.5px;
  border-radius: 13px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.btn[data-loading="true"] {
  color: transparent !important;
  pointer-events: none;
}

.btn[data-loading="true"]::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.field .optional {
  color: var(--muted-2);
  font-weight: 400;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--text);
  background: #0a0d19;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  font-size: 13.5px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

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

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(139, 92, 246, 0.65);
  background: #0c0f1e;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  font-size: 12.5px;
  line-height: 1.4;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #8b5cf6;
  flex: none;
}

.check-row a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-ok {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
  font-size: 12.5px;
}

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

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

.accent {
  color: #c4b5fd;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 10.5px;
  font-weight: 600;
}

.chip .icon {
  width: 13px;
  height: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.badge .icon {
  width: 11px;
  height: 11px;
}

.price {
  display: inline;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price .from {
  margin-right: 2px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--yellow);
}

.stars svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.stars .off {
  color: rgba(255, 255, 255, 0.14);
}

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

.rating b {
  color: var(--text);
  font-weight: 650;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty .icon {
  width: 34px;
  height: 34px;
  color: var(--muted-2);
}

.empty strong {
  color: var(--text);
  font-size: 15px;
}

.empty p {
  max-width: 360px;
  font-size: 12.5px;
}

/* --- hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 42px 44px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(124, 58, 237, 0.34), transparent 55%),
    radial-gradient(100% 120% at 78% 20%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(140deg, #14102a 0%, #0b0d1d 55%, #080a14 100%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(100deg, #000 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(100deg, #000 30%, transparent 80%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -80px;
  top: -120px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 62%);
  filter: blur(10px);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
  to {
    transform: translate3d(-24px, 18px, 0) scale(1.08);
    opacity: 1;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.grad-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 45%, #22d3ee 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 490px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 11px;
}

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

.hero-note .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46%;
  pointer-events: none;
  z-index: 1;
}

.hero-cover {
  position: absolute;
  width: 56%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.9);
  opacity: 1;
  animation: coverIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover.c1 {
  right: 2%;
  top: 10%;
  transform: rotate(6deg);
  animation-delay: 0.1s;
}

.hero-cover.c2 {
  right: 26%;
  top: 33%;
  transform: rotate(-7deg);
  animation-delay: 0.22s;
}

.hero-cover.c3 {
  right: 7%;
  top: 57%;
  transform: rotate(3deg);
  animation-delay: 0.34s;
}

@keyframes coverIn {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #0d0f20 26%, rgba(13, 15, 32, 0.55) 48%, transparent 72%);
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.hero-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.hero-dots i:first-child {
  width: 18px;
  border-radius: 9px;
  background: #a78bfa;
}

/* --- категории -------------------------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.07);
  color: #e7d5a6;
  font-size: 11.5px;
  line-height: 1.5;
}

.demo-notice .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #fbbf24;
}

.demo-notice b {
  color: #fcd34d;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 104px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(19, 22, 42, 0.9), rgba(10, 12, 24, 0.9));
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.cat-tile .icon {
  width: 23px;
  height: 23px;
  color: #a78bfa;
  transition: transform 0.25s, filter 0.25s;
}

.cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.44);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(139, 92, 246, 0.8);
}

.cat-tile:hover .icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8));
}

.cat-tile.active {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(165deg, rgba(109, 74, 255, 0.22), rgba(79, 70, 229, 0.06));
  color: #fff;
}

/* --- секции ----------------------------------------------------------------- */

.section {
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.section-head h2 .icon {
  width: 19px;
  height: 19px;
  color: #a78bfa;
}

.section-head .hint {
  margin-right: auto;
}

.section-head .link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.18s;
}

.section-head .link:hover {
  color: #c4b5fd;
}

.section-head .link .icon {
  width: 14px;
  height: 14px;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 12, 23, 0.7);
}

.section-head .tabs {
  margin-left: auto;
}

.tab {
  padding: 6px 12px;
  border-radius: 7px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.16s, background 0.16s;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(79, 70, 229, 0.85));
  box-shadow: 0 4px 12px -4px rgba(109, 74, 255, 0.8);
}

/* --- карточка товара -------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 13px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(170deg, #101326, #0a0c18);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 22px 44px -24px rgba(109, 74, 255, 0.75);
}

.product-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0e1a;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 20, 0.55));
  pointer-events: none;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.card-top {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.card-badge {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(8, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #e9e4ff;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-fav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(8, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  pointer-events: auto;
  transition: background 0.18s, color 0.18s, transform 0.16s;
}

.card-fav .icon {
  width: 15px;
  height: 15px;
}

.card-fav:hover {
  background: rgba(139, 92, 246, 0.55);
  transform: scale(1.08);
}

.card-fav.is-active {
  color: #fb7185;
  background: rgba(8, 10, 20, 0.85);
}

.card-fav.is-active .icon {
  fill: currentColor;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px 12px;
  flex: 1;
}

.card-seller {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.card-seller .icon {
  width: 11px;
  height: 11px;
  color: var(--cyan);
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.2px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 35px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10px;
}

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.card-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.card-price .price {
  font-size: 16.5px;
  white-space: nowrap;
}

.card-price .from {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0;
}

.card-delivery {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(52, 211, 153, 0.09);
  color: #6ee7b7;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.card-delivery .icon {
  width: 10px;
  height: 10px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.card-badges span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-2);
  font-size: 9px;
}

.card-badges .icon {
  width: 10px;
  height: 10px;
  color: var(--green);
}

/* --- правая колонка --------------------------------------------------------- */

.aside-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(17, 21, 40, 0.92), rgba(9, 11, 22, 0.92));
}

.aside-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.trust-item {
  display: flex;
  gap: 10px;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.trust-icon .icon {
  width: 16px;
  height: 16px;
}

.trust-item strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.trust-item p {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.4;
}

.online-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-number {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.online-label {
  color: var(--muted);
  font-size: 11px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: blink 2.4s infinite;
  margin-left: auto;
}

.top-games {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-game {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  margin: 0 -6px;
  border-radius: 8px;
  transition: background 0.16s;
}

.top-game:hover {
  background: rgba(255, 255, 255, 0.04);
}

.top-game img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.top-game span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.top-game b {
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
}

.tg-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(34, 211, 238, 0.2), transparent 55%),
    linear-gradient(150deg, #101d3d, #0b1024);
}

.tg-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 65%);
  filter: blur(8px);
}

.tg-card strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.tg-card p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.tg-card .btn {
  position: relative;
  z-index: 1;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  margin: 0 -5px;
  border-radius: 8px;
  transition: background 0.15s;
}

.recent-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.recent-item img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
}

.recent-item div {
  flex: 1;
  min-width: 0;
}

.recent-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
}

.recent-item span {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
}

/* --- баннер продавца и низ -------------------------------------------------- */

.sell-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  padding: 26px 30px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(100% 160% at 100% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(130deg, #171230, #0c0e1d 60%);
}

.sell-banner::before {
  content: "";
  position: absolute;
  right: 12%;
  top: -70%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 65%);
  filter: blur(20px);
}

.sell-banner-copy {
  position: relative;
  z-index: 1;
  flex: 1;
}

.sell-banner h3 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.sell-banner p {
  max-width: 560px;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.sell-banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sell-banner-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
}

.sell-banner-features .icon {
  width: 12px;
  height: 12px;
  color: var(--green);
}

/* --- страницы: заголовки ---------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.crumbs a:hover {
  color: var(--text);
}

.crumbs .icon {
  width: 12px;
  height: 12px;
}

.page-title {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.page-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(17, 21, 40, 0.92), rgba(9, 11, 22, 0.92));
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.panel-head .hint {
  margin-top: 2px;
}

/* --- каталог ---------------------------------------------------------------- */

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 14, 27, 0.8);
}

.catalog-tools .input {
  flex: 1;
  min-width: 200px;
}

.catalog-tools .select {
  width: auto;
  min-width: 150px;
}

.catalog-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.catalog-cats .chip {
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.catalog-cats .chip.is-active {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  border-color: transparent;
  color: #fff;
}

.catalog-types {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 2px;
}

.catalog-types .chip {
  cursor: pointer;
  white-space: nowrap;
}

.catalog-types .chip.is-active {
  border-color: rgba(139, 92, 246, 0.7);
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
}

.chip-sm {
  padding: 4px 9px;
  font-size: 10.5px;
}

.found {
  color: var(--muted-2);
  font-size: 11.5px;
}

/* --- товар ------------------------------------------------------------------ */

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.product-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-cover {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0c17;
}

.product-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-cover .card-fav {
  position: absolute;
  top: 14px;
  right: 14px;
}

.product-body {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(17, 21, 40, 0.92), rgba(9, 11, 22, 0.92));
}

.product-title {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}

.product-desc {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #c8cee4;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-line;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.buy-box {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
    linear-gradient(170deg, #13152a, #0a0c18);
  box-shadow: var(--shadow);
}

.buy-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.buy-price .price {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.buy-price .old {
  color: var(--muted-2);
  font-size: 12px;
  text-decoration: line-through;
}

.buy-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.45;
}

.buy-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  color: var(--green);
}

.buy-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.buy-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.buy-steps i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
}

.buy-steps strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
}

.buy-steps small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.35;
}

.buy-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buy-list div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.buy-list .icon {
  width: 13px;
  height: 13px;
  color: #a78bfa;
}

.seller-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s, background 0.18s;
}

.seller-box:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.05);
}

.seller-box .account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.seller-box strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
}

.seller-box strong .icon {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}

.seller-box span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.seller-box .icon.chev {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-author {
  font-size: 12px;
  font-weight: 650;
}

.review-date {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 10px;
}

.review p {
  color: #c4cae0;
  font-size: 12.5px;
  line-height: 1.55;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.05);
}

.rating-summary b {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rating-summary .stars svg {
  width: 16px;
  height: 16px;
}

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

/* --- авторизация ------------------------------------------------------------ */

.auth-page {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.auth-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(920px, 100%);
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  background: #0b0d1a;
  box-shadow: var(--shadow);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(130% 100% at 0% 0%, rgba(124, 58, 237, 0.5), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(160deg, #191331, #0b0d1c);
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 30% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000, transparent 75%);
}

.auth-aside > .auth-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.auth-copy .hero-eyebrow {
  margin-bottom: 12px;
}

.auth-aside h2 {
  margin-top: 0;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.auth-aside p {
  margin-top: 10px;
  color: #b9b3d9;
  font-size: 12.5px;
  line-height: 1.6;
}

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9d4f5;
  font-size: 11.5px;
}

.auth-benefits .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.auth-covers {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-covers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(11, 13, 28, 0.55) 48%, #0b0d1c 74%);
}

.auth-covers img {
  position: absolute;
  width: 58%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.55;
  box-shadow: 0 20px 40px -16px #000;
}

.auth-covers img:nth-child(1) {
  left: -2%;
  top: -6%;
  width: 56%;
  transform: rotate(-9deg);
}

.auth-covers img:nth-child(2) {
  right: -18%;
  top: 11%;
  transform: rotate(9deg);
}

.auth-covers img:nth-child(3) {
  left: 16%;
  top: 34%;
  width: 46%;
  transform: rotate(-4deg);
}

.auth-covers img:nth-child(4) {
  display: none;
}

.auth-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px clamp(22px, 3vw, 42px);
}

.auth-form-wrap h1 {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.auth-form-wrap .hint {
  margin-top: 6px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090b16;
}

.auth-tab {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: 0.18s;
}

.auth-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(79, 70, 229, 0.85));
  box-shadow: 0 6px 16px -8px rgba(109, 74, 255, 0.9);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tg-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.08));
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 650;
  transition: 0.18s;
}

.tg-login:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.14));
  border-color: rgba(59, 130, 246, 0.55);
}

.tg-login .icon {
  width: 18px;
  height: 18px;
}

.tg-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.tg-wait .spinner {
  width: 26px;
  height: 26px;
}

.tg-wait p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.profile-head {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(170deg, #13152a, #0a0c18);
}

.profile-cover {
  height: 118px;
  background:
    radial-gradient(80% 140% at 20% 0%, rgba(124, 58, 237, 0.55), transparent 60%),
    radial-gradient(70% 130% at 90% 10%, rgba(34, 211, 238, 0.2), transparent 55%),
    linear-gradient(120deg, #191331, #0b0d1c);
}

.profile-cover::after {
  content: "";
  display: block;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.profile-main {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 22px 18px;
  margin-top: -38px;
}

.profile-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 22px;
  border: 3px solid #0b0d1a;
  background: linear-gradient(140deg, #8b5cf6, #4338ca);
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar .initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.avatar-edit {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: rgba(8, 10, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}

.avatar-edit .icon {
  width: 13px;
  height: 13px;
}

.profile-id {
  flex: 1;
  min-width: 0;
  padding-bottom: 3px;
}

.profile-id h1 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.profile-id h1 .icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.profile-id p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.profile-stats {
  display: flex;
  gap: 20px;
  padding: 0 22px 20px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat b {
  font-size: 18px;
  font-weight: 750;
}

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

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seller-onboarding.is-highlight {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 18px 50px rgba(99, 102, 241, 0.12);
}

.seller-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6ee7b7;
  font-size: 13px;
}

.seller-terms-gate {
  padding: 12px 13px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.06);
}

.seller-terms-gate .hint {
  margin: 7px 0 0 24px;
}

.seller-terms-ok {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6ee7b7;
}

.payout-panel {
  margin-top: 0;
}

.payout-pending {
  padding: 13px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.07);
}

.payout-pending strong {
  display: block;
  margin-bottom: 4px;
  color: #fcd34d;
  font-size: 13px;
}

.payout-history {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payout-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.payout-row b {
  margin-left: auto;
  color: var(--text);
  font-size: 12px;
}

.payout-row .status-pill {
  margin-left: 8px;
}

/* --- продажа ---------------------------------------------------------------- */

.sell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.sell-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.cover-option {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: 0.18s;
}

.cover-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-option:hover {
  opacity: 1;
}

.cover-option.is-active {
  border-color: #a78bfa;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.cover-option span {
  display: none;
}

.upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.upload-box:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.05);
}

.upload-box .icon {
  width: 18px;
  height: 18px;
  color: #a78bfa;
}

.preview-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-note {
  padding: 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.06);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* --- мои товары ------------------------------------------------------------- */

.my-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.18s, background 0.18s;
}

.my-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.04);
}

.my-item img {
  width: 74px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.my-item-info {
  flex: 1;
  min-width: 0;
}

.my-item-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.my-item-info span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.my-item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-active,
.status-completed {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
}

.status-paused,
.status-reserved {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
}

.status-awaiting_payment {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
}

.status-payment_review {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.status-paid {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
}

.status-delivered {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
}

.status-cancelled {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
}

.status-disputed {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
}

.status-sold,
.status-archived {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

/* --- сделки ----------------------------------------------------------------- */

.deal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(170deg, rgba(17, 21, 40, 0.75), rgba(9, 11, 22, 0.75));
  transition: border-color 0.18s, transform 0.18s;
}

.deal-row:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(2px);
}

.deal-row img {
  width: 76px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.deal-row-main {
  flex: 1;
  min-width: 0;
}

.deal-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.deal-id {
  color: var(--muted-2);
  font-size: 10px;
  font-family: var(--mono);
}

.deal-row-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
}

.deal-row-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.deal-row-side {
  text-align: right;
  flex: none;
}

.deal-row-side b {
  font-size: 14px;
}

.deal-row-side span {
  display: block;
  color: var(--muted-2);
  font-size: 9.5px;
}

.deal-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.deal-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deal-summary {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(170deg, #111428, #0a0c18);
}

.deal-summary img {
  width: 120px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.deal-summary-info {
  flex: 1;
  min-width: 0;
}

.deal-summary-info h1 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}

.deal-summary-info .deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.deal-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}

.deal-price b {
  font-size: 20px;
  font-weight: 800;
}

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

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.015);
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 16px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

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

.timeline-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #0a0c18;
  color: var(--muted-2);
  z-index: 1;
}

.timeline-dot .icon {
  width: 11px;
  height: 11px;
}

.timeline-step.done .timeline-dot {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.timeline-step.current .timeline-dot {
  border-color: rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.timeline-step.done::before {
  background: rgba(52, 211, 153, 0.4);
}

.timeline-body strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.timeline-body p {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.08), rgba(9, 11, 22, 0.6));
}

.deal-hint {
  padding: 12px 14px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.07);
  color: #c4b5fd;
  font-size: 12px;
  line-height: 1.5;
}

.deal-payment {
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 15px;
  background: linear-gradient(170deg, rgba(251, 191, 36, 0.09), rgba(9, 11, 22, 0.65));
}

.deal-payment-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #fcd34d;
  font-size: 13px;
}

.deal-payment-head .icon {
  width: 16px;
  height: 16px;
}

.deal-payment-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  color: #f5e6c8;
  font-size: 13px;
  font-weight: 600;
}

.deal-payment-sum,
.deal-payment-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(251, 191, 36, 0.16);
  font-size: 11px;
}

.deal-payment-sum span,
.deal-payment-ref span {
  color: var(--muted);
}

.deal-payment-sum b {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.deal-payment-ref code {
  color: #fcd34d;
  font-family: var(--mono);
  font-size: 13px;
}

.deal-payment-ref .btn {
  margin-left: auto;
  height: 30px;
  padding: 0 9px;
  font-size: 10.5px;
}

.deal-payment .buy-note {
  margin-top: 8px;
}

.deal-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.participant {
  display: flex;
  align-items: center;
  gap: 9px;
}

.participant .account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.participant strong {
  display: block;
  font-size: 11.5px;
}

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

/* чат */

.chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #0a0c18;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.chat-head strong {
  font-size: 12px;
}

.chat-head .status-pill {
  margin-left: auto;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--muted-2);
  font-size: 11.5px;
}

.msg {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 11px 11px 11px 3px;
  background: #141830;
  border: 1px solid var(--line);
  align-self: flex-start;
  animation: msgIn 0.2s ease both;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.msg.mine {
  align-self: flex-end;
  border-radius: 11px 11px 3px 11px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(79, 70, 229, 0.22));
  border-color: rgba(139, 92, 246, 0.3);
}

.msg-author {
  display: block;
  margin-bottom: 2px;
  color: #a78bfa;
  font-size: 9.5px;
  font-weight: 650;
}

.msg-text {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg-time {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8.5px;
  text-align: right;
}

.msg img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 4px;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.chat-form input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #080a14;
  outline: 0;
  font-size: 12px;
}

.chat-form input:focus {
  border-color: rgba(139, 92, 246, 0.6);
}

.chat-send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: #fff;
}

.chat-send .icon {
  width: 17px;
  height: 17px;
}

.chat-attach {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.chat-attach:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
}

/* звёзды в форме отзыва */

.stars-input {
  display: flex;
  gap: 4px;
}

.stars-input button {
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.15s, transform 0.15s;
}

.stars-input button .icon {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.stars-input button.is-on {
  color: var(--yellow);
}

.stars-input button:hover {
  transform: scale(1.12);
}

/* --- страницы правил -------------------------------------------------------- */

.prose {
  max-width: 760px;
  color: #c8cee4;
  font-size: 13.5px;
  line-height: 1.75;
}

.prose h2 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

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

.prose p {
  margin-bottom: 10px;
}

.prose ul {
  margin: 8px 0 14px;
  padding-left: 18px;
  list-style: disc;
}

.prose li {
  margin-bottom: 5px;
}

.prose .accent {
  color: #c4b5fd;
}

/* --- низ и мобильная навигация ---------------------------------------------- */

.site-footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px 24px 96px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 12px;
  max-width: 340px;
}

.footer-brand strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-brand p {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links span {
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  font-size: 11.5px;
  transition: color 0.16s;
}

.footer-links a:hover {
  color: #c4b5fd;
}

.footer-legal {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 10px;
}

.mobile-nav {
  display: none;
}

/* --- модальные окна и тосты ------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 12, 0.7);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.modal-card {
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(170deg, #121529, #0a0c18);
  box-shadow: var(--shadow);
  animation: modalIn 0.24s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.modal-card.wide {
  width: min(640px, 100%);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.16s;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.modal-actions .btn {
  flex: 1;
}

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #111428;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  animation: toastIn 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.4);
}

.toast .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--green);
}

.toast.error .icon {
  color: var(--red);
}

.toast.out {
  animation: toastOut 0.2s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* --- скелетоны и загрузка --------------------------------------------------- */

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.skeleton-card {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.loading-line {
  height: 14px;
  margin: 8px;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #a78bfa;
  animation: spin 0.7s linear infinite;
}

.center-load {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px;
  color: var(--muted);
  font-size: 12px;
}

/* --- появление при скролле -------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) {
  transition-delay: 0.04s;
}
.reveal:nth-child(3) {
  transition-delay: 0.08s;
}
.reveal:nth-child(4) {
  transition-delay: 0.12s;
}
.reveal:nth-child(5) {
  transition-delay: 0.16s;
}
.reveal:nth-child(6) {
  transition-delay: 0.2s;
}
.reveal:nth-child(7) {
  transition-delay: 0.24s;
}
.reveal:nth-child(8) {
  transition-delay: 0.28s;
}

/* --- адаптив ---------------------------------------------------------------- */

@media (max-width: 1320px) {
  .app-layout.has-right {
    grid-template-columns: 224px minmax(0, 1fr) 280px;
  }

  .app-layout {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 20px;
  }

  .hero {
    padding: 34px;
  }

  .hero-art {
    width: 46%;
    right: 16px;
  }
}

@media (max-width: 1180px) {
  .app-layout.has-right {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .rightcol {
    display: none !important;
  }

  .product-page,
  .deal-page,
  .sell-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-layout,
  .app-layout.has-right {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 90px;
  }

  .sidebar {
    display: none;
  }

  .mobile-menu {
    display: grid;
  }

  .hero-art {
    opacity: 0.45;
    width: 55%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero {
    min-height: 300px;
  }

  .product-page,
  .deal-page,
  .sell-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .buy-box,
  .deal-side,
  .preview-card {
    position: static;
  }

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

  .auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-aside {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(11, 13, 26, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px -12px #000;
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 14px;
    border-radius: 10px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 600;
  }

  .mobile-nav a .icon {
    width: 19px;
    height: 19px;
  }

  .mobile-nav a.is-active {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
  }

  .site-footer {
    padding: 24px 16px 110px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    gap: 10px;
    padding: 0 14px;
    height: 64px;
  }

  :root {
    --header-h: 64px;
  }

  .logo-text {
    display: none;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .searchbar {
    height: 40px;
    padding: 0 10px;
  }

  .search-key {
    display: none;
  }

  .head-actions {
    gap: 2px;
  }

  .head-btn {
    width: 38px;
    height: 38px;
  }

  .head-btn[href="/nuvio/favorites"] {
    display: none;
  }

  .account-chip {
    height: 40px;
    border: 0;
    background: none;
    padding: 0;
  }

  .account-info,
  .account-plus {
    display: none;
  }

  .account-chip .account-avatar {
    width: 36px;
    height: 36px;
  }

  .account-slot .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding: 26px 22px;
    min-height: 0;
    border-radius: 18px;
  }

  .hero-art {
    display: none;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero .lead {
    font-size: 12.5px;
    margin: 12px 0 18px;
  }

  .hero-note {
    display: none;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

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

  .cat-tile {
    min-height: 92px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 9px 10px 10px;
  }

  .card-title {
    font-size: 12px;
  }

  .card-price .price {
    font-size: 15px;
  }

  .card-delivery {
    display: none;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .section-head .tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .tab {
    flex: 1;
    text-align: center;
  }

  .page-title {
    font-size: 21px;
  }

  .panel {
    padding: 15px;
  }

  .auth-form-wrap {
    padding: 24px 18px;
  }

  .profile-main {
    padding: 0 16px 14px;
    gap: 12px;
  }

  .profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .profile-id h1 {
    font-size: 18px;
  }

  .profile-stats {
    padding: 0 16px 16px;
    gap: 16px;
  }

  .deal-summary {
    flex-wrap: wrap;
  }

  .deal-summary img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
  }

  .deal-price {
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-card {
    padding: 18px;
  }

  .sell-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 22px;
  }

  .sell-banner .btn {
    width: 100%;
  }

  .card-meta .rating > span:last-child {
    display: none;
  }

  .site-footer {
    padding-bottom: 104px;
  }

  .footer-links {
    gap: 28px;
  }

  .chat {
    min-height: 380px;
  }
}

@media (max-width: 440px) {
  .card-title {
    min-height: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .profile-main {
    flex-wrap: wrap;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
