/* RELOAD23 — страница продажи предметов */

@font-face {
  font-family: "Motiva Sans";
  src: url("../fonts/motiva-sans-400.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Motiva Sans";
  src: url("../fonts/motiva-sans-500.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Motiva Sans Cyrillic";
  src: url("../fonts/motiva-sans-cyrillic-400.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0400-052F, U+1C80-1C8F, U+2DE0-2DFF, U+A640-A69F;
}

.market-sell-page {
  min-height: 70vh;
  font-family: "Motiva Sans Cyrillic", "Motiva Sans", "Inter", Arial, Helvetica, sans-serif;
}

.sell-loading {
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
}

.sell-loading[hidden] { display: none; }

/* Hero */

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

.sell-hero__inner {
  padding-top: 40px;
  padding-bottom: 24px;
}

.sell-hero__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

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

.sell-eyebrow svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

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

.sell-sub {
  max-width: 576px;
  margin: 12px 0 0;
  color: #8b929a;
  font-size: 14px;
  line-height: 24px;
}

.sell-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sell-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #dcdedf;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.sell-nav-btn:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sell-nav-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.sell-nav-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #3d9c4a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.sell-nav-badge[hidden] { display: none; }

.sell-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.sell-stat {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  color: inherit;
  text-decoration: none;
}

.sell-stat--balance { transition: box-shadow 0.15s ease; }
.sell-stat--balance:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

.sell-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;
}

.sell-stat strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.sell-stat--balance strong { color: #f0c45b; }
.sell-stat--balance .market-coin { width: 20px; height: 20px; }

/* Body */

.sell-body {
  padding: 24px 0;
}

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

.sell-layout.is-orders {
  grid-template-columns: minmax(0, 1fr);
}

.sell-layout.is-orders .sell-filters {
  display: none;
}

/* Filters */

.sell-filters {
  position: sticky;
  top: 84px;
}

.sell-filter-card {
  overflow: hidden;
  border-radius: 8px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.sell-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 16px 4px;
}

.sell-filter-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sell-filter-head svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #3d9c4a;
}

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

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

.sell-filter-title {
  margin: 0 0 10px;
  color: #8b929a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sell-filter-list {
  display: grid;
  gap: 2px;
}

.sell-filter-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9aa2ab;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sell-filter-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

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

.sell-filter-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3d9c4a;
}

.sell-filter-rarity {
  justify-content: flex-start;
  gap: 10px;
}

.sell-rarity-bar {
  width: 4px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.sell-wear-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.sell-wear-btn {
  padding: 6px 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #9aa2ab;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sell-wear-btn:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sell-wear-btn.is-active {
  background: rgba(124, 194, 66, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.4);
}

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

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

.sell-segmented button:hover { color: #fff; }

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

.sell-filter-check {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #dcdedf;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}

.sell-filter-check:hover { background: rgba(255, 255, 255, 0.04); }

.sell-filter-check span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sell-filter-check input {
  flex: 0 0 auto;
  margin-top: 1px;
}

.sell-filter-check input {
  width: 16px;
  height: 16px;
  accent-color: #3d9c4a;
}

/* Main */

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

.sell-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

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

.sell-tabs button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8b929a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.sell-tabs button:hover { color: #fff; }

.sell-tabs button.is-active {
  background: #203028;
  color: #fff;
}

.sell-tabs button span {
  color: #67707b;
  font-weight: 500;
}

.sell-refresh {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #8b929a;
  cursor: pointer;
}

.sell-refresh:hover { color: #fff; }

.sell-refresh svg { width: 16px; height: 16px; }

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

.sell-toolbar .sell-search {
  height: 44px;
  flex: 1 1 100%;
  min-width: 0;
}

.sell-filter-toggle {
  display: none;
  height: 44px;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
}

.sell-filter-toggle svg {
  width: 16px;
  height: 16px;
}

.sell-sort-wrap {
  position: relative;
  display: flex;
  height: 44px;
  min-width: 0;
  flex: 0 0 auto;
}

.sell-toolbar .sell-sort {
  width: auto;
  min-width: 210px;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 0;
  border-radius: 6px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #dcdedf;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
}

.sell-sort-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #67707b;
  font-size: 10px;
  pointer-events: none;
  transform: translateY(-50%);
}

.sell-found {
  margin: 12px 0 0;
  color: #8b929a;
  font-size: 12px;
}

.sell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

/* Inventory cards */

.sell-card {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 6px;
  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: box-shadow 0.15s ease;
}

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

.sell-card__art {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 138px;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #35584a;
  border-bottom: 3px solid var(--rarity, #5e98d9);
  background: linear-gradient(145deg, rgba(31, 45, 34, 0.72), rgba(10, 20, 14, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.sell-card:hover .sell-card__art {
  transform: translateY(-2px);
  border-color: #7cc242;
  border-bottom-color: var(--rarity, #5e98d9);
}

.sell-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--rarity, #5e98d9) 40%, transparent), transparent 58%);
  opacity: 0.25;
  pointer-events: none;
}

.sell-card__imgwrap {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1;
}

.sell-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.46));
  transition: transform 0.2s ease;
}

.sell-card:hover .sell-card__img { transform: scale(1.04); }

.sell-card__plus {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #35584a;
  background: rgba(18, 30, 23, 0.9);
  color: #8b929a;
}

.sell-card__plus svg { width: 14px; height: 14px; }

.sell-card__qty {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 2px 6px;
  background: rgba(124, 194, 66, 0.28);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sell-card__name {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-right: 16px;
  overflow: hidden;
  color: #dcdedf;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-card__meta {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 2px 0 0;
  overflow: hidden;
  color: #8b929a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-card__bottom {
  display: flex;
  min-height: 24px;
  align-items: center;
  margin-top: 4px;
  padding: 0 4px;
  color: #f0c45b;
  font-size: 10px;
  font-weight: 600;
}

.sell-card__bottom .market-coin {
  width: 10px;
  height: 10px;
  margin-right: 3px;
}

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

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

.sell-empty svg { width: 28px; height: 28px; opacity: 0.6; }

.sell-empty p { margin: 0; }

.sell-empty button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7cc242;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* Buy orders tab */

.sell-orders-hint {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #141d18;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  color: #8b929a;
  font-size: 13px;
  line-height: 1.5;
}

.sell-order-card {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  border-left: 3px solid #7ad34a;
  border-radius: 8px;
  background: #0f1712;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
}

.sell-order-card + .sell-order-card { margin-top: 10px; }

.sell-order-card__img {
  display: flex;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.08);
}

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

.sell-order-card__body {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.sell-order-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #7ad34a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sell-order-card__label svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.sell-order-card__body b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-order-card__body small {
  display: block;
  overflow: hidden;
  color: #67707b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-order-card__side {
  display: flex;
  min-width: 210px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.sell-order-card__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f0c45b;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sell-order-card__price .market-coin { width: 16px; height: 16px; }

.sell-order-card__qty {
  margin-left: 3px;
  color: #8b929a;
  font-size: 12px;
  font-weight: 500;
}

.sell-order-progress {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sell-order-progress__bar {
  height: 4px;
  flex: 0 0 84px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(124, 194, 66, 0.14);
}

.sell-order-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #7ad34a;
}

.sell-order-progress small {
  flex: 0 0 auto;
  color: #67707b;
  font-size: 10px;
  white-space: nowrap;
}

.sell-order-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sell-order-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.sell-order-status.is-open {
  background: rgba(124, 194, 66, 0.1);
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.4);
  color: #7cc242;
}

.sell-order-status.is-cancelled {
  background: rgba(222, 107, 85, 0.14);
  color: #de6b55;
}

.sell-order-status.is-filled {
  background: rgba(122, 211, 74, 0.12);
  color: #7ad34a;
}

.sell-order-withdraw {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #8b929a;
  cursor: pointer;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.sell-order-withdraw:hover {
  color: #de6b55;
  box-shadow: inset 0 0 0 1px rgba(222, 107, 85, 0.4);
}

.sell-order-withdraw svg {
  width: 14px;
  height: 14px;
}

/* Sell modal */

.sell-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.sell-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.sell-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 94vh;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 12px;
  background: #141d18;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(124, 194, 66, 0.14);
}

.sell-modal__head {
  position: relative;
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 20px;
  border-bottom: 1px solid rgba(124, 194, 66, 0.1);
}

.sell-modal__head::before {
  content: "";
  position: absolute;
  top: -96px;
  left: -64px;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: var(--rarity, #5e98d9);
  opacity: 0.18;
  filter: blur(60px);
  pointer-events: none;
}

.sell-modal__art {
  position: relative;
  display: flex;
  width: 128px;
  height: 138px;
  flex: 0 0 auto;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #35584a;
  border-bottom: 3px solid var(--rarity, #5e98d9);
  background: linear-gradient(145deg, rgba(31, 45, 34, 0.72), rgba(10, 20, 14, 0.92));
}

.sell-modal__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--rarity, #5e98d9) 40%, transparent), transparent 58%);
  opacity: 0.25;
  pointer-events: none;
}

.sell-modal__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.46));
}

.sell-modal__art p {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  overflow: hidden;
  color: #dcdedf;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-modal__art small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #8b929a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-modal__info {
  min-width: 0;
  flex: 1;
  padding-right: 22px;
}

.sell-modal__eyebrow {
  margin: 0;
  color: var(--rarity, #5e98d9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sell-modal__weapon {
  margin: 6px 0 0;
  overflow: hidden;
  color: #8b929a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-modal__name {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-modal-float {
  margin-top: 10px;
}

.sell-float {
  position: relative;
  width: 100%;
}

.sell-float__bar {
  display: flex;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 2px;
}

.sell-float__bar span:nth-child(1) { width: 7%; background: #3d9c4a; }
.sell-float__bar span:nth-child(2) { width: 8%; background: #8bc34a; }
.sell-float__bar span:nth-child(3) { width: 23%; background: #e6c14b; }
.sell-float__bar span:nth-child(4) { width: 7%; background: #e08a3c; }
.sell-float__bar span:nth-child(5) { width: 55%; background: #cf4b3c; }

.sell-float__marker {
  position: absolute;
  top: -4px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid #fff;
  transform: translateX(-50%);
}

.sell-float-wear {
  margin: 5px 0 0;
  overflow: hidden;
  color: #8b929a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-float-wear span {
  color: #b8bcbf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sell-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #67707b;
  cursor: pointer;
}

.sell-modal__close:hover { color: #fff; }
.sell-modal__close svg { width: 20px; height: 20px; }

.sell-modal__body {
  padding: 20px;
}

.sell-modal__label {
  display: block;
  margin: 0;
  color: #7d858e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sell-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.sell-market-card {
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.sell-market-card:enabled:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sell-market-card:disabled {
  cursor: default;
}

.sell-market-card p {
  display: -webkit-box;
  min-height: 32px;
  margin: 0;
  overflow: hidden;
  color: #8b929a;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sell-market-card strong {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  overflow: hidden;
  color: #5d6670;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-market-card strong .market-coin {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.sell-market-card.has-value strong { color: #fff; }
.sell-market-card.has-value[data-fill-price="cheapest"] strong { color: #f0c45b; }
.sell-market-card.has-value[data-fill-price="cheapest"] strong .market-coin { opacity: 1; }
.sell-market-card.has-value[data-fill-price="buyOrder"] strong { color: #7cc242; }
.sell-market-card.has-value[data-fill-price="buyOrder"] strong .market-coin { opacity: 0.7; }

.sell-market-card small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #5d6670;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-price-label { margin-top: 20px; }

.sell-price-input {
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.16);
  transition: box-shadow 0.15s ease;
}

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

.sell-price-input .market-coin {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.sell-price-input input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: 0;
}

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

.sell-price-hint {
  margin: 6px 0 0;
  color: #5d6670;
  font-size: 11px;
}

.sell-summary {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0d1410;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  font-size: 13px;
}

.sell-summary p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #8b929a;
}

.sell-summary p span:last-child {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.sell-summary .sell-summary__total {
  padding-top: 10px;
  border-top: 1px solid rgba(124, 194, 66, 0.1);
  color: #a4d007;
  font-weight: 700;
}

.sell-summary .sell-summary__total span:last-child { color: #a4d007; }

.sell-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.sell-submit svg { width: 16px; height: 16px; }
.sell-submit.is-busy { opacity: 0.7; }

.market-sell-page .market-btn:disabled {
  cursor: not-allowed;
}

.sell-submit:disabled {
  border-color: transparent;
  background: rgba(124, 194, 66, 0.1);
  color: #67707b;
  box-shadow: none;
}

.sell-modal__note {
  margin: 12px 0 0;
  color: #67707b;
  font-size: 11px;
  line-height: 16px;
}

/* Responsive */

@media (min-width: 640px) {
  .sell-toolbar .sell-search { flex: 1 1 220px; }
  .sell-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 768px) {
  .sell-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .sell-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

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

@media (max-width: 1023px) {
  .sell-layout { grid-template-columns: minmax(0, 1fr); }
  .sell-filters { display: none; position: static; }
  .sell-filters.is-open { display: block; }
  .sell-filter-toggle { display: inline-flex; }
  .sell-hero__top { flex-direction: column; align-items: flex-start; }
  .sell-hero__links { width: 100%; }
}

@media (max-width: 767px) {
  .sell-hero__inner { padding-top: 26px; padding-bottom: 20px; }
  .sell-hero h1 { font-size: 26px; }
  .sell-sub { display: none; }
  .sell-tabs-row { align-items: flex-start; }
  .sell-refresh { display: none; }
}

@media (max-width: 639px) {
  .sell-stats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .sell-stats::-webkit-scrollbar { display: none; }
  .sell-stat { min-width: 150px; flex: 0 0 auto; }

  .sell-tabs button { font-size: 11px; padding: 6px 8px; }

  .sell-sort-wrap { flex: 1 1 0; }
  .sell-toolbar .sell-sort { width: 100%; min-width: 0; }

  .sell-grid { gap: 8px; }
  .sell-card__art { height: 122px; padding: 8px; }
  .sell-card__bottom { min-height: 20px; }

  .sell-order-card {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px 12px 14px;
  }
  .sell-order-card__img { width: 62px; height: 62px; }
  .sell-order-card__body { flex: 1 1 calc(100% - 76px); }
  .sell-order-card__side {
    width: 100%;
    min-width: 0;
    align-items: stretch;
  }
  .sell-order-card__price { justify-content: flex-end; }
  .sell-order-card__actions { justify-content: flex-end; }
  .sell-order-progress small { font-size: 9px; }

  .sell-modal {
    align-items: flex-end;
    padding: 0;
  }
  .sell-modal__card {
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }
  .sell-modal__head { padding: 16px; gap: 12px; }
  .sell-modal__art { width: 96px; height: 120px; }
  .sell-modal__body { padding: 16px; }
  .sell-market-grid { gap: 6px; }
  .sell-market-card { padding: 8px; }
  .sell-market-card p { font-size: 10px; line-height: 14px; min-height: 28px; }
  .sell-market-card strong { font-size: 13px; }
  .sell-market-card small { font-size: 9px; }
  .sell-price-input input { height: 48px; font-size: 21px; }
}
