/* RELOAD23 — страница «Мои лоты» */

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

.my-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);
}

.my-hero .sell-eyebrow { color: #3d9c4a; }

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

.my-sell-btn {
  background: #3d9c4a;
  box-shadow: 0 8px 24px -10px rgba(124, 194, 66, 0.9);
  color: #fff;
  font-weight: 700;
}

.my-sell-btn:hover {
  background: #46b356;
  box-shadow: 0 8px 24px -10px rgba(124, 194, 66, 0.9);
  color: #fff;
}

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

.my-tabs button {
  flex: 1 1 auto;
}

.my-filters .sell-filter-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #67707b;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.my-filters .sell-filter-head button:hover { color: #fff; }

.my-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.my-filter-chip {
  padding: 6px 10px;
  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;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.my-filter-chip:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.my-filter-chip.is-active {
  background: rgba(124, 194, 66, 0.15);
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.5);
  color: #fff;
}

.my-filter-more {
  margin-top: 6px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #7cc242;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.my-filter-more:hover { color: #fff; }

.my-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-price-row input,
.my-date-grid input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  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: 13px;
  font-variant-numeric: tabular-nums;
  outline: 0;
  color-scheme: dark;
}

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

.my-price-row input:focus,
.my-date-grid input:focus {
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.6);
}

.my-price-row > span { color: #4e6b58; }

.my-price-error {
  margin: 8px 0 0;
  color: #f0a090;
  font-size: 12px;
  line-height: 16px;
}

.my-date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.my-filters {
  position: static;
  max-height: none;
  overflow: visible;
}

/* Listing rows */

.my-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.my-lot-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  overflow: hidden;
  padding: 12px;
  border-radius: 8px;
  background: #131c17;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.1);
  transition: box-shadow 0.15s ease;
}

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

.my-lot-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--rarity, #5e98d9);
}

.my-lot-card__img {
  position: relative;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #0d1410;
  text-decoration: none;
}

.my-lot-card__img::after {
  content: "";
  position: absolute;
  inset: auto 8px 0;
  height: 40px;
  border-radius: 999px;
  background: var(--rarity, #5e98d9);
  opacity: 0.25;
  filter: blur(24px);
  pointer-events: none;
}

.my-lot-card__img img {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 86%;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.my-lot-card:hover .my-lot-card__img img { transform: scale(1.05); }

.my-lot-card__body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.my-lot-card__weapon {
  margin: 0;
  overflow: hidden;
  color: #8b929a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-lot-card__weapon .st {
  color: #cf6a32;
  font-weight: 600;
}

.my-lot-card__name {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-lot-card__name:hover { color: #7cc242; }

.my-lot-card__wear {
  margin: 0;
  overflow: hidden;
  color: #8b929a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-lot-card__wear .mono {
  color: #b8bcbf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.my-lot-card__seller {
  margin: 0;
  overflow: hidden;
  color: #67707b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-lot-card__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  padding-top: 11px;
  border-top: 1px solid rgba(124, 194, 66, 0.08);
}

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

.my-lot-card__price .market-coin { width: 16px; height: 16px; }

.my-lot-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5d6670;
  font-size: 11px;
  white-space: nowrap;
}

.my-lot-card__date svg { width: 12px; height: 12px; }

.my-lot-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-lot-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.my-lot-status.is-active {
  background: rgba(124, 194, 66, 0.1);
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.3);
  color: #7cc242;
}

.my-lot-status.is-sold {
  background: rgba(164, 208, 7, 0.1);
  box-shadow: inset 0 0 0 1px rgba(164, 208, 7, 0.3);
  color: #b5dc3a;
}

.my-lot-status.is-cancelled {
  background: rgba(222, 54, 24, 0.1);
  box-shadow: inset 0 0 0 1px rgba(222, 54, 24, 0.3);
  color: #f0a090;
}

.my-lot-remove {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.14);
  color: #67707b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.my-lot-remove:hover {
  background: rgba(222, 54, 24, 0.1);
  box-shadow: inset 0 0 0 1px rgba(222, 54, 24, 0.3);
  color: #f0a090;
}

.my-lot-remove svg { width: 14px; height: 14px; }

/* Empty state */

.sell-empty__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #67707b;
}

.sell-empty__icon svg { width: 24px; height: 24px; }

.my-empty-action {
  margin-top: 12px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
}

/* Orders tab reuses the sell page cards */

@media (min-width: 640px) {
  .my-lot-card {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: center;
  }

  .my-lot-card__img { height: 76px; }

  .my-lot-card__side {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0;
    border-top: 0;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .my-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 1023px) {
  .my-hero .sell-hero__top { flex-direction: column; align-items: flex-start; }
  .my-filters { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 767px) {
  .my-hero h1 { font-size: 26px; }
  .my-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .my-tabs::-webkit-scrollbar { display: none; }
  .my-tabs button { flex: 0 0 auto; }
}

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

  .my-tabs button { font-size: 11px; padding: 6px 8px; }
  .my-tabs button span { display: inline; }
}
