﻿/* RELOAD23 вЂ” С‚РѕСЂРіРѕРІР°СЏ РїР»РѕС‰Р°РґРєР° */

.market-page {
  min-height: 60vh;
  background: #0b100c;
  color: #b8bcbf;
}

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

.market-hero {
  border-bottom: 1px solid rgba(124, 194, 66, 0.1);
  background:
    radial-gradient(ellipse at 10% -20%, rgba(124, 194, 66, 0.12), transparent 55%),
    linear-gradient(180deg, #141d18, #0b100c);
}

.market-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 28px;
}

.market-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #3d9c4a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.market-eyebrow svg {
  width: 15px;
  height: 15px;
}

.market-hero h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.market-sub {
  margin: 10px 0 0;
  color: #8b929a;
  font-size: 14px;
}

.market-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.market-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(124, 194, 66, 0.14);
  border-radius: 6px;
  background: #141d18;
  color: #dcdedf;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.market-btn:hover {
  border-color: rgba(124, 194, 66, 0.28);
  background: #1d232c;
  color: #fff;
}

.market-btn--primary {
  border-color: #3d9c4a;
  background: #3d9c4a;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(124, 194, 66, 0.9);
}

.market-btn--primary:hover {
  border-color: #46b356;
  background: #46b356;
  color: #fff;
}

.market-btn svg {
  width: 16px;
  height: 16px;
}

.market-balance {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(124, 194, 66, 0.14);
  border-radius: 6px;
  background: #141d18;
  color: #f0c45b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.market-balance:hover {
  border-color: rgba(240, 196, 91, 0.35);
}

.market-coin {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: url("../img/coin.svg") no-repeat center / contain;
  vertical-align: -0.12em;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 20px;
}

.market-stat {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.market-stat p {
  margin: 0;
  overflow: hidden;
  color: #7d858e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-stat strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.market-stat small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #67707b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-stat--accent strong { color: #f0c45b; }

.market-recent {
  padding-bottom: 20px;
}

.market-recent > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #7d858e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.market-recent > p::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.market-recent-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.sell-card {
  border: 0;
}

.market-recent-card {
  display: flex;
  border: 0;
  width: 230px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  color: #dcdedf;
  text-decoration: none;
}

.market-recent-card:hover {
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.24);
}

.market-recent-card__img {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 58px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #0d1410;
}

.market-recent-card__img::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--rarity, #5e98d9);
}

.market-recent-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.market-recent-card__body {
  min-width: 0;
}

.market-recent-card__body b {
  display: block;
  overflow: hidden;
  color: #dcdedf;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-recent-card__body span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #f0c45b;
  font-size: 11px;
  font-weight: 600;
}

.market-recent-card__body time {
  color: #67707b;
  font-size: 10px;
  font-weight: 400;
}

/* Body */
.market-body {
  padding: 24px 0 48px;
}

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

.market-filters {
  position: sticky;
  top: 84px;
  border-radius: 8px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.market-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.market-filters__head button,
.market-empty button {
  border: 0;
  background: none;
  color: #7cc242;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.market-filters__head button:hover,
.market-empty button:hover {
  color: #fff;
}

.market-filter-section {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(124, 194, 66, 0.1);
}

.market-filter-section:first-child {
  border-top: 0;
}

.market-filter-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: #8b929a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-filter-section h3 button {
  border: 0;
  background: none;
  color: #67707b;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.market-filter-section h3 button:hover { color: #fff; }

.market-filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.market-filter-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9aa2ab;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.market-filter-list button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.market-filter-list button.is-active {
  background: rgba(124, 194, 66, 0.12);
  color: #fff;
  font-weight: 600;
}

.market-filter-list .dot {
  width: 4px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
}

.market-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.market-filter-buttons button {
  min-width: 38px;
  padding: 6px 8px;
  border: 1px solid rgba(124, 194, 66, 0.14);
  border-radius: 5px;
  background: transparent;
  color: #9aa2ab;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.market-filter-buttons button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.market-filter-buttons button.is-active {
  border-color: rgba(124, 194, 66, 0.5);
  background: rgba(124, 194, 66, 0.15);
  color: #fff;
}

.market-filter-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-input,
.market-select {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #fff;
  font: inherit;
  font-size: 12px;
  outline: 0;
}

.market-input::placeholder { color: #4e6b58; }

.market-input:focus,
.market-select:focus {
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.6);
}

.market-inputs-sep {
  color: #4e6b58;
  font-size: 12px;
}

.market-segmented {
  display: flex;
  padding: 2px;
  border-radius: 5px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.market-segmented button {
  flex: 1;
  padding: 6px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8b929a;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.market-segmented button.is-active {
  background: #203028;
  color: #fff;
}

/* Toolbar */
.market-main {
  min-width: 0;
}

.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.market-search {
  display: flex;
  height: 44px;
  min-width: 0;
  flex: 1 1 280px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 6px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
}

.market-search:focus-within {
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.6);
}

.market-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #67707b;
}

.market-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.market-search input::placeholder { color: #5d6670; }

.market-toolbar .market-select {
  width: auto;
  min-width: 190px;
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: #dcdedf;
}

.market-view {
  display: flex;
  padding: 2px;
  border-radius: 6px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
}

.market-view button {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8b929a;
  font-size: 14px;
  cursor: pointer;
}

.market-view button.is-active {
  background: #203028;
  color: #fff;
}

.market-refresh {
  width: 44px;
  min-height: 44px;
  padding: 0;
}

.market-refresh.is-loading svg {
  animation: market-spin 0.8s linear infinite;
}

.market-filter-toggle {
  display: none;
  min-height: 44px;
}

.market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.market-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(124, 194, 66, 0.25);
  border-radius: 999px;
  background: rgba(124, 194, 66, 0.1);
  color: #9adf5a;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.market-chip:hover {
  background: rgba(124, 194, 66, 0.18);
  color: #fff;
}

.market-result-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-top: 8px;
  color: #8b929a;
  font-size: 12px;
}

/* Platform */
.market-platform {
  margin-top: 8px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(240, 196, 91, 0.09), rgba(240, 196, 91, 0.02)),
    #0b100c;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 91, 0.2);
}

.market-platform__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.market-platform__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #f0c45b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-platform__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.market-platform__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-lot {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #16140f;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 91, 0.2);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.market-lot:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(240, 196, 91, 0.5);
}

.market-lot__media {
  position: relative;
  display: flex;
  height: 110px;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.market-lot__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

.market-lot__remaining {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #f0c45b;
  font-size: 9px;
  font-weight: 700;
}

.market-lot__body {
  padding: 8px 10px 10px;
}

.market-lot__name {
  display: block;
  overflow: hidden;
  color: #e6e8ea;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-lot__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
}

.market-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f0c45b;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.market-lot__buy {
  color: rgba(240, 196, 91, 0.7);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Group cards */
.market-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.market-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--rarity, #5e98d9);
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.28), 0 14px 30px -12px rgba(0, 0, 0, 0.8);
}

.market-card__media {
  position: relative;
  display: flex;
  height: 140px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--rarity, #5e98d9) 22%, transparent), transparent 70%);
}

.market-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
  transition: transform 200ms ease;
}

.market-card:hover .market-card__media img {
  transform: scale(1.05);
}

.market-card__wear {
  align-self: flex-start;
  margin: 2px 0 6px;
  padding: 2px 5px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  background: rgba(18, 30, 23, 0.9);
  color: #cfd3d8;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}
.market-card__wear--bs { color: #cf4b3c; }
.market-card__wear--ft { color: #e6c14b; }
.market-card__wear--ww { color: #e08a3c; }
.market-card__wear--mw { color: #8bc34a; }
.market-card__wear--fn { color: #3d9c4a; }
.market-lot__media .market-card__wear {
  position: absolute;
  left: 10px;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 2px 4px;
  border-radius: 0;
}

.market-card__st {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #cf6a32;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.market-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px 12px 12px;
}

.market-card__weapon {
  overflow: hidden;
  color: #7d858e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card__name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 32px;
  margin-top: 1px;
  color: #e6e8ea;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.market-card__price-label {
  display: block;
  margin-bottom: 1px;
  color: #67707b;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-card__count {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(124, 194, 66, 0.08);
  color: #9aa2ab;
  font-size: 10px;
  font-weight: 600;
}

/* List view */
.market-groups.is-list {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #0f1712;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.market-groups.is-list .market-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 110px 90px 130px;
  align-items: center;
  gap: 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(124, 194, 66, 0.08);
  padding: 10px 16px;
}

.market-groups.is-list .market-card:last-child { border-bottom: 0; }
.market-groups.is-list .market-card:hover { transform: none; background: #161c24; }
.market-groups.is-list .market-card::before { display: none; }
.market-groups.is-list .market-card__media { height: 52px; padding: 4px; background: none; }
.market-groups.is-list .market-card__body { display: contents; }
.market-groups.is-list .market-card__weapon { display: none; }
.market-groups.is-list .market-card__name { min-height: 0; font-size: 13px; }
.market-groups.is-list .market-card__foot { display: contents; }
.market-groups.is-list .market-card__price-label { display: none; }
.market-groups.is-list .market-card__wear { position: static; display: inline-block; }
.market-groups.is-list .market-card__st { position: static; }
.market-groups.is-list .market-card__count { justify-self: end; }

.market-empty {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 24px;
  border: 1px dashed rgba(124, 194, 66, 0.16);
  border-radius: 10px;
  color: #8b929a;
  font-size: 14px;
  text-align: center;
}

.market-empty svg { width: 34px; height: 34px; color: #35584a; }
.market-empty p { margin: 0; }

.market-loading {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
}

.market-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(124, 194, 66, 0.25);
  border-top-color: #7cc242;
  border-radius: 50%;
  animation: market-spin 0.8s linear infinite;
}

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

.market-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.market-page-btn {
  display: flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #b8bcbf;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.market-page-btn:hover { background: rgba(124,194,66,.1); color: #fff; }
.market-page-btn.is-active { background: #3d9c4a; color: #fff; }
.market-page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Modals */
.market-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.78);
}

.market-modal[hidden] { display: none; }

.market-modal-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #35584a;
  border-radius: 12px;
  background: #0f1712;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.market-modal-card--wide { max-width: 1050px; }

.market-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #8b929a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.market-modal-close:hover { background: rgba(0, 0, 0, 0.6); color: #fff; }

.market-item-view {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 28px;
}

.market-item-media {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.market-item-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 50% at 50% 50%, color-mix(in srgb, var(--rarity, #5e98d9) 25%, transparent), transparent 72%);
}

.market-item-media img {
  position: relative;
  max-width: 86%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.6));
}

.market-item-info h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.market-item-info h2 small {
  display: block;
  color: #8b929a;
  font-size: 14px;
  font-weight: 600;
}

.market-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.market-item-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 194, 66, 0.08);
  color: #b8bcbf;
  font-size: 11px;
  font-weight: 600;
}

.market-item-badge--rarity { color: var(--rarity, #5e98d9); }
.market-item-badge--wear { background: rgba(18, 30, 23, 0.9); color: #cfd3d8; }
.market-item-badge--bs { color: #cf4b3c; }
.market-item-badge--ft { color: #e6c14b; }
.market-item-badge--ww { color: #e08a3c; }
.market-item-badge--mw { color: #8bc34a; }
.market-item-badge--fn { color: #3d9c4a; }

.market-item-best {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.market-item-best p {
  margin: 0;
  color: #7d858e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-item-best .market-price {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.market-item-best small { color: #8b929a; font-size: 11px; }

.market-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.market-item-section {
  margin-top: 20px;
}

.market-item-section h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-listing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.08);
  margin-bottom: 6px;
}

.market-listing-row b { color: #dcdedf; font-size: 12px; font-weight: 600; }
.market-listing-row small { display: block; color: #67707b; font-size: 10px; }

.market-history {
  max-height: 150px;
  overflow-y: auto;
  color: #8b929a;
  font-size: 11px;
}

.market-history div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(124,194,66,.08);
}

.market-sell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.market-sell-head h2 { margin: 0; color: #fff; font-size: 20px; }
.market-sell-head p { margin: 4px 0 0; color: #8b929a; font-size: 12px; }

.market-sell-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f0c45b;
  font-size: 14px;
  font-weight: 700;
}

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

.market-my-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124,194,66,.08);
}

.market-my-row__img {
  display: flex;
  width: 60px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #141d18;
}

.market-my-row__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.market-my-row__body { min-width: 0; flex: 1; }
.market-my-row__body b { display: block; color: #dcdedf; font-size: 12px; }
.market-my-row__body small { color: #67707b; font-size: 10px; }
.market-my-row .market-btn { min-height: 32px; font-size: 11px; }

.market-guest {
  display: flex;
  min-height: 62vh;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.market-guest[hidden] { display: none; }

.market-guest__card {
  max-width: 520px;
  padding: 30px;
  border: 1px solid rgba(124,194,66,.12);
  border-radius: 10px;
  background: #0d1218;
  text-align: center;
}

.market-guest__card > svg { width: 38px; height: 38px; color: #7cc242; }
.market-guest__card h1 { margin: 14px 0 0; color: #fff; font-size: 24px; }
.market-guest__card p { margin: 8px 0 0; color: #8b929a; font-size: 13px; line-height: 1.6; }
.market-guest__card .market-btn { margin-top: 20px; }

#market-content[hidden] { display: none; }

@media (max-width: 1280px) {
  .market-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-platform__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .market-layout { grid-template-columns: minmax(0, 1fr); }
  .market-filters {
    position: fixed;
    inset: 64px 0 0 auto;
    z-index: 100;
    display: none;
    width: min(340px, 100%);
    overflow-y: auto;
    border-radius: 0;
  }
  .market-filters.is-open { display: block; }
  .market-filter-toggle { display: inline-flex; }
  .market-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-platform__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-item-view { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .market-container { padding: 0 16px; }
  .market-hero__inner { align-items: flex-start; padding-top: 30px; padding-bottom: 20px; }
  .market-hero h1 { font-size: 30px; }
  .market-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-actions { width: 100%; }
  .market-balance { flex: 1; justify-content: center; }
  .market-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .market-card__media { height: 118px; }
  .market-platform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-toolbar .market-select { min-width: 0; flex: 1; }
  .market-view { display: none; }
  .market-groups.is-list .market-card { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .market-groups.is-list .market-card__wear,
  .market-groups.is-list .market-card__count { display: none; }
  .market-modal-card { padding: 18px; }
  .market-modal-card--wide { padding: 16px; }
}

@media (max-width: 460px) {
  .market-groups { grid-template-columns: 1fr; }
  .market-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .market-card__media { height: 88px; padding: 8px; }
  .market-card__body { padding: 8px 10px; }
  .market-card__name { min-height: 0; }
  .market-recent-card { width: 200px; }
}

.market-empty[hidden],
.market-loading[hidden],
.market-platform[hidden] {
  display: none !important;
}

.market-platform__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b929a;
  font-size: 11px;
}

.market-platform__pages button {
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 196, 91, 0.25);
  border-radius: 4px;
  background: transparent;
  color: #f0c45b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.market-platform__pages button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.market-platform__pages button.is-active {
  border-color: #3d9c4a;
  background: #3d9c4a;
  color: #fff;
  font-weight: 700;
}

.market-lot__media {
  background: radial-gradient(60% 60% at 50% 48%, rgba(240, 196, 91, 0.12), transparent 72%);
}

.market-filter-list button .bar {
  width: 4px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
}

.market-price-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.market-price-ranges button {
  padding: 4px 7px;
  border: 1px solid rgba(124, 194, 66, 0.14);
  border-radius: 4px;
  background: transparent;
  color: #8b929a;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.market-price-ranges button:hover,
.market-price-ranges button.is-active {
  border-color: rgba(124, 194, 66, 0.4);
  background: rgba(124, 194, 66, 0.12);
  color: #fff;
}

@media (min-width: 1200px) {
  .market-platform__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1536px) {
  .market-platform__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.market-filters__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.market-filters__title svg {
  width: 15px;
  height: 15px;
  color: #3d9c4a;
}

body.page-market { background: #0b100c; }
