:root, html.dark {
  color-scheme: dark;
  --space: 8px;
  --radius: 12px;
  --font: Inter, system-ui, sans-serif;
  --display: Unbounded, Inter, sans-serif;
  --blue: #2663F0;
  --blue-hover: #5286FF;
  --blue-dark: #1849CC;
  --violet: #8E4DFF;
  --pink: #E957FF;
  --red: #F0305D;
  --red-hover: #FF4D76;
  --orange: #FA7223;
  --yellow: #FFE357;
  --green: #10A350;
  --green-hover: #22BD65;
  --gray-1: #D3D6DB;
  --gray-2: #A4A8B2;
  --gray-3: #707480;
  --gray-4: #515561;
  --gray-5: #282933;
  --text: #EBECF0;
  --text-2: #A4A8B2;
  --bg: #14161A;
  --paper: #282933;
  --header: #14161A;
  --header-bar: rgba(40, 41, 51, 0.9);
  --search: #14161A;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  --overlay: rgba(0, 0, 0, 0.62);
  --online: #22BD65;
  --star: #f5c542;
  --max: 1560px;
  --arrow-bg: rgba(20, 22, 26, 0.8);
  --arrow-border: #515561;
  --arrow-shadow: 0 0 32px -12px rgba(0, 0, 0, 0.45), 0 5px 6px -2.5px rgba(0, 0, 0, 0.25);
  --switch-track: rgba(255, 255, 255, 0.12);
  --media: #16181e;
  --fade: var(--bg);
}

html.light {
  color-scheme: light;
  --blue: #1453ff;
  --blue-hover: #3d71ff;
  --blue-dark: #043edb;
  --violet: #7424ff;
  --pink: #c026d3;
  --red: #e11d48;
  --red-hover: #f43f5e;
  --orange: #ea580c;
  --yellow: #ca8a04;
  --green: #00a849;
  --green-hover: #17c261;
  --gray-1: #404452;
  --gray-2: #828794;
  --gray-3: #c9cbd1;
  --gray-4: #e1e3e8;
  --gray-5: #ffffff;
  --text: #111318;
  --text-2: #6b7280;
  --bg: #f2f4f7;
  --paper: #ffffff;
  --header: #f2f4f7;
  --header-bar: rgba(255, 255, 255, 0.9);
  --search: #f2f4f7;
  --shadow: 0 8px 28px rgba(20, 22, 26, 0.08);
  --overlay: rgba(20, 22, 26, 0.45);
  --online: #00a849;
  --star: #ca8a04;
  --arrow-bg: rgba(255, 255, 255, 0.9);
  --arrow-border: transparent;
  --arrow-shadow: 0 0 32px -12px rgba(63, 70, 80, 0.24), 0 5px 6px -2.5px rgba(63, 70, 80, 0.12);
  --switch-track: #d9dbdf;
  --media: #e8eaef;
  --fade: var(--bg);
}

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { scrollbar-color: var(--gray-3) transparent; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, textarea, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
svg { overflow: hidden; flex-shrink: 0; }
.ico { width: 18px; height: 18px; display: block; }
.btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

/* Fill a fixed box without stretching the source image */
.cover-lg img,
.cover-xl img,
.cover-sm img,
.cover-photo,
.game-cover img,
.card-media img,
.mini-ico img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.card-media .card-game-ico {
  width: 42%;
  height: auto;
  max-width: 88px;
  aspect-ratio: 1 / 1;
}
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea { border: none; background: transparent; }
input:focus, textarea:focus, select:focus, button:focus { outline: none; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

#app { min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
#modal-root { position: relative; z-index: 80; pointer-events: none; }
#modal-root:empty { display: none; }
#modal-root .modal-backdrop { pointer-events: auto; }
body.modal-open { overflow: hidden; }
.page { flex: 1; padding-bottom: 88px; min-width: 0; }
@media (min-width: 1024px) { .page { padding-bottom: 0; } }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; min-width: 0; }
@media (max-width: 640px) { .container { width: calc(100% - 24px); } }

/* Header — Playerok floating bar */
.header {
  position: relative;
  z-index: 50;
  pointer-events: none;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px 0;
}
@media (min-width: 1024px) {
  .header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  min-height: 40px;
}
@media (min-width: 1024px) {
  .header-inner {
    gap: 24px;
    min-height: 76px;
    padding: 12px 24px;
    background: var(--header-bar);
    backdrop-filter: blur(10px);
    border-radius: 24px;
  }
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .header-brand { margin-right: auto; gap: 8px; }
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background-image: linear-gradient(90deg, #2663F0, #8E4DFF, #5286FF, #E957FF, #2663F0);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: logoFlow 4.5s linear infinite;
}
@keyframes logoFlow {
  to { background-position: -200% 50%; }
}
@media (min-width: 768px) {
  .logo-text { font-size: 32px; }
}
html.light .logo-text {
  background-image: linear-gradient(90deg, #1453ff, #7424ff, #3d71ff, #c026d3, #1453ff);
}
@media (prefers-reduced-motion: reduce) {
  .logo-text { animation: none; background-position: 0% 50%; }
}
.theme-switch {
  width: 48px; height: 28px; border-radius: 99px;
  background: var(--switch-track);
  position: relative;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .theme-switch { width: 56px; height: 32px; }
}
.theme-switch i {
  position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #14161A;
  display: grid; place-items: center;
  transition: transform 0.2s;
}
@media (min-width: 768px) {
  .theme-switch i { width: 28px; height: 28px; }
}
.theme-switch.on i { transform: translateX(20px); }
@media (min-width: 768px) {
  .theme-switch.on i { transform: translateX(24px); }
}
.theme-switch svg, .theme-switch .ico { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .theme-switch svg, .theme-switch .ico { width: 20px; height: 20px; }
}

.search-wrap { min-width: 0; position: relative; flex: 1; }
.search {
  display: flex; align-items: center; gap: 12px;
  background: var(--search); border-radius: 12px;
  padding: 0 16px; height: 40px;
  border: 1px solid transparent;
}
@media (min-width: 768px) {
  .search { height: 52px; }
}
.search:focus-within { border-color: var(--blue); }
.search input { flex: 1; min-width: 0; font-size: 16px; background: transparent; line-height: 1; }
@media (min-width: 768px) {
  .search input { font-size: 18px; }
}
.search input::placeholder { color: var(--text-2); }
.search-ico { width: 24px; height: 24px; color: var(--gray-2); flex-shrink: 0; }
.search svg, .icon { width: 20px; height: 20px; color: var(--gray-2); flex-shrink: 0; }

.header-nav {
  display: flex; align-items: stretch; gap: 12px; flex-shrink: 0;
}
@media (min-width: 1024px) {
  .header-nav { gap: 24px; }
}
.hdr-nav {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 48px; color: var(--text-2); position: relative; flex-shrink: 0;
}
@media (min-width: 1024px) {
  .hdr-nav { min-width: 56px; }
}
.hdr-nav:hover { color: var(--blue-hover); }
.hdr-nav span { font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.nav-ico { width: 32px; height: 32px; color: currentColor; flex-shrink: 0; }
.hdr-nav.on { color: var(--blue); }
.hdr-nav.prizes { color: var(--text); }
.hdr-nav.prizes img {
  width: 32px; height: 32px;
  max-width: none;
  object-fit: contain;
}
.prizes-pill {
  background: #2663F0; color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 1px 6px; border-radius: 99px; min-width: 40px; text-align: center;
}
.header-spacer { display: none; }
@media (min-width: 1024px) {
  .header-spacer { display: block; height: 116px; flex-shrink: 0; }
}
.badge-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--bg);
}
.badge-count {
  position: absolute; top: 0; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 99px;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--text); position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: 0.15s ease;
}
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-violet { background: var(--violet); color: #fff !important; }
.btn-green { background: var(--green); color: #fff !important; }
.btn-red { background: var(--red); color: #fff !important; }
.btn-ghost { background: var(--gray-5); color: var(--text); }
.btn-ghost:hover { background: var(--gray-4); }
.btn-outline { border: 1px solid var(--gray-3); background: transparent; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; width: 100%; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.boost-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--gray-5);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 10px;
  margin: 4px 0 16px;
  overflow: visible;
}
html.light .boost-card {
  background: var(--paper);
  border-color: var(--gray-4);
}
.boost-visual {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 76px;
  padding: 12px 28px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 50%, rgba(255,255,255,0.18) 0%, transparent 42%),
    radial-gradient(circle at 92% 50%, rgba(77,243,255,0.14) 0%, transparent 36%),
    linear-gradient(135deg, #1453ff 0%, #7424ff 55%, #2663F0 100%);
}
.visual-info {
  position: relative;
  z-index: 1;
  text-align: right;
}
.visual-info h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.visual-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.visual-info b {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.boost-pct {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.32), 0 0 28px rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.boost-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}
.float-field {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 160px;
  height: 76px;
  border-radius: 14px;
  background: var(--bg);
  padding: 0 16px;
  border: 1px solid transparent;
}
html.light .float-field { background: var(--search); }
.float-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(38, 99, 240, 0.16);
}
.float-field span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  pointer-events: none;
}
.float-field input {
  width: 100%;
  height: 24px;
  padding: 0 18px 0 0;
  font-size: 18px;
  font-weight: 700;
  background: transparent;
}
html.light .float-field input { background: transparent; }
.float-field .cur {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-8%);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}
.boost-form input[name="promo"] {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-hover);
}
.pay-bonus[hidden] { display: none; }
.btn-pay {
  position: relative;
  width: 220px;
  height: 76px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue), #5286FF);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(38, 99, 240, 0.22);
  flex-shrink: 0;
}
.btn-pay span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-pay:hover { background: linear-gradient(90deg, #3B72F2, #6896FF); }
.pay-bonus {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--gray-5);
}
html.light .pay-bonus { border-color: #fff; }

@media (max-width: 1200px) {
  .float-field { width: 140px; }
  .btn-pay { width: 200px; }
  .boost-visual { gap: 20px; padding: 12px 20px; }
}
@media (max-width: 1023px) {
  .boost-card { flex-direction: column; }
  .boost-visual {
    width: 100%;
    min-height: 84px;
    justify-content: flex-start;
    gap: 20px;
    padding: 16px 18px;
  }
  .visual-info { text-align: left; }
  .visual-info p { justify-content: flex-start; }
  .boost-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .float-field { width: auto; }
  .btn-pay { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .boost-card { padding: 8px; gap: 10px; }
  .boost-visual {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 14px 18px;
  }
  .visual-info, .visual-info p { text-align: center; justify-content: center; }
  .boost-pct { font-size: 40px; }
  .boost-form { grid-template-columns: 1fr; gap: 8px; }
  .float-field, .btn-pay { width: 100%; height: 64px; }
  .float-field input { font-size: 16px; }
  .pay-bonus { right: 10px; }
}

/* Games swiper */
.section { padding: 24px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.link { color: var(--blue); font-weight: 600; font-size: 14px; }
.link:hover { color: var(--blue-hover); }

.games-row, .cats-row { position: relative; min-width: 0; }
.games-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; padding: 8px 44px 12px;
  min-width: 0;
}
.games-scroll::-webkit-scrollbar { display: none; }
.game-chip {
  width: 88px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text);
}
.game-chip span {
  font-size: 14px; font-weight: 400; text-align: center; line-height: 1.25;
  max-width: 88px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-cover {
  width: 80px; height: 80px; aspect-ratio: 1 / 1;
  border-radius: 22px;
  display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-size: 18px; font-weight: 700;
  overflow: hidden; background: var(--gray-5); flex-shrink: 0;
}
.more-grid { font-size: 28px; color: var(--text-2); background: var(--gray-5); }
.cover-lg, .cover-xl {
  display: block; overflow: hidden; width: 100%; height: 100%;
}
.cover-lg { border-radius: 0; background: var(--media); }
.cover-xl { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
.cover-sm {
  width: 28px; height: 28px; aspect-ratio: 1 / 1;
  border-radius: 8px; font-size: 11px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; background: var(--gray-5);
}
.cover-letter { display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 700; }
.mini-ico {
  width: 32px; height: 32px; aspect-ratio: 1 / 1;
  border-radius: 8px; overflow: hidden; display: grid; place-items: center;
}

.hero-banner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1560 / 320;
  background: #ececec;
  border-radius: 40px;
  overflow: visible;
  min-width: 0;
}
.hero-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hero-track {
  display: flex; height: 100%; width: 100%;
  transition: transform 0.45s ease;
}
.hero-track a { flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero-track picture { display: block; width: 100%; height: 100%; }
.hero-track img,
.hero-banner > img {
  width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; object-position: center;
  background: #ececec;
}
.hero-dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 4px; width: min(368px, 70%);
  pointer-events: none;
}
.hero-dots i {
  flex: 1; height: 2px; border-radius: 8px; background: rgba(20,22,26,0.22);
}
.hero-dots i.on { background: var(--blue); }

.round-arrow {
  position: absolute; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--arrow-bg);
  border: 2px solid var(--arrow-border);
  box-shadow: var(--arrow-shadow);
  color: var(--text);
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
  padding: 0;
  margin: 0;
  line-height: 0;
  flex-shrink: 0;
  overflow: visible;
}
.round-arrow:hover { color: var(--blue); border-color: var(--blue); }
.round-arrow .chev,
.round-arrow svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.games-row .round-arrow.prev,
.cats-row .round-arrow.prev { left: 0; }
.games-row .round-arrow.next,
.cats-row .round-arrow.next { right: 0; }
.hero-banner .hero-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  margin: 0;
  transform: translateY(-50%);
}
.hero-banner .hero-arrow.prev {
  left: 16px;
  right: auto;
}
.hero-banner .hero-arrow.next {
  left: auto;
  right: 16px;
}
@media (min-width: 1280px) {
  .hero-banner .hero-arrow {
    width: 52px;
    height: 52px;
  }
  .hero-banner .hero-arrow.prev { left: 20px; }
  .hero-banner .hero-arrow.next { right: 20px; }
}
.games-row::before,
.games-row::after {
  content: "";
  position: absolute; z-index: 2;
  pointer-events: none;
  top: 8px; width: 56px; height: 80px;
}
.games-row::before { left: 0; background: linear-gradient(90deg, var(--fade), transparent); }
.games-row::after { right: 0; background: linear-gradient(270deg, var(--fade), transparent); }
.games-row .round-arrow { top: 22px; }
.round-arrow:disabled { opacity: 0; pointer-events: none; }
.cats-row {
  position: relative;
  margin: 8px 0 32px;
}
.cats-row::before,
.cats-row::after {
  content: "";
  position: absolute; z-index: 2;
  top: 0; width: 56px; height: 44px;
  pointer-events: none;
}
.cats-row::before { left: 0; background: linear-gradient(90deg, var(--fade), transparent); }
.cats-row::after { right: 0; background: linear-gradient(270deg, var(--fade), transparent); }
.cats-row .round-arrow {
  position: absolute;
  top: 50%;
  margin-top: -26px;
}
@media (max-width: 1023px) {
  .games-row .round-arrow,
  .cats-row .round-arrow { display: none; }
  .games-row::before, .games-row::after,
  .cats-row::before, .cats-row::after { display: none; }
  .hero-banner { width: 100%; border-radius: 24px 24px 0 0; }
  .hero-banner .hero-arrow {
    display: grid;
    width: 40px;
    height: 40px;
  }
  .hero-banner .hero-arrow.prev { left: 10px; }
  .hero-banner .hero-arrow.next { right: 10px; }
  .hero-banner .hero-arrow svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
  }
  .games-scroll { padding: 8px 0 12px; }
  .cats-row { margin: 8px 0 24px; }
  .cats-scroll { padding: 0; }
}
@media (max-width: 639px) {
  .hero-banner .hero-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-banner .hero-arrow.prev { left: 8px; }
  .hero-banner .hero-arrow.next { right: 8px; }
}

.home-sheet {
  position: relative;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), var(--bg));
  border-radius: 32px 32px 0 0;
  margin-top: -48px;
  padding-top: 8px;
  z-index: 1;
  min-width: 0;
}
@media (min-width: 1024px) {
  .home-sheet { margin-top: 20px; background: transparent; border-radius: 0; padding-top: 0; }
}
.home-page .home-sheet > .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.home-page .home-sheet > .container > * { min-width: 0; }
.home-page .boost-card,
.home-page .cats-row,
.home-page .games-row {
  margin: 0;
}
@media (max-width: 1023px) {
  .home-page .home-sheet > .container { gap: 20px; }
}

.card-head {
  display: flex; gap: 8px; align-items: center;
  padding: 0 0 8px; min-width: 0;
}
.card-head .cover-sm { width: 32px; height: 32px; border-radius: 10px; }
.card-head > div { min-width: 0; }
.card-head b {
  font-size: 14px; font-weight: 800; line-height: 1.2; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cats-scroll {
  overflow-x: auto; scrollbar-width: none;
  min-width: 0;
  border-bottom: 1px solid var(--gray-4);
  padding: 0 52px;
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cats-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  min-width: 100%;
  padding: 0 0 2px;
}
.cat-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; color: var(--text);
  font-size: 16px; white-space: nowrap;
  position: relative;
  padding: 0 4px;
}
.cat-chip::after {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: var(--blue); opacity: 0;
}
.cat-chip:hover { color: var(--blue-hover); }
.cat-chip:hover::after { opacity: 1; }
.cat-ico { width: 28px; height: 28px; color: var(--gray-2); }
.cat-chip:hover .cat-ico { color: var(--blue); }

.nav-fade { display: none; }

/* Product grid */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}
@media (min-width: 720px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex; flex-direction: column;
  min-width: 0;
}
.card:hover { transform: none; box-shadow: none; }
.card-shot { position: relative; }
.card-media {
  position: relative; display: block; width: 100%;
  background: var(--gray-5);
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card-art {
  position: absolute; inset: 0;
  z-index: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 8% 0%, color-mix(in srgb, var(--game) 42%, transparent), transparent 56%),
    radial-gradient(90% 80% at 100% 110%, color-mix(in srgb, var(--game) 26%, transparent), transparent 52%),
    linear-gradient(165deg, #1c1f28 0%, #12141a 100%);
}
html.light .card-art {
  background:
    radial-gradient(120% 90% at 8% 0%, color-mix(in srgb, var(--game) 26%, #fff), transparent 58%),
    radial-gradient(90% 80% at 100% 110%, color-mix(in srgb, var(--game) 16%, #fff), transparent 52%),
    linear-gradient(165deg, #f5f7fb 0%, #e6e9f0 100%);
}
.card-game-ico {
  width: 42%;
  max-width: 88px;
  aspect-ratio: 1 / 1;
  height: auto !important;
  max-height: none;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.card-game-letter {
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}
.card-mark {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  background-image: linear-gradient(90deg, #2663F0 0%, #8E4DFF 50%, #5286FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.78;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(38, 99, 240, 0.28));
}
.card-body { padding: 10px 0 2px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-title {
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 13px; font-weight: 500; color: var(--text-2); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  color: var(--green); font-size: 18px; font-weight: 800; line-height: 1.15;
}
.card-price.is-plain { color: var(--green); }
.card-price.is-sale { color: var(--blue-hover); }
.card-price.is-hot { color: var(--red); }
.card-price b { font-weight: 800; letter-spacing: -0.02em; }
.card-price s { color: var(--text-2); font-weight: 600; font-size: 13px; }
.sale-off { color: inherit; font-size: 14px; font-style: normal; font-weight: 800; letter-spacing: -0.02em; }
.card-rate { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13px; line-height: 1; }
.card-rate b { font-weight: 700; color: var(--text); }
.card-rate-star { width: 14px; height: 14px; fill: var(--star); flex-shrink: 0; }
.card-rate.is-new { font-weight: 600; color: var(--text-2); }
.card-stars { display: inline-flex; gap: 1px; color: var(--gray-4); font-size: 13px; line-height: 1; }
.card-stars i { font-style: normal; }
.card-stars i.on { color: var(--star); }
.card-rate-n { font-size: 13px; font-weight: 500; color: var(--text-2); }
.card-rate-n::before { content: "·"; margin-right: 5px; }
.pill-red { background: #f0305d; color: #fff; }
.pills {
  position: absolute; top: 8px; left: 8px;
  z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  max-width: calc(100% - 52px);
}
.pill {
  background: rgba(20,22,26,0.78); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.pill-blue { background: var(--blue); }
.pill-violet { background: var(--violet); }
.pill-green { background: var(--green); }
.card-auto {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 8px 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 121, 249, 0.38) 0%, rgba(168, 85, 247, 0.34) 50%, rgba(124, 58, 237, 0.4) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-auto .ico { width: 11px; height: 11px; flex-shrink: 0; }

/* Catalog layout */
.layout-2 {
  display: grid; gap: 20px;
}
@media (min-width: 1024px) {
  .layout-2 { grid-template-columns: 280px 1fr; align-items: start; }
}
.filters {
  background: var(--gray-5); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.filter-block h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field {
  background: var(--bg); border: 1px solid var(--gray-4); border-radius: 12px;
  height: 44px; padding: 0 12px; width: 100%; font-size: 14px;
}
.field:focus { border-color: var(--blue); }
textarea.field { height: auto; padding: 12px; resize: vertical; min-height: 120px; }
.check {
  display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer;
}
.check input { accent-color: var(--blue); width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 12px; border-radius: 99px;
  background: var(--gray-5); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--blue); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.muted { color: var(--text-2); font-size: 13px; }

/* Product page */
.product-grid {
  display: grid; gap: 20px; padding: 20px 0 40px;
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.panel { background: var(--gray-5); border-radius: 16px; padding: 16px; }
.price-xl { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.seller-row { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  position: relative; flex-shrink: 0;
}
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.online-dot {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
  background: var(--online); border: 2px solid var(--bg); border-radius: 50%;
}
.stars { color: var(--orange); font-weight: 700; font-size: 13px; }
.guarantee {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg); border-radius: 12px; padding: 12px;
  font-size: 13px;
}
.guarantee svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn svg { width: 18px; height: 18px; }
.composer .btn { width: 44px; padding: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-4); margin: 8px 0 16px; }
.tab {
  padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--text); border-bottom-color: var(--blue); }

/* Chats — flex shell (no global overflow:hidden, no collapsed SVGs) */
body.chats-mode {
  overflow: hidden;
}
body.chats-mode #app {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.chats-mode .footer { display: none; }
.chats-page {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: flex;
  overflow: hidden;
}
@media (max-width: 1023px) {
  body.chats-mode .header,
  body.chats-mode .header-spacer { display: none; }
  .chats-page {
    max-width: none;
    padding: 0 0 var(--mnav-space);
  }
}
.chats-layout {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}

.chat-sidebar {
  flex: 0 0 420px;
  width: 420px;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a1c24 0%, var(--bg) 42%);
  border-right: 1px solid rgba(255,255,255,0.06);
}
html.light .chat-sidebar {
  border-right-color: var(--gray-4);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 48%);
}
.sidebar-head {
  flex: 0 0 auto;
  padding: 12px 24px 18px;
}
.chats-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.chat-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-4) transparent;
}
.chat-list::-webkit-scrollbar { width: 4px; }
.chat-list::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 4px; }

.chat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 4px;
  min-width: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-row:hover { background: rgba(255,255,255,0.04); transform: translateX(2px); }
html.light .chat-row:hover { background: rgba(20,22,26,0.04); }
.chat-row.active { background: var(--gray-5); transform: none; }
html.light .chat-row.active { background: var(--bg); }

.c-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  overflow: visible;
}
.c-avatar.sm { width: 48px; height: 48px; flex-basis: 48px; border-radius: 16px; }
.c-avatar.circle { border-radius: 50%; }
.c-avatar img,
.c-avatar .letter {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.c-avatar.sm .letter { font-size: 18px; }
.c-avatar.support {
  background: linear-gradient(135deg, #2663F0 0%, #10A350 100%);
  background-size: 180% 180%;
  animation: avatarShift 7s ease-in-out infinite;
}
.c-avatar.support .letter,
.c-avatar.alerts .letter,
.c-avatar.withdraw .letter { background: transparent; }
.c-avatar.alerts {
  background: linear-gradient(145deg, #FA7223, #F0305D);
  animation: alertGlow 2.8s ease-in-out infinite;
}
.c-avatar.withdraw {
  background: linear-gradient(145deg, #10A350, #22BD65);
  animation: withdrawGlow 2.8s ease-in-out infinite;
}
.c-avatar .online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: auto;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--bg);
  background: var(--online);
  border-radius: 50%;
  pointer-events: none;
}
.c-avatar.sm .online-dot {
  width: 12px;
  height: 12px;
  border-width: 2px;
}
.chat-row.active .online-dot { border-color: var(--gray-5); }
html.light .c-avatar .online-dot { border-color: #fff; }
html.light .chat-row.active .online-dot { border-color: var(--bg); }
.chat-thread .c-avatar .online-dot { border-color: var(--bg); }

.c-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.c-top, .c-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.c-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.c-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-time {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.c-preview {
  min-width: 0;
  font-size: 15px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-unread {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  animation: unreadPulse 1.8s ease-in-out infinite;
}
.chats-page .verified { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.verified { width: 16px; height: 16px; flex-shrink: 0; display: block; }

.chat-thread {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: none;
  flex-direction: column;
  background:
    radial-gradient(880px 380px at 88% -8%, rgba(38, 99, 240, 0.18), transparent 58%),
    radial-gradient(640px 280px at 0% 100%, rgba(142, 77, 255, 0.1), transparent 52%),
    var(--bg);
}
.chat-lot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0 16px 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow);
  min-width: 0;
}
.chat-lot:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.chat-lot-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}
.chat-lot-img img,
.chat-lot-img .chat-lot-cover,
.chat-lot-img .game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.chat-lot-txt { flex: 1; min-width: 0; }
.chat-lot-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 2px;
}
.chat-lot-txt b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}
.chat-lot-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
  white-space: nowrap;
}
.chat-lot > svg { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }
.msg-group.msg-listing {
  max-width: min(300px, 86%);
  width: 100%;
}
.msg-share-cap {
  margin: 0 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.msg-share {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.06);
}
html.light .msg-share { border-color: var(--gray-4); }
.msg-share:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 10px 28px rgba(0,0,0,0.18); }
.msg-share-art {
  position: relative;
  height: 124px;
  overflow: hidden;
}
.msg-share-art .card-art { border-radius: 0; }
.msg-share-art .card-game-ico {
  width: 38%;
  max-width: 64px;
  border-radius: 16px;
}
.msg-share-art .card-mark { font-size: 10px; right: 8px; bottom: 6px; }
.msg-share-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msg-share-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg-share-kicker {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}
.msg-share-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}
.msg-share-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.msg-share-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.msg-share-price s {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.msg-share-go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}
.msg-share-go svg { width: 14px; height: 14px; }
.msg-group.msg-listing .msg-time { margin-top: 6px; }
@media (max-width: 1023px) {
  .chat-lot { margin: 0 12px 8px; }
  .msg-group.msg-listing { max-width: min(280px, 90%); }
}
@media (max-width: 1023px) {
  .chat-sidebar { flex: 1 1 100%; width: auto; border-right: none; }
  .chats-page.thread-open .chat-sidebar { display: none; }
  .chats-page.thread-open .chat-thread { display: flex; }
  .chats-page.inbox .chat-thread { display: none; }
}
@media (min-width: 1024px) {
  .chats-page .chat-sidebar,
  .chats-page .chat-thread { display: flex; }
}
html.light .chat-thread {
  background:
    radial-gradient(880px 380px at 88% -8%, rgba(38, 99, 240, 0.1), transparent 58%),
    var(--bg);
}
html.light .messages-scroll {
  background-image: radial-gradient(rgba(20, 22, 26, 0.05) 1px, transparent 1px);
}
html.light .composer-area {
  background: linear-gradient(180deg, transparent, #fff 32%);
  border-top-color: var(--gray-4);
}

.t-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 80px;
  padding: 14px 24px;
  min-width: 0;
  overflow: visible;
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.55), transparent);
}
.t-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: visible;
  flex: 1;
}
.t-peer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  flex: 1;
}
.t-peer:hover .t-title span { color: var(--blue-hover); }
.t-more {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: transparent;
}
.t-more:hover { background: var(--gray-5); }
html.light .t-more:hover { background: var(--gray-4); }
.t-more .ico { width: 20px; height: 20px; }
.t-back {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border-radius: 12px;
  place-items: center;
  color: var(--text);
  flex: 0 0 40px;
}
.t-back:hover { background: var(--gray-5); }
html.light .t-back:hover { background: var(--gray-4); }
.t-back svg { width: 22px; height: 22px; display: block; }
@media (max-width: 1023px) {
  .t-back { display: grid; }
  .t-head { padding: 12px 16px; }
}
.t-meta { min-width: 0; overflow: visible; }
.t-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 700;
  font-size: 18px;
}
.t-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-status {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}
.t-status-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  position: relative;
  display: block;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
}
.live-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--online);
  z-index: 1;
}
.live-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--online);
  transform-origin: 50% 50%;
  animation: livePulse 1.6s ease-out infinite;
}
.chat-push {
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
  height: 48px;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease, background 0.2s ease;
}
html.light .chat-push { border-bottom-color: var(--gray-4); }
.chat-push:hover { color: var(--blue-hover); background: rgba(38, 99, 240, 0.06); }
.chat-push.is-off { color: var(--text-2); }
.chat-push.is-off:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.thread-empty-state,
.chat-empty {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--text-2);
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
  filter: none;
  opacity: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.empty-title { font-size: 18px; font-weight: 600; color: var(--text); }
.chat-empty img { width: 72px; height: 72px; border-radius: 20px; }

.messages-scroll {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 24px 12px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.messages-scroll::-webkit-scrollbar { width: 6px; }
.messages-scroll::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 6px; }
.chat-thread > .messages-scroll:last-child {
  padding-bottom: 48px;
}
@media (max-width: 1023px) {
  .messages-scroll { padding: 16px; }
  .chat-thread > .messages-scroll:last-child { padding-bottom: 40px; }
}
.chat-stream {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.chat-date {
  align-self: center;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(40, 41, 51, 0.86);
  border: 1px solid rgba(255,255,255,0.06);
  animation: fadeUp 0.35s ease both;
}
html.light .chat-date { background: #fff; border-color: var(--gray-4); }

.msg-group {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: min(560px, 88%);
  min-width: 0;
  overflow: visible;
  animation: msgIn 0.32s ease both;
}
.msg-group.theirs { align-self: flex-start; align-items: flex-start; }
.msg-group.mine { align-self: flex-end; align-items: flex-end; }
.msg-group.system {
  align-self: center;
  max-width: 90%;
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
}
.msg-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.bubble {
  position: relative;
  max-width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.msg-group.theirs .bubble {
  background: linear-gradient(180deg, #343640, var(--gray-5));
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
html.light .msg-group.theirs .bubble {
  background: var(--bg);
  border: 1px solid var(--gray-4);
}
.msg-group.mine .bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-group.alert .bubble {
  background: linear-gradient(180deg, rgba(250, 114, 35, 0.18), rgba(250, 114, 35, 0.08));
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(250, 114, 35, 0.28);
}
.msg-group.alert-notice .bubble {
  background: linear-gradient(180deg, rgba(38, 99, 240, 0.16), rgba(38, 99, 240, 0.06));
  border-color: rgba(38, 99, 240, 0.28);
}
.msg-group.alert-withdraw .bubble {
  background: linear-gradient(180deg, rgba(34, 189, 101, 0.18), rgba(34, 189, 101, 0.06));
  border-color: rgba(34, 189, 101, 0.32);
}
.alert-kicker {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FA7223, #FFE357);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: kickerShine 3.2s ease-in-out infinite;
}
.msg-group.alert-notice .alert-kicker {
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  animation: none;
}
.msg-group.alert-withdraw .alert-kicker {
  background: linear-gradient(90deg, #22BD65, #8CE8B1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
}
.alert-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.alert-support:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
}
.bubble-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-time {
  align-self: flex-end;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.6;
}
.msg-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  max-width: 100%;
}
.msg-more {
  position: absolute;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  opacity: 0.72;
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.msg-group.mine .msg-more { left: -36px; }
.msg-group.theirs .msg-more { right: -36px; }
.msg-group:hover .msg-more,
.msg-more:focus-visible { opacity: 1; }
.msg-more .ico { width: 16px; height: 16px; }
.msg-quote {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.16);
  border-left: 3px solid currentColor;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-group.theirs .msg-quote { background: rgba(255,255,255,0.06); color: var(--blue-hover); }
html.light .msg-group.theirs .msg-quote { background: rgba(38,99,240,0.08); }
.msg-quote b { font-size: 12px; font-weight: 700; }
.msg-quote span { font-size: 12px; opacity: 0.85; color: inherit; }
.bubble.is-deleted {
  background: transparent !important;
  color: var(--text-2);
  box-shadow: none;
  border: 1px dashed rgba(255,255,255,0.14);
  padding: 12px 14px;
  user-select: none;
  -webkit-user-select: none;
}
html.light .bubble.is-deleted { border-color: var(--gray-4); }
.deleted-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-style: italic;
}
.deleted-line svg { width: 16px; height: 16px; flex-shrink: 0; }
.deleted-code {
  display: inline-block;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: transparent;
  padding: 0;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--paper);
  border-left: 3px solid var(--blue);
}
.reply-bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reply-bar-txt b { font-size: 12px; color: var(--blue); }
.reply-bar-txt span { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-x {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
}
.reply-x svg { width: 16px; height: 16px; }
.composer-area.is-blocked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 22px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}

.faq-block {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0 24px 10px;
  padding: 12px 14px 14px;
  border-radius: 20px;
  background: rgba(20, 22, 26, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  max-height: 42vh;
  overflow: auto;
}
@media (max-width: 1023px) {
  .faq-block { margin: 0 16px 8px; }
}
html.light .faq-block {
  background: rgba(255,255,255,0.8);
  border-color: var(--gray-4);
}
.faq-block.is-hidden {
  overflow: visible;
  padding-bottom: 12px;
}
.faq-block.is-hidden .faq-grid { display: none; }
.faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
}
.faq-block.is-hidden .faq-head { margin-bottom: 0; }
.faq-head-txt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.faq-head-txt b {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.faq-head-txt em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-2);
}
.faq-toggle {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.faq-chip {
  --tone: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  text-align: left;
  padding: 8px 16px 8px 8px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--tone) 12%, var(--gray-5));
  border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  animation: chipIn 0.38s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  font-size: 18px;
  background: color-mix(in srgb, var(--tone) 28%, #14161A);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 40%, transparent);
}
.faq-label { min-width: 0; }
.faq-chip.tone-gold { --tone: #FFE357; }
.faq-chip.tone-slate { --tone: #A4A8B2; }
.faq-chip.tone-orange { --tone: #FA7223; }
.faq-chip.tone-blue { --tone: #2663F0; }
.faq-chip.tone-violet { --tone: #8E4DFF; }
.faq-chip.tone-sky { --tone: #5286FF; }
.faq-chip.tone-fire { --tone: #F0305D; }
.faq-chip.tone-green { --tone: #10A350; }
.faq-chip.tone-lime { --tone: #22BD65; }
.faq-chip.tone-red { --tone: #F0305D; }
html.light .faq-chip { background: color-mix(in srgb, var(--tone) 10%, #fff); }
html.light .faq-ico { background: color-mix(in srgb, var(--tone) 18%, #fff); }
.faq-chip:hover {
  background: color-mix(in srgb, var(--tone) 22%, var(--gray-5));
  border-color: color-mix(in srgb, var(--tone) 70%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tone) 22%, transparent);
}
@media (max-width: 720px) {
  .faq-chip { white-space: normal; font-size: 14px; }
  .faq-head-txt { flex-direction: column; gap: 2px; }
}

.composer-area {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 26, 0.92) 28%, var(--bg));
  min-width: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
@media (max-width: 1023px) {
  .composer-area { padding: 10px 16px 16px; }
}
.composer-area.withdraw-actions .btn {
  text-align: center;
}
.tpl-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tpl-bar::-webkit-scrollbar { display: none; }
.tpl-chip {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  background: var(--gray-5);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.tpl-chip:hover { background: color-mix(in srgb, var(--blue) 14%, var(--gray-5)); transform: translateY(-1px); }
.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
}
.composer-field {
  flex: 1 1 0;
  min-width: 0;
  background: var(--gray-5);
  border-radius: 16px;
  padding: 16px 22px;
  transition: box-shadow 0.2s ease;
}
.composer-field:focus-within { box-shadow: 0 0 0 2px rgba(38, 99, 240, 0.45); }
html.light .composer-field { background: var(--paper); box-shadow: inset 0 0 0 1px var(--gray-4); }
.composer-input {
  width: 100%;
  min-height: 28px;
  max-height: 140px;
  resize: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  overflow-y: auto;
}
.composer-input::placeholder { color: var(--text-2); }
.composer-input:disabled { color: var(--text-2); cursor: not-allowed; }
.btn-attach {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex: 0 0 44px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn-attach:hover { color: var(--text); background: var(--gray-5); transform: scale(1.06); }
.btn-attach svg { width: 24px; height: 24px; display: block; }
.btn-send {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn-send svg { width: 18px; height: 18px; display: block; margin-left: 1px; }
.btn-send:hover { background: var(--blue-hover); transform: scale(1.06); }
.btn-send:disabled { opacity: 0.35; pointer-events: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes avatarShift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}
@keyframes alertGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 114, 35, 0); }
  50% { box-shadow: 0 0 0 6px rgba(250, 114, 35, 0.16); }
}
@keyframes withdrawGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 189, 101, 0); }
  50% { box-shadow: 0 0 0 6px rgba(34, 189, 101, 0.18); }
}
@keyframes unreadPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes livePulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(2.15); opacity: 0; }
}
@keyframes kickerShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .c-avatar.support,
  .c-avatar.alerts,
  .c-avatar.withdraw,
  .c-unread,
  .live-dot::before,
  .alert-kicker,
  .faq-chip,
  .msg-group,
  .chat-date { animation: none; }
  .chat-row, .faq-chip, .btn-send, .btn-attach { transition: none; }
}

.chat-item {
  display: flex; gap: 12px; padding: 12px 16px; align-items: center;
  border-bottom: 1px solid var(--gray-5);
}
.chat-item.active, .chat-item:hover { background: var(--gray-5); }

/* Auth */
body.auth-mode .header,
body.auth-mode .header-spacer,
body.auth-mode .mobile-nav { display: none !important; }
body.auth-mode .page { padding-bottom: 0; }
body.auth-mode #notice-root { bottom: 16px; padding-bottom: 0; }
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px 40px;
}
@media (min-width: 1024px) {
  .auth-page { padding: 48px 20px 56px; }
}
.auth-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--gray-5);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.auth-head { text-align: center; margin-bottom: 32px; position: relative; z-index: 1; }
.auth-head.is-left { text-align: left; margin-bottom: 24px; }
.auth-head h1 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.auth-head p { color: var(--text-2); font-size: 15px; }
.auth-page .stack { gap: 16px; }
.auth-page .field-wrap { display: flex; flex-direction: column; gap: 8px; }
.auth-page .label { font-size: 14px; font-weight: 600; margin-left: 4px; }
.auth-page .field {
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 16px;
  height: 56px;
  padding: 0 20px;
  width: 100%;
  font-size: 16px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
html.light .auth-page .field { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02); }
.auth-page .field:focus {
  border-color: var(--blue);
  background: var(--gray-5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.auth-page .field.is-bad { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--bg)); }
.auth-page .err {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
  margin: -8px 0 0 6px;
  font-weight: 500;
}
.auth-page .nick-wrap { position: relative; display: flex; align-items: center; }
.auth-page .nick-prefix {
  position: absolute;
  left: 20px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 16px;
  pointer-events: none;
}
.auth-page .field-nick { padding-left: 38px; font-weight: 600; }
.auth-page .field-code {
  text-align: center;
  letter-spacing: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  padding-left: 28px;
}
.auth-page .field-code::placeholder { letter-spacing: 12px; font-weight: 800; opacity: 0.5; }
.auth-page .code-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-top: -2px;
}
.auth-page .code-meta .err { margin: 0; }
.auth-page .code-meta .muted { font-size: 12px; }
.auth-page .btn {
  height: 56px;
  border-radius: 16px;
  font-size: 16px;
  width: 100%;
  gap: 12px;
}
.auth-page .btn-blue { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.auth-page .btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 6px 16px color-mix(in srgb, var(--blue) 30%, transparent);
}
.auth-page .btn-blue:active { transform: translateY(2px); box-shadow: none; }
.auth-page .btn-social {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid transparent;
}
html.light .auth-page .btn-social { border-color: var(--gray-4); }
.auth-page .btn-social:hover { background: var(--gray-4); }
.auth-page .btn-tg { background: #2AABEE; color: #fff; border-color: transparent; }
.auth-page .btn-tg:hover { background: #229ED9; color: #fff; }
.auth-page .btn-tg svg { fill: currentColor; }
.auth-page .btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.auth-page .or {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 8px 0;
}
.auth-page .or::before, .auth-page .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-4);
}
.auth-page .legal {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 24px;
  text-align: center;
}
.auth-page .legal-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.auth-page .legal-link:hover { color: var(--blue-hover); }
.auth-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  width: fit-content;
}
.auth-page .back:hover { color: var(--text); }
.auth-page .back svg { width: 18px; height: 18px; }
.auth-page .resend-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: block;
  text-align: center;
  margin: 24px auto 0;
  background: none;
  width: auto;
  height: auto;
}
.auth-page .resend-btn:disabled { color: var(--text-2); cursor: default; }
.auth-done { text-align: center; }
.auth-page .done-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--online) 15%, transparent);
  color: var(--online);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.auth-page .done-mark svg { width: 40px; height: 40px; }
.auth-sheet {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 80;
}
.auth-sheet[hidden] { display: none !important; }
.auth-sheet .sheet-card {
  width: 100%;
  max-width: 400px;
  background: var(--gray-5);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-sheet h2 {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--display);
  margin-bottom: 12px;
  text-align: center;
}
.auth-sheet .sheet-card > p {
  color: var(--text-2);
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
}
.auth-sheet .sheet-actions { gap: 8px; }
.auth-page .gg-acc {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 2px solid transparent;
  margin-bottom: 12px;
}
html.light .auth-page .gg-acc { border-color: var(--gray-4); }
.auth-page .gg-acc:hover { border-color: var(--blue); background: var(--gray-5); }
.auth-page .gg-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff;
  flex-shrink: 0;
}
.auth-page .gg-acc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auth-page .gg-acc-txt b { font-size: 15px; }
.auth-page .sheet-btn-ghost {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  margin-top: 8px;
}
.auth-page .sheet-btn-ghost:hover { background: var(--bg); color: var(--text); }
@media (max-width: 640px) {
  .auth-page { padding: 28px 16px 32px; }
  .auth-wrap { padding: 28px 18px; border-radius: 24px; }
  .auth-head h1 { font-size: 24px; }
}
.stack { display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 13px; font-weight: 600; }

/* Footer */
.footer {
  background: #1c1e26;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 44px 0 120px;
  margin-top: 64px;
}
html.light .footer {
  background: #ffffff;
  border-top: 1px solid var(--gray-4);
}
@media (min-width: 1024px) { .footer { padding: 52px 0 48px; } }
.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1fr) minmax(280px, 1.15fr);
  gap: 36px 48px;
  align-items: start;
}
.footer h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.pay-logos {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  gap: 12px;
  width: max-content;
}
.pay-logo {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  transition: transform 0.15s ease;
}
.pay-logo:hover { transform: translateY(-2px); }
.pay-logo svg { width: 52px; height: 52px; display: block; }
html.light .pay-logo { box-shadow: 0 6px 16px rgba(20,22,26,0.1); }
.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
}
.footer-info a {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
  padding: 6px 0;
}
.footer-info a:hover { color: var(--blue-hover); }
.footer-info-col { display: flex; flex-direction: column; align-items: stretch; }
.footer-social { display: flex; flex-direction: column; align-items: stretch; }
.social-widgets { display: flex; flex-direction: column; gap: 10px; }
.sub-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 8px 10px 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  transition: transform 0.15s ease, background 0.15s ease;
}
.sub-widget:hover { transform: translateY(-2px); }
.sub-widget-tg { background: linear-gradient(90deg, rgba(42,171,238,0.18), rgba(255,255,255,0.04) 46%); }
.sub-widget-yt { background: linear-gradient(90deg, rgba(255,0,0,0.16), rgba(255,255,255,0.04) 46%); }
.sub-widget-tg:hover { background: linear-gradient(90deg, rgba(42,171,238,0.28), rgba(255,255,255,0.07) 46%); }
.sub-widget-yt:hover { background: linear-gradient(90deg, rgba(255,0,0,0.26), rgba(255,255,255,0.07) 46%); }
.sub-widget-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  object-fit: cover;
}
.sub-widget-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-widget-text strong { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.sub-widget-text span { font-size: 12px; color: var(--text-2); line-height: 1.2; }
.sub-widget-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.sub-widget-tg .sub-widget-btn { background: #2AABEE; box-shadow: 0 6px 14px rgba(42,171,238,0.28); }
.sub-widget-yt .sub-widget-btn { background: #E62117; box-shadow: 0 6px 14px rgba(230,33,23,0.28); }
html.light .sub-widget {
  box-shadow: inset 0 0 0 1px var(--gray-4);
}
html.light .sub-widget-tg { background: linear-gradient(90deg, rgba(42,171,238,0.14), #f4f6f9 46%); }
html.light .sub-widget-yt { background: linear-gradient(90deg, rgba(230,33,23,0.1), #f4f6f9 46%); }
.footer-support {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue), #5286FF);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(38, 99, 240, 0.28);
}
.footer-support svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-support:hover { background: linear-gradient(90deg, #3B72F2, #6896FF); }
.copy { margin-top: 40px; font-size: 12px; color: var(--text-2); }
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
  .social-widgets { max-width: 420px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-social { grid-column: auto; }
  .social-widgets { max-width: none; }
}

/* Mobile nav */
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--header-bar); border-top: 1px solid var(--gray-4);
  display: grid; grid-template-columns: repeat(5, 1fr); height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-2);
}
.mobile-nav a.active { color: var(--blue); }
.mobile-nav svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .mobile-nav { display: none; } .header-search-mobile { display: none; } }

.support-fab {
  position: fixed; right: 16px; bottom: 80px; z-index: 35;
  height: 44px; padding: 0 14px; border-radius: 99px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .support-fab { display: none; }
}

/* Modals / toasts */
.modal-backdrop {
  position: fixed; inset: 0; background: var(--overlay); z-index: 80;
  display: grid; place-items: center; padding: 16px;
}
.modal {
  position: relative;
  background: var(--bg); border-radius: 20px; width: min(480px, 100%);
  padding: 20px; box-shadow: var(--shadow);
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: var(--gray-5);
  line-height: 0;
}
.modal-x svg { width: 16px; height: 16px; display: block; }
@media (hover: hover) {
  .modal-x:hover { color: var(--text); filter: brightness(1.08); }
}
.menu-modal-title {
  margin: 0 40px 16px 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.menu-modal-stack .btn { width: 100%; justify-content: center; }
.menu-modal-stack .is-danger-text { color: var(--red); }
.modal.is-sheet {
  --sheet-bg: var(--paper);
  padding: 0;
  width: min(400px, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sheet-bg);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.04);
  animation: sheetFadeUp 0.2s ease-out;
}
html.light .modal.is-sheet {
  --sheet-bg: var(--bg);
  background: var(--sheet-bg);
  border-color: var(--gray-4);
}
@keyframes sheetFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-sheet {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.sheet-chrome {
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  padding: 12px 12px 8px;
  background: var(--sheet-bg);
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 14px 18px;
}
.sheet-grab {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--gray-4);
  margin: 0 auto 10px;
  opacity: 0.65;
}
.sheet-top {
  position: relative;
  min-height: 40px;
}
.modal.is-sheet .sheet-nav {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: rgba(255,255,255,0.06);
  line-height: 0;
}
.modal.is-sheet .sheet-nav.is-back { left: 0; }
.modal.is-sheet .sheet-nav.is-close { right: 0; }
html.light .modal.is-sheet .sheet-nav {
  background: var(--paper);
  border: 1px solid var(--gray-4);
}
.modal.is-sheet .sheet-nav svg,
.modal.is-sheet .sheet-nav .ico {
  width: 18px !important;
  height: 18px !important;
  display: block;
  overflow: visible;
  flex-shrink: 0;
  aspect-ratio: 1;
}
@media (hover: hover) {
  .modal.is-sheet .sheet-nav:hover { background: var(--gray-5); color: var(--text); }
  html.light .modal.is-sheet .sheet-nav:hover { background: var(--gray-4); }
}
.sheet-head-txt {
  min-width: 0;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 48px;
}
.sheet-head-txt b,
.sheet-person b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sheet-head-txt em,
.sheet-person em {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--text-2);
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.3;
}
.sheet-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 4px 48px 6px;
}
.sheet-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  border-radius: 18px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  background: color-mix(in srgb, var(--blue) 70%, var(--violet));
  overflow: hidden;
  flex-shrink: 0;
}
.sheet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sheet-avatar.is-online { overflow: visible; }
.sheet-avatar.is-online img { border-radius: 18px; }
.sheet-avatar.is-online::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--online);
  border: 3px solid var(--sheet-bg);
  box-sizing: content-box;
}
.sheet-list { display: flex; flex-direction: column; gap: 8px; }
.modal.is-sheet svg {
  overflow: visible;
  flex-shrink: 0;
}
.modal.is-sheet .sheet-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gray-5);
  color: var(--text);
}
html.light .modal.is-sheet .sheet-action {
  background: var(--paper);
  border-color: var(--gray-4);
}
@media (hover: hover) {
  .modal.is-sheet .sheet-action:hover { border-color: var(--blue); }
  .sheet-action.is-danger:hover { border-color: var(--red); }
}
.sheet-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
}
html.light .sheet-ico { background: var(--bg); }
.sheet-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  aspect-ratio: 1;
}
.sheet-action-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.sheet-action-txt b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sheet-action-txt em {
  font-size: 12px;
  font-style: normal;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet-action.is-on {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-color: color-mix(in srgb, var(--blue) 32%, transparent);
}
.sheet-action.is-on .sheet-ico {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--blue);
}
.sheet-action.is-on .sheet-action-txt b { color: var(--blue); }
.danger-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-5);
}
html.light .danger-zone { border-top-color: var(--gray-4); }
.sheet-action.is-danger {
  background: color-mix(in srgb, var(--red) 6%, transparent);
  border-color: color-mix(in srgb, var(--red) 22%, transparent);
}
.sheet-action.is-danger .sheet-ico {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}
.sheet-action.is-danger .sheet-action-txt b { color: var(--red); }
.mute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.modal.is-sheet .mute-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  min-width: 0;
  padding: 14px 8px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gray-5);
  color: var(--text);
  width: 100%;
}
html.light .modal.is-sheet .mute-card {
  background: var(--paper);
  border-color: var(--gray-4);
}
.mute-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text-2);
}
html.light .mute-ico { background: var(--bg); }
.mute-ico svg,
.mute-card svg {
  width: 18px;
  height: 18px;
  aspect-ratio: 1;
  display: block;
}
.mute-card.is-forever .mute-ico {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}
.mute-card b {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
@media (hover: hover) {
  .mute-card:hover { border-color: var(--blue); }
  .mute-card:hover .mute-ico { color: var(--blue); }
  .mute-card.is-forever:hover { border-color: var(--red); }
  .mute-card.is-forever:hover .mute-ico { color: var(--red); }
}
.mute-unoff { margin-bottom: 12px; }
.sheet-quote {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
  border-left: 3px solid var(--blue);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet-hint { padding: 10px 8px 2px; font-size: 13px; color: var(--text-2); line-height: 1.4; text-align: center; }
.report-form { padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.report-lead { margin: 0 4px; font-size: 13px; font-weight: 500; color: var(--text-2); text-align: center; line-height: 1.4; }
.report-reasons { display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; }
.report-reason {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gray-5);
  cursor: pointer;
  flex-shrink: 0;
  min-width: 0;
}
html.light .report-reason { background: var(--paper); border-color: var(--gray-4); }
.report-reason input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  inset: 12px auto auto 12px;
}
.radio-circle {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--gray-3);
  display: grid;
  place-items: center;
}
.report-reason input:checked + .radio-circle {
  border-color: var(--blue);
  background: var(--blue);
}
.report-reason input:checked + .radio-circle::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}
.report-reason:has(:checked) {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-color: var(--blue);
}
.reason-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reason-txt b { font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.reason-txt em { font-size: 12px; font-style: normal; color: var(--text-2); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.report-note-zone {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0,0,0,0.15);
  border: 1px dashed var(--gray-4);
}
.report-form:has([name="reason"][value="other"]:checked) .report-note-zone { display: flex; }
html.light .report-note-zone { background: color-mix(in srgb, var(--bg) 80%, var(--paper)); }
.report-note-zone > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field.report-note {
  min-height: 80px;
  resize: vertical;
  border-radius: 14px;
  padding: 14px;
  background: var(--paper);
  font-size: 15px;
}
html.light .field.report-note { background: var(--paper); }
.modal.is-sheet .btn-submit {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--blue) 28%, transparent);
  flex-shrink: 0;
  margin-top: 4px;
}
.modal.is-sheet .btn-submit.btn-red {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--red) 28%, transparent);
}
@media (hover: hover) {
  .modal.is-sheet .btn-submit:hover { transform: none; }
}
@media (max-width: 768px) {
  .modal-backdrop:has(.is-sheet) {
    padding: 0;
    place-items: end center;
  }
  .modal.is-sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 28px 28px 0 0;
    border: none;
    border-top: 1px solid var(--gray-5);
    animation-name: sheetFadeUpMobile;
  }
  html.light .modal.is-sheet { border-top-color: var(--gray-4); }
  @keyframes sheetFadeUpMobile {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .sheet-grab { display: block; }
  .sheet-chrome { padding: 8px 14px 8px; }
  .sheet-body { padding: 0 14px calc(18px + env(safe-area-inset-bottom, 0px)); }
}
.peer-pill {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.peer-pill.is-friend { background: rgba(38,99,240,0.16); color: var(--blue); }
.friend-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--green) 16%, var(--paper));
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.friend-mark svg { width: 22px; height: 22px; }
.friend-mark:hover {
  background: color-mix(in srgb, var(--blue) 16%, var(--paper));
  color: var(--blue);
}
.peer-pill.is-pending { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.peer-pill.is-blocked { background: rgba(240,48,93,0.14); color: var(--red); }
.hero-actions.is-guest { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.guest-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#notice-root {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
@media (max-width: 1023px) {
  #notice-root {
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    max-width: none;
    padding: 0 8px 12px;
    bottom: 84px;
    align-items: stretch;
  }
}
body.chats-mode #notice-root { bottom: 16px; padding-bottom: 0; }
.notice {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 20px;
  background: #14161acc;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #282933;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.03), 0 0 56px rgba(0, 0, 0, 0.08);
  color: #f2f4f7;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  animation: noticeIn 0.28s ease;
}
.notice.is-cookie { white-space: nowrap; }
.notice p { margin: 0; flex: 1; min-width: 0; }
.notice a { color: var(--blue-hover); font-weight: 400; }
.notice a:hover { color: var(--blue); }
.notice-ok {
  flex-shrink: 0;
  height: 40px;
  min-width: 72px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 -2px 0 var(--blue-dark);
}
.notice-ok:hover { background: var(--blue-hover); box-shadow: inset 0 -2px 0 var(--blue); }
.notice-ok:active { transform: translateY(2px); box-shadow: none; }
.notice.is-ok {
  background: #10A350cc;
  border-color: rgba(255, 255, 255, 0.08);
}
.notice.is-bad {
  background: #F0305Dcc;
  border-color: rgba(255, 255, 255, 0.08);
}
.notice.is-info {
  background: #2663F0cc;
  border-color: rgba(255, 255, 255, 0.08);
}
html.light .notice {
  background: #ffffffe6;
  border-color: #fff;
  color: #111318;
}
html.light .notice a { color: var(--blue); }
html.light .notice.is-ok { background: #10A350e6; color: #fff; }
html.light .notice.is-ok a { color: #fff; }
html.light .notice.is-bad { background: #F0305De6; color: #fff; }
html.light .notice.is-info { background: #2663F0e6; color: #fff; }
@keyframes noticeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1023px) {
  .notice {
    white-space: normal;
    border-radius: 28px;
    padding: 16px 12px 8px;
    gap: 8px;
  }
  .notice.is-cookie { white-space: normal; }
}

html.light .header-inner { box-shadow: var(--shadow); }
html.light .header-search-mobile .search {
  background: #fff;
  border-color: var(--gray-4);
}
html.light .btn-ghost {
  background: #fff;
  border: 1px solid var(--gray-4);
}
html.light .chip { border: 1px solid var(--gray-4); }
html.light .modal { background: #fff; }
html.light .modal-x { background: var(--gray-4); }
html.light .more-grid { background: var(--media); }
html.light .chat-item { border-bottom-color: var(--gray-4); }
html.light .filters,
html.light .panel,
html.light .auth-wrap,
html.light .boost-card {
  box-shadow: var(--shadow);
}
html.light .suggest { background: #fff; }
html.light .theme-switch i { color: #1453ff; }
@keyframes slide { from { transform: translateY(-8px); opacity: 0; } }

.hero-cta {
  display: grid; gap: 12px; margin: 8px 0 8px;
}
@media (min-width: 800px) { .hero-cta { grid-template-columns: 1.4fr 1fr; } }
.promo {
  border-radius: 20px; padding: 20px; color: #fff; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.promo h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 20px; }
.stat { background: var(--gray-5); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 18px; }
.stat span { font-size: 12px; color: var(--text-2); }

.review {
  background: var(--gray-5); border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.empty {
  text-align: center; padding: 48px 16px; color: var(--text-2);
}

.error-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
  overflow: hidden;
}
.error-page .e-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 140vw);
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 25%, transparent) 0%, transparent 70%);
}
.error-page:has(.v-500) .e-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--red) 20%, transparent) 0%, transparent 70%);
}
html.light .error-page .e-glow { opacity: 0.55; }
.error-page .e-view {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: eFadeUp 0.4s ease-out;
}
@keyframes eFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.error-page .e-illu {
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-page .e-illu svg { width: 100%; height: 100%; overflow: visible; }
.error-page .e-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.error-page .e-code {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 14px;
  line-height: 1;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
}
.error-page .v-500 .e-code {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}
.error-page .e-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.error-page .e-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
}
.error-page .btn {
  height: 52px;
  padding: 0 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
}
.error-page .btn svg { width: 18px !important; height: 18px !important; }
.error-page .btn-blue { box-shadow: 0 8px 24px color-mix(in srgb, var(--blue) 25%, transparent); }
.error-page .btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--blue) 35%, transparent);
}
.error-page .btn-ghost {
  background: var(--paper);
  border: 1.5px solid transparent;
}
html.light .error-page .btn-ghost { border-color: var(--gray-4); }
.error-page .btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.error-page .e-actions-500 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.error-page .e-actions-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
body.error-mode .support-fab { display: none; }
@media (max-width: 768px) {
  .error-page { padding: 16px 16px 24px; justify-content: flex-start; }
  .error-page .e-illu { width: 140px; height: 140px; margin-bottom: 20px; }
  .error-page .e-title-wrap { flex-direction: column; gap: 12px; }
  .error-page .e-code { font-size: 28px; }
  .error-page .e-title { font-size: 26px; }
  .error-page .e-actions-500,
  .error-page .e-actions-row { flex-direction: column; width: 100%; }
  .error-page .e-actions-500 .btn,
  .error-page .e-actions-row .btn { width: 100%; }
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--gray-4); }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--gray-5); }
.tag.ok { background: rgba(0,168,73,0.12); color: var(--green); }
.tag.warn { background: rgba(255,100,10,0.12); color: var(--orange); }
.tag.bad { background: rgba(255,26,79,0.12); color: var(--red); }

.profile-head { display: flex; gap: 16px; align-items: center; padding: 20px 0; }
.switch {
  width: 44px; height: 24px; border-radius: 99px; background: var(--gray-3); position: relative;
}
.switch.on { background: var(--blue); }
.switch i {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: 0.15s;
}
.switch.on i { left: 23px; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--bg); border: 1px solid var(--gray-4); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 20; overflow: hidden;
}
.suggest a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-size: 14px; }
.suggest a:hover { background: var(--gray-5); }

@media (min-width: 1024px) {
  .header-search-mobile { display: none; }
}
@media (max-width: 1023px) {
  .header { pointer-events: auto; }
  .header-inner > .search-wrap { display: none; }
  .desktop-only { display: none !important; }
  .header-search-mobile { display: block; padding: 8px 0 0; pointer-events: auto; }
}

.legal-page { padding-bottom: 0; }
.legal-chips {
  display: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 16px;
  margin: 0 0 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.legal-chips::-webkit-scrollbar { display: none; }
.legal-chip {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--gray-5);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
}
html.light .legal-chip { background: var(--paper); box-shadow: inset 0 0 0 1px var(--gray-4); }
.legal-chip.on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--blue) 25%, transparent);
}
.legal-frame {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 48px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-aside {
  position: sticky;
  top: 132px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  border: 1px solid transparent;
}
.legal-nav svg { width: 20px; height: 20px; opacity: 0.65; }
.legal-nav:hover { background: var(--gray-5); color: var(--text); }
.legal-nav.on {
  background: var(--paper);
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 22%, transparent);
  box-shadow: var(--shadow);
}
.legal-nav.on svg { opacity: 1; color: var(--blue); }
.legal-content { min-width: 0; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.legal-back:hover { color: var(--blue); }
.legal-back svg { width: 18px; height: 18px; }
.legal-h1 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.legal-lead {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 720px;
}
.legal-toc {
  background: var(--gray-5);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}
html.light .legal-toc { background: var(--paper); box-shadow: inset 0 0 0 1px var(--gray-4); }
.legal-toc-h {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-toc-h svg { width: 18px; height: 18px; }
.legal-toc ul { display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { color: var(--blue); font-weight: 600; font-size: 15px; }
.legal-toc a:hover { color: var(--blue-hover); }
.legal-doc h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  scroll-margin-top: 24px;
}
.legal-doc p, .legal-doc li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 14px;
}
.legal-doc b { color: var(--text); font-weight: 600; }
.legal-defs { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.legal-defs li { margin: 0; }
.legal-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legal-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
}
.legal-card.wide { grid-column: 1 / -1; }
.legal-card-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.legal-card-ico.purple { background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.legal-card-ico.green { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.legal-card-ico svg { width: 28px; height: 28px; }
.legal-card-info h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.legal-card-info p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0; }
.legal-card .btn,
.legal-card .legal-mail { margin-top: auto; }
.legal-page .legal-content .btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  width: auto;
}
.legal-page .legal-content .btn svg { width: 18px !important; height: 18px !important; }
.legal-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  width: 100%;
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}
.legal-mail svg { width: 18px; height: 18px; flex-shrink: 0; }
.legal-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal-mail.is-violet {
  background: color-mix(in srgb, var(--violet) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 38%, transparent);
}
.legal-mail.is-violet svg { color: var(--violet); }
.legal-mail.is-violet:hover { background: color-mix(in srgb, var(--violet) 26%, transparent); }
.legal-mail.is-green {
  background: color-mix(in srgb, var(--green) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 38%, transparent);
}
.legal-mail.is-green svg { color: var(--green); }
.legal-mail.is-green:hover { background: color-mix(in srgb, var(--green) 26%, transparent); }
html.light .legal-mail.is-violet {
  background: color-mix(in srgb, var(--violet) 10%, #fff);
  color: var(--violet);
}
html.light .legal-mail.is-green {
  background: color-mix(in srgb, var(--green) 10%, #fff);
  color: var(--green);
}
.legal-steps { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; max-width: 600px; }
.legal-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 15px;
}
.legal-step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--display);
  flex-shrink: 0;
}
body.legal-mode .support-fab { display: none; }
@media (max-width: 1023px) {
  .legal-chips { display: flex; padding: 8px 16px 12px; margin: 0 -16px 8px; }
  .legal-frame { grid-template-columns: 1fr; gap: 0; width: calc(100% - 24px); padding-top: 4px; }
  .legal-aside { display: none; }
  .legal-h1 { font-size: 32px; }
  .legal-bento { grid-template-columns: 1fr; }
  .legal-page .legal-content .btn { width: 100%; height: 52px; justify-content: center; }
  .legal-mail { height: 52px; }
  .legal-doc h2 { scroll-margin-top: 72px; }
}

.avatar.xl { width: 88px; height: 88px; font-size: 32px; }
.token-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 13px;
}
.token-chip img { width: 18px; height: 18px; }
.btn-white { background: #fff; color: #0f172a !important; font-weight: 700; }
.btn-white:hover { background: #f3f4f6; }

.prizes-page { position: relative; overflow: hidden; padding-top: 8px; }
.prizes-page .hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: min(800px, 120vw); height: 400px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent) 0%, transparent 70%);
}
.prizes-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) { .prizes-wrap { width: calc(100% - 24px); } }
.prizes-page .hero-section {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 28px 0 36px; flex-wrap: wrap;
}
.prizes-page .h-user { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 260px; }
.prizes-page .h-ava {
  width: 80px; height: 80px; border-radius: 24px; flex-shrink: 0;
  background: var(--gray-5); border: 2px solid var(--gray-4);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--text-2);
  overflow: hidden;
}
.prizes-page .h-ava img { width: 100%; height: 100%; object-fit: cover; }
.prizes-page .h-ava.logged {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff; border: 0;
}
.prizes-page .h-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.prizes-page .h-nick {
  font-family: var(--display); font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prizes-page .h-balance {
  font-family: var(--display); font-size: 32px; font-weight: 800; margin-top: 4px;
}
.prizes-page .h-balance .token-chip { gap: 10px; font-size: 32px; }
.prizes-page .h-balance .token-chip img { width: 32px; height: 32px; }
.prizes-page .btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 700; font-size: 14px; background: var(--blue); color: #fff;
  margin-top: 8px; width: fit-content;
}
.prizes-page .btn-action:hover { background: var(--blue-hover); }
.prizes-page .h-ladder {
  background: var(--paper); padding: 20px; border-radius: 24px;
  box-shadow: var(--shadow); width: 100%; max-width: 480px;
}
.prizes-page .ladder-title {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.prizes-page .ladder-track { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.prizes-page .ladder-track::-webkit-scrollbar { display: none; }
.prizes-page .ladder-step {
  flex: 1; min-width: 64px; height: 72px; border-radius: 16px;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  opacity: 0.55; border: 1px solid transparent;
}
.prizes-page .ladder-step.on {
  opacity: 1; background: color-mix(in srgb, var(--blue) 12%, transparent);
  border-color: var(--blue);
}
.prizes-page .ladder-step span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.prizes-page .ladder-step.on span { color: var(--blue); }
.prizes-page .ladder-step b { font-size: 16px; font-weight: 800; font-family: var(--display); color: var(--text); }
.prizes-page .ladder-step .k-val { display: inline-flex; align-items: center; gap: 4px; }
.prizes-page .ladder-step .token-chip img { width: 16px; height: 16px; }
.prizes-page .hiw-section {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.prizes-page .hiw-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1.5px dashed var(--gray-4); border-radius: 20px;
}
.prizes-page .hiw-ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--gray-5);
  display: grid; place-items: center; flex-shrink: 0; color: var(--blue);
}
.prizes-page .hiw-ico svg { width: 22px; height: 22px; }
.prizes-page .hiw-txt h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.prizes-page .hiw-txt p { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.prizes-page .pz-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.prizes-page .pz-title {
  font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
}
.prizes-page #earn-section { margin: 8px 0 24px; }
.prizes-page .pz-link {
  font-size: 14px; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 4px;
}
.prizes-page .pz-link:hover { color: var(--blue-hover); }
.prizes-page .pz-link svg { width: 16px; height: 16px; }
.prizes-page .raffle-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.prizes-page .raffle-card {
  background: var(--paper); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.prizes-page .raffle-card:hover { transform: translateY(-4px); }
.prizes-page .r-art {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: grid; place-items: center;
}
.prizes-page .r-art.tone-day { background: linear-gradient(145deg, color-mix(in srgb, var(--blue) 70%, #000), var(--gray-5)); }
.prizes-page .r-art.tone-week { background: linear-gradient(145deg, color-mix(in srgb, var(--violet) 70%, #000), var(--gray-5)); }
.prizes-page .r-art.tone-month { background: linear-gradient(145deg, color-mix(in srgb, var(--green) 55%, #000), var(--gray-5)); }
.prizes-page .r-art.tone-special { background: linear-gradient(145deg, color-mix(in srgb, var(--orange) 65%, #000), var(--gray-5)); }
.prizes-page .r-art-label {
  font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.04em;
}
.prizes-page .r-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(20, 22, 26, 0.72); padding: 6px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.prizes-page .r-timer {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--paper); padding: 6px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 800; font-family: var(--display);
  box-shadow: var(--shadow);
}
.prizes-page .r-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prizes-page .r-tickets {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 4px 10px; border-radius: 8px; width: fit-content; margin-bottom: 12px;
}
.prizes-page .r-tickets.none { color: var(--text-2); background: var(--bg); }
.prizes-page .r-title {
  font-size: 18px; font-weight: 800; font-family: var(--display);
  margin-bottom: 8px; line-height: 1.3;
}
.prizes-page .r-desc { font-size: 14px; color: var(--text-2); line-height: 1.4; margin-bottom: 24px; }
.prizes-page .r-buy {
  margin-top: auto; height: 52px; border-radius: 14px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.prizes-page .r-buy:hover { background: var(--blue-hover); }
.prizes-page .r-buy.is-poor {
  background: transparent; border: 2px solid var(--gray-4); color: var(--text);
}
.prizes-page .r-buy.is-poor:hover { border-color: var(--gray-3); background: var(--gray-5); }
.prizes-page .r-buy .token-chip { color: inherit; }
.prizes-page .earn-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.prizes-page .earn-card {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--paper); border-radius: 20px; box-shadow: var(--shadow);
  text-align: left; width: 100%; color: var(--text);
}
.prizes-page .earn-card:hover { color: var(--text); outline: 1px solid var(--blue); }
.prizes-page .earn-card.done { opacity: 0.55; pointer-events: none; box-shadow: none; }
.prizes-page .ec-ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
}
.prizes-page .ec-ico svg { width: 22px; height: 22px; }
.prizes-page .ec-ico.is-tg { background: #2AABEE; color: #fff; }
.prizes-page .ec-ico.is-tt { background: #111; color: #fff; }
.prizes-page .ec-ico.is-tw { background: #9146FF; color: #fff; }
.prizes-page .ec-ico.is-yt { background: #FF0033; color: #fff; }
.prizes-page .ec-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prizes-page .ec-title { font-weight: 700; font-size: 15px; }
.prizes-page .ec-sub { font-size: 13px; color: var(--text-2); font-weight: 500; }
.prizes-page .ec-val {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  background: var(--bg); padding: 6px 12px; border-radius: 10px;
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.prizes-page .ec-val.is-done { color: var(--green); }
.prizes-page .ec-val.is-done svg { width: 18px; height: 18px; }
.prizes-page .ec-arr { color: var(--text-2); display: inline-flex; }
.prizes-page .ec-arr svg { width: 16px; height: 16px; }
.prizes-page .results-empty {
  padding: 72px 20px; text-align: center; background: var(--paper);
  border-radius: 24px; border: 2px dashed var(--gray-4); margin-bottom: 32px;
}
.prizes-page .results-empty .emoji {
  width: 56px; height: 56px; margin: 0 auto 16px; color: var(--text-2);
}
.prizes-page .results-empty .emoji svg { width: 56px; height: 56px; }
.prizes-page .results-empty h3 {
  font-family: var(--display); font-size: 24px; font-weight: 800; margin-bottom: 8px;
}
.prizes-page .results-empty p { color: var(--text-2); max-width: 400px; margin: 0 auto 24px; }
.prizes-page .results-empty .btn-action { margin: 0 auto; }
.prizes-page .rules-link {
  display: block; text-align: center; color: var(--text-2);
  font-size: 14px; font-weight: 500; text-decoration: underline; margin: 8px 0 32px;
}
.prizes-page .rules-link:hover { color: var(--text); }
@media (max-width: 1100px) {
  .prizes-page .raffle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prizes-page .hiw-section { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .prizes-page .hero-section { padding: 16px 0 24px; gap: 20px; }
  .prizes-page .h-user { min-width: 100%; }
  .prizes-page .h-ava { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; }
  .prizes-page .h-nick { font-size: 20px; }
  .prizes-page .h-balance { font-size: 26px; }
  .prizes-page .h-balance .token-chip { font-size: 26px; }
  .prizes-page .h-ladder { max-width: 100%; padding: 16px; }
  .prizes-page .raffle-grid, .prizes-page .earn-grid { grid-template-columns: 1fr; }
  .prizes-page .pz-title { font-size: 22px; }
}

.seller-page > .container { padding-bottom: 40px; }
@media (min-width: 1024px) { .seller-page > .container { padding-bottom: 80px; } }
.seller-page h2 {
  font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0;
}
.seller-page .muted { color: var(--gray-2); font-size: 14px; }
.seller-hero {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  height: 148px; border-radius: 12px; background: var(--gray-5);
}
@media (min-width: 900px) { .seller-hero { height: 240px; } }
@media (min-width: 1280px) { .seller-hero { border-radius: 16px; } }
.seller-hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/banners/seller-banner-lg.png") center / cover no-repeat;
}
@media (min-width: 1280px) {
  .seller-hero-bg { background-image: url("/assets/banners/seller-banner-xl.png"); }
}
.seller-layout {
  display: flex; flex-direction: column; margin-top: 32px; row-gap: 32px;
}
@media (min-width: 900px) { .seller-layout { margin-top: 40px; row-gap: 40px; } }
@media (min-width: 1280px) {
  .seller-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 441px;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "games fee"
      "games aside"
      "categories aside"
      "content aside";
    column-gap: 86px; row-gap: 40px; align-items: start;
  }
}
.seller-games-block { grid-area: games; }
.seller-cats-block { grid-area: categories; }
.seller-side { grid-area: aside; display: flex; flex-direction: column; gap: 32px; }
.fee-calc { grid-area: fee; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 720px) { .fee-calc { gap: 20px; } }
.fee-head { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 720px) { .fee-head { gap: 2px; } }
.fee-calc h3, .payout-panel h3 { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; }
.fee-calc .muted { margin: 0; font-size: 14px; color: var(--gray-2); }
.fee-fields {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0;
}
@media (min-width: 720px) { .fee-fields { gap: 16px; } }
.fee-box {
  position: relative; flex: 1 1 0; min-width: 0;
  background: var(--gray-5); border-radius: 8px; overflow: hidden;
  font-family: Inter, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.625;
  color: var(--text);
}
@media (min-width: 720px) { .fee-box { font-size: 18px; line-height: 1.555; } }
.fee-label {
  position: absolute; left: 0; top: 0; z-index: 1;
  color: var(--gray-2); font-size: 16px; font-weight: 400; line-height: 1.55;
  transform-origin: top left; transform: translate(12px, 7px) scale(0.75);
  pointer-events: none; white-space: nowrap; user-select: none;
}
@media (min-width: 720px) {
  .fee-label { font-size: 18px; transform: translate(20px, 11px) scale(0.777); }
}
.fee-input {
  display: block; width: 100%; height: auto; min-height: 0;
  margin: 0; border: 0; border-radius: 0; outline: none; box-shadow: none;
  background: transparent; color: inherit;
  padding: 27px 12px 7px;
  font: inherit; font-weight: 700; letter-spacing: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
@media (min-width: 720px) { .fee-input { padding: 35px 20px 13px; } }
.fee-input:focus { border: 0; box-shadow: none; }
.fee-input::-webkit-outer-spin-button,
.fee-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fee-box.income { color: var(--green-hover); }
.fee-swap {
  flex-shrink: 0; align-self: center; display: block;
  overflow: visible; color: var(--gray-2);
}
.fee-swap-sm { width: 24px; height: 24px; }
.fee-swap-md { display: none; width: 32px; height: 32px; }
@media (min-width: 720px) {
  .fee-swap-sm { display: none; }
  .fee-swap-md { display: block; }
}
.fee-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.fee-ok {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 400; color: var(--gray-2); user-select: none;
}
.fee-ok img { width: 20px; height: 20px; max-width: none; object-fit: contain; flex-shrink: 0; }
@media (min-width: 720px) { .fee-ok img { width: 24px; height: 24px; } }
.fee-switch {
  position: relative; width: 48px; height: 28px; flex-shrink: 0; padding: 0; background: none; margin-left: 16px;
}
.fee-switch i {
  display: block; width: 48px; height: 28px; border-radius: 28px; background: var(--gray-4); position: relative;
}
.fee-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: none; transition: transform 0.2s;
}
.fee-switch.on i { background: var(--blue); }
.fee-switch.on i::after { transform: translateX(20px); left: 2px; }
@media (min-width: 720px) {
  .fee-switch, .fee-switch i { width: 56px; height: 32px; }
  .fee-switch i::after { width: 28px; height: 28px; }
  .fee-switch.on i::after { transform: translateX(24px); }
}
@media (min-width: 900px) { .seller-side { gap: 40px; } }
.seller-content { grid-area: content; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 900px) { .seller-content { gap: 40px; } }
.seller-kinds {
  display: flex; align-items: center; gap: 16px; overflow: auto; margin-top: 20px;
  scrollbar-width: none;
}
.seller-kinds::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .seller-kinds { margin-top: 20px; } }
.skind {
  display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 0;
  background: none; border-radius: 0; font-size: 16px; font-weight: 400; color: var(--text); white-space: nowrap;
}
.skind img { width: 18px; height: 18px; object-fit: contain; }
.skind i { font-style: normal; color: var(--gray-2); font-size: 14px; font-weight: 400; }
.skind.on { font-weight: 600; box-shadow: none; }
.seller-games {
  display: grid; justify-content: flex-start;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  grid-template-rows: repeat(2, 1fr);
  column-gap: 16px; row-gap: 16px;
  overflow: hidden; height: 197px; margin-top: 12px;
}
@media (min-width: 900px) {
  .seller-games {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    column-gap: 24px; row-gap: 20px; height: 250px; margin-top: 12px;
  }
}
@media (min-width: 1280px) {
  .seller-games {
    grid-template-columns: repeat(auto-fill, minmax(87px, 1fr));
    column-gap: 20px; row-gap: 24px; height: 252px;
  }
}
.seller-games .game-chip { width: auto; min-width: 0; }
.seller-games .game-chip span { max-width: 100%; font-size: 14px; }
.seller-games .game-cover { width: 80px; height: 80px; border-radius: 22px; }
.seller-cats-block h2 { margin-bottom: 0; }
.seller-cats {
  display: flex; align-items: center; gap: 12px; overflow: auto; margin: 12px 0 0;
  scrollbar-width: none;
}
@media (min-width: 900px) { .seller-cats { margin-top: 12px; gap: 16px; } }
.seller-cats::-webkit-scrollbar { display: none; }
.seller-cat {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--gray-5); font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.seller-cat .cat-ico { width: 22px; height: 22px; }
.seller-cat-badge {
  position: absolute; top: -10px; right: -6px; width: 28px; height: 28px; object-fit: contain; pointer-events: none;
}
.seller-cats-more {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--gray-5); color: var(--text-2); display: grid; place-items: center;
}
.seller-cats-more .ico { width: 20px; height: 20px; }
.payout-panel .pay-logos { margin-top: 16px; gap: 16px; display: flex; grid-template-columns: none; }
@media (min-width: 900px) { .payout-panel .pay-logos { margin-top: 20px; gap: 20px; } }
.payout-panel .pay-logo, .payout-panel .pay-logo svg { width: 36px; height: 36px; border-radius: 8px; box-shadow: none; }
.seller-pops {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; margin-top: 16px;
}
@media (min-width: 1024px) {
  .seller-pops { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 16px; }
}
.seller-pop {
  display: flex; gap: 12px; align-items: center; background: none; border-radius: 0; padding: 0; min-width: 0;
}
.seller-pop .cover-sm { width: 40px; height: 40px; border-radius: 10px; }
.seller-pop b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-pop i { display: block; font-style: normal; font-size: 12px; color: var(--gray-2); }
.top-sellers {
  display: flex; gap: 16px; overflow: auto; padding: 16px 0 4px; margin-top: 16px;
  scrollbar-width: none;
}
@media (min-width: 900px) { .top-sellers { gap: 20px; margin-top: 20px; padding-top: 18px; } }
.top-sellers::-webkit-scrollbar { display: none; }
.top-seller {
  position: relative; width: 92px; flex-shrink: 0;
  background: var(--gray-5); border-radius: 8px;
  padding: 32px 6px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
@media (min-width: 900px) {
  .top-seller { width: 114px; padding: 36px 8px 16px; gap: 16px; }
}
.ts-rank {
  position: absolute; top: -12px; width: 32px; height: 32px;
}
@media (min-width: 900px) { .ts-rank { top: -14px; width: 36px; height: 36px; } }
.ts-rank img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ts-rank span {
  position: relative; z-index: 1; display: grid; place-items: center; height: 100%;
  color: #fff; font-size: 16px; font-weight: 700;
}
.top-seller .avatar, .ts-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; font-size: 20px; }
.top-seller b {
  display: block; width: 100%; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-meta { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; font-size: 12px; }
.ts-star { color: var(--yellow); font-size: 14px; line-height: 1; }
.ts-meta em { font-style: normal; font-weight: 600; }
.ts-meta i { font-style: normal; color: var(--gray-2); }
.seller-start { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .seller-start { gap: 28px; } }
.seller-start-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.seller-start-head h2 { margin-bottom: 2px; }
.seller-terms {
  display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--text);
  flex-shrink: 0;
}
.seller-terms .ico { width: 18px; height: 18px; color: var(--gray-2); }
@media (min-width: 1024px) {
  .seller-terms { position: absolute; top: 0; right: 0; }
}
.seller-start-grid {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
@media (min-width: 1024px) {
  .seller-start-grid { flex-direction: row; gap: 20px; }
}
.seller-start-grid, .howto-row { overflow: visible; }
.howto-board { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; overflow: visible; }
@media (min-width: 900px) { .howto-board { gap: 20px; } }
@media (min-width: 1024px) { .howto-board { flex-basis: calc(100% - 398px); } }
.howto-row { display: flex; gap: 16px; overflow: visible; }
@media (min-width: 900px) { .howto-row { gap: 20px; } }
.howto-step {
  position: relative; overflow: visible;
  background: var(--gray-5); border-radius: 8px;
  padding: 24px 24px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  flex: 1;
}
@media (min-width: 900px) { .howto-step { padding-bottom: 20px; gap: 12px; } }
.howto-step.sm { flex-basis: 40%; }
.howto-step.md { flex-basis: 60%; }
.howto-step.lg { flex-basis: 100%; }
.howto-step i {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-hover); color: #fff;
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 16px;
}
@media (min-width: 900px) {
  .howto-step i { top: 12px; left: 12px; width: 32px; height: 32px; }
}
.howto-ico { width: 80px; height: 80px; object-fit: contain; }
.howto-step.md .howto-ico { width: 118px; }
.howto-step.lg .howto-ico { width: 200px; }
.howto-step span { font-size: 14px; text-align: center; }
.howto-arrow { position: absolute; z-index: 10; pointer-events: none; }
.howto-arrow-1 { right: -18px; top: 8px; width: 64px; height: 22px; }
.howto-arrow-2.only-md { left: -134px; bottom: -55px; width: 166px; height: 88px; }
.howto-arrow-2.only-sm { display: none; }
.howto-arrow-3 { left: 26px; bottom: -24px; width: 22px; height: 60px; }
.howto-arrow-4 { right: -22px; top: 2px; width: 56px; height: 22px; }
@media (max-width: 899px) {
  .howto-arrow-1 { right: -18px; }
  .howto-arrow-2.only-md { display: none; }
  .howto-arrow-2.only-sm { display: block; left: -105px; bottom: -45px; width: 130px; height: 73px; }
  .howto-arrow-3 { bottom: -20px; }
  .howto-arrow-4 { right: -18px; }
}
.seller-forbid {
  background: var(--gray-5); border-radius: 8px; padding: 12px 16px 16px; flex-shrink: 0;
}
@media (min-width: 900px) { .seller-forbid { padding: 16px 20px 20px; } }
@media (min-width: 1024px) { .seller-forbid { flex-basis: 398px; width: 398px; } }
.seller-forbid h3 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
@media (min-width: 900px) { .seller-forbid h3 { margin-bottom: 20px; } }
.seller-forbid ul { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .seller-forbid ul { gap: 20px; } }
.seller-forbid li { margin: 0; display: flex; gap: 8px; align-items: flex-start; list-style: none; font-size: 16px; line-height: 1.35; }
.seller-forbid li img { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.seller-forbid p { margin: 16px 0 0; font-size: 12px; color: var(--gray-2); line-height: 1.4; }
@media (min-width: 900px) { .seller-forbid p { margin-top: 20px; } }
.seller-cta { margin: 0; border-radius: 12px; }
.seller-tg {
  position: relative; display: block; overflow: hidden;
  height: 172px; border-radius: 16px;
  background: url("/assets/banners/tg-sellers-lg.png") center / cover no-repeat;
}
@media (min-width: 1280px) {
  .seller-tg {
    height: 250px;
    background-image: url("/assets/banners/tg-sellers-xl.png");
    background-position: center;
  }
}

.sell-page { padding-top: 8px; }
.sell-wrap { max-width: 980px; padding-bottom: 40px; }
.sell-wrap h1 { font-family: var(--display); font-size: 30px; margin: 8px 0; }
.sell-lead { margin-bottom: 18px; }
.sell-form {
  display: grid; gap: 18px; background: var(--gray-5); border-radius: 24px; padding: 22px;
}
@media (min-width: 860px) { .sell-form { grid-template-columns: 0.9fr 1.1fr; } }
.sell-col { display: flex; flex-direction: column; gap: 10px; }
.sell-game { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 16px; padding: 10px 12px; }
.sell-desc { min-height: 140px; resize: vertical; }

/* ===== Сторінка створення товару /sell ===== */
.sell-create {
  --sc-glass: color-mix(in srgb, var(--paper) 62%, transparent);
  --sc-line: color-mix(in srgb, var(--text) 9%, transparent);
  --sc-input: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 32px 0 0;
}
body.sell-mode {
  background:
    radial-gradient(70% 55% at 18% -10%, color-mix(in srgb, var(--blue) 11%, transparent), transparent 70%),
    radial-gradient(55% 45% at 95% 105%, color-mix(in srgb, var(--violet) 8%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body.sell-mode .support-fab { display: none; }
.sc-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 64px; position: relative; }

/* --- Шапка --- */
.sc-hero { position: relative; text-align: center; margin-bottom: 40px; }
.sc-back {
  position: absolute; left: 0; top: 6px; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--sc-glass); border: 1px solid var(--sc-line); border-radius: 12px; color: var(--text-2); transition: 0.2s ease;
}
.sc-back:hover { color: var(--text); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.sc-back svg { width: 20px; height: 20px; }
.sc-hero h1 {
  font-family: var(--display); font-size: 36px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sc-hero p { margin: 0; font-size: 14px; color: var(--text-2); }

/* --- Кроки --- */
.sc-step { margin-bottom: 32px; }
.sc-step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sc-step-num {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px;
  background: var(--text); color: var(--bg); font-family: var(--display); font-size: 14px; font-weight: 800;
}
.sc-step-head h2 { font-family: var(--display); font-size: 20px; margin: 0; }
.sc-card {
  background: var(--sc-glass); border: 1px solid var(--sc-line); border-radius: 20px; padding: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.sc-stack { display: flex; flex-direction: column; gap: 16px; }
.sc-step .sc-card + .sc-ticket, .sc-ticket + .sc-card { margin-top: 16px; }

/* --- Поля --- */
.sc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sc-field label { font-size: 13px; font-weight: 600; color: var(--text-2); padding-left: 4px; }
.sc-select {
  width: 100%; height: 56px; padding: 0 44px 0 16px; border-radius: 14px; cursor: pointer; appearance: none;
  background: var(--sc-input) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8F9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 1px solid var(--sc-line); color: var(--text); font-size: 15px; font-weight: 500; transition: 0.2s;
  text-overflow: ellipsis;
}
.sc-select:focus { border-color: var(--blue); outline: none; }
.sc-float { position: relative; }
.sc-float input, .sc-float textarea {
  width: 100%; background: var(--sc-input); border: 1px solid var(--sc-line); border-radius: 14px;
  color: var(--text); font-size: 16px; font-weight: 500; transition: 0.2s;
}
.sc-float input { height: 64px; padding: 24px 44px 8px 16px; }
.sc-float input::-webkit-outer-spin-button, .sc-float input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-float input[type="number"] { -moz-appearance: textfield; }
.sc-float textarea { padding: 28px 16px 16px; min-height: 130px; resize: vertical; line-height: 1.5; }
.sc-float label {
  position: absolute; left: 17px; top: 21px; right: 16px; color: var(--text-2); font-size: 15px;
  pointer-events: none; transition: 0.2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-float input:focus, .sc-float textarea:focus {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent);
}
.sc-float input:focus ~ label, .sc-float input:not(:placeholder-shown) ~ label,
.sc-float textarea:focus ~ label, .sc-float textarea:not(:placeholder-shown) ~ label {
  top: 8px; font-size: 12px; font-weight: 600; color: var(--blue);
}
.sc-currency { position: absolute; right: 18px; top: 21px; color: var(--text-2); font-weight: 700; }

/* --- Картки-перемикачі (Premium, Автовидача) --- */
.sc-ticket {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px; border-radius: 20px; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, transparent) 0%, var(--sc-glass) 100%);
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); transition: 0.3s ease;
}
.sc-ticket:hover { border-color: color-mix(in srgb, var(--blue) 60%, transparent); }
.sc-ticket input { position: absolute; opacity: 0; pointer-events: none; }
.sc-ticket:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.sc-ticket.active {
  border-color: var(--blue);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, transparent) 0%, color-mix(in srgb, var(--blue) 5%, transparent) 100%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--blue) 20%, transparent);
}
.sc-ticket.is-auto { border-color: color-mix(in srgb, var(--green) 30%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--green) 10%, transparent) 0%, var(--sc-glass) 100%); }
.sc-ticket.is-auto:hover { border-color: color-mix(in srgb, var(--green) 60%, transparent); }
.sc-ticket.is-auto.active { border-color: var(--green); box-shadow: 0 0 30px color-mix(in srgb, var(--green) 18%, transparent); }
.sc-ticket.is-auto.active .sc-switch { background: var(--green); }
.sc-ticket-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sc-ticket-ico { font-size: 30px; line-height: 1; flex-shrink: 0; }
.sc-ticket-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-ticket-text b { font-family: var(--display); font-size: 16px; }
.sc-ticket-text span { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.sc-ticket-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.sc-ticket-price { font-family: var(--display); font-size: 18px; font-weight: 800; }
.sc-switch { width: 48px; height: 26px; border-radius: 99px; background: var(--switch-track); position: relative; transition: 0.3s; }
.sc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sc-ticket.active .sc-switch { background: var(--blue); }
.sc-ticket.active .sc-switch::after { transform: translateX(22px); }

/* --- Автовидача: файли --- */
.sc-auto[hidden], [data-sell-vt][hidden] { display: none; }
.sc-files { border: 1px dashed var(--sc-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sc-files-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-files-head b { display: block; font-size: 15px; }
.sc-files-head span { font-size: 13px; color: var(--text-2); }
.sc-upload {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); font-size: 14px; font-weight: 600; transition: 0.2s;
}
.sc-upload:hover { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.sc-upload:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.sc-upload svg { width: 18px; height: 18px; }
.sc-files-empty { margin: 0; font-size: 13px; color: var(--text-2); }
.sc-file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sc-input); min-width: 0; }
.sc-file-ico { color: var(--text-2); display: grid; }
.sc-file-ico svg { width: 18px; height: 18px; }
.sc-file-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-file-size { font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.sc-file-del { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.sc-file-del:hover { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.sc-file-del svg { width: 16px; height: 16px; }
.sc-note { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.sc-note a { color: var(--blue); font-weight: 600; }

/* --- Нижня панель --- */
.sc-bar {
  position: relative; margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); border: 1px solid var(--sc-line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
.sc-terms { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.sc-terms input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.sc-check { width: 22px; height: 22px; border: 2px solid var(--text-2); border-radius: 6px; display: grid; place-items: center; transition: 0.2s; flex-shrink: 0; }
.sc-check svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.sc-terms input:checked ~ .sc-check { background: var(--blue); border-color: var(--blue); }
.sc-terms input:checked ~ .sc-check svg { opacity: 1; }
.sc-terms input:focus-visible ~ .sc-check { outline: 2px solid var(--blue); outline-offset: 2px; }
.sc-terms-text { font-size: 13px; color: var(--text-2); font-weight: 500; }
.sc-terms-text a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); }
.sc-publish {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 28px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-hover) 100%); color: #fff;
  font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 30%, transparent); transition: 0.25s;
}
.sc-publish:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--blue) 40%, transparent); }
.sc-total { background: rgba(0, 0, 0, 0.2); padding: 4px 10px; border-radius: 8px; font-size: 15px; font-family: var(--font); }
.sc-total.on { background: rgba(255, 255, 255, 0.22); }

html.light .sell-create { --sc-glass: var(--paper); --sc-input: var(--bg); --sc-line: var(--gray-4); }
html.light .sc-card, html.light .sc-bar { box-shadow: var(--shadow); }

@media (max-width: 600px) {
  .sell-create { padding-top: 16px; }
  .sc-hero { text-align: left; }
  .sc-hero h1 { font-size: 28px; }
  .sc-back { position: relative; top: 0; margin-bottom: 16px; }
  .sc-card { padding: 16px; }
  .sc-ticket { flex-direction: column; align-items: stretch; padding: 20px; }
  .sc-ticket-action { flex-direction: row; justify-content: space-between; align-items: center; }
  .sc-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: 20px; }
  .sc-publish { width: 100%; justify-content: center; }
}
/* --- /sell: розкладка з колонкою прев'ю --- */
.sc-wrap { width: min(1120px, calc(100% - 32px)); }
.sc-form { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
@media (min-width: 1100px) {
  .sc-form { grid-template-columns: minmax(0, 1fr) 300px; }
  .sc-form > .sc-step, .sc-form > .sc-bar { grid-column: 1; }
  .sc-preview-col { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: 96px; }
}
.sc-preview-col { margin-bottom: 32px; }
.sc-preview { max-width: 300px; pointer-events: none; user-select: none; }

.sc-preview-note { margin: 12px 0 0; max-width: 300px; font-size: 13px; line-height: 1.45; color: var(--text-2); }

/* --- Картка каталогу з обкладинкою продавця --- */
.card-art.has-cover { background: var(--media); }
.card-art .card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Власні випадні меню --- */
.sc-card.dd-open { position: relative; z-index: 35; }
.sc-dd.up .sc-dd-list { top: auto; bottom: calc(100% + 8px); }
.sc-dd { position: relative; min-width: 0; }
.sc-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sc-dd-btn {
  width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 18px 0 16px; border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--sc-input); border: 1px solid var(--sc-line); color: var(--text);
  font-size: 15px; font-weight: 600; transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-dd-btn:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--sc-line)); }
.sc-dd.open .sc-dd-btn, .sc-dd-btn:focus-visible {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}
.sc-dd-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-dd-label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-dd-ico { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.sc-dd-chev { width: 12px; height: 8px; flex-shrink: 0; color: var(--text-2); transition: transform 0.2s; }
.sc-dd.open .sc-dd-chev { transform: rotate(180deg); color: var(--blue); }
.sc-dd-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  margin: 0; padding: 6px; list-style: none; max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--sc-line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45); scrollbar-width: thin;
  animation: sc-dd-in 0.14s ease-out;
}
.sc-dd-list[hidden] { display: none; }
@keyframes sc-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sc-dd-opt {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 10px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); outline: none;
}
.sc-dd-opt > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-dd-opt:hover, .sc-dd-opt:focus { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.sc-dd-opt.on { color: var(--blue); font-weight: 600; }
.sc-dd-check { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue); }
html.light .sc-dd-list { box-shadow: 0 18px 40px rgba(20, 22, 26, 0.14); }

/* --- Обкладинка --- */
.sc-cover { display: flex; align-items: center; gap: 20px; }
.sc-cover-view {
  width: 176px; aspect-ratio: 4 / 3; flex-shrink: 0; border-radius: 14px; overflow: hidden;
  background: var(--sc-input); border: 1px dashed var(--sc-line); display: grid; place-items: center;
}
.sc-cover-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cover-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-2); }
.sc-cover-empty svg { width: 30px; height: 30px; }
.sc-cover-empty em { font-style: normal; font-size: 12px; font-weight: 600; }
.sc-cover-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-cover-info b { font-size: 15px; }
.sc-cover-info > span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.sc-cover-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sc-cover-del {
  height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sc-line); background: transparent;
  color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.sc-cover-del:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.sc-cover-del[hidden] { display: none; }
@media (max-width: 600px) {
  .sc-cover { flex-direction: column; align-items: stretch; }
  .sc-cover-view { width: 100%; }
  .sc-preview, .sc-preview-note { max-width: none; }
}

/* --- /sell: блок попереднього перегляду --- */
.sc-preview-panel {
  background: var(--sc-glass); border: 1px solid var(--sc-line); border-radius: 22px; padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}
.sc-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sc-preview-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; font-weight: 700; white-space: nowrap; }
.sc-preview-title svg { width: 18px; height: 18px; color: var(--blue); }
.sc-preview-stage {
  padding: 16px; border-radius: 16px; background: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 14px 14px;
}
.sc-preview { max-width: none; }
.sc-preview-note { display: flex; gap: 8px; align-items: flex-start; max-width: none; margin: 14px 2px 0; }
.sc-preview-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--text-2); }
html.light .sc-preview-panel { box-shadow: var(--shadow); }

/* --- /sell: модалка Premium --- */
.modal.scp-modal { width: min(460px, 100%); padding: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--sc-line, var(--gray-4)); }
.scp { position: relative; padding: 32px 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.scp-glow {
  position: absolute; inset: 0 0 auto; height: 180px; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 0%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 70%);
}
.scp-badge {
  position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--blue) 40%, transparent);
}
.scp-badge svg { width: 30px; height: 30px; }
.scp-kicker {
  position: relative; margin-top: 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.scp h2 { position: relative; margin: 6px 0 8px; font-family: var(--display); font-size: 22px; line-height: 1.25; }
.scp-lead { position: relative; margin: 0 0 20px; font-size: 14px; color: var(--text-2); line-height: 1.5; max-width: 340px; }
.scp-lot {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-align: left;
  background: var(--bg); border: 1px solid var(--gray-4);
}
.scp-lot-art { position: relative; width: 64px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.scp-lot-art .card-art { position: absolute; inset: 0; }
.scp-lot-art .card-game-ico { width: 44%; }
.scp-lot-art .card-mark { display: none; }
.scp-lot-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.scp-lot-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scp-lot-txt span { font-size: 12px; color: var(--text-2); }
.scp-lot-price { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.scp-list { width: 100%; list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.scp-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.scp-list svg {
  width: 20px; height: 20px; padding: 3px; border-radius: 50%; flex-shrink: 0; stroke-width: 3;
  color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent);
}
.scp-price {
  width: 100%; margin-top: 20px; padding: 14px 16px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--blue) 8%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
}
.scp-price div { display: flex; flex-direction: column; align-items: flex-start; }
.scp-price span { font-size: 12px; color: var(--text-2); }
.scp-price b { font-family: var(--display); font-size: 22px; }
.scp-price em { font-style: normal; font-size: 13px; color: var(--text-2); text-align: right; }
.scp-price em.is-short { color: var(--red); font-weight: 600; }
.scp-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.scp-actions .btn-lg { width: 100%; }
.scp-main { gap: 10px; }
.scp-pill { padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); font-size: 14px; }
.scp-main:disabled { opacity: 0.45; }
@media (max-width: 480px) {
  .scp { padding: 28px 18px 18px; }
  .scp h2 { font-size: 19px; }
}

/* --- /products/:id/edit (стиль як у створенні) --- */
.sc-state {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-left: 6px; border-radius: 99px;
  font-size: 12px; font-weight: 700; vertical-align: middle; white-space: nowrap;
  background: color-mix(in srgb, var(--text-2) 16%, transparent); color: var(--text-2);
}
.sc-state.is-ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.sc-state.is-wait { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.sc-state.is-bad { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.sc-lot-info { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; align-items: center; }
.sc-lot-game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-lot-game-ico { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; }
.sc-lot-game-ico img { width: 100%; height: 100%; object-fit: cover; }
.sc-lot-game span, .sc-lot-meta { display: flex; flex-direction: column; min-width: 0; }
.sc-lot-game b { font-size: 16px; }
.sc-lot-game em, .sc-lot-meta span { font-style: normal; font-size: 12px; color: var(--text-2); }
.sc-lot-meta b { font-size: 14px; }
.sc-lot-hint { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--sc-line); font-size: 13px; color: var(--text-2); }
.sc-ico-badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; font-size: 0;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet));
}
.sc-ico-badge.is-green { background: linear-gradient(135deg, var(--green), color-mix(in srgb, var(--green) 60%, var(--blue))); }
.sc-ico-badge svg { width: 22px; height: 22px; }
.sc-ticket.is-static { cursor: default; }
.sc-auto-state { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.sc-auto-state-txt { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sc-auto-state-txt b { font-size: 15px; }
.sc-auto-state-txt b .sc-state { margin-left: 8px; }
.sc-auto-state-txt > span { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.sc-auto-state .sc-upload { flex-shrink: 0; }
.sc-secondary {
  height: 52px; padding: 0 22px; border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--text); border: 1px solid var(--sc-line); transition: 0.2s;
}
.sc-secondary:hover { border-color: var(--gray-3); }
.sc-secondary.is-danger { color: var(--red); }
.sc-secondary.is-danger:hover { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
@media (max-width: 760px) {
  .sc-lot-info { grid-template-columns: 1fr 1fr; }
  .sc-lot-game { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sc-auto-state { flex-wrap: wrap; }
  .sc-auto-state .sc-upload { width: 100%; justify-content: center; }
  .sc-bar-edit { flex-direction: column-reverse; }
  .sc-secondary { width: 100%; }
}

/* --- Редагування: знижка --- */
.sc-ticket.is-sale { margin-top: 16px; border-color: color-mix(in srgb, var(--orange) 32%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 10%, transparent) 0%, var(--sc-glass) 100%); }
.sc-ticket.is-sale:hover { border-color: color-mix(in srgb, var(--orange) 60%, transparent); }
.sc-ticket.is-sale.active { border-color: var(--orange); box-shadow: 0 0 30px color-mix(in srgb, var(--orange) 16%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 14%, transparent) 0%, color-mix(in srgb, var(--orange) 4%, transparent) 100%); }
.sc-ticket.is-sale.active .sc-switch { background: var(--orange); }
.sc-ico-badge.is-orange { background: linear-gradient(135deg, var(--orange), var(--red)); }
.sc-sale[hidden] { display: none; }
.sc-sale-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sc-sale-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.sc-chip {
  height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 700;
  background: var(--sc-input); color: var(--text); border: 1px solid var(--sc-line); transition: 0.15s;
}
.sc-chip:hover { border-color: color-mix(in srgb, var(--orange) 55%, transparent); }
.sc-chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.sc-sale-input { width: 150px; flex-shrink: 0; }
.sc-sale-sum { padding: 16px; border-radius: 16px; background: var(--sc-input); border: 1px dashed var(--sc-line); }
.sc-sale-prices { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-sale-prices s { color: var(--text-2); font-size: 16px; font-weight: 600; }
.sc-sale-arrow { display: grid; color: var(--text-2); }
.sc-sale-arrow svg { width: 18px; height: 18px; }
.sc-sale-prices b { font-family: var(--display); font-size: 26px; color: var(--red); line-height: 1.1; }
.sc-sale-prices em { font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: var(--red); padding: 4px 8px; border-radius: 8px; }
.sc-sale-rows { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.sc-sale-rows b { color: var(--text); font-weight: 700; margin-left: 4px; }
.sc-sale-empty { margin: 0; font-size: 14px; color: var(--text-2); }
.sc-sale-empty.is-bad { color: var(--red); font-weight: 600; }
@media (max-width: 600px) {
  .sc-sale-input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sell-create *, .sell-create *::after, .scp * { transition: none !important; animation: none !important; }
}

.profile-page {
  max-width: 1040px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 16px 0 80px;
}

.profile-hero {
  background: var(--paper);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.profile-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(38,99,240,0.15) 0%, rgba(38,99,240,0) 70%);
  pointer-events: none;
}
.hero-user { display: flex; align-items: center; gap: 20px; z-index: 1; }
.ava-wrap { position: relative; flex-shrink: 0; }
.ava-hit { display: block; cursor: pointer; background: none; padding: 0; border: 0; color: inherit; }
.modal-backdrop:has(.ava-modal) {
  padding: 20px;
  background: color-mix(in srgb, #000 75%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  animation: avaFadeIn 0.25s ease;
}
@keyframes avaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal.ava-modal {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 32px;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, #fff 3%, transparent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: avaPopIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: min(90vh, 820px);
  overflow-y: auto;
}
@keyframes avaPopIn {
  from { transform: scale(0.95); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}
html.light .modal.ava-modal {
  background: #fff;
  border-color: var(--gray-4);
  box-shadow: 0 16px 48px rgba(20, 22, 26, 0.08);
}
.ava-picker, .ava-crop { display: flex; flex-direction: column; gap: 24px; }
.ava-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ava-top h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; }
.ava-modal .btn-icon-round,
.ava-x {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2); background: var(--gray-5);
}
html.light .ava-modal .btn-icon-round { background: var(--gray-4); }
.ava-modal .btn-icon-round:hover { color: var(--text); filter: brightness(1.08); }
.ava-x:hover { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.ava-modal .btn-icon-round svg,
.ava-x svg { width: 20px; height: 20px; }
.ava-now-wrap { display: flex; justify-content: center; }
.ava-now {
  width: 120px; height: 120px; border-radius: 36px; overflow: hidden;
  background: var(--gray-5);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 48px; font-weight: 800; color: var(--text-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.ava-now.has { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; }
.ava-now img { width: 100%; height: 100%; object-fit: cover; }
.ava-section-title {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.ava-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  justify-items: center;
}
.preset-box { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.ava-preset {
  width: min(72px, 100%); aspect-ratio: 1; height: auto; border-radius: 20px; overflow: hidden; padding: 0;
  background: var(--gray-5); box-shadow: inset 0 0 0 2px transparent;
  transition: 0.2s;
}
.ava-preset img, .ava-preset svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-preset:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--blue) 50%, transparent); }
.ava-preset.on { box-shadow: inset 0 0 0 3px var(--blue); transform: translateY(-4px); }
.preset-name { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.2; }
.ava-preset.on + .preset-name { color: var(--blue); }
.ava-actions { display: flex; flex-direction: column; gap: 12px; }
.ava-actions .btn,
.ava-modal .crop-actions .btn { width: 100%; height: 48px; justify-content: center; }
.ava-modal .btn svg { width: 18px !important; height: 18px !important; }
.ava-modal .btn-blue { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.ava-modal .btn-blue:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 6px 16px color-mix(in srgb, var(--blue) 30%, transparent);
}
.ava-modal .btn-blue:active { transform: translateY(2px); box-shadow: none; }
.ava-modal .btn-ghost.is-danger {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, transparent);
}
.ava-modal .btn-ghost.is-danger:hover { background: color-mix(in srgb, var(--red) 15%, transparent); }
.crop-stage-wrap { display: flex; justify-content: center; }
.crop-stage {
  width: 280px; height: 280px; position: relative;
  border-radius: 32px; overflow: hidden;
  background: var(--bg); touch-action: none; cursor: grab;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent);
}
html.light .crop-stage { box-shadow: inset 0 0 0 1px color-mix(in srgb, #000 5%, transparent); }
.crop-stage:active { cursor: grabbing; }
.crop-stage img {
  position: absolute; left: 50%; top: 50%;
  max-width: none; user-select: none; pointer-events: none;
}
.crop-mask {
  position: absolute; inset: 0; pointer-events: none;
  border: 4px solid var(--blue); border-radius: 32px;
  box-shadow: 0 0 0 200px rgba(0, 0, 0, 0.4);
}
.crop-controls {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg); padding: 16px; border-radius: 20px;
}
html.light .crop-controls { background: var(--gray-4); }
.zoom-row { display: flex; align-items: center; gap: 12px; }
.zoom-row svg { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.crop-zoom { flex: 1; display: flex; align-items: center; }
.crop-zoom input[type="range"] {
  width: 100%; height: 6px; border-radius: 3px; background: var(--gray-5);
  outline: none; accent-color: var(--blue); -webkit-appearance: none; appearance: none;
}
html.light .crop-zoom input[type="range"] { background: var(--gray-3); }
.crop-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: var(--blue);
  cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.tools-row { display: flex; gap: 12px; }
.tools-row .btn { flex: 1; height: 40px; font-size: 13px; border-radius: 12px; justify-content: center; }
.crop-actions { display: flex; gap: 12px; }
.crop-actions .btn { flex: 1; }
@media (max-width: 640px) {
  .modal-backdrop:has(.ava-modal) {
    align-items: flex-end;
    padding: 0;
  }
  .modal.ava-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 32px 32px 0 0;
    border: none;
    padding: 24px 20px 40px;
    max-height: min(92dvh, calc(100dvh - 64px));
    overflow-y: auto;
    animation: avaSheetIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .modal.ava-modal::before {
    content: "";
    display: block;
    width: 40px; height: 5px; border-radius: 3px;
    background: var(--gray-4); margin: 0 auto 20px;
  }
  @keyframes avaSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .ava-now { width: 100px; height: 100px; border-radius: 32px; font-size: 40px; }
  .ava-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .preset-box { width: 100%; }
  .ava-preset { width: min(72px, 100%); border-radius: 22px; }
  .crop-stage { width: 100%; height: auto; aspect-ratio: 1; }
}
.ava-large {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(38, 99, 240, 0.3);
  transform: rotate(-3deg);
  overflow: hidden;
  transition: 0.2s;
}
.ava-wrap.is-mine:hover .ava-large { filter: brightness(1.08); }
.ava-large img { width: 100%; height: 100%; object-fit: cover; }
.ava-cam {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(38, 99, 240, 0.45);
  z-index: 2;
}
.ava-cam svg { width: 15px; height: 15px; }
.ava-remove {
  position: absolute;
  left: -6px;
  top: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 3;
  border: 1px solid var(--gray-4);
}
.ava-remove:hover { color: var(--red); border-color: var(--red); }
.ava-remove svg { width: 13px; height: 13px; }
.user-info h1 { font-family: var(--display); font-size: 26px; font-weight: 800; margin-bottom: 4px; line-height: 1.1; }
.user-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.p-since { margin: 0; font-size: 13px; color: var(--text-2); }
.p-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin: 8px 0 6px; }
.p-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  line-height: 1.1;
}
.p-stat b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.p-stat span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.p-stat.is-link:hover { color: var(--blue); }
.p-stat.is-link:hover span { color: var(--blue); }
.hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.friend-block + .friend-block { margin-top: 28px; }
.friend-list { display: flex; flex-direction: column; gap: 12px; }
.friend-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}
.friend-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.friend-ava {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-5);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}
.friend-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.friend-ava .online-dot { border-color: var(--paper); }
.friend-copy { min-width: 0; }
.friend-copy h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px;
}
.friend-copy h4 .verified { width: 16px; height: 16px; }
.friend-copy .muted { margin: 0; font-size: 13px; }
.friend-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.friend-actions .btn { height: 36px; }
.friend-actions .is-danger { color: var(--red); }
.friend-you {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--gray-5);
}
.profile-page .stars { font-size: 15px; letter-spacing: 1px; }
.profile-page .stars i {
  font-style: normal;
  font-weight: 700;
  color: var(--gray-3);
}
.profile-page .stars i.on { color: var(--star); }
.profile-page .stars span { color: var(--text-2); letter-spacing: 0; font-size: 13px; font-weight: 600; margin-left: 6px; }

.hero-actions { display: flex; align-items: center; gap: 12px; z-index: 1; }
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  min-height: 88px;
  padding: 12px 12px 12px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html.light .wallet-pill {
  background: #fff;
  border-color: var(--gray-4);
  box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06);
}
.w-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 2px 6px 2px 2px;
  color: inherit;
  text-decoration: none;
}
.w-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  color: var(--blue-hover);
}
.w-ico svg { width: 22px; height: 22px; }
.w-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
  text-transform: none;
}
.w-sum {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.w-info:hover .w-sum { color: var(--blue-hover); }
.wallet-pill .w-add {
  height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.wallet-pill .w-add svg { width: 16px; height: 16px; }

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  min-height: 56px;
  padding: 0 48px;
}
.profile-nav-track {
  position: relative;
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  min-width: 0;
}
.profile-nav-track::-webkit-scrollbar { display: none; }
.profile-nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  height: 48px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile-nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 48px;
  border-radius: 16px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.profile-nav-item:hover { color: var(--text); background: transparent; }
html.light .profile-nav-item:hover { background: transparent; }
.profile-nav-item.on { background: transparent; color: var(--text); box-shadow: none; }
.profile-nav-item svg { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; transition: color 0.2s ease, opacity 0.2s ease; }
.profile-nav-item.on svg { color: var(--blue); opacity: 1; }
.profile-nav-item.is-exit { color: var(--red); }
.profile-nav-item.is-exit:hover { background: rgba(240,48,93,0.08); }
.profile-nav-item.on[href$="/favorites"] svg { color: var(--red); }
.profile-nav-item .nav-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 18%, transparent);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.profile-nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1.5px solid var(--gray-4);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  padding: 0;
}
.profile-nav-arrow svg { width: 18px; height: 18px; display: block; }
.profile-nav-arrow.visible { opacity: 1; pointer-events: auto; }
.profile-nav-arrow.left { left: 4px; }
.profile-nav-arrow.right { right: 4px; }
.profile-nav-arrow:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.profile-products {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.profile-reputation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 580px;
}
.profile-page .p-rep { max-width: 580px; }

.profile-pane { min-width: 0; overflow: hidden; }
.profile-pane.is-in-right { animation: profilePaneIn 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
.profile-pane.is-in-left { animation: profilePaneInLeft 0.26s cubic-bezier(0.22, 1, 0.36, 1); }
.profile-pane.is-in-fade { animation: profilePaneFade 0.18s ease; }
@keyframes profilePaneIn {
  from { opacity: 0.45; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes profilePaneInLeft {
  from { opacity: 0.45; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes profilePaneFade {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-nav-pill { transition: none; }
  .profile-pane.is-in-right,
  .profile-pane.is-in-left,
  .profile-pane.is-in-fade { animation: none; }
}
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pane-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-tabs { display: flex; background: var(--gray-5); padding: 4px; border-radius: 12px; }
html.light .sub-tabs { background: var(--gray-4); }
.sub-tab {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.sub-tab.on { background: var(--paper); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.seg-count { color: var(--orange); margin-left: 4px; }

.profile-page .empty-box {
  border: 2px dashed var(--gray-4);
  border-radius: 24px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.profile-page .empty-box .empty-icon {
  font-size: 48px;
  filter: none;
  opacity: 1;
  margin-bottom: 0;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.profile-page .empty-box h3 { font-size: 18px; font-weight: 700; }
.profile-page .empty-box .muted { max-width: 360px; }
.profile-page .empty-box .btn { margin-top: 8px; }

.profile-page .grid-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .profile-page .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1100px) {
  .profile-page .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.owner-lot { display: flex; flex-direction: column; min-width: 0; }
.owner-lot .lot-actions { margin-top: 4px; }

.profile-page .lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.profile-page .lot-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.profile-page .lot-card:hover { transform: scale(1.02); }
.profile-page .lot-img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray-5);
}
.profile-page .lot-img .card-art { position: absolute; inset: 0; border-radius: 12px; }
.profile-page .lot-img .card-game-ico { width: 52%; max-width: 52px; }
.profile-page .lot-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
}
.profile-page .lot-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; min-width: 0; }
.profile-page .lot-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-page .lot-price { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--blue); }
.profile-page .lot-actions { display: flex; gap: 8px; margin-top: 8px; }
.profile-page .lot-actions .btn-ghost {
  flex: 1;
  height: 32px;
  font-size: 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-5);
  font-weight: 600;
}
html.light .profile-page .lot-actions .btn-ghost { background: var(--gray-4); }
.profile-page .lot-actions .is-danger { color: var(--red); }
.profile-page .icon-btn.is-danger { color: var(--red); }

.deal-list { display: flex; flex-direction: column; gap: 12px; }
.deal-row {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}
.deal-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 200px; }
.deal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gray-4);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.deal-avatar.plus { background: rgba(34,189,101,0.1); color: var(--green); }
.deal-avatar.minus { background: rgba(240,48,93,0.1); color: var(--red); }
.deal-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.deal-meta {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.deal-meta.plus { color: var(--green); }
.status {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  font-family: var(--font);
}
.status.s-ok { background: rgba(16,163,80,.15); color: var(--green); }
.status.s-warn { background: rgba(250,114,35,.15); color: var(--orange); }
.status.s-bad { background: rgba(240,48,93,.15); color: var(--red); }

.wallet-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.bento-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.bento-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background: var(--text-2);
  opacity: 0.05;
  border-radius: 50%;
}
.bento-card.primary { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; }
.bento-card.primary .muted { color: rgba(255,255,255,0.7); }
.bento-card.primary::after { background: #fff; opacity: 0.1; }
.b-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.b-value { font-family: var(--display); font-weight: 800; font-size: 28px; }
.b-value.tokens { color: var(--violet); }
.bento-card.primary .ref-card-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
  max-width: 28ch;
}
.ref-invite-note {
  background: color-mix(in srgb, var(--blue) 12%, var(--paper));
  color: var(--text);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}
.ref-link-card {
  display: grid;
  gap: 16px;
  background: var(--paper);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.ref-link-copy { display: flex; flex-direction: column; gap: 6px; }
.ref-link-copy b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.ref-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 22, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
}
html.light .ref-link-row {
  background: rgba(244, 245, 247, 0.9);
  border-color: var(--gray-4);
}
.ref-link-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 14px/1.3 var(--font);
  outline: none;
}
.ref-link-row .btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}
.ref-link-row .btn svg { width: 16px; height: 16px; }
.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.ref-step {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
}
.ref-step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}
.ref-step h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.ref-step p { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.ref-row { cursor: default; }
.auth-ref-note {
  margin-top: 12px !important;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 16%, var(--paper));
  color: var(--text);
  font-size: 13px !important;
  font-weight: 700;
}
.bento-actions { margin-top: 16px; display: flex; gap: 8px; }
.bento-card.primary .bento-actions .btn {
  background: #fff;
  color: var(--blue-dark);
  flex: 1;
  height: 40px;
  font-weight: 700;
}
.promo-box {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr);
  gap: 20px 28px;
  align-items: center;
  background: var(--paper);
  border-radius: 24px;
  padding: 22px 22px 22px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.promo-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
}
.promo-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.promo-copy b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.promo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 22, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: 0.2s;
}
html.light .promo-row {
  background: rgba(244, 245, 247, 0.9);
  border-color: var(--gray-4);
}
.promo-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38, 99, 240, 0.15); }
.promo-entry {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.promo-entry::placeholder {
  font-weight: 500;
  color: var(--text-2);
}
.promo-row .btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  flex-shrink: 0;
}
.photo-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.photo-row { cursor: default; }
.profile-page .photo-actions .is-danger { color: var(--red); }
.history-header { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.settings-section { margin-bottom: 24px; }
.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-left: 16px;
}
.settings-card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-5);
  cursor: pointer;
  transition: 0.2s;
}
.setting-row:last-child { border-bottom: none; }
html.light .setting-row { border-bottom-color: var(--gray-4); }
.setting-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.setting-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(38,99,240,0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.setting-icon.purple { background: rgba(142,77,255,0.1); color: var(--violet); }
.setting-icon.gray { background: var(--gray-5); color: var(--text); }
html.light .setting-icon.gray { background: var(--gray-4); color: var(--text-2); }
.setting-icon svg { width: 22px; height: 22px; }
.setting-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.setting-info p { font-size: 13px; color: var(--text-2); line-height: 1.3; }

.settings-hint {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
  margin: -4px 0 12px;
  padding-left: 16px;
}
.nav-order-list { padding: 4px 0; }
.nav-order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-5);
  user-select: none;
  background: var(--paper);
  transition: background 0.15s;
}
.nav-order-row:last-child { border-bottom: none; }
html.light .nav-order-row { border-bottom-color: var(--gray-4); }
.nav-order-row:hover { background: rgba(38,99,240,0.06); }
.nav-order-row.is-dragging {
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow);
  cursor: grabbing;
  background: var(--paper);
}
.nav-order-row.is-drop { background: rgba(38,99,240,0.12); }
.nav-order-grip {
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.5;
  cursor: grab;
  touch-action: none;
  width: 28px;
  height: 36px;
}
.nav-order-grip:active { cursor: grabbing; }
.nav-order-grip svg { width: 18px; height: 18px; }
.nav-order-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(38,99,240,0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-order-ico svg { width: 20px; height: 20px; }
.nav-order-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.nav-order-move { display: flex; gap: 4px; flex-shrink: 0; }
.nav-order-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--gray-5);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
html.light .nav-order-btn { background: var(--gray-4); }
.nav-order-btn:hover:not(:disabled) { background: rgba(38,99,240,0.14); color: var(--blue); }
.nav-order-btn:disabled { opacity: 0.35; cursor: default; }
.nav-order-btn svg { width: 18px; height: 18px; }
.nav-order-reset { margin: 12px 0 0 4px; }

.ios-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.ios-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ios-switch .switch-bg {
  position: absolute;
  inset: 0;
  background: var(--gray-4);
  border-radius: 12px;
  transition: 0.3s;
  pointer-events: none;
}
.ios-switch .switch-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ios-switch input:checked + .switch-bg { background: var(--blue); }
.ios-switch input:checked + .switch-bg .switch-dot { transform: translateX(20px); }

.auto-builder {
  background: var(--paper);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.auto-builder h3 { margin-bottom: 8px; }
.auto-builder .muted { margin-bottom: 16px; }
.auto-form { display: flex; flex-direction: column; gap: 12px; }
.auto-form .field { margin: 0; }
.auto-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.auto-form-actions .is-danger-text { color: var(--red); }
.sell-auto-hint { margin: 0 0 12px; line-height: 1.4; }
.sell-auto-hint a { color: var(--blue); font-weight: 600; }
.auto-pick-lead {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0 0 16px;
}
.auto-pick-list { display: flex; flex-direction: column; gap: 10px; }
.auto-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: 0.15s background;
}
.auto-pick:hover { background: rgba(38,99,240,0.06); }
.auto-pick > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-2);
  opacity: 0.55;
}
.auto-pick-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--gray-5);
}
.auto-pick-art .card-art { border-radius: 12px; }
.auto-pick-art .card-game-ico { width: 58%; max-width: 34px; }
.auto-pick-art .card-mark { display: none; }
.auto-pick-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.auto-pick-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auto-pick-meta { font-size: 13px; color: var(--text-2); }
.auto-pick-flag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--gray-5);
  padding: 5px 10px;
  border-radius: 999px;
}
html.light .auto-pick-flag { background: var(--gray-4); }
.auto-pick-flag.on {
  color: var(--blue);
  background: rgba(38,99,240,0.12);
}
.auto-pick-flag.is-wait {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 16%, transparent);
}
.auto-pick-flag.is-bad {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
}
.auto-note {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 14px;
}
.auto-note.is-wait {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
}
.auto-note.is-bad {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}
.auto-note.is-ok {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}
.auto-files-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auto-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auto-files-head .label { margin: 0; }
.auto-file-add { cursor: pointer; margin: 0; }
.auto-file-add input { display: none; }
.auto-files-empty { margin: 0; }
.auto-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auto-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gray-5);
}
html.light .auto-file { background: var(--gray-4); }
.auto-file-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auto-file-size {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-2);
}
.auto-file-del {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.auto-file-del svg { width: 16px; height: 16px; }
.auto-file-del:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.auto-vt { display: flex; flex-direction: column; gap: 8px; }
.auto-vt[hidden] { display: none !important; }
.auto-vt .muted { margin: 0; }
.auto-vt a { color: var(--blue); font-weight: 600; }
.auto-vt .field { height: 48px; }
.mod-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.mod-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mod-card h3 { margin: 0 0 4px; }
.mod-card .muted { margin: 0; }
.mod-text {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gray-5);
  font: 14px/1.45 var(--sans);
  white-space: pre-wrap;
  word-break: break-word;
}
html.light .mod-text { background: var(--gray-4); }
.mod-vt { font-size: 14px; line-height: 1.4; word-break: break-all; }
.mod-vt a { color: var(--blue); font-weight: 600; }
.mod-actions { display: flex; flex-direction: column; gap: 10px; }
.mod-actions textarea.field { min-height: 80px; }
.auto-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.auto-back svg { width: 18px; height: 18px; }
.auto-back:hover { color: var(--text); }
.auto-attach-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.auto-attach-head h3 { margin-bottom: 4px; }
.auto-attach-head .muted { margin-bottom: 2px; }
.auto-attach-head .auto-pick-art { width: 64px; height: 64px; }

.profile-page .field {
  height: 48px;
  padding: 0 16px;
  border: 2px solid transparent;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
html.light .profile-page .field { box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.profile-page .field:focus {
  border-color: var(--blue);
  background: var(--paper);
  box-shadow: none;
}
.profile-page textarea.field { height: auto; min-height: 120px; padding: 16px; }
.tpl-list { display: flex; flex-direction: column; gap: 12px; }
.tpl-item {
  border: 1px solid var(--gray-4);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.tpl-item h4 { font-size: 14px; margin-bottom: 8px; color: var(--blue); }
.tpl-item p { font-size: 14px; white-space: pre-wrap; color: var(--text-2); line-height: 1.4; }

.profile-page .p-reviews {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 0;
}
.p-reviews.is-profile .p-rev-score {
  margin-bottom: 2px;
}
.p-reviews.is-profile .p-rev-row {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  overflow: visible;
  gap: 16px;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .p-reviews.is-profile .p-rev-row { grid-template-columns: 1fr; }
}
.p-reviews.is-profile .p-rev {
  gap: 12px;
  padding: 18px;
}
.p-reviews.is-profile .p-rev p {
  margin: 4px 0 0;
  line-height: 1.55;
  min-height: 0;
}
.p-reviews.is-profile .p-rev-lot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--gray-3) 28%, transparent);
}
.p-reviews.is-profile .p-rev-note {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--gray-3) 22%, transparent);
}
.profile-page .p-rev .stars,
.profile-page .p-rev-score .stars { display: flex; gap: 2px; }
.profile-page .p-rev .stars i { color: var(--gray-4); font-style: normal; font-size: 14px; }
.profile-page .p-rev .stars i.on,
.profile-page .p-rev-score .stars i.on { color: var(--star); }
.profile-page .p-rev-score .stars i { color: var(--gray-4); font-style: normal; }

@media (max-width: 768px) {
  .profile-page { width: calc(100% - 32px); padding: 12px 0 80px; }
  .profile-hero { padding: 20px; flex-direction: column; align-items: stretch; gap: 20px; border-radius: 20px; }
  .ava-large { width: 64px; height: 64px; font-size: 24px; border-radius: 16px; }
  .ava-cam { width: 28px; height: 28px; }
  .ava-cam svg { width: 13px; height: 13px; }
  .user-info h1 { font-size: 22px; }
  .hero-actions { justify-content: stretch; width: 100%; }
  .hero-side { width: 100%; }
  .wallet-pill { flex: 1; justify-content: space-between; min-width: 0; }
  .friend-card { padding: 12px; }
  .friend-actions { width: 100%; }
  .friend-actions .btn { flex: 1; justify-content: center; }
  .promo-box { grid-template-columns: 1fr; padding: 18px; }
  .promo-row { padding: 6px; }
  .photo-row { flex-wrap: wrap; }
  .profile-page .lot-grid { grid-template-columns: 1fr; }
  .deal-row { padding: 12px; }
  .deal-meta {
    align-items: center;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 8px;
    border-top: 1px solid var(--gray-4);
    padding-top: 8px;
  }
  .profile-nav-arrow { display: none !important; }
  .nav-container { margin: 0 0 20px; padding: 0; }
  .profile-nav-track { padding: 0; }
  .ref-steps { grid-template-columns: 1fr; }
  .ref-link-row {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
  }
  .ref-link-input { padding: 6px 8px; }
  .ref-link-row .btn { width: 100%; justify-content: center; }
}

.step { display: flex; gap: 12px; margin-bottom: 14px; }
.step-n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}

.kind-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 8px;
}
.wallet-form { max-width: 560px; padding: 24px 0 48px; }
.money-page { padding-top: 8px; }
.money-wrap { max-width: 560px; padding: 8px 0 64px; }
.money-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  margin: 4px 0 10px -6px;
  padding: 0 10px 0 4px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}
.money-back svg { width: 16px; height: 16px; }
.money-back:hover { color: var(--text); background: var(--paper); }

.receipt-page { padding-top: 4px; }
.receipt-wrap { max-width: 440px; padding: 8px 0 64px; }
.receipt {
  --receipt: #ffffff;
  --receipt-ink: #111318;
  --receipt-mute: #6b7280;
  --receipt-line: #e6e8ee;
  background: var(--receipt);
  color: var(--receipt-ink);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}
html.light .receipt { box-shadow: 0 14px 40px rgba(20, 22, 26, 0.12); }
.receipt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.receipt-brand {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #2663F0;
}
.receipt-kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--receipt-mute);
}
.receipt-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0 6px;
}
.receipt-pay {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f4f7;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.receipt-pay svg { display: block; }
.receipt-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--receipt-mute);
}
.receipt-sum {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--receipt-ink);
}
.receipt.is-in .receipt-sum { color: #00a849; }
.receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.receipt-status svg { width: 16px; height: 16px; }
.receipt-status.is-ok { color: #00a849; }
.receipt-status.is-wait { color: #ea580c; }
.receipt-cut {
  position: relative;
  height: 22px;
  margin: 10px -22px 8px;
}
.receipt-cut i {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  border-top: 1px dashed #d5d8e0;
}
.receipt-cut::before,
.receipt-cut::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
}
.receipt-cut::before { left: -9px; }
.receipt-cut::after { right: -9px; }
.receipt-title {
  margin: 8px 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.receipt-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.receipt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--receipt-line);
  font-size: 13px;
  line-height: 1.4;
}
.receipt-row span {
  color: var(--receipt-mute);
  font-weight: 600;
  flex-shrink: 0;
}
.receipt-row b {
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}
.receipt-row a {
  color: #2663F0;
  font-weight: 700;
}
.receipt-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--receipt-line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--receipt-mute);
}
@media (max-width: 640px) {
  .receipt-sum { font-size: 28px; }
  .receipt { padding: 20px 18px 18px; border-radius: 18px; }
  .receipt-cut { margin-left: -18px; margin-right: -18px; }
}
.money-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.money-head h1 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.money-balance {
  background: var(--paper);
  border-radius: 16px;
  padding: 10px 16px;
  min-width: 132px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.money-balance span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.money-balance b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.money-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.money-block { display: flex; flex-direction: column; gap: 10px; }
.money-block .label { font-size: 13px; font-weight: 700; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chips .chip {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--gray-4);
  cursor: pointer;
  color: var(--text);
}
.amount-chips .chip.on {
  background: color-mix(in srgb, var(--blue) 18%, var(--bg));
  border-color: var(--blue);
  color: var(--text);
}
.amount-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--gray-4);
}
.amount-box:focus-within { border-color: var(--blue); }
.amount-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  outline: none;
}
.amount-box input::-webkit-outer-spin-button,
.amount-box input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.amount-box input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.amount-box .uah { font-weight: 800; color: var(--text-2); font-size: 18px; }
.pay-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}
.pay-pick { cursor: pointer; }
.pay-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-pick-face {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--gray-4);
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s;
}
.pay-pick-face svg { flex-shrink: 0; }
.pay-pick input:checked + .pay-pick-face {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 14%, var(--bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.money-dest {
  height: 52px;
  border-radius: 16px;
  padding: 0 16px;
}
.money-note {
  margin: 0;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.money-note b { color: var(--text); }
.money-card .btn-lg { width: 100%; }
.money-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .money-head { flex-direction: column; align-items: stretch; }
  .money-head h1 { font-size: 28px; }
  .money-balance { align-items: flex-start; width: 100%; }
}
.price-xl s.old { margin-left: 10px; font-size: 18px; color: var(--text-2); font-weight: 500; }
.legal-ol { margin: 12px 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.product-reviews .review { background: var(--paper); border-radius: 16px; padding: 14px; margin: 10px 0; }

/* Product page */
.product-wrap { max-width: 1200px; padding: 8px 0 48px; }
.p-nav {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0 16px;
}
.p-nav a {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--text); font-weight: 600; font-size: 14px;
}
.p-nav a:hover { color: var(--blue); }
.p-nav svg { width: 18px; height: 18px; }
.p-chip {
  height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--gray-5); color: var(--text) !important;
  font-size: 12px; font-weight: 700;
}
.p-chip:hover { color: var(--blue) !important; }
.p-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) {
  .p-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "gallery buy" "info buy";
    gap: 32px;
  }
  .p-gallery { grid-area: gallery; }
  .p-right { grid-area: buy; }
  .p-body { grid-area: info; }
}
.p-gallery { display: flex; flex-direction: column; gap: 10px; }
.p-hero {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  background: var(--gray-5);
}
@media (min-width: 1024px) {
  .p-hero { aspect-ratio: 16 / 10; }
}
.p-hero img, .p-hero-fallback, .p-hero .game-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-hero-fallback { height: 100%; border-radius: 0; }
.p-badges {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none;
}
.p-badge {
  padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(20, 22, 26, 0.62);
}
.p-badge.is-sale { background: var(--red); }
.p-badge.is-auto { background: linear-gradient(135deg, var(--violet), var(--blue)); }
.p-badge.is-prem { background: linear-gradient(135deg, #FFE357, #FA7223); color: #111; }
.p-badge.is-off { background: var(--green); }
.p-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.p-thumbs::-webkit-scrollbar { display: none; }
.p-thumb {
  width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; opacity: 0.62; background: var(--gray-5); padding: 0;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-thumb:hover { opacity: 1; }
.p-thumb.on { border-color: var(--blue); opacity: 1; }
.p-body { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.p-story-block h2,
.p-reviews.is-product .p-rev-top h2,
.p-rep h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.p-story {
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 3px solid var(--blue);
}
.p-story p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.p-story p:first-child { font-weight: 600; }
.p-story-empty { margin: 0; color: var(--text-2); font-size: 15px; }
.p-tab {
  padding: 0 2px 12px; font-size: 16px; font-weight: 700; color: var(--text-2);
  position: relative; background: none;
}
.p-tab:hover { color: var(--text); }
.p-tab.active { color: var(--blue); }
.p-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--blue); border-radius: 3px 3px 0 0;
}
.p-desc { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.p-desc[hidden], .p-reviews[hidden] { display: none !important; }
.product-page .stars { display: flex; gap: 2px; }
.product-page .stars i { color: var(--gray-4); font-style: normal; font-size: 14px; }
.product-page .stars i.on { color: var(--star); }
.p-hero .p-hero-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(165deg, #1c1f28, #12141a);
}
.p-hero .p-hero-fallback img { width: 42%; max-width: 140px; height: auto; border-radius: 24px; object-fit: cover; }
.p-text { margin: 0; font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.p-props {
  background: var(--paper); border-radius: 20px; padding: 8px 20px;
  box-shadow: var(--shadow);
}
.p-prop {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--gray-4);
}
.p-prop:last-child { border-bottom: 0; }
.p-prop span { color: var(--text-2); font-size: 14px; font-weight: 500; }
.p-prop b { font-size: 15px; text-align: right; max-width: 62%; font-weight: 700; }
.p-prop i { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: var(--text-2); }
.p-reviews.is-product { display: flex; flex-direction: column; padding-top: 8px; gap: 16px; }
.p-reviews.is-product .p-rev-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.p-reviews.is-product .p-rev-top h2 { margin: 0; }
.p-rev-count { font-size: 14px; font-weight: 600; color: var(--text-2); }
.p-rev-reel {
  position: relative;
  display: flex;
  align-items: center;
}
.p-rev-reel.is-static .p-rev-track {
  overflow: visible;
  scroll-snap-type: none;
}
.p-reviews.is-product .p-rev-reel.is-static .p-rev {
  flex: 1 1 0;
  max-width: 100%;
}
.p-rev-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  width: 100%;
}
.p-rev-track::-webkit-scrollbar { display: none; }
.p-reviews.is-product .p-rev {
  flex: 0 0 min(320px, 82%);
  scroll-snap-align: start;
  min-height: 168px;
}
.p-rev-reel .round-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.p-rev-reel .round-arrow.prev { left: -8px; }
.p-rev-reel .round-arrow.next { right: -8px; }
@media (max-width: 720px) {
  .p-rev-reel .round-arrow { display: none; }
}
.p-rev-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.p-rev-top h3 { margin: 0; font-size: 20px; font-weight: 800; }
.p-rev-all {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.p-rev-all:hover { color: var(--blue); }
.p-rev-all svg { width: 16px; height: 16px; }
.p-rev-score {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.p-rev-score b {
  font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.p-rev-score .stars i { font-size: 18px; }
.p-rev-score span { color: var(--text-2); font-size: 14px; font-weight: 600; }
.p-rev-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
@media (max-width: 1023px) {
  .p-rev-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
}
.p-rev {
  background: var(--paper); border-radius: 20px; padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.p-rev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-rev-user { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-rev-ava {
  width: 32px; height: 32px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
}
.p-rev-date { font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.p-rev p {
  margin: 0; font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-rev-lot {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 10px; color: var(--text);
}
.p-rev-lot-img {
  width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg);
}
.p-rev-lot-img img, .p-rev-lot-img .p-rev-cover, .p-rev-lot-img .game-cover {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px;
}
.p-rev-lot-info { min-width: 0; }
.p-rev-lot-price { display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: 14px; color: var(--blue); }
.p-rev-lot-price em { font-style: normal; font-size: 12px; color: var(--red); }
.p-rev-lot-price s { font-size: 12px; color: var(--text-2); font-weight: 600; }
.p-rev-lot-info span {
  display: block; font-size: 12px; color: var(--text-2); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-rev-note {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 13px; color: var(--text-2);
}
.p-rev-note svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.p-rev-empty {
  text-align: center; padding: 36px 20px; border-radius: 20px;
  background: var(--paper); color: var(--text-2);
}
.p-rev-empty h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.p-rev-empty p { margin: 0; }
.p-right { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .p-right { align-self: stretch; }
  .p-buy {
    position: sticky;
    top: 116px;
    z-index: 6;
    max-height: calc(100vh - 132px);
    overflow: auto;
    scrollbar-width: none;
  }
  .p-buy::-webkit-scrollbar { display: none; }
}
.p-buy {
  background: var(--paper); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.p-buy h1 { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; margin: 0; }
.p-price {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1;
}
.p-price s { font-size: 16px; color: var(--text-2); font-weight: 600; margin-bottom: 2px; }
.p-price em { font-family: var(--font); font-size: 13px; font-style: normal; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.p-stock { font-size: 14px; font-weight: 600; color: var(--text-2); }
.p-stock.ok { color: var(--green); }
.p-stock.none { color: var(--red); }
.p-actions { display: flex; gap: 10px; align-items: center; }
.p-actions .btn-lg { flex: 1; width: auto; }
.p-ask-wide { width: 100%; }
.p-auth-hint { margin: 0; font-size: 13px; color: var(--text-2); text-align: center; }
.p-auth-hint a { color: var(--blue); font-weight: 700; }
.p-auto {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent); border-radius: 12px; padding: 10px 12px;
}
.p-seller {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--bg); border-radius: 16px; color: var(--text);
}
.p-seller:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.p-seller-ava {
  position: relative; width: 48px; height: 48px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0;
}
.p-seller-ava img { width: 100%; height: 100%; object-fit: cover; }
.p-seller-ava .online-dot { border-color: var(--bg); }
.p-seller-meta { flex: 1; min-width: 0; }
.p-seller-meta b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.p-seller-meta span { display: block; font-size: 13px; color: var(--text-2); }
.p-seller-meta em { color: var(--star); font-style: normal; font-weight: 700; }
.p-seller > svg { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.p-verified { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.p-guarantee {
  display: flex; gap: 12px; align-items: flex-start;
  background: color-mix(in srgb, var(--green) 10%, transparent); border-radius: 16px; padding: 14px;
}
.p-guarantee svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.p-guarantee b { display: block; font-size: 14px; color: var(--green); margin-bottom: 4px; }
.p-guarantee p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.p-report {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 8px 12px 8px 10px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-2); transition: 0.15s;
}
.p-report svg { width: 16px; height: 16px; flex-shrink: 0; }
button.p-report:hover { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); }
.p-report.is-sent { cursor: default; color: var(--green); margin-bottom: 0; }
.p-similar { margin-top: 16px; padding-top: 28px; border-top: 1px solid var(--gray-4); }
.p-similar h2 { font-family: var(--display); font-size: 22px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.03em; }
.buy-modal { padding-top: 8px; }
.buy-modal h2 {
  font-family: var(--display); font-size: 22px; font-weight: 800; text-align: center;
  margin: 0 40px 18px; letter-spacing: -0.03em;
}
.buy-modal-item {
  background: var(--paper); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px;
}
html.light .buy-modal-item { background: var(--bg); }
.buy-modal-item p { margin: 0 0 8px; font-weight: 700; line-height: 1.4; }
.buy-modal-item b {
  font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--blue);
}
.buy-modal .muted { text-align: center; margin: 0 0 18px; }
.buy-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.buy-ok { padding: 8px 4px 4px; text-align: center; }
.buy-ok-mark {
  width: 72px;
  height: 72px;
  margin: 4px auto 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 18%, transparent);
  color: var(--green);
  display: grid;
  place-items: center;
}
.buy-ok-mark svg { width: 34px; height: 34px; }
.buy-ok h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.buy-ok > .muted { margin: 0 0 16px; line-height: 1.4; }
.buy-ok .buy-modal-item { text-align: left; margin-bottom: 16px; }
.buy-ok-review { display: flex; flex-direction: column; gap: 12px; }
.buy-ok-review .btn { width: 100%; justify-content: center; }
.buy-ok-review .field { min-height: 88px; resize: vertical; }
body.product-mode .support-fab,
body.receipt-mode .support-fab { display: none; }
@media (max-width: 1023px) {
  .p-hero { border-radius: 16px; }
  .p-buy { padding: 20px; border-radius: 20px; }
  .p-buy h1 { font-size: 20px; }
  .p-price { font-size: 28px; }
}

/* Deal hub — scoped; do not change :root tokens here */
.deal-page { position: relative; padding-bottom: 32px; }
.deal-wrap {
  position: relative; z-index: 1;
  width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 48px;
}
.deal-page .deal-back {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  height: 40px; padding: 0 14px 0 10px; margin-bottom: 16px;
  border-radius: 99px; background: var(--paper); border: 1px solid var(--gray-4);
  color: var(--text); font-weight: 600; font-size: 14px;
}
.deal-page .deal-back svg { width: 18px; height: 18px; }
.deal-page .deal-back:hover { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, var(--gray-4)); }
.deal-page .deal-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px; align-items: start;
}
.deal-page .deal-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.deal-block {
  background: var(--paper); border: 1px solid var(--gray-4); border-radius: 24px;
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
  min-width: 0; width: 100%;
}
.deal-block > h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.deal-lot {
  display: flex; gap: 16px; align-items: center; min-width: 0;
  padding: 14px; border-radius: 20px; background: var(--bg);
}
html.light .deal-lot { border: 1px solid var(--gray-4); }
.deal-lot-img {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 16px;
  overflow: hidden; background: var(--paper); display: grid; place-items: center;
}
.deal-lot-img img, .deal-lot-img .deal-lot-fallback, .deal-lot-img .game-cover {
  width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
}
.deal-lot-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.deal-lot-cat {
  font-size: 12px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.deal-lot-txt b { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.deal-lot-link { width: fit-content; font-size: 13px; font-weight: 700; color: var(--blue); }
.deal-lot-link:hover { text-decoration: underline; }
.deal-stepper {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; padding: 8px 2px 6px;
}
.deal-stepper-track {
  position: absolute; left: 12.5%; right: 12.5%; top: 18px; height: 4px;
  border-radius: 99px; background: var(--gray-5); pointer-events: none; overflow: hidden;
}
html.light .deal-stepper-track { background: var(--gray-4); }
.deal-stepper-fill {
  display: block; height: 100%; width: 33%; border-radius: 99px;
  background: var(--blue); transition: width 0.25s ease, background 0.25s ease;
}
.deal-stepper[data-progress="marked"] .deal-stepper-fill { width: 66%; }
.deal-stepper[data-progress="done"] .deal-stepper-fill { width: 100%; background: var(--green); }
.deal-stepper[data-progress="dispute"] .deal-stepper-fill { width: 66%; background: var(--red); }
.deal-step {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px; min-width: 0; text-align: center;
}
.deal-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--gray-4); border: 4px solid var(--paper); box-sizing: content-box;
}
html.light .deal-dot { background: var(--gray-3); }
.deal-step-lbl {
  font-size: 11px; font-weight: 800; color: var(--text-2); line-height: 1.25;
  letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere;
}
.deal-step.is-done .deal-dot, .deal-step.is-on .deal-dot { background: var(--blue); }
.deal-step.is-done .deal-step-lbl, .deal-step.is-on .deal-step-lbl { color: var(--text); }
.deal-stepper[data-progress="done"] .deal-dot { background: var(--green); }
.deal-stepper[data-progress="done"] .deal-step-lbl { color: var(--green); }
.deal-step.is-bad .deal-dot {
  background: var(--red);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 35%, transparent);
}
.deal-step.is-bad .deal-step-lbl { color: var(--red); }
.deal-flow {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-width: 0; width: 100%;
}
.deal-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 0; flex: 1; text-align: center; color: inherit; padding: 4px;
  border-radius: 16px;
}
a.deal-node:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.deal-node-role {
  font-size: 11px; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.deal-page .deal-ava {
  position: relative; width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px;
}
.deal-ava.is-seller { background: linear-gradient(135deg, var(--blue), var(--violet)); }
.deal-ava.is-buyer { background: linear-gradient(135deg, var(--green), var(--blue)); }
.deal-page .deal-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-page .deal-ava.is-online { overflow: visible; }
.deal-page .deal-ava.is-online img { border-radius: 18px; }
.deal-page .deal-ava.is-online::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--online); border: 3px solid var(--paper);
}
.deal-node-name {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 14px; font-weight: 700; max-width: 100%;
  overflow-wrap: anywhere; line-height: 1.3;
}
.deal-node-name svg { width: 14px; height: 14px; flex-shrink: 0; }
.deal-node-meta {
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
}
.deal-star-meta { color: var(--star); font-weight: 700; }
.deal-flow-mark {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; color: var(--text-2);
  background: var(--bg); border: 1.5px solid var(--gray-4);
}
.deal-flow-mark svg { width: 22px; height: 22px; }
.deal-flow-mark.is-dispute {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, var(--paper));
  border-color: color-mix(in srgb, var(--red) 42%, transparent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 16%, transparent);
}
.deal-side { position: sticky; top: 88px; min-width: 0; }
.deal-dash {
  background: var(--paper); border: 1px solid var(--gray-4); border-radius: 28px;
  padding: 28px 24px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 16px;
}
.deal-id-row { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.deal-id-row h1 {
  margin: 0; font-family: var(--display); font-size: 16px; font-weight: 700;
  color: var(--text-2); letter-spacing: 0.02em; overflow-wrap: anywhere;
}
.deal-copy {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
}
.deal-copy svg { width: 16px; height: 16px; }
.deal-copy:hover { color: var(--text); background: var(--gray-5); }
.deal-price {
  font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; margin: 0;
}
.deal-date { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.deal-flag {
  --flag: var(--orange);
  position: relative;
  width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 16px 16px 18px;
  border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--flag) 34%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--flag) 16%, var(--paper)), color-mix(in srgb, var(--flag) 7%, var(--paper)));
}
.deal-flag::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--flag);
}
.deal-flag.is-hold { --flag: var(--orange); }
.deal-flag.is-ok { --flag: var(--green); }
.deal-flag.is-bad { --flag: var(--red); }
.deal-flag-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.deal-flag-ico {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--flag);
  background: color-mix(in srgb, var(--flag) 16%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--flag) 22%, transparent);
}
.deal-flag-ico svg { width: 22px; height: 22px; }
.deal-flag-copy { min-width: 0; flex: 1; }
.deal-flag-copy b {
  display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 4px;
}
.deal-flag-copy p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.deal-flag-extra {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.deal-flag-extra li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 13px;
}
.deal-flag-extra span { color: var(--text-2); font-weight: 600; flex-shrink: 0; }
.deal-flag-extra em { font-style: normal; font-weight: 700; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.deal-page .deal-actions {
  display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px;
}
.deal-page .deal-actions .btn { width: 100%; justify-content: center; height: 52px; border-radius: 16px; font-size: 15px; font-weight: 700; }
.deal-page .deal-cta.btn-green { box-shadow: 0 8px 20px color-mix(in srgb, var(--green) 28%, transparent); }
.deal-page .deal-cta.btn-blue { box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 28%, transparent); }
.deal-problem {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; width: 100%; border-radius: 16px;
  color: var(--red); font-weight: 700; font-size: 14px;
  background: color-mix(in srgb, var(--red) 8%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--red) 42%, transparent);
}
.deal-problem svg { width: 18px; height: 18px; }
.deal-problem:hover {
  background: color-mix(in srgb, var(--red) 14%, transparent);
  border-color: var(--red);
}
.deal-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  width: auto;
  align-self: center;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid var(--gray-4);
}
.deal-support svg { width: 14px; height: 14px; }
.deal-support:hover {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 42%, transparent);
  background: color-mix(in srgb, var(--red) 8%, transparent);
}
.deal-cancel-dispute {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; width: 100%; border-radius: 16px;
  color: var(--text); font-weight: 700; font-size: 14px;
  background: var(--bg);
  border: 1.5px solid var(--gray-4);
}
.deal-cancel-dispute svg { width: 18px; height: 18px; color: var(--text-2); }
.deal-cancel-dispute:hover {
  border-color: var(--text-2);
  background: color-mix(in srgb, var(--gray-5) 80%, var(--paper));
}
.deal-chat svg { width: 18px; height: 18px; }
.deal-review { width: 100%; min-width: 0; }
.deal-review h2 { text-align: center; }
.deal-review .btn { width: 100%; justify-content: center; }
.deal-stars { display: flex; justify-content: center; gap: 10px; }
.deal-star {
  width: 48px; height: 48px; border-radius: 14px;
  color: var(--gray-4); background: var(--bg); display: grid; place-items: center;
}
html.light .deal-star { color: var(--gray-3); }
.deal-star svg { width: 26px; height: 26px; }
.deal-star.on, .deal-star:hover { color: var(--star); background: color-mix(in srgb, var(--star) 16%, transparent); }
.deal-review .field { min-height: 96px; resize: vertical; }
.deal-sheet-note {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--bg); border: 1px dashed var(--gray-4); text-align: center;
}
.deal-sheet-actions { display: flex; flex-direction: column; gap: 10px; }
.deal-sheet-actions .btn { width: 100%; }
.modal.is-sheet .deal-sheet-actions .btn-ghost { background: var(--bg); }
@media (max-width: 1023px) {
  body.deal-mode .deal-page { padding-bottom: 132px; }
  .deal-page .deal-grid { grid-template-columns: 1fr; gap: 16px; }
  .deal-side { position: static; }
  .deal-dash { padding: 22px 18px; border-radius: 24px; }
  .deal-price { font-size: 40px; }
  .deal-step-lbl { font-size: 10px; }
  .deal-page .deal-actions {
    position: fixed; left: 0; right: 0; z-index: 36; margin: 0;
    bottom: var(--mnav-space);
    flex-direction: row; flex-wrap: wrap; gap: 8px;
    padding: 10px 16px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--gray-4);
    border-radius: 0;
  }
  .deal-page .deal-actions .deal-cta { flex: 1; min-width: 0; width: auto; height: 52px; }
  .deal-page .deal-actions .deal-chat { width: 52px; flex: 0 0 52px; padding: 0; height: 52px; }
  .deal-page .deal-actions .deal-chat span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
  }
  .deal-page .deal-actions:not(:has(.deal-cta)) .deal-chat {
    width: 100%; flex: 1 1 100%;
  }
  .deal-page .deal-actions:not(:has(.deal-cta)) .deal-chat span {
    position: static; width: auto; height: auto; clip: auto; overflow: visible;
  }
  .deal-page .deal-actions .deal-problem {
    flex: 0 0 auto; width: auto; height: 40px; padding: 0 14px; order: -1;
    margin-left: auto;
    background: color-mix(in srgb, var(--red) 10%, var(--paper));
    border-color: color-mix(in srgb, var(--red) 42%, transparent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--red) 18%, transparent);
  }
  .deal-page .deal-actions .deal-cancel-dispute {
    flex: 0 0 auto; width: auto; height: 40px; padding: 0 14px; order: -1;
    margin-left: auto; background: var(--paper);
  }
  .deal-page .deal-actions .deal-support {
    flex: 0 0 auto; width: auto; height: 36px; padding: 0 12px; order: -1;
    margin-left: auto;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
  }
}
@media (max-width: 640px) {
  .deal-wrap { width: calc(100% - 24px); }
  .deal-block { padding: 16px; border-radius: 20px; }
  .deal-lot { align-items: flex-start; }
  .deal-lot-img { width: 64px; height: 64px; flex-basis: 64px; }
  .deal-node-name { font-size: 13px; }
  .deal-stars { gap: 6px; }
  .deal-star { width: 44px; height: 44px; }
}

/* Reputation on profile */
.p-rep {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--green) 14%, transparent), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 50%),
    var(--paper);
  border-radius: 22px;
  padding: 20px 22px 18px;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--gray-4) 55%, transparent);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
html.light .p-rep {
  border-color: var(--gray-4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.p-rep-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.p-rep-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.p-rep-top h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.p-rep-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.35;
}
.p-rep-pct {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
}
.p-rep-pct.is-empty {
  color: var(--text-2);
  background: var(--gray-5);
}
.p-rep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.p-rep-cell {
  min-width: 0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid transparent;
}
.p-rep-cell b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.p-rep-cell span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.p-rep-cell.is-ok {
  background: color-mix(in srgb, var(--green) 12%, var(--paper));
  border-color: color-mix(in srgb, var(--green) 18%, transparent);
}
.p-rep-cell.is-ok b { color: var(--green); }
.p-rep-cell.is-bad {
  background: color-mix(in srgb, var(--red) 10%, var(--paper));
  border-color: color-mix(in srgb, var(--red) 16%, transparent);
}
.p-rep-cell.is-bad b { color: var(--red); }
.p-rep-bar {
  height: 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--red) 22%, var(--gray-5));
  overflow: hidden;
}
html.light .p-rep-bar { background: #fecdd3; }
.p-rep-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-hover));
}
.p-rep-likes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.p-rep-hint { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.p-rep-hint a { color: var(--blue); font-weight: 700; }
.p-rep-btn {
  min-height: 48px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--gray-5);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.p-rep-btn .ico { width: 18px; height: 18px; flex-shrink: 0; }
.p-rep-btn b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-left: auto;
}
.p-rep-btn-txt { font-weight: 700; }
html.light .p-rep-btn { background: var(--bg); border-color: var(--gray-4); }
.p-rep-btn.is-static { cursor: default; pointer-events: none; }
.p-rep-btn.is-pos.on,
.p-rep-btn.is-pos:not(.is-static):hover {
  background: color-mix(in srgb, var(--green) 14%, var(--paper));
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
}
.p-rep-btn.is-neg.on,
.p-rep-btn.is-neg:not(.is-static):hover {
  background: color-mix(in srgb, var(--red) 12%, var(--paper));
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 26%, transparent);
}
.p-rep-btn:not(.is-static):active { transform: translateY(1px); }
html.light .p-rep-btn.is-pos.on,
html.light .p-rep-btn.is-pos:not(.is-static):hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
html.light .p-rep-btn.is-neg.on,
html.light .p-rep-btn.is-neg:not(.is-static):hover {
  background: #fff1f2;
  border-color: #fecdd3;
}

/* Cabinet stats (dashboard) */
.stats-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  animation: statsFadeIn 0.4s ease;
}
@keyframes statsFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.stats-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stats-tabs {
  display: flex;
  background: var(--gray-5);
  padding: 4px;
  border-radius: 14px;
}
html.light .stats-tabs { background: var(--gray-4); }
.stats-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.stats-tabs button.active {
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
html.light .stats-tabs button.active { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.stats-pdf-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
}
.stats-pdf-btn svg { width: 16px; height: 16px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.kpi-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--paper);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
}
html.light .kpi-card {
  border-color: var(--gray-4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}
.kpi-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.kpi-val {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-trend {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-trend svg { width: 14px; height: 14px; }
.kpi-trend.down { color: var(--text-2); }
.sparkline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  opacity: 0.4;
  pointer-events: none;
}
html.light .sparkline { opacity: 0.8; }
.spark-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kpi-card:has(.kpi-trend.down) .spark-path { stroke: var(--text-2); }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.chart-card {
  min-width: 0;
  background: var(--paper);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.02);
}
html.light .chart-card {
  border-color: var(--gray-4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}
.chart-card h3 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.chart-card.is-table { padding: 28px 0; }
.chart-card.is-table h3 { padding: 0 28px; }

.funnel { display: flex; flex-direction: column; gap: 16px; }
.funnel-step { display: flex; align-items: center; gap: 16px; }
.f-lbl {
  width: 90px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}
.f-track {
  flex: 1;
  background: var(--gray-5);
  border-radius: 8px;
  height: 32px;
  position: relative;
  overflow: hidden;
}
html.light .f-track {
  background: var(--bg);
  border: 1px solid var(--gray-4);
}
.f-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  min-width: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.stats-footnote {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-5);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
html.light .stats-footnote { border-top-color: var(--gray-4); }

.stats-table-wrap { overflow-x: auto; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}
.stats-table th {
  padding: 0 16px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-5);
}
html.light .stats-table th { border-bottom-color: var(--gray-4); }
.stats-table th:first-child,
.stats-table td:first-child,
.stats-td-lot { text-align: left; }
.stats-table td {
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
html.light .stats-table td { border-bottom-color: var(--gray-4); }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table .stats-empty {
  padding: 20px 28px;
  text-align: left;
  color: var(--text-2);
  font-weight: 500;
}
.stats-td-rev { padding-right: 28px !important; }
.stats-table th:first-child { padding-left: 28px; }
.stats-table th:last-child { padding-right: 28px; }
.td-lot { display: flex; align-items: center; gap: 12px; min-width: 0; }
.td-ava {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.td-name {
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-toolbar { flex-direction: column; align-items: stretch; }
  .stats-pdf-btn { width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .p-rep-likes { grid-template-columns: 1fr; }
}

/* Видимий фокус для навігації з клавіатури (миша його не вмикає) */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue) !important;
  outline-offset: 2px;
}

/* =====================================================================
   МОБІЛЬНА АДАПТАЦІЯ (телефони до 1023px, основний фокус — 360–430px)
   ===================================================================== */
/* Підтримка доступна у «Чатах» нижнього меню — плаваюча кнопка лише заважала */
.support-fab { display: none !important; }

@media (max-width: 1023px) {
  /* Уся смуга пошуку клікабельна */
  .search input { align-self: stretch; height: 100%; }
  /* Більша зона натискання без зміни вигляду */
  .theme-switch::after { content: ""; position: absolute; inset: -8px -6px; }
  .p-nav a { min-height: 40px; }
  .p-chip { height: 34px; display: inline-flex; align-items: center; }
  .sub-tab { min-height: 38px; display: inline-flex; align-items: center; }
  .legal-back, .auto-back, .pz-link, .deal-lot-link { min-height: 40px; display: inline-flex; align-items: center; }
  .badge-count { font-size: 11px; min-width: 17px; height: 17px; }
  /* Юридичні сторінки: вкладки без вильоту за екран */
  .legal-chips { margin: 0 0 8px; padding: 8px 0 12px; }
  /* Рядок категорій: без відступу під сховані стрілки */
  .cats-scroll { padding: 0; }
  .cat-chip { font-size: 15px; height: 42px; }
  .cats-track { gap: 18px; }
}

@media (max-width: 639px) {
  /* Банер: вищий, боки з порожнім фоном обрізаються, без стрілок (гортаємо пальцем) */
  /* Банер: окрема мобільна картинка (baner*-m.png), з відступами і заокругленням, як у мобільних маркетплейсах */
  .hero-banner { width: calc(100% - 24px); margin: 12px auto 0; aspect-ratio: 19 / 10; border-radius: 20px; }
  .hero-track img, .hero-banner > img { object-fit: cover; }
  .hero-banner .hero-arrow { display: none; }
  .hero-dots { bottom: 10px; width: 34%; gap: 5px; }
  .hero-dots i { height: 3px; }
  .home-sheet { margin-top: 14px; border-radius: 0; padding-top: 0; background: transparent; }

  /* Сітка карток: більше повітря між рядами */
  .grid-products { column-gap: 10px; row-gap: 22px; }

  /* «Перше поповнення» — компактно */
  .boost-card { padding: 8px; gap: 8px; border-radius: 18px; }
  .boost-visual { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 12px; min-height: 0; padding: 14px 16px; }
  .visual-info, .visual-info p { text-align: left; justify-content: flex-start; }
  .visual-info h3 { font-size: 13px; }
  .visual-info p { font-size: 12px; }
  .boost-pct { font-size: 34px; }
  .boost-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .float-field { width: 100%; height: 58px; padding: 0 14px; }
  .btn-pay { grid-column: 1 / -1; width: 100%; height: 54px; }
}

/* --- Каталог гри --- */
.catalog-head { align-items: flex-end; }
.catalog-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.catalog-title h1 { font-size: 26px; }
.catalog-chips { margin-bottom: 16px; }
.filters-toggle { display: none; }
@media (max-width: 1023px) {
  .catalog-head { align-items: center; gap: 12px; }
  .catalog-title .game-cover { width: 56px; height: 56px; border-radius: 16px; }
  .catalog-title h1 { font-size: 19px; line-height: 1.2; }
  .catalog-title p { font-size: 13px; }
  .catalog-sell { height: 40px; padding: 0 16px; flex-shrink: 0; }
  .catalog-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 0; }
  .catalog-chips::-webkit-scrollbar { display: none; }
  .catalog-chips .chip { flex-shrink: 0; }
  .filters-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; margin-bottom: 12px; padding: 0 16px;
    border: 1px solid var(--gray-4); border-radius: 14px; background: var(--gray-5); color: var(--text);
    font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .filters-toggle svg { width: 20px; height: 20px; color: var(--text-2); }
  .filters-toggle span { flex: 1; text-align: left; }
  .filters-toggle em { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
  .filters-toggle.on { border-color: var(--blue); }
  .layout-2 > .filters { display: none; margin-bottom: 16px; }
  .layout-2 > .filters.is-open { display: flex; }
}

/* --- Сторінка товару на телефоні --- */
@media (max-width: 720px) {
  .p-rev-reel.is-static .p-rev-track { overflow-x: auto; scroll-snap-type: x mandatory; }
  .p-reviews.is-product .p-rev-reel.is-static .p-rev,
  .p-reviews.is-product .p-rev { flex: 0 0 84%; max-width: 84%; }
  .p-rev-track { margin: 0; padding: 4px 0 10px; width: 100%; }
  .p-buy h1 { font-size: 18px; }
  .p-price { font-size: 28px; }
}

/* --- Чати на телефоні: у відкритій переписці нижнє меню ховається, як у месенджерах --- */
@media (max-width: 1023px) {
  body.chats-mode:has(.chats-page.thread-open) .mobile-nav { display: none; }
  .chats-page.thread-open { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chats-page.thread-open .composer-area { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* --- Кабінет на телефоні --- */
@media (max-width: 480px) {
  .wallet-pill { flex-wrap: wrap; gap: 12px; padding: 12px; min-height: 0; }
  .wallet-pill .w-info { flex: 1 1 100%; }
  .wallet-pill .w-add { flex: 1 1 100%; height: 48px; justify-content: center; }
  .w-ico { width: 44px; height: 44px; border-radius: 14px; }
  .w-sum { font-size: 22px; }
}

/* --- Угода на телефоні --- */
@media (max-width: 1023px) {
  body.deal-mode .deal-page { padding-bottom: 196px; }
  .deal-page .deal-actions .deal-problem,
  .deal-page .deal-actions .deal-cancel-dispute,
  .deal-page .deal-actions .deal-support { flex: 1 1 100%; margin-left: 0; justify-content: center; height: 40px; }
  .deal-page .deal-actions .deal-cta { white-space: nowrap; font-size: 15px; }
  .deal-step-lbl { font-size: 11px; text-transform: none; letter-spacing: 0; overflow-wrap: normal; }
}

/* --- Призи на телефоні --- */
@media (max-width: 640px) {
  .prizes-page .hiw-section { gap: 8px; }
  .prizes-page .hiw-card { padding: 12px 14px; gap: 12px; border-radius: 16px; }
  .prizes-page .hiw-ico { width: 38px; height: 38px; border-radius: 12px; }
  .prizes-page .hiw-ico svg { width: 18px; height: 18px; }
  .prizes-page .hiw-txt h4 { font-size: 14px; margin-bottom: 2px; }
  .prizes-page .hiw-txt p { font-size: 12px; }
  .prizes-page .r-art { height: 128px; min-height: 0; aspect-ratio: auto; }
  .prizes-page .r-art-label { font-size: 26px; }
  .prizes-page .r-body { padding: 16px; gap: 10px; }
  .prizes-page .r-title { font-size: 18px; }
}

/* --- Статистика на телефоні: KPI по два в ряд --- */
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-card { padding: 14px 14px 40px; border-radius: 18px; }
  .kpi-lbl { font-size: 11px; letter-spacing: 0.2px; margin-bottom: 6px; line-height: 1.25; min-height: 28px; }
  .kpi-val { font-size: 21px; }
  .kpi-trend { font-size: 12px; margin-top: 6px; }
  .sparkline { height: 34px; }
}

/* =====================================================================
   ТЕЛЕФОН: шапка, пошук і плаваюче нижнє меню (як у мобільних маркетплейсах)
   ===================================================================== */
:root { --mnav-space: 0px; --mnav-bg: #1C1D26; --mnav-line: rgba(255, 255, 255, 0.04); --mnav-muted: #7A7E8C; --mnav-hover: #A4A8B2; --mnav-active: #FFFFFF; --mnav-active-bg: rgba(255, 255, 255, 0.08); }
html.light { --mnav-bg: #FFFFFF; --mnav-line: var(--gray-4); --mnav-muted: #828794; --mnav-hover: #404452; --mnav-active: #111318; --mnav-active-bg: rgba(20, 22, 26, 0.07); }
@media (max-width: 1023px) {
  :root { --mnav-space: calc(92px + env(safe-area-inset-bottom, 0px)); }

  /* Шапка: логотип зліва, перемикач теми справа; решта — у нижньому меню */
  .header { padding: 10px 12px 0; }
  .header-inner { min-height: 36px; }
  /* На телефоні шапка прозора — тінь від десктопної «картки» давала смугу під логотипом */
  html.light .header-inner, .header-inner { box-shadow: none; background: transparent; }
  .header-brand { flex: 1; justify-content: space-between; margin-right: 0; }
  .header-nav { display: none; }
  .logo-text { font-size: 32px; }

  /* Пошук — окреме поле з фоном на всю ширину */
  .header-search-mobile { padding: 10px 0 0; }
  .header-search-mobile .search {
    height: 48px; padding: 0 18px; gap: 10px; border-radius: 24px;
    background: color-mix(in srgb, var(--paper) 55%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .header-search-mobile .search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
  html.light .header-search-mobile .search { background: var(--paper); border-color: var(--gray-4); }
  .header-search-mobile .search input { font-size: 15px; }
  .header-search-mobile .search-ico { width: 20px; height: 20px; }
  .header-search-mobile { position: relative; z-index: 45; }

  /* Нижнє меню: «пігулка» з кнопкою-дією по центру */
  .mobile-nav {
    left: 50%; right: auto; transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px); max-width: 440px; height: 68px;
    display: flex; align-items: center; justify-content: space-between; gap: 2px;
    padding: 0 10px; border-radius: 34px;
    background: var(--mnav-bg); border: 1px solid var(--mnav-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .mobile-nav.mnav-enter { animation: mnav-in 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) both; }
  @keyframes mnav-in {
    from { opacity: 0; transform: translate(-50%, 28px) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
  }

  .mobile-nav .mnav-item {
    position: relative; flex: 1 1 0; min-width: 0; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--mnav-muted); transition: color 0.25s ease, transform 0.18s ease;
  }
  .mobile-nav .mnav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
  .mnav-ico {
    position: relative; width: 34px; height: 32px; border-radius: 12px;
    display: grid; place-items: center; isolation: isolate;
  }
  .mnav-ico::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--mnav-active-bg); opacity: 0; transform: scale(0.4);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .mnav-ico svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
  .mobile-nav .mnav-item:active { transform: scale(0.9); }
  .mobile-nav .mnav-item.active { color: var(--mnav-active); }
  .mobile-nav .mnav-item.active .mnav-ico::before { opacity: 1; transform: scale(1); }
  .mobile-nav .mnav-item.mnav-pop .mnav-ico svg { animation: mnav-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .mobile-nav .mnav-item.mnav-pop .mnav-ico::before { animation: mnav-bloom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes mnav-bounce {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-4px) scale(1.12); }
    70% { transform: translateY(1px) scale(0.97); }
    100% { transform: translateY(0) scale(1); }
  }
  @keyframes mnav-bloom {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
  }

  /* Центральна кнопка «Продати» */
  .mobile-nav .mnav-action {
    position: relative; overflow: hidden; flex: 0 0 auto;
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
    height: 48px; padding: 0 18px; margin: 0 4px; border-radius: 24px;
    background: linear-gradient(135deg, #2663F0 0%, #4D7DF5 100%); color: #fff;
    box-shadow: 0 8px 24px rgba(38, 99, 240, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }
  .mobile-nav .mnav-action::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg); animation: mnav-shine 4.8s ease-in-out 1.2s infinite;
  }
  @keyframes mnav-shine {
    0%, 70% { left: -60%; }
    100% { left: 130%; }
  }
  .mobile-nav .mnav-action svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .mobile-nav .mnav-action span { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
  .mobile-nav .mnav-action:active { transform: translateY(1px) scale(0.95); box-shadow: 0 4px 12px rgba(38, 99, 240, 0.22); }
  .mobile-nav .mnav-action.active { filter: brightness(1.08); box-shadow: 0 10px 28px rgba(38, 99, 240, 0.45); }
  .mobile-nav .mnav-action.active svg { transform: rotate(90deg); }
  @media (hover: hover) {
    .mobile-nav .mnav-item:hover { color: var(--mnav-hover); }
    .mobile-nav .mnav-action:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(38, 99, 240, 0.42); }
  }

  /* Індикатор непрочитаних */
  .mnav-dot {
    position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--red); border: 2px solid var(--mnav-bg);
  }
  .mnav-dot::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--red);
    animation: mnav-ping 1.8s ease-out infinite;
  }
  @keyframes mnav-ping {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
  }

  @media (max-width: 359px) {
    .mobile-nav .mnav-action { padding: 0 14px; }
    .mobile-nav .mnav-action span { font-size: 13px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .mobile-nav.mnav-enter, .mobile-nav .mnav-item.mnav-pop .mnav-ico svg, .mobile-nav .mnav-item.mnav-pop .mnav-ico::before,
    .mobile-nav .mnav-action::after, .mnav-dot::after { animation: none; }
  }

  /* Сторінкам — місце під плаваюче меню */
  .page { padding-bottom: calc(var(--mnav-space) + 12px); }
  #notice-root { bottom: calc(var(--mnav-space) + 4px); }

  /* Іконки ігор компактніші */
  .game-chip { width: 68px; gap: 6px; }
  .game-cover { width: 60px; height: 60px; border-radius: 17px; }
  .game-chip span { font-size: 12px; max-width: 72px; }
}

/* --- Сторінка пошуку --- */
.search-title { font-family: var(--display); font-size: 26px; margin: 8px 0 14px; }
.search-big { height: 50px; margin-bottom: 8px; background: var(--gray-5); }
html.light .search-big { background: var(--paper); border-color: var(--gray-4); }
.search-block { margin-top: 24px; }
.search-block h2 { font-size: 18px; margin: 0 0 12px; }
@media (max-width: 1023px) {
  .search-title { font-size: 22px; margin: 4px 0 12px; }
  .search-page .kind-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 14px 8px; }
  .search-page .game-chip { width: auto; }
  body.search-mode .header-search-mobile { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; font-style: normal; }

/* --- Перемикач теми: місяць ↔ сонце з анімацією --- */
.theme-switch .ts-ico {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.theme-switch.on .ts-moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-switch.on .ts-sun { opacity: 0; transform: rotate(-120deg) scale(0.3); }
.theme-switch:not(.on) .ts-moon { opacity: 0; transform: rotate(120deg) scale(0.3); }
.theme-switch:not(.on) .ts-sun { opacity: 1; transform: rotate(0) scale(1); color: #F5A524; }

@media (max-width: 1023px) {
  /* Кругла кнопка теми, як на макеті */
  .theme-switch {
    width: 42px; height: 42px; border-radius: 50%;
    background: color-mix(in srgb, var(--paper) 55%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
    transition: transform 0.15s ease, background-color 0.2s;
  }
  html.light .theme-switch { background: var(--paper); border-color: var(--gray-4); }
  .theme-switch i, .theme-switch.on i {
    inset: 0; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%;
    background: transparent; color: var(--text); transform: none;
  }
  .theme-switch svg, .theme-switch .ico { width: 20px; height: 20px; }
  .theme-switch:active { transform: scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch .ts-ico { transition: opacity 0.2s ease; }
}

/* =====================================================================
   АНІМАЦІЇ ІНТЕРФЕЙСУ
   ===================================================================== */
/* Зміна теми: нова тема розходиться колом від кнопки (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
/* Запасний варіант — плавне перетікання кольорів */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, fill 0.45s ease, box-shadow 0.45s ease !important;
}

/* Поява сторінки при переході */
.page-enter { animation: page-in 0.4s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Поява елементів по черзі при прокрутці */
.rv { opacity: 0; translate: 0 18px; }
.rv.rv-in {
  opacity: 1; translate: 0 0;
  transition: opacity 0.5s ease, translate 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--rv-i, 0) * 45ms);
}

/* Картки товарів */
.card .card-media { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease; }
.card .card-game-ico { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.card .card-cover { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card .card-title { transition: color 0.2s ease; }
@media (hover: hover) {
  .game-chip .game-cover { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s; }
  .game-chip:hover .game-cover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
  .cat-chip .cat-ico { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .cat-chip:hover .cat-ico { transform: rotate(-8deg) scale(1.12); }
}
/* Тач: легке «натискання» */
.card:active .card-media { transform: scale(0.97); transition-duration: 0.12s; }
.game-chip:active .game-cover { transform: scale(0.92); transition: transform 0.12s ease; }
.btn, .chip, .sub-tab, .earn-card, .raffle-card .r-buy { transition-property: transform, background-color, color, border-color, box-shadow, opacity; }
.btn:active, .chip:active, .sub-tab:active, .cat-chip:active, .r-buy:active { transform: scale(0.97); }

/* Модалки: поява */
.modal-backdrop { animation: mb-in 0.22s ease both; }
.modal:not(.is-sheet) { animation: modal-in 0.32s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
@keyframes mb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .page-enter, .modal-backdrop, .modal:not(.is-sheet) { animation: none; }
  .rv { opacity: 1; translate: none; }
  .card .card-media, .card .card-game-ico, .card .card-cover { transition: none; }
}

/* --- Телефон: кнопки угоди — звичайна частина сторінки, без закріпленої панелі --- */
@media (max-width: 1023px) {
  body.deal-mode .deal-page { padding-bottom: calc(var(--mnav-space) + 12px); }
  .deal-page .deal-actions {
    position: static; left: auto; right: auto; bottom: auto; z-index: auto; max-width: none;
    margin: 16px 0 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* =====================================================================
   ЧАТИ НА ТЕЛЕФОНІ — компактно, як у месенджерах
   ===================================================================== */
@media (max-width: 1023px) {
  /* --- Список чатів --- */
  body.chats-mode .sidebar-head { padding: 14px 16px 8px; }
  body.chats-mode .chats-title { font-size: 22px; }
  body.chats-mode .chat-list { padding: 0 8px 8px; }
  body.chats-mode .chat-row { gap: 12px; padding: 10px 10px; border-radius: 16px; margin-bottom: 2px; }
  body.chats-mode .chat-row .c-avatar { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
  body.chats-mode .chat-row .c-avatar.circle { border-radius: 50%; }
  body.chats-mode .chat-row .c-name { font-size: 15px; }
  body.chats-mode .chat-row .c-preview { font-size: 13px; }
  body.chats-mode .chat-row .c-time { font-size: 12px; }
  body.chats-mode .chat-row:active { background: color-mix(in srgb, var(--text) 6%, transparent); }

  /* --- Шапка переписки --- */
  body.chats-mode .t-head { min-height: 56px; padding: 8px 12px 8px 8px; gap: 6px; }
  body.chats-mode .t-back { width: 40px; height: 40px; margin-left: 0; }
  body.chats-mode .t-head .c-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  body.chats-mode .t-head .c-avatar.circle { border-radius: 50%; }
  body.chats-mode .t-title { font-size: 15px; }
  body.chats-mode .t-status { font-size: 12px; }
  body.chats-mode .t-more { width: 40px; height: 40px; }
  /* Глобальний перемикач звуку — у налаштуваннях і в меню «⋮» співрозмовника; тут лише займав місце */
  body.chats-mode .chat-push { display: none; }

  /* Картка товару — в один рядок */
  body.chats-mode .chat-lot { margin: 0 12px 6px; padding: 6px 10px 6px 6px; gap: 10px; border-radius: 14px; }
  body.chats-mode .chat-lot-img { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
  body.chats-mode .chat-lot-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }
  body.chats-mode .chat-lot-kicker { font-size: 11px; }
  body.chats-mode .chat-lot-price { font-size: 14px; }

  /* --- Повідомлення --- */
  body.chats-mode .messages-scroll { padding-left: 12px; padding-right: 12px; }
  body.chats-mode .msg-group { max-width: 84%; }
  body.chats-mode .bubble { padding: 10px 14px; font-size: 15px; line-height: 1.45; border-radius: 18px; }
  body.chats-mode .msg-group.theirs .bubble { border-bottom-left-radius: 6px; }
  body.chats-mode .msg-group.mine .bubble { border-bottom-right-radius: 6px; }
  body.chats-mode .msg-time { font-size: 11px; }
  body.chats-mode .msg-more { display: none; }
  body.chats-mode .msg-author.is-peer { display: none; }
  body.chats-mode .msg-group[data-msg] .bubble { cursor: pointer; -webkit-user-select: text; user-select: text; }
  body.chats-mode .msg-group[data-msg] .bubble:active { filter: brightness(0.92); }
  body.chats-mode .msg-group.system { font-size: 12px; }
  body.chats-mode .chat-date { font-size: 12px; }

  /* Картка оголошення в переписці — компактна, горизонтальна */
  body.chats-mode .msg-listing { max-width: 88%; }
  body.chats-mode .msg-share { display: grid; grid-template-columns: 84px minmax(0, 1fr); border-radius: 16px; }
  body.chats-mode .msg-share-art { height: auto; min-height: 84px; }
  body.chats-mode .msg-share-art img { width: 100%; height: 100%; object-fit: cover; }
  body.chats-mode .msg-share-body { padding: 10px 12px; gap: 4px; min-width: 0; }
  body.chats-mode .msg-share-title { font-size: 14px; line-height: 1.3; }
  body.chats-mode .msg-share-kicker { font-size: 11px; }
  body.chats-mode .msg-share-price { font-size: 14px; }
  body.chats-mode .msg-share-go { font-size: 12px; }

  /* --- Теми підтримки: один рядок, гортається вбік --- */
  body.chats-mode .faq-block { margin: 0 0 6px; padding: 8px 0 6px; border-radius: 0; border-left: 0; border-right: 0; max-height: none; overflow: visible; }
  body.chats-mode .faq-head { padding: 0 14px; }
  body.chats-mode .faq-head-txt em { display: none; }
  body.chats-mode .faq-head-txt b { font-size: 13px; }
  body.chats-mode .faq-grid { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 8px; padding: 8px 14px 2px; }
  body.chats-mode .faq-grid::-webkit-scrollbar { display: none; }
  body.chats-mode .faq-chip { flex: 0 0 auto; max-width: none; white-space: nowrap; padding: 6px 12px 6px 6px; gap: 8px; border-radius: 14px; font-size: 13px; }
  body.chats-mode .faq-ico { width: 28px; height: 28px; font-size: 15px; border-radius: 9px; }
  body.chats-mode .faq-block.is-hidden .faq-grid { display: none; }

  /* --- Поле вводу --- */
  body.chats-mode .composer-area { padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  body.chats-mode .composer-row { gap: 8px; align-items: flex-end; }
  body.chats-mode .composer-field { padding: 10px 16px; border-radius: 22px; min-height: 44px; display: flex; align-items: center; }
  body.chats-mode .composer-input { font-size: 16px; min-height: 22px; }
  body.chats-mode .btn-attach, body.chats-mode .btn-send { width: 44px; height: 44px; flex-basis: 44px; margin-bottom: 0; }
  body.chats-mode .btn-send:active { transform: scale(0.9); }
  body.chats-mode .tpl-bar { gap: 6px; }
  body.chats-mode .tpl-chip { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 15px; }
  body.chats-mode .reply-bar { padding: 6px 10px; border-radius: 12px; }

  /* Спливаючі повідомлення не налазять на меню / поле вводу */
  body.chats-mode #notice-root { bottom: calc(var(--mnav-space) + 4px); }
  body.chats-mode:has(.chats-page.thread-open) #notice-root { bottom: 84px; }
}

/* =====================================================================
   ПРОФІЛЬ НА ТЕЛЕФОНІ — компактний кабінет у стилі застосунку
   ===================================================================== */
@media (max-width: 1023px) {
  .profile-page { width: calc(100% - 24px); padding: 8px 0 28px; }

  /* --- Шапка профілю --- */
  .profile-hero { padding: 16px; gap: 14px; border-radius: 22px; margin-bottom: 14px; flex-direction: column; align-items: stretch; }
  .profile-hero::before { width: 200px; height: 200px; top: -70px; right: -60px; }
  .hero-user { gap: 14px; }
  .profile-hero .ava-large { width: 60px; height: 60px; font-size: 22px; border-radius: 18px; }
  .profile-hero .ava-cam { width: 24px; height: 24px; right: -4px; bottom: -4px; }
  .profile-hero .ava-cam svg { width: 12px; height: 12px; }
  .profile-hero .user-info { min-width: 0; flex: 1; }
  .profile-hero .user-info h1 { font-size: 20px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-hero .user-meta { gap: 6px; margin: 2px 0 2px; }
  .profile-page .profile-hero .stars { font-size: 12px; }
  .profile-page .profile-hero .stars span { font-size: 12px; margin-left: 4px; }
  .profile-hero .p-since { font-size: 12px; }
  .hero-actions, .hero-side { width: 100%; }
  .hero-actions.is-guest > .btn, .hero-side > .btn { flex: 1 1 0; justify-content: center; height: 44px; }
  .hero-actions .guest-btns { display: flex; gap: 10px; width: 100%; }
  .hero-actions .guest-btns > .btn { flex: 1 1 auto; height: 44px; justify-content: center; border-radius: 14px; }
  .hero-actions .guest-btns > .friend-mark, .hero-actions .guest-btns > [data-friend-add] { flex: 0 0 44px; width: 44px; height: 44px; }

  /* Баланс: один рядок, кнопка праворуч */
  .wallet-pill,
  html.light .wallet-pill {
    flex: 1; flex-wrap: nowrap; gap: 10px; min-width: 0; min-height: 0;
    padding: 10px 10px 10px 12px; border-radius: 18px;
  }
  .wallet-pill .w-info { flex: 1 1 auto; min-width: 0; gap: 10px; padding: 0; }
  .wallet-pill .w-ico { width: 40px; height: 40px; border-radius: 13px; }
  .wallet-pill .w-ico svg { width: 19px; height: 19px; }
  .wallet-pill .w-label { font-size: 11px; }
  .wallet-pill .w-sum { font-size: 21px; overflow: hidden; text-overflow: ellipsis; }
  .wallet-pill .w-add { flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; }
  .wallet-pill .w-add:active { transform: scale(0.95); }

  /* --- Вкладки: стрічка «чипсів» на всю ширину --- */
  .nav-container { margin: 0 -12px 16px; padding: 0; min-height: 0; }
  .profile-nav-track { padding: 2px 12px; gap: 4px; scroll-padding-inline: 12px; }
  .profile-nav-track::before, .profile-nav-track::after { content: ""; flex: 0 0 1px; }
  .profile-nav-item { height: 40px; padding: 0 14px; gap: 7px; border-radius: 14px; font-size: 14px; }
  .profile-nav-item svg { width: 16px; height: 16px; }
  .profile-nav-item:active { transform: scale(0.95); }
  .profile-nav-pill { height: 40px; top: 2px; border-radius: 14px; }
  .profile-nav-item .nav-count { min-width: 17px; height: 17px; font-size: 10px; }

  /* --- Заголовок розділу --- */
  .pane-head { margin-bottom: 14px; gap: 10px; }
  .pane-title { font-size: 19px; gap: 8px; }
  .pane-head .sub-tabs { padding: 3px; border-radius: 11px; }
  .pane-head .sub-tab { padding: 6px 12px; font-size: 12px; }

  /* --- Гаманець: головна картка + дві малі поруч --- */
  .wallet-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  .bento-card { padding: 14px; border-radius: 18px; min-width: 0; }
  .bento-card::after { width: 70px; height: 70px; right: -18px; bottom: -18px; }
  .bento-card.primary { grid-column: 1 / -1; padding: 18px; }
  .b-label { font-size: 12px; margin-bottom: 4px; line-height: 1.3; }
  .b-value { font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
  .bento-card.primary .b-value { font-size: 30px; }
  .bento-actions { margin-top: 14px; }
  .bento-card.primary .bento-actions .btn { height: 44px; border-radius: 14px; }

  /* Промокод */
  .promo-box { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px 16px 20px; border-radius: 20px; margin-bottom: 18px; }
  .promo-copy b { font-size: 16px; }
  .promo-copy .muted { font-size: 13px; }
  .promo-row { min-width: 0; padding: 4px 4px 4px 14px; }
  .promo-entry { font-size: 16px; height: 40px; }
  .promo-row .btn { padding: 0 14px; font-size: 14px; }

  /* --- Операції / угоди: компактні рядки --- */
  .history-header { font-size: 16px; margin-bottom: 10px; }
  .deal-list { gap: 8px; }
  .deal-row { flex-wrap: nowrap; gap: 10px; padding: 10px 12px; border-radius: 16px; }
  .deal-row:active { transform: scale(0.985); }
  .deal-main { min-width: 0; gap: 10px; }
  .deal-avatar { width: 38px; height: 38px; border-radius: 12px; }
  .deal-text { min-width: 0; }
  .deal-text h4 {
    font-size: 14px; line-height: 1.3; margin-bottom: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .deal-text .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .deal-meta {
    width: auto; margin: 0; padding: 0; border: 0; flex-shrink: 0;
    flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px;
    font-size: 14px; white-space: nowrap;
  }
  .deal-meta .status { font-size: 9px; padding: 3px 7px; letter-spacing: 0.3px; }

  /* --- Товари, порожні стани --- */
  .profile-page .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-page .lot-grid { gap: 10px; }
  .profile-page .empty-box { padding: 28px 18px; border-radius: 20px; gap: 8px; }
  .profile-page .empty-box .empty-icon { font-size: 34px; }
  .profile-page .empty-box h3 { font-size: 16px; }
  .profile-page .empty-box .muted { font-size: 13px; }

  /* --- Налаштування --- */
  .profile-page .settings-section { border-radius: 18px; }
  .profile-page .setting-row { gap: 12px; padding: 12px 14px; }
  .profile-page .setting-row b, .profile-page .setting-row strong { font-size: 14px; }
  .profile-page .setting-row .muted, .profile-page .setting-row p { font-size: 12px; }

  /* --- Друзі --- */
  .friend-card { padding: 12px; gap: 10px; border-radius: 16px; }
}

@media (max-width: 359px) {
  .wallet-pill .w-ico { display: none; }
  .wallet-pill .w-add { padding: 0 12px; }
  .bento-card.primary .b-value { font-size: 26px; }
}

/* =====================================================================
   РЯДОК КАТЕГОРІЙ — текст + іконка, підкреслення
   ===================================================================== */
.cats-row .cats-scroll {
  position: relative;
  border-bottom: 0;
  padding: 0 44px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.cats-row .cats-track {
  gap: 30px;
  padding: 0;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--text) 9%, transparent);
}
.cats-row .cat-chip {
  height: 52px;
  padding: 0 2px;
  gap: 9px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.cats-row .cat-chip .cat-ico {
  width: 22px; height: 22px;
  color: var(--blue);
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cats-row .cat-chip::after {
  left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px 2px 0 0;
  background: var(--blue);
  opacity: 1;
  transform: scaleX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .cats-row .cat-chip:hover { color: var(--text); }
  .cats-row .cat-chip:hover::after { opacity: 1; transform: scaleX(1); }
  .cats-row .cat-chip:hover .cat-ico { opacity: 1; transform: translateY(-1px) rotate(-6deg) scale(1.08); }
}
.cats-row .cat-chip:active { transform: none; color: var(--text); }
.cats-row .cat-chip:focus-visible { outline: none; color: var(--text); }
.cats-row .cat-chip:focus-visible::after { transform: scaleX(1); }

/* Затемнені краї + компактні стрілки */
.cats-row::before, .cats-row::after { top: 0; height: 52px; width: 96px; transition: opacity 0.2s ease; }
.cats-row::before { background: linear-gradient(90deg, var(--fade) 40%, transparent); }
.cats-row::after { background: linear-gradient(270deg, var(--fade) 40%, transparent); }
.cats-row:has(.round-arrow.prev:disabled)::before,
.cats-row:has(.round-arrow.next:disabled)::after { opacity: 0; }
.cats-row .round-arrow {
  top: 26px; margin-top: -18px;
  width: 36px; height: 36px;
  border-width: 1px;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cats-row .round-arrow svg,
.cats-row .round-arrow .chev {
  width: 16px !important; height: 16px !important;
  min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px;
}
.cats-row .round-arrow:hover { transform: scale(1.08); }

/* Телефон: гортається пальцем від краю до краю */
@media (max-width: 1023px) {
  .cats-row, .home-page .cats-row { margin-left: -12px; margin-right: -12px; }
  .cats-row .cats-scroll { padding: 0 12px; scroll-padding-inline: 12px; scroll-behavior: auto; }
  .cats-row .cats-track { gap: 22px; }
  .cats-row .cat-chip { height: 46px; font-size: 14px; gap: 7px; }
  .cats-row .cat-chip .cat-ico { width: 20px; height: 20px; opacity: 1; }
  .cats-row .cat-chip:active { color: var(--text); }
  .cats-row .cat-chip:active::after { transform: scaleX(1); }
}

/* =====================================================================
   СПОВІЩЕННЯ — «скляна» картка з кольоровою іконкою
   ===================================================================== */
.notice.is-toast {
  --tone: var(--blue);
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: 280px;
  max-width: 440px;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(28, 30, 37, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #f2f4f7;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  animation: toastIn 0.42s cubic-bezier(0.22, 1.25, 0.36, 1) both;
}
.notice.is-toast.is-ok { --tone: var(--green); }
.notice.is-toast.is-bad { --tone: var(--red); }
.notice.is-toast.is-info { --tone: var(--blue); }
html.light .notice.is-toast,
html.light .notice.is-toast.is-ok,
html.light .notice.is-toast.is-bad,
html.light .notice.is-toast.is-info {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(20, 22, 26, 0.06);
  box-shadow: 0 16px 36px rgba(20, 22, 26, 0.14);
  color: #111318;
}
.notice-ico {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tone);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 18%, transparent);
  animation: toastIco 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}
.notice-ico svg {
  width: 18px; height: 18px;
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.notice.is-toast p { margin: 0 0 0 2px; }
.notice-life {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--tone);
  opacity: 0.85;
  transform-origin: left center;
  animation: toastLife 2.6s linear both;
}
.notice.is-toast.is-bad .notice-life { animation-duration: 3.6s; }
.notice.is-toast.is-out { animation: toastOut 0.24s ease-in both; }
.notice.is-toast.is-bad .notice-ico svg { animation: toastShake 0.45s ease 0.25s; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px) scale(0.96); }
}
@keyframes toastIco {
  from { transform: scale(0.3) rotate(-30deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes toastLife {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes toastShake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

@media (max-width: 1023px) {
  /* Сповіщення — знизу, над нижнім меню */
  #notice-root { padding-bottom: 0; }
  #toast-root { display: flex; flex-direction: column; align-items: center; }
  #toast-root:empty { display: none; }
  .notice.is-toast {
    width: 100%; min-width: 0; max-width: 480px;
    padding: 11px 16px 11px 11px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: auto;
  }

  /* Cookie — компактна картка над меню */
  .notice.is-cookie {
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    border-radius: 20px;
    background: rgba(28, 30, 37, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    font-size: 13px;
    line-height: 1.4;
  }
  html.light .notice.is-cookie { background: rgba(255, 255, 255, 0.95); box-shadow: 0 16px 36px rgba(20, 22, 26, 0.14); }
  .notice.is-cookie .notice-ok { height: 38px; min-width: 60px; padding: 0 16px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .notice.is-toast, .notice.is-toast.is-out, .notice-ico, .notice.is-toast.is-bad .notice-ico svg { animation: none; }
}

/* =====================================================================
   ПІДКАЗКА ГОРТАННЯ — край «розчиняється», якщо далі є вміст
   ===================================================================== */
.hs { --hs-l: 28px; --hs-r: 56px; }
.hs.hs-r {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--hs-r)), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--hs-r)), transparent);
}
.hs.hs-l {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--hs-l));
  mask-image: linear-gradient(90deg, transparent, #000 var(--hs-l));
}
.hs.hs-l.hs-r {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--hs-l), #000 calc(100% - var(--hs-r)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--hs-l), #000 calc(100% - var(--hs-r)), transparent);
}
/* На ПК у категорій та ігор уже є стрілки й затемнення */
@media (min-width: 1024px) {
  .cats-scroll.hs, .games-scroll.hs { -webkit-mask-image: none; mask-image: none; }
}

/* Вкладка «Репутація»: заголовок уже є над блоком */
.profile-reputation .p-rep-heading h2 { display: none; }
.profile-reputation .p-rep-top { align-items: center; }

/* Телефон: без поля пошуку — більший відступ під шапкою */
@media (max-width: 1023px) {
  body:not(.chats-mode) .header:not(:has(.header-search-mobile)) { padding-bottom: 20px; }
}

/* Сторінка закінчується підвалом — відступ під меню вже є в самому підвалі */
@media (max-width: 1023px) {
  .page:has(> .footer:last-child) { padding-bottom: 0; }
}

/* =====================================================================
   ЮРИДИЧНІ СТОРІНКИ НА ТЕЛЕФОНІ — сітка плиток замість стрічки
   ===================================================================== */
@media (max-width: 1023px) {
  .legal-chips {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 24px);
    margin: 4px auto 18px;
    padding: 0;
    overflow: visible;
    background: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .legal-chip,
  html.light .legal-chip {
    height: auto;
    min-height: 68px;
    padding: 10px 6px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border-radius: 18px;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }
  .legal-chip-ico {
    width: 32px; height: 32px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--text-2);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .legal-chip-ico svg { width: 17px; height: 17px; }
  .legal-chip:active { transform: scale(0.96); }
  .legal-chip.on,
  html.light .legal-chip.on {
    color: var(--text);
    background: color-mix(in srgb, var(--blue) 10%, var(--paper));
    border-color: color-mix(in srgb, var(--blue) 60%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 16%, transparent);
  }
  .legal-chip.on .legal-chip-ico { background: var(--blue); color: #fff; }
}
@media (max-width: 1023px) and (min-width: 640px) {
  .legal-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* =====================================================================
   РЕПУТАЦІЯ — картка довіри зі шкалою
   ===================================================================== */
.trust-card {
  --tc-green: #10B981;
  --tc-amber: #F59E0B;
  --tc-red: #F43F5E;
  --tc-marker: #fff;
  --tc-marker-glow: rgba(255, 255, 255, 0.35);
  --tc-stat-bg: rgba(255, 255, 255, 0.025);
  --tc-line: rgba(255, 255, 255, 0.06);
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border: 1px solid var(--tc-line);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html.light .trust-card {
  --tc-marker: #111418;
  --tc-marker-glow: rgba(17, 20, 24, 0.22);
  --tc-stat-bg: #F8FAFC;
  --tc-line: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.05);
}

/* Шапка */
.tc-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tc-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-title h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.tc-title p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.tc-score {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 32px; font-weight: 800; line-height: 1;
  color: var(--tc-green);
  text-shadow: 0 4px 12px color-mix(in srgb, currentColor 25%, transparent);
}
.tc-score span { font-size: 16px; margin-left: 1px; }
.tc-score small { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); text-shadow: none; }
.tc-score.is-mid { color: var(--tc-amber); }
.tc-score.is-bad { color: var(--tc-red); }
.trust-card.is-first .tc-score { animation: tcPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; }

/* Шкала */
.tc-gauge { position: relative; height: 32px; display: flex; align-items: center; }
.tc-track {
  position: relative; width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--tc-red) 0%, var(--tc-amber) 40%, var(--tc-green) 100%);
}
.tc-gauge.is-empty .tc-track { background: color-mix(in srgb, var(--text) 10%, transparent); }
.tc-marker {
  position: absolute; top: 50%; left: var(--pct, 0%);
  width: 20px; height: 20px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--tc-marker);
  box-shadow: 0 0 0 4px var(--tc-marker-glow), 0 4px 8px rgba(0, 0, 0, 0.3);
}
.trust-card.is-first .tc-marker { animation: tcSlide 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }

/* Лайки / дизлайки */
.tc-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--tc-line);
}
.tc-stat {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; border-radius: 16px;
  background: var(--tc-stat-bg);
  border: 1px solid var(--tc-line);
  color: var(--text); text-align: left; font: inherit;
}
button.tc-stat { cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
button.tc-stat:active { transform: scale(0.97); }
.tc-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tc-label svg { width: 15px; height: 15px; }
.tc-value { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.1; }
.tc-stat.is-pos .tc-label svg { color: var(--tc-green); }
.tc-stat.is-neg .tc-label svg { color: var(--tc-red); }
.tc-mine {
  position: absolute; top: 10px; right: 10px;
  font-style: normal; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 99px;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tc-stat.on .tc-mine { opacity: 1; transform: none; }
.tc-stat.is-pos.on { border-color: color-mix(in srgb, var(--tc-green) 55%, transparent); background: color-mix(in srgb, var(--tc-green) 9%, transparent); }
.tc-stat.is-neg.on { border-color: color-mix(in srgb, var(--tc-red) 55%, transparent); background: color-mix(in srgb, var(--tc-red) 9%, transparent); }
.tc-stat.is-pos .tc-mine { background: color-mix(in srgb, var(--tc-green) 18%, transparent); color: var(--tc-green); }
.tc-stat.is-neg .tc-mine { background: color-mix(in srgb, var(--tc-red) 18%, transparent); color: var(--tc-red); }
@media (hover: hover) {
  button.tc-stat.is-pos:hover { border-color: color-mix(in srgb, var(--tc-green) 45%, transparent); }
  button.tc-stat.is-neg:hover { border-color: color-mix(in srgb, var(--tc-red) 45%, transparent); }
}
.tc-hint { margin: -8px 0 0; font-size: 12px; color: var(--text-2); }
.tc-hint a { color: var(--blue); font-weight: 600; }

/* У профілі заголовок уже є над карткою */
.profile-reputation .tc-title h2 { display: none; }
.profile-reputation .tc-header { align-items: center; }

@keyframes tcSlide { from { left: 0%; } }
@keyframes tcPop { from { opacity: 0; transform: scale(0.6); } }

@media (max-width: 520px) {
  .trust-card { padding: 20px; border-radius: 20px; gap: 20px; }
  .tc-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-reputation .tc-header { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 14px; }
  .tc-score { font-size: 36px; }
  .tc-stats { gap: 10px; padding-top: 18px; }
  .tc-stat { padding: 14px 12px; border-radius: 14px; }
  .tc-value { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-card.is-first .tc-marker, .trust-card.is-first .tc-score { animation: none; }
}

/* =====================================================================
   НИЖНЄ МЕНЮ — активний пункт і кнопка «Продати»
   ===================================================================== */
@media (max-width: 1023px) {
  /* «Продати» завжди з білим текстом, навіть коли активна */
  .mobile-nav a.mnav-action,
  .mobile-nav a.mnav-action.active,
  .mobile-nav a.mnav-action span { color: #fff; }
  .mobile-nav .mnav-action.active {
    background: linear-gradient(135deg, #1F56D8 0%, #4D7DF5 100%);
    box-shadow: 0 0 0 3px color-mix(in srgb, #4D7DF5 28%, transparent), 0 10px 28px rgba(38, 99, 240, 0.45);
  }

  /* Активний пункт: синя капсула під іконкою + яскравий підпис */
  .mobile-nav .mnav-ico { width: 50px; height: 30px; border-radius: 15px; }
  .mobile-nav .mnav-ico::before {
    background: color-mix(in srgb, var(--blue) 20%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent);
    transform: scaleX(0.3);
  }
  .mobile-nav .mnav-item.active .mnav-ico::before { transform: none; }
  .mobile-nav .mnav-item.active .mnav-ico { color: #6E98FF; }
  html.light .mobile-nav .mnav-item.active .mnav-ico { color: var(--blue); }
  .mobile-nav .mnav-item.active .mnav-ico svg { stroke-width: 2.3; }
  .mobile-nav .mnav-item.active span { color: var(--mnav-active); font-weight: 700; }
  @keyframes mnav-bloom {
    from { opacity: 0; transform: scaleX(0.3); }
    to { opacity: 1; transform: none; }
  }
}

/* =====================================================================
   СТАТИСТИКА КАБІНЕТУ — дашборд
   ===================================================================== */
.sd-dash {
  --sd-card: color-mix(in srgb, var(--paper) 80%, transparent);
  --sd-line: rgba(255, 255, 255, 0.06);
  --sd-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  --sd-red: #FF3B30;
  --sd-red-bg: rgba(255, 59, 48, 0.1);
  --sd-green: #10B981;
  --sd-green-bg: rgba(16, 185, 129, 0.12);
  --sd-seg-on: rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; gap: 24px;
}
html.light .sd-dash {
  --sd-card: rgba(255, 255, 255, 0.92);
  --sd-line: rgba(0, 0, 0, 0.06);
  --sd-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
  --sd-red: #D62828;
  --sd-red-bg: #FFEAEE;
  --sd-green: #0F9A6B;
  --sd-green-bg: #E3F7EF;
  --sd-seg-on: #fff;
}

/* Шапка */
.sd-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.sd-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sd-title-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FF3B30, #2663F0);
  box-shadow: 0 6px 16px rgba(38, 99, 240, 0.3);
}
.sd-title-ico svg { width: 18px; height: 18px; color: #fff; stroke-width: 2.5; }
.sd-controls { display: flex; align-items: center; gap: 12px; }
.sd-range {
  display: flex; padding: 4px; border-radius: 12px;
  background: var(--sd-card); border: 1px solid var(--sd-line);
}
.sd-range button {
  border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.sd-range button.active { background: var(--sd-seg-on); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.sd-range button:not(.active):hover { color: var(--text); }
.sd-export {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 12px;
  background: transparent; border: 1px solid var(--sd-line); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sd-export:hover { background: var(--sd-card); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
.sd-export svg { width: 16px; height: 16px; }

/* KPI */
.sd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sd-kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 34px; border-radius: 20px;
  background: var(--sd-card); border: 1px solid var(--sd-line); box-shadow: var(--sd-shadow);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: transform 0.3s ease;
}
@media (hover: hover) { .sd-kpi:hover { transform: translateY(-4px); } }
.sd-kpi-lbl { position: relative; z-index: 2; font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.sd-kpi-row { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sd-kpi-val { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; white-space: nowrap; }
.sd-kpi-val span { font-size: 18px; color: var(--text-2); margin-left: 4px; }
.sd-trend {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
  background: var(--sd-red-bg); color: var(--sd-red);
}
.sd-trend.is-up { background: var(--sd-green-bg); color: var(--sd-green); }
.sd-trend svg { width: 12px; height: 12px; }
.sd-trend svg path { stroke-width: 3; }
.sd-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; opacity: 0.16; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 35%, transparent); mask-image: linear-gradient(to top, #000 35%, transparent); }
.sd-spark polyline { fill: none; stroke: var(--text); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

/* Бенто: воронка + топ */
.sd-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sd-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 24px; border-radius: 24px;
  background: var(--sd-card); border: 1px solid var(--sd-line); box-shadow: var(--sd-shadow);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.sd-card-title { margin: 0 0 22px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.sd-funnel { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sd-f-row { display: flex; align-items: center; gap: 16px; }
.sd-f-lbl { width: 92px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sd-f-track { flex: 1; height: 32px; border-radius: 8px; background: rgba(0, 0, 0, 0.18); }
html.light .sd-f-track { background: rgba(0, 0, 0, 0.04); }
.sd-f-bar {
  height: 100%; min-width: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 12px;
  background: linear-gradient(90deg, #2663F0 0%, #7424FF 100%);
  box-shadow: 0 4px 12px rgba(38, 99, 240, 0.22);
  animation: sdGrow 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.sd-f-bar span { font-family: var(--display); font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.sd-foot { margin-top: auto; padding-top: 22px; font-size: 11px; line-height: 1.5; color: var(--text-2); }
.sd-foot span { display: block; margin-top: 8px; opacity: 0.6; }

.sd-table { width: 100%; border-collapse: collapse; }
.sd-table th {
  text-align: left; padding-bottom: 14px; border-bottom: 1px solid var(--sd-line);
  font-size: 11px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em;
}
.sd-table td { padding: 14px 0; border-bottom: 1px solid var(--sd-line); font-size: 14px; font-weight: 600; }
.sd-table .right { text-align: right; }
.sd-table th.right, .sd-table td.right { padding-left: 12px; white-space: nowrap; }
.sd-lot { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sd-lot span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sd-lot-ico { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.sd-empty-row td { padding: 24px 0; text-align: center; color: var(--text-2); font-weight: 500; font-size: 13px; }

@keyframes sdGrow { from { width: 0; min-width: 0; } }

@media (max-width: 1100px) {
  .sd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-bento { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sd-dash { gap: 16px; }
  .sd-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .sd-title { font-size: 20px; }
  .sd-controls { justify-content: space-between; }
  .sd-range { flex: 1; }
  .sd-range button { flex: 1; padding: 8px 6px; }
  .sd-export { padding: 0; width: 42px; height: 42px; justify-content: center; border-radius: 12px; flex-shrink: 0; }
  .sd-export span { display: none; }
  .sd-kpis { grid-template-columns: 1fr; gap: 12px; }
  .sd-kpi { padding: 16px 16px 28px; }
  .sd-kpi-val { font-size: 24px; }
  .sd-card { padding: 16px; border-radius: 20px; }
  .sd-card-title { font-size: 16px; margin-bottom: 16px; }
  .sd-f-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sd-f-lbl { width: auto; }
  .sd-table thead { display: none; }
  .sd-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--sd-line); }
  .sd-table tr:last-child { border-bottom: 0; }
  .sd-table td { padding: 0; border: 0; font-size: 13px; }
  .sd-table td:first-child { grid-column: 1 / -1; }
  .sd-table td.right { text-align: left; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .sd-table td[data-lbl]::before { content: attr(data-lbl); font-size: 11px; font-weight: 500; color: var(--text-2); }
  .sd-table tr.sd-empty-row { display: block; }
  .sd-empty-row td { display: block; }
}
@media (prefers-reduced-motion: reduce) { .sd-f-bar { animation: none; } }

/* Статистика: фон як у макеті + цифри без тремтіння */
.sd-dash {
  --sd-card: rgba(22, 23, 31, 0.6);
  --sd-line: rgba(255, 255, 255, 0.05);
  --sd-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}
html.light .sd-dash {
  --sd-card: rgba(255, 255, 255, 0.9);
  --sd-line: rgba(0, 0, 0, 0.06);
  --sd-shadow: 0 12px 24px rgba(0, 0, 0, 0.03);
}
.sd-kpi { padding: 20px; gap: 8px; min-height: 112px; }
.sd-kpi::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(to top, transparent, var(--sd-card));
  z-index: 1; pointer-events: none;
}
.sd-spark {
  height: 60px; opacity: 0.15;
  -webkit-mask-image: none; mask-image: none;
}
.sd-spark path { fill: none; stroke: var(--text); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.sd-kpi-row { flex-wrap: nowrap; justify-content: flex-start; gap: 12px; }
.sd-kpi-val { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.sd-num { display: inline-grid; font-weight: inherit; }
.sd-num > i, .sd-num > em { grid-area: 1 / 1; font-style: normal; font-weight: inherit; }
.sd-num > i { visibility: hidden; }
.sd-trend { flex-shrink: 0; margin-bottom: 2px; white-space: nowrap; }
.sd-range, .sd-card { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
@media (max-width: 600px) {
  .sd-kpi { padding: 16px; min-height: 100px; }
}

/* Пошук у довгих випадних списках */
.sc-dd-list .sc-dd-search {
  position: sticky; top: -6px; z-index: 2;
  margin: -6px -6px 6px; padding: 8px;
  background: inherit;
  list-style: none;
}
.sc-dd-search input {
  width: 100%; height: 40px; padding: 0 14px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  color: var(--text); font: inherit; font-size: 15px;
}
.sc-dd-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.sc-dd-none { list-style: none; padding: 14px; text-align: center; font-size: 14px; color: var(--text-2); }
.sc-dd-opt[hidden], .sc-dd-none[hidden] { display: none; }

/* Ігри / Додатки: «Показати ще» та «Запропонувати» */
.kind-grid > [hidden] { display: none; }
.kind-suggest { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.kind-suggest-ico {
  background: transparent;
  border: 2px dashed color-mix(in srgb, var(--blue) 55%, transparent);
  color: var(--blue);
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.kind-suggest-ico svg { width: 30px; height: 30px; stroke-width: 2.4; }
.kind-suggest > span:last-child { color: var(--blue); font-weight: 600; font-size: 13px; max-width: none; overflow: visible; }
@media (hover: hover) {
  .kind-suggest:hover .kind-suggest-ico { background: color-mix(in srgb, var(--blue) 10%, transparent); border-color: var(--blue); transform: scale(1.05); }
}
.kind-suggest:active .kind-suggest-ico { transform: scale(0.94); }
.kind-grid > .game-chip:not([hidden]) { animation: kindIn 0.35s ease both; }
@keyframes kindIn { from { opacity: 0; transform: translateY(8px); } }

.kind-more-wrap { display: flex; justify-content: center; margin: 24px 0 8px; }
.kind-more {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 16px;
  background: var(--paper); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.kind-more[hidden] { display: none; }
.kind-more [data-kind-left] { font-weight: 500; color: var(--text-2); }
.kind-more svg { width: 18px; height: 18px; color: var(--blue); }
@media (hover: hover) { .kind-more:hover { border-color: color-mix(in srgb, var(--blue) 50%, transparent); background: color-mix(in srgb, var(--blue) 6%, var(--paper)); } }
.kind-more:active { transform: scale(0.97); }
@media (max-width: 1023px) { .kind-more { width: 100%; justify-content: center; } }

/* Вікно «Запропонувати гру» */
.suggest-form { display: flex; flex-direction: column; gap: 14px; }
.suggest-form .menu-modal-title { margin: 0; }
.suggest-form .muted { margin: -6px 0 4px; font-size: 14px; line-height: 1.45; }
.suggest-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
}
.suggest-ico svg { width: 26px; height: 26px; stroke-width: 2.4; }
.suggest-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.suggest-field i { font-style: normal; font-weight: 400; }
.suggest-field .field { height: 48px; padding: 0 14px; border-radius: 14px; font-size: 16px; }
.suggest-form .btn { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .kind-grid > .game-chip:not([hidden]) { animation: none; } }

/* =====================================================================
   СТОРІНКА ГРИ / ДОДАТКУ — мозаїчна шапка, категорії, панель фільтрів
   ===================================================================== */
.gc-page { padding-top: 12px; }

/* --- Шапка --- */
.gc-hero {
  --gc-tint: #2663F0;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px;
  min-height: 236px;
  display: flex; align-items: flex-end;
  background: #0B0D14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}
.gc-hero-bg { position: absolute; inset: 0; z-index: -1; }
/* розмита кольорова підкладка з самої іконки */
.gc-hero-bg::before {
  content: ""; position: absolute; inset: -30%;
  background: var(--gc-art, none) center / cover no-repeat, var(--gc-tint);
  filter: blur(60px) saturate(1.8);
  opacity: 1;
}
/* мозаїка з іконки, повернута під кутом */
.gc-hero-bg i {
  position: absolute; top: -60%; right: -12%; width: 78%; height: 220%;
  background-image: var(--gc-art, none);
  background-size: 88px 88px;
  background-repeat: repeat;
  transform: rotate(-16deg);
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  animation: gcDrift 40s linear infinite;
}
.gc-hero.no-art .gc-hero-bg i { display: none; }
/* затемнення для читабельності тексту */
.gc-hero-bg b {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.85) 0%, rgba(8, 10, 16, 0.45) 50%, rgba(8, 10, 16, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 10, 16, 0.6), transparent 60%);
}
@keyframes gcDrift { from { background-position: 0 0; } to { background-position: 88px 176px; } }

.gc-hero-in { position: relative; width: 100%; padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 26px; }
.gc-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.gc-crumbs a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
.gc-crumbs a:hover { color: #fff; }
.gc-crumbs span { opacity: 0.5; }

.gc-hero-main { display: flex; align-items: center; gap: 20px; }
.gc-ico { position: relative; flex-shrink: 0; }
.gc-ico::after {
  content: ""; position: absolute; inset: 8px; border-radius: 30px; z-index: -1;
  background: var(--gc-art, none) center / cover, var(--gc-tint);
  filter: blur(22px) saturate(1.6); opacity: 0.7;
}
.gc-ico .game-cover {
  width: 96px; height: 96px; border-radius: 26px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 16px 32px rgba(0, 0, 0, 0.45);
}
.gc-hero-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gc-kind {
  align-self: flex-start;
  padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.gc-hero-txt h1 {
  margin: 0; color: #fff;
  font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  overflow-wrap: anywhere;
}
.gc-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.gc-stats b { color: #fff; font-weight: 700; }
.gc-stats .is-live { display: inline-flex; align-items: center; gap: 6px; }
.gc-stats .is-live i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); animation: gcPulse 2s ease-in-out infinite; }
@keyframes gcPulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

.gc-sell {
  flex-shrink: 0; align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 16px;
  background: #fff; color: #0B0D14;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gc-sell svg { width: 18px; height: 18px; stroke-width: 2.6; }
@media (hover: hover) { .gc-sell:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); } }
.gc-sell:active { transform: scale(0.96); }

/* --- Вкладки категорій --- */
.gc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: 14px; }
.gc-tabs::-webkit-scrollbar { display: none; }
.gc-tab {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 8px 0 14px; border-radius: 16px;
  background: var(--paper); color: var(--text-2);
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  font-size: 14px; font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.gc-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.gc-tab em {
  font-style: normal; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text-2);
}
@media (hover: hover) { .gc-tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--blue) 40%, transparent); } }
.gc-tab:active { transform: scale(0.96); }
.gc-tab.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #2663F0, #6A3BFF);
  box-shadow: 0 10px 24px rgba(38, 99, 240, 0.35);
}
.gc-tab.on em { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* --- Панель пошуку та фільтрів --- */
.gc-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  padding: 10px; border-radius: 20px;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  margin-bottom: 16px;
}
.gc-search { position: relative; display: flex; align-items: center; }
.gc-search-ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.gc-search input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid transparent; color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gc-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.gc-quicks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gc-quicks::-webkit-scrollbar { display: none; }
.gc-quick {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gc-quick svg { width: 16px; height: 16px; color: var(--text-2); }
.gc-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
@media (hover: hover) { .gc-quick:hover { border-color: color-mix(in srgb, var(--blue) 40%, transparent); } }
.gc-quick.on { background: color-mix(in srgb, var(--blue) 14%, transparent); border-color: color-mix(in srgb, var(--blue) 55%, transparent); color: var(--text); }
.gc-quick.on svg { color: var(--blue); }

.gc-price {
  grid-column: 1 / -1;
  display: none; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end;
  padding: 12px 4px 4px; border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}
.gc-price.is-open { display: grid; animation: gcOpen 0.25s ease; }
.gc-price label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.gc-price .field { height: 44px; border-radius: 12px; }
.gc-price .btn { height: 44px; border-radius: 12px; padding: 0 20px; }
@keyframes gcOpen { from { opacity: 0; transform: translateY(-6px); } }

.gc-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.gc-result b { color: var(--text); }
.gc-result a { color: var(--blue); font-weight: 600; }
.gc-sort { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.gc-sort svg { width: 16px; height: 16px; color: var(--text-2); }
.gc-sort select {
  appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; padding: 6px 2px;
}
.gc-sort select option { background: var(--paper); color: var(--text); }

/* --- Порожньо --- */
.gc-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 48px 20px; border-radius: 24px;
  border: 1px dashed color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.gc-empty-ico .game-cover { width: 64px; height: 64px; border-radius: 18px; opacity: 0.9; filter: grayscale(0.2); }
.gc-empty h3 { margin: 6px 0 0; font-size: 18px; }
.gc-empty p { margin: 0 0 6px; max-width: 360px; color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* --- Світла тема --- */
html.light .gc-hero { border-color: transparent; box-shadow: 0 20px 44px rgba(20, 22, 26, 0.18); }

/* --- Телефон --- */
@media (max-width: 1023px) {
  .gc-page { padding-top: 4px; }
  .gc-hero { border-radius: 24px; min-height: 0; margin-bottom: 14px; }
  .gc-hero-in { padding: 16px 16px 18px; gap: 16px; }
  .gc-hero-bg i { width: 120%; right: -40%; background-size: 64px 64px; opacity: 0.16; }
  .gc-hero-bg b { background: linear-gradient(180deg, rgba(8, 10, 16, 0.15), rgba(8, 10, 16, 0.55) 45%, rgba(8, 10, 16, 0.85) 100%); }
  .gc-hero-main { flex-wrap: wrap; gap: 14px; }
  .gc-ico .game-cover { width: 72px; height: 72px; border-radius: 20px; }
  .gc-hero-txt { flex: 1 1 calc(100% - 90px); gap: 6px; }
  .gc-hero-txt h1 { font-size: 24px; }
  .gc-stats { font-size: 13px; gap: 4px 14px; }
  .gc-sell { flex: 1 1 100%; justify-content: center; height: 48px; }
  .gc-tabs { margin: 0 -12px 12px; padding: 2px 12px 4px; }
  .gc-tab { height: 42px; padding: 0 6px 0 12px; border-radius: 14px; font-size: 13px; }
  .gc-tab em { min-width: 24px; height: 24px; font-size: 11px; }
  .gc-bar { grid-template-columns: 1fr; padding: 8px; border-radius: 18px; }
  .gc-quicks { margin: 0 -8px; padding: 0 8px; }
  .gc-quick { height: 40px; padding: 0 12px; font-size: 13px; }
  .gc-price { grid-template-columns: 1fr 1fr; }
  .gc-price .btn { grid-column: 1 / -1; }
  .gc-result { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-hero-bg i, .gc-stats .is-live i { animation: none; }
}
.gc-ico::after { display: none; }

/* Сторінка гри на телефоні: легкі вкладки, окремий пошук, фільтри сіткою */
.gc-quick small { font-size: 12px; font-weight: 600; color: var(--blue); }
@media (max-width: 1023px) {
  .gc-tabs { gap: 6px; margin-bottom: 12px; }
  .gc-tab { height: 38px; padding: 0 12px; gap: 6px; border-radius: 12px; font-size: 13px; }
  .gc-tab svg { width: 16px; height: 16px; }
  .gc-tab em { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; font-size: 12px; font-weight: 700; color: var(--text-2); opacity: 0.8; }
  .gc-tab.on em { background: none; color: #fff; opacity: 0.75; }

  .gc-bar { background: none; border: 0; padding: 0; border-radius: 0; gap: 10px; margin-bottom: 14px; }
  .gc-search input {
    height: 48px; border-radius: 16px; font-size: 16px;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  }
  .gc-quicks {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    overflow: visible; margin: 0; padding: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .gc-quick {
    flex-direction: column; justify-content: center; gap: 5px;
    height: 62px; padding: 8px 4px; border-radius: 16px; min-width: 0;
    background: var(--paper);
    border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
    font-size: 12px; font-weight: 600; color: var(--text-2);
  }
  .gc-quick svg { width: 20px; height: 20px; }
  .gc-quick .gc-dot { width: 10px; height: 10px; margin: 5px 0; }
  .gc-quick span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .gc-quick small { display: none; }
  .gc-quick.on { color: var(--text); background: color-mix(in srgb, var(--blue) 12%, var(--paper)); }
  .gc-quick.on::after {
    content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  }
  .gc-quick { position: relative; }
  .gc-price { padding: 12px; border: 1px solid color-mix(in srgb, var(--text) 7%, transparent); border-radius: 18px; background: var(--paper); }
}

/* =====================================================================
   СТОРІНКА ГРИ НА ТЕЛЕФОНІ v2 — таби з підкресленням, пошук + панель фільтрів
   ===================================================================== */
.gc-filter-btn, .gc-active { display: none; }
@media (max-width: 1023px) {
  /* Вкладки: текст із синьою смужкою */
  .gc-tabs {
    gap: 22px; margin: 0 -12px 14px; padding: 0 12px;
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  }
  .gc-tab, .gc-tab.on {
    position: relative; height: 44px; padding: 0; gap: 6px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    font-size: 14px; font-weight: 700; color: var(--text-2);
  }
  .gc-tab svg { display: none; }
  .gc-tab em, .gc-tab.on em { background: none; padding: 0; min-width: 0; height: auto; font-size: 12px; font-weight: 600; color: var(--text-2); opacity: 0.7; }
  .gc-tab.on { color: var(--text); }
  .gc-tab.on em { color: var(--blue); opacity: 1; }
  .gc-tab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--blue); transform: scaleX(0); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .gc-tab.on::after { transform: scaleX(1); }

  /* Пошук з кнопкою фільтрів усередині */
  .gc-bar { margin-bottom: 10px; }
  .gc-quicks, .gc-price, .gc-sort { display: none !important; }
  .gc-search input { padding-right: 60px; }
  .gc-filter-btn {
    position: absolute; right: 5px; top: 5px; bottom: 5px;
    display: grid; place-items: center; width: 44px; border-radius: 12px;
    background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text);
    border: 0; cursor: pointer;
  }
  .gc-filter-btn svg { width: 20px; height: 20px; }
  .gc-filter-btn.on { background: var(--blue); color: #fff; }
  .gc-filter-btn.on svg circle { fill: var(--blue); }
  .gc-filter-btn em {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
    display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800;
    background: #fff; color: var(--blue); box-shadow: 0 0 0 2px var(--bg);
  }
  .gc-filter-btn:active { transform: scale(0.92); }

  /* Активні фільтри */
  .gc-active { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 12px; }
  .gc-active::-webkit-scrollbar { display: none; }
  .gc-active-chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 8px 0 12px; border-radius: 99px;
    background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--text);
    font-size: 13px; font-weight: 600;
  }
  .gc-active-chip svg { width: 14px; height: 14px; color: var(--text-2); }
  .gc-result { margin-bottom: 12px; }
}

/* Нижня панель фільтрів */
.modal-backdrop:has(.gc-sheet) { place-items: end center; padding: 0; }
.modal.gc-sheet {
  width: min(520px, 100%); padding: 0; border-radius: 26px 26px 0 0;
  background: var(--paper); max-height: 88vh; display: flex; flex-direction: column;
  animation: gcSheetUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) {
  .modal-backdrop:has(.gc-sheet) { place-items: center; padding: 16px; }
  .modal.gc-sheet { border-radius: 26px; }
}
@keyframes gcSheetUp { from { transform: translateY(40px); opacity: 0; } }
.gc-sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.gc-sheet-grab { width: 40px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--text) 18%, transparent); margin: 10px auto 0; }
.gc-sheet-head { position: relative; padding: 12px 20px 8px; }
.gc-sheet-head h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; }
.gc-sheet-head .modal-x { top: 8px; right: 14px; }
.gc-sheet-body { overflow-y: auto; padding: 8px 20px 16px; }
.gc-group { border-radius: 18px; background: color-mix(in srgb, var(--text) 4%, transparent); overflow: hidden; }
.gc-row { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.gc-row + .gc-row { border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.gc-row-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.gc-row-ico svg { width: 18px; height: 18px; }
.gc-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-row-txt b { font-size: 15px; font-weight: 600; }
.gc-row-txt small { font-size: 12px; color: var(--text-2); }
.gc-sheet-sub { margin: 20px 0 10px; font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.gc-sheet-price { display: flex; align-items: center; gap: 10px; }
.gc-sheet-price .field { flex: 1; min-width: 0; height: 48px; border-radius: 14px; font-size: 16px; }
.gc-sheet-price span { color: var(--text-2); }
.gc-sort-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gc-sort-opt { position: relative; cursor: pointer; }
.gc-sort-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gc-sort-opt span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 6px 10px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1.5px solid transparent; font-size: 14px; font-weight: 600; color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.gc-sort-opt input:checked + span { border-color: var(--blue); color: var(--text); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.gc-sheet-foot {
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}
.gc-sheet-foot .btn { height: 50px; justify-content: center; border-radius: 16px; font-size: 15px; }
/* Поки відкрите вікно — банер cookie не заважає */
body.modal-open #cookie-root { display: none; }

/* =====================================================================
   СТОРІНКА КАТЕГОРІЇ
   ===================================================================== */
.cat-hero .gc-hero-bg::before {
  background: radial-gradient(120% 140% at 0% 100%, var(--gc-tint), transparent 60%), radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--gc-tint) 60%, #7424FF), transparent 70%), #0B0D14;
  filter: none; inset: 0; opacity: 0.85;
}
.cat-collage {
  position: absolute; top: -20px; right: -20px; bottom: -20px; width: 58%; z-index: -1;
  display: grid; grid-template-columns: repeat(5, 72px); grid-auto-rows: 72px; gap: 14px;
  justify-content: end; align-content: center;
  transform: rotate(-12deg);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.cat-collage img {
  width: 72px; height: 72px; border-radius: 20px; object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  animation: catFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.45s);
}
.cat-collage img:nth-child(even) { transform: translateY(30px); }
@keyframes catFloat { 50% { translate: 0 -8px; } }
.cat-ico {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: 28px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--gc-tint), color-mix(in srgb, var(--gc-tint) 45%, #0B0D14));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 16px 32px rgba(0, 0, 0, 0.45);
}
.cat-ico-svg { width: 48px; height: 48px; }
.cat-lead { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }

.cat-sec-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 14px; }
.cat-sec-head h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; }
.cat-sec-head span { font-size: 14px; font-weight: 700; color: var(--text-2); }
.cat-games .kind-more-wrap { margin-top: 18px; }
.cat-products .cat-sec-head { margin-top: 30px; }

.cat-empty-ico {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--gc-tint), color-mix(in srgb, var(--gc-tint) 45%, #0B0D14));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--gc-tint) 35%, transparent);
}
.cat-empty-ico .cat-ico-svg { width: 36px; height: 36px; }

@media (max-width: 1023px) {
  .cat-collage { width: 100%; right: -45%; grid-template-columns: repeat(4, 56px); grid-auto-rows: 56px; gap: 10px; opacity: 0.35; }
  .cat-collage img { width: 56px; height: 56px; border-radius: 16px; }
  .cat-ico { width: 72px; height: 72px; border-radius: 22px; }
  .cat-ico-svg { width: 36px; height: 36px; }
  .cat-lead { font-size: 13px; }
  .cat-sec-head { margin: 22px 0 12px; }
  .cat-sec-head h2 { font-size: 19px; }
  .cat-products .cat-sec-head { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cat-collage img { animation: none; } }

/* =====================================================================
   АВТОВИДАЧА — редактор
   ===================================================================== */
.ab-back {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px 0 10px; margin-bottom: 14px; border-radius: 99px;
  background: var(--paper); color: var(--text-2); font-size: 14px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ab-back svg { width: 16px; height: 16px; }
.ab-back:hover { color: var(--text); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }

.ab-card {
  max-width: 820px;
  border-radius: 26px; overflow: hidden;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

/* Шапка */
.ab-head {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--orange, #FF640A) 16%, transparent), transparent 55%),
    radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 60%);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}
.ab-art { width: 72px; height: 72px; flex-shrink: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.ab-art > * { width: 100%; height: 100%; }
.ab-art img { width: 100%; height: 100%; object-fit: cover; }
.ab-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ab-head-txt h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ab-title { margin: 0; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ab-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.ab-meta img { width: 16px; height: 16px; border-radius: 5px; margin-left: -4px; }
.ab-meta .is-price { color: var(--text); background: color-mix(in srgb, var(--green) 14%, transparent); }

.ab-badge {
  --c: var(--text-2);
  align-self: flex-start; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.ab-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ab-badge.is-ok { --c: #22C55E; }
.ab-badge.is-ok i { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); animation: gcPulse 2s ease-in-out infinite; }
.ab-badge.is-wait { --c: #F59E0B; }
.ab-badge.is-bad { --c: #F43F5E; }

/* Статус */
.ab-note {
  --c: #22C55E;
  display: flex; align-items: flex-start; gap: 12px;
  margin: 18px 24px 0; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.ab-note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--c); margin-top: 1px; }
.ab-note p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.ab-note.is-wait { --c: #F59E0B; }
.ab-note.is-bad { --c: #F43F5E; }

/* Кроки */
.ab-steps { display: flex; align-items: center; gap: 0; margin: 20px 24px 4px; padding: 0; list-style: none; }
.ab-step { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ab-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 10px; border-radius: 2px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.ab-step.done:not(:last-child)::after { background: var(--blue); }
.ab-step i {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-2);
}
.ab-step i svg { width: 15px; height: 15px; stroke-width: 3; }
.ab-step.on { color: var(--text); }
.ab-step.on i { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.ab-step.done { color: var(--text); }
.ab-step.done i { background: var(--blue); color: #fff; }

/* Секції */
.ab-form { display: flex; flex-direction: column; }
.ab-sec { padding: 20px 24px 4px; }
.ab-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ab-sec-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
}
.ab-sec-ico svg { width: 18px; height: 18px; }
.ab-sec-title { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.ab-sec-title em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.ab-sec-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }

.ab-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ab-tpl {
  height: 32px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600;
  border: 1px dashed color-mix(in srgb, var(--text) 18%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ab-tpl::before { content: "+ "; color: var(--blue); }
.ab-tpl:hover { color: var(--text); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }

.ab-text-wrap { position: relative; }
.ab-text {
  display: block; width: 100%; min-height: 150px; resize: vertical;
  padding: 16px 16px 30px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 70%, #000 30%);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html.light .ab-text { background: #F6F8FB; }
.ab-text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.ab-count { position: absolute; right: 14px; bottom: 10px; font-size: 11px; font-weight: 600; color: var(--text-2); pointer-events: none; }

/* Файли */
.ab-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 16px; border-radius: 18px; cursor: pointer; text-align: center;
  border: 2px dashed color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--text) 2%, transparent);
  color: var(--text-2); font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ab-drop b { font-size: 15px; color: var(--text); }
.ab-drop u { color: var(--blue); text-decoration: none; font-weight: 600; }
.ab-drop-ico {
  width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ab-drop-ico svg { width: 22px; height: 22px; }
.ab-drop:hover, .ab-drop.is-over { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); }
.ab-drop:hover .ab-drop-ico, .ab-drop.is-over .ab-drop-ico { transform: translateY(-3px); }
.ab-drop.is-over { transform: scale(1.01); }

.ab-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ab-file {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  animation: kindIn 0.3s ease both;
}
.ab-file-ext {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(135deg, #2663F0, #7424FF);
}
.ab-file-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ab-file-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-file-txt small { font-size: 12px; color: var(--text-2); }
.ab-file-del {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--text-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.ab-file-del svg { width: 17px; height: 17px; }
.ab-file-del:hover { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }

.ab-vt {
  margin-top: 12px; padding: 14px; border-radius: 16px;
  background: color-mix(in srgb, #F59E0B 8%, transparent);
  border: 1px solid color-mix(in srgb, #F59E0B 22%, transparent);
}
.ab-vt[hidden] { display: none; }
.ab-vt-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.ab-vt-label svg { width: 17px; height: 17px; color: #F59E0B; }
.ab-vt p { margin: 6px 0 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.ab-vt a { color: var(--blue); font-weight: 600; }
.ab-vt .field { height: 46px; border-radius: 12px; }

/* Низ */
.ab-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 16px 24px 20px;
  border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  background: color-mix(in srgb, var(--text) 2%, transparent);
}
.ab-foot p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.ab-foot p svg { width: 16px; height: 16px; flex-shrink: 0; }
.ab-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ab-submit { height: 48px; padding: 0 22px; border-radius: 14px; gap: 8px; }
.ab-submit svg { width: 17px; height: 17px; }
.ab-off {
  display: inline-flex; align-items: center; gap: 7px;
  height: 48px; padding: 0 16px; border-radius: 14px; cursor: pointer;
  background: transparent; color: var(--red); font: inherit; font-size: 14px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  transition: background 0.2s ease;
}
.ab-off svg { width: 16px; height: 16px; }
.ab-off:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }

@media (max-width: 1023px) {
  .ab-card { border-radius: 22px; }
  .ab-head { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .ab-art { width: 60px; height: 60px; border-radius: 16px; }
  .ab-head-txt { flex: 1 1 calc(100% - 76px); }
  .ab-head-txt h3 { font-size: 18px; }
  .ab-badge { position: absolute; top: 14px; right: 14px; height: 26px; padding: 0 10px; font-size: 11px; }
  .ab-head-txt { padding-right: 0; }
  .ab-head-txt h3 { padding-right: 110px; }
  .ab-note { margin: 14px 16px 0; padding: 12px 14px; }
  .ab-note p { font-size: 13px; }
  .ab-steps { margin: 16px 16px 0; }
  .ab-step { font-size: 12px; gap: 6px; }
  .ab-step:not(:last-child)::after { margin: 0 6px; }
  .ab-step i { width: 26px; height: 26px; font-size: 12px; }
  .ab-sec { padding: 18px 16px 2px; }
  .ab-text { font-size: 16px; min-height: 140px; }
  .ab-foot { padding: 14px 16px 16px; flex-direction: column; align-items: stretch; }
  .ab-actions { margin-left: 0; flex-direction: column-reverse; align-items: stretch; }
  .ab-submit, .ab-off { width: 100%; justify-content: center; }
}

.ab-art { position: relative; isolation: isolate; }
.ab-art .card-art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.ab-art .card-game-ico { width: 58%; max-width: 44px; }
.ab-art .card-mark { display: none; }

/* ПК: у вкладок профілю є стрілки — без розчинення країв */
@media (min-width: 1024px) {
  .profile-nav-track.hs, .profile-nav-track.hs.hs-l, .profile-nav-track.hs.hs-r, .profile-nav-track.hs.hs-l.hs-r { -webkit-mask-image: none; mask-image: none; }
}

/* Автовидача на ПК: на всю ширину, дані й файли поруч */
.ab-card { max-width: none; }
@media (min-width: 1024px) {
  .ab-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 8px; }
  .ab-form > .ab-sec { padding-bottom: 8px; }
  .ab-form > .ab-sec:first-child { border-right: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
  .ab-form > .ab-foot { grid-column: 1 / -1; }
  .ab-text { min-height: 220px; }
  .ab-drop { padding: 34px 16px; }
  .ab-steps { max-width: 560px; }
}

/* =====================================================================
   ФОРМАТУВАННЯ ТЕКСТУ — панель і оформлений текст
   ===================================================================== */
.fmt-scope { display: flex; flex-direction: column; gap: 8px; }
.fmt-bar {
  position: relative;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 4px; border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
}
.fmt-btn {
  min-width: 36px; height: 34px; padding: 0 8px; border-radius: 10px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--text-2); font: inherit; font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}
.fmt-btn b, .fmt-btn i, .fmt-btn s { font-family: Georgia, "Times New Roman", serif; font-size: 16px; color: inherit; }
.fmt-btn svg { width: 17px; height: 17px; }
.fmt-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.fmt-btn:active { transform: scale(0.92); }
.fmt-btn.on { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.fmt-sep { width: 1px; height: 20px; margin: 0 4px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.fmt-preview-btn { margin-left: auto; font-size: 13px; font-weight: 600; }
.fmt-emoji {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 4px;
  display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 6px;
  border-radius: 14px; background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: sc-dd-in 0.14s ease-out;
}
.fmt-emoji[hidden] { display: none; }
.fmt-emoji button { width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; font-size: 20px; cursor: pointer; }
.fmt-emoji button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.fmt-preview {
  padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--blue) 35%, transparent);
  font-size: 15px;
}
.fmt-preview[hidden] { display: none; }
.fmt-preview-empty { margin: 0; color: var(--text-2); font-size: 14px; }

/* Оформлений текст */
.rt { display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.rt p, .rt h4, .rt ul, .rt ol, .rt blockquote { margin: 0; }
.rt h4 { font-family: var(--display); font-size: 1.08em; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; }
.rt ul, .rt ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.rt ul li::marker { color: var(--blue); }
.rt ol li::marker { color: var(--blue); font-weight: 700; }
.rt blockquote { padding: 4px 0 4px 12px; border-left: 3px solid var(--blue); color: var(--text-2); }
.rt code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92em;
  padding: 2px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.rt a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.rt-spoiler {
  border-radius: 5px; padding: 0 3px; cursor: pointer;
  background: color-mix(in srgb, var(--text) 22%, transparent); color: transparent;
  text-shadow: 0 0 8px color-mix(in srgb, var(--text) 60%, transparent);
  transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
  user-select: none;
}
.rt-spoiler.is-open { color: inherit; background: color-mix(in srgb, var(--text) 8%, transparent); text-shadow: none; user-select: text; }
.p-story.rt { gap: 12px; }
.p-story.rt p:first-child { font-weight: 600; }
.bubble .rt { gap: 6px; }
.msg-group.mine .rt a, .msg-group.mine .rt ul li::marker, .msg-group.mine .rt ol li::marker { color: inherit; }
.msg-group.mine .rt blockquote { border-left-color: rgba(255, 255, 255, 0.6); color: inherit; opacity: 0.85; }
.msg-group.mine .rt code { background: rgba(255, 255, 255, 0.18); }
.msg-group.mine .rt-spoiler { background: rgba(255, 255, 255, 0.3); text-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
.msg-group.mine .rt-spoiler.is-open { background: rgba(255, 255, 255, 0.14); text-shadow: none; }

/* Чат: панель над полем, кнопка Aa у полі */
.composer-area > .fmt-bar { display: none; margin-bottom: 8px; }
.composer-area.fmt-on > .fmt-bar { display: flex; animation: gcOpen 0.2s ease; }
.composer-area .fmt-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.composer-area .fmt-bar::-webkit-scrollbar { display: none; }
.composer-area { position: relative; }
.composer-area .fmt-bar { position: static; }
.composer-area .fmt-emoji { top: auto; bottom: calc(100% - 4px); left: 12px; right: auto; }
.composer-field { position: relative; }
.fmt-toggle {
  flex-shrink: 0; align-self: center;
  width: 32px; height: 32px; margin-right: 6px; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2);
  font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.fmt-toggle:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.fmt-toggle.on { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
@media (max-width: 1023px) {
  .fmt-btn { min-width: 34px; height: 34px; padding: 0 6px; }
  .fmt-emoji { left: 0; right: 0; grid-template-columns: repeat(8, 1fr); }
  .fmt-emoji button { width: 100%; }
}
@media (max-width: 1023px) {
  .fmt-bar { gap: 0; padding: 3px; }
  .fmt-btn { min-width: 32px; width: 32px; height: 34px; padding: 0; }
  .fmt-sep { margin: 0 3px; }
  .fmt-preview-btn { width: auto; padding: 0 8px; }
  .fmt-preview-btn span { display: none; }
}
.rt ul { list-style: disc; }
.rt ol { list-style: decimal; }
.rt li { display: list-item; }

/* Підвал: завжди внизу екрана, звичайної висоти; вільне місце — над ним, а не під ним */
.page:has(> .footer:last-child) { padding-bottom: 0; display: flex; flex-direction: column; }
.page:has(> .footer:last-child) > .footer { margin-top: auto; }
.page:has(> .footer:last-child) > :nth-last-child(2) { margin-bottom: 64px; }
@media (min-width: 1024px) { .footer { padding-bottom: 48px; } }

/* Прев'ю картки: стоїть на місці, ширша колонка, поради під ним */
@media (min-width: 1100px) {
  .sc-form { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 36px; }
  .sc-preview-col { position: static; top: auto; align-self: start; grid-row: 1 / span 4; padding-top: 52px; }
}
.sc-preview-col { display: flex; flex-direction: column; gap: 16px; }
.sc-preview-panel { padding: 20px; }
.sc-preview-stage { padding: 20px; display: flex; justify-content: center; }
.sc-preview-stage .sc-preview { width: 100%; max-width: 260px; }
.sc-tips {
  padding: 18px 20px; border-radius: 22px;
  background: var(--sc-glass); border: 1px solid var(--sc-line);
}
.sc-tips-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.sc-tips-title svg { width: 18px; height: 18px; color: #F59E0B; }
.sc-tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.sc-tips li i {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-style: normal; font-size: 11px; font-weight: 800; color: var(--blue);
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}
@media (max-width: 1099px) {
  .sc-preview-stage .sc-preview { max-width: 300px; }
}

/* Сторінка товару без фото продавця: фірмове зображення, як у картках каталогу */
.p-hero-art { position: absolute; inset: 0; }
.p-hero-art .card-art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.p-hero-art .card-game-ico { width: 30%; max-width: 168px; border-radius: 28%; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
.p-hero-art .card-mark { font-size: 18px; right: 20px; bottom: 16px; }
@media (max-width: 1023px) {
  .p-hero-art .card-game-ico { width: 34%; max-width: 128px; }
  .p-hero-art .card-mark { font-size: 14px; right: 14px; bottom: 12px; }
}

/* =====================================================================
   ПАНЕЛЬ УГОДИ В ЧАТІ
   ===================================================================== */
.dcp {
  --c: #2663F0;
  flex: 0 0 auto;
  margin: 0 16px 10px;
  border-radius: 20px; overflow: hidden;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), inset 0 3px 0 var(--c);
}
.dcp.is-act { --c: #22C55E; }
.dcp.is-wait { --c: #F59E0B; }
.dcp.is-bad { --c: #F43F5E; }
.dcp.is-ok { --c: #22C55E; }
.dcp-top {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px 12px 12px; border: 0; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.dcp-thumb { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bg); }
.dcp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcp-thumb .card-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.dcp-thumb .card-game-ico { width: 64%; max-width: 30px; }
.dcp-thumb .card-mark { display: none; }
.dcp-thumb .game-cover, .dcp-thumb .chat-lot-cover { width: 100%; height: 100%; border-radius: 12px; }
.dcp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dcp-kicker { font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: 0.02em; }
.dcp-info b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcp-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 11px; font-weight: 800; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  white-space: nowrap;
}
.dcp-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.dcp.is-act .dcp-pill i, .dcp.is-wait .dcp-pill i { animation: gcPulse 2s ease-in-out infinite; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.dcp-chev { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; color: var(--text-2); transition: transform 0.25s ease; }
.dcp-chev svg { width: 18px; height: 18px; }
.dcp.is-open .dcp-chev { transform: rotate(180deg); }

.dcp-body { display: none; padding: 0 14px 14px; }
.dcp.is-open .dcp-body { display: block; animation: gcOpen 0.22s ease; }

.dcp-steps { display: flex; list-style: none; margin: 2px 0 12px; padding: 0; }
.dcp-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 11px; font-weight: 600; color: var(--text-2); text-align: center; }
.dcp-steps li::before {
  content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.dcp-steps li:first-child::before { display: none; }
.dcp-steps li i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid color-mix(in srgb, var(--text) 22%, transparent); }
.dcp-steps li.done, .dcp-steps li.on { color: var(--text); }
.dcp-steps li.done::before, .dcp-steps li.on::before { background: #22C55E; }
.dcp-steps li.done i { background: #22C55E; border-color: #22C55E; }
.dcp-steps li.on i { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.dcp-steps.is-bad li.on i { border-color: #F43F5E; }
.dcp-steps.is-bad li.on::before { background: #F43F5E; }

.dcp-lead {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 9%, transparent);
  font-size: 13px; line-height: 1.45; color: var(--text);
}
.dcp-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dcp-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--blue), var(--blue-hover)); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(38, 99, 240, 0.3);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.dcp-main.is-green { background: linear-gradient(90deg, #16A34A, #22C55E); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3); }
.dcp-main svg { width: 17px; height: 17px; stroke-width: 2.6; }
.dcp-main:hover { filter: brightness(1.08); }
.dcp-main:active { transform: scale(0.97); }
.dcp-side { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dcp-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 10px; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.dcp-link svg { width: 15px; height: 15px; }
.dcp-link:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.dcp-link.is-bad:hover { color: #F43F5E; background: color-mix(in srgb, #F43F5E 10%, transparent); }

@media (max-width: 1023px) {
  .dcp { margin: 0 12px 8px; border-radius: 18px; }
  .dcp-top { padding: 10px 12px 10px 10px; gap: 10px; }
  .dcp-thumb { width: 40px; height: 40px; }
  .dcp-info b { font-size: 13px; }
  .dcp-pill { height: 24px; padding: 0 8px; font-size: 10px; }
  .dcp-body { padding: 0 12px 12px; }
  .dcp-steps li { font-size: 10px; }
  .dcp-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .dcp-main { width: 100%; }
  .dcp-side { margin-left: 0; justify-content: space-between; }
}
@media (max-width: 380px) { .dcp-pill { display: none; } }

/* Без масштабування на телефоні: ні подвійним дотиком, ні жестом */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* «@» у полі імені — по центру рядка */
.auth-page .nick-prefix { top: 50%; transform: translateY(-50%); line-height: 1; z-index: 1; font-family: var(--font); }

/* Порожній чат «Вивід коштів» */
.wd-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  max-width: 360px; margin: 40px auto; padding: 28px 22px; border-radius: 22px;
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
}
.wd-empty-ico {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #16A34A, #22C55E); box-shadow: 0 10px 24px rgba(34, 197, 94, 0.3);
}
.wd-empty b { font-size: 16px; line-height: 1.35; }
.wd-empty p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.wd-empty .btn { height: 44px; padding: 0 20px; border-radius: 14px; }

/* Поповнення для конкретної покупки */
.topup-for {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; margin-bottom: 4px; border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
}
.topup-for-art { position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.topup-for-art .card-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.topup-for-art .card-game-ico { width: 62%; max-width: 32px; }
.topup-for-art .card-mark { display: none; }
.topup-for-art img.card-cover { width: 100%; height: 100%; object-fit: cover; }
.topup-for-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topup-for-txt small { font-size: 12px; color: var(--text-2); }
.topup-for-txt small b { color: var(--text); }
.topup-for-txt > b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topup-for-price { flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--blue); }

/* ---------- реєстрація: профіль (аватар, нік, дата народження) ---------- */
.auth-page .reg-ava { display: flex; align-items: center; gap: 16px; }
.auth-page .reg-ava-now {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 0 0 3px var(--gray-5), 0 0 0 5px color-mix(in srgb, var(--blue) 45%, transparent);
  animation: regAvaIn 0.25s ease both;
}
.auth-page .reg-ava-now img { width: 100%; height: 100%; object-fit: cover; }
.auth-page .reg-ava-now svg { width: 30px; height: 30px; }
.auth-page .reg-ava-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.auth-page .reg-ava-side .label small { font-weight: 500; color: var(--text-2); }
.auth-page .reg-ava-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.auth-page .reg-ava-list::-webkit-scrollbar { display: none; }
.auth-page .reg-ava-opt,
.auth-page .reg-ava-up {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.auth-page .reg-ava-opt img { width: 100%; height: 100%; object-fit: cover; }
.auth-page .reg-ava-opt:hover,
.auth-page .reg-ava-up:hover { transform: translateY(-2px); }
.auth-page .reg-ava-opt.on { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.auth-page .reg-ava-up { border: 2px dashed color-mix(in srgb, var(--blue) 55%, transparent); color: var(--blue); }
.auth-page .reg-ava-up svg { width: 20px; height: 20px; }
.auth-page [data-save-nick] .field-wrap .err { margin: 0 0 0 6px; min-height: 18px; }
@media (max-width: 400px) {
  .auth-page .reg-ava { gap: 12px; }
  .auth-page .reg-ava-now { width: 64px; height: 64px; }
}
@keyframes regAvaIn { from { transform: scale(0.85); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }

/* ---------- реєстрація: «успішно» з автопереходом ---------- */
.auth-page .auth-done .done-mark { animation: doneMarkPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.auth-page .auth-done .done-mark polyline { stroke-dasharray: 30; stroke-dashoffset: 30; animation: doneTick 0.45s 0.25s ease-out forwards; }
.auth-page .auth-done.is-late .done-mark,
.auth-page .auth-done.is-late .done-mark polyline { animation: none; stroke-dashoffset: 0; }
.auth-page .auth-done .auth-head { margin-bottom: 24px; }
.auth-page .done-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--bg);
  overflow: hidden;
  margin: 0 auto 12px;
  max-width: 260px;
}
.auth-page .done-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 55%, #9cc2ff));
  animation: doneBar 2.5s linear both;
}
.auth-page .done-note { font-size: 13px; color: var(--text-2); font-weight: 500; }
@keyframes doneBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes doneMarkPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes doneTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-done .done-mark,
  .auth-page .auth-done .done-mark polyline { animation: none; stroke-dashoffset: 0; }
}

/* ---------- реєстрація: згода з правилами ---------- */
.auth-page .reg-terms {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-page .reg-terms:hover { border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.auth-page .reg-terms.is-bad { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--bg)); }
.auth-page .reg-terms input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.auth-page .reg-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid var(--gray-3, #4a4e5c);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.auth-page .reg-check svg { width: 14px; height: 14px; stroke-width: 3.2; opacity: 0; transform: scale(0.5); transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1); }
.auth-page .reg-terms input:checked + .reg-check { background: var(--blue); border-color: var(--blue); }
.auth-page .reg-terms input:checked + .reg-check svg { opacity: 1; transform: scale(1); }
.auth-page .reg-terms input:focus-visible + .reg-check { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
.auth-page .reg-terms:active .reg-check { transform: scale(0.92); }
.auth-page .reg-terms-txt { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.auth-page .reg-terms-txt a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-page .reg-terms-txt a:hover { text-decoration: underline; }

/* ---------- реєстрація: сітка аватарів і круглий редактор фото ---------- */
.auth-page .reg-ava-hint { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.auth-page .reg-ava-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: -4px;
}
.auth-page .reg-ava-grid .reg-ava-opt,
.auth-page .reg-ava-grid .reg-ava-up { width: 100%; height: auto; aspect-ratio: 1; max-width: 48px; justify-self: center; }
.ava-crop.is-circle .crop-stage { border-radius: 24px; }
.ava-crop.is-circle .crop-mask {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(8, 10, 14, 0.62);
}
.ava-crop .crop-hint { text-align: center; font-size: 13px; color: var(--text-2); margin: -4px 0 0; }
@media (max-width: 400px) { .auth-page .reg-ava-grid { gap: 6px; } }

/* телефон: заголовок входу й текст під ним — зліва, як інші кроки */
@media (max-width: 639px) {
  .auth-page .auth-head:not(.auth-done .auth-head) { text-align: left; margin-bottom: 24px; }
  .auth-page .auth-ref-note { text-align: left; }
  .auth-page .legal { text-align: left; }
}

/* ---------- профіль: галочка і позначка офіційного акаунта ---------- */
.user-info h1.u-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-info h1.u-name-row .u-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-info h1.u-name-row .verified { flex: none; width: 24px; height: 24px; }
.official-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 2px 0 8px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #3D71FF, #6a4dff);
  box-shadow: 0 4px 14px color-mix(in srgb, #3D71FF 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.official-pill svg { width: 14px; height: 14px; stroke-width: 2.4; }
@media (max-width: 639px) {
  .user-info h1.u-name-row .verified { width: 20px; height: 20px; }
  .official-pill { font-size: 11px; padding: 4px 10px 4px 7px; margin-bottom: 6px; }
}

/* ---------- картка продавця: позначка офіційного акаунта, онлайн-крапка поза фото ---------- */
.p-seller-ava { overflow: visible; }
.p-seller-ava img { border-radius: inherit; }
.p-seller-ava .online-dot,
.friend-ava .online-dot {
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-width: 2.5px;
  z-index: 1;
}
.friend-ava { overflow: visible; position: relative; }
.friend-ava img { border-radius: inherit; }
.p-seller-meta b .p-seller-name { display: inline; font-size: inherit; color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-seller-meta .p-seller-off {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin: 4px 0 3px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3D71FF, #6a4dff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.p-seller-meta .p-seller-off svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* ---------- сторінка товару: фото повністю, по боках — розмита копія ---------- */
.p-hero img.p-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.55) saturate(1.2);
  transform: scale(1.15);
  pointer-events: none;
}
.p-hero img.p-hero-img { position: relative; z-index: 1; object-fit: contain; }
.p-hero .p-badges { z-index: 2; }

/* ---------- профіль у режимі гостя ---------- */
.guest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 12%, var(--gray-5));
  border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
}
.guest-bar-txt { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; font-weight: 600; }
.guest-bar-txt svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.guest-bar-btn {
  flex: none;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.guest-bar-btn:hover { background: var(--blue-hover, #1f55d6); color: #fff; }
@media (max-width: 480px) {
  .guest-bar { padding: 8px 8px 8px 12px; }
  .guest-bar-txt { font-size: 13px; }
  .guest-bar-btn { padding: 8px 12px; font-size: 12px; }
}

/* ---------- офіційні акаунти: стиль як «офіційний магазин» ---------- */
.card-seller {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.card-seller .verified { width: 16px; height: 16px; flex: none; }
.card-seller span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-from {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: -2px 0 12px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #dbe5ff;
  background: color-mix(in srgb, #3D71FF 20%, var(--gray-5));
  border: 1px solid color-mix(in srgb, #3D71FF 28%, transparent);
}
html.light .off-from { color: #1f3fa8; background: color-mix(in srgb, #3D71FF 12%, #fff); }
.off-from .verified { width: 18px; height: 18px; flex: none; }
.p-seller-meta b .verified { width: 18px; height: 18px; flex: none; }
.u-official { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
@media (max-width: 639px) {
  .u-official { font-size: 13px; margin-bottom: 4px; }
}

/* ---------- фото товарів: єдина пропорція 4:3 ---------- */
@media (min-width: 1024px) {
  .p-hero { aspect-ratio: 4 / 3; }
}
.sc-cover-info .sc-cover-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}
.sc-cover-info .sc-cover-tip b { color: var(--text); font-weight: 700; font-size: inherit; }
.sc-cover-info .sc-cover-tip svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--blue); }

/* форма продажу: неприйняті умови */
.sc-terms.is-bad .sc-check { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); animation: scTermsShake 0.4s ease; }
.sc-terms.is-bad .sc-terms-text { color: var(--red); }
@keyframes scTermsShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
