/* Pazar yeri */
.mk {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #f7f1e4;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 90% 45% at 20% -8%, rgba(246, 196, 69, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 40% at 90% 0%, rgba(94, 200, 255, 0.1), transparent 48%),
    linear-gradient(180deg, #0c1830 0%, #071018 100%);
  user-select: none;
}
.mk button { -webkit-tap-highlight-color: transparent; }
.mk svg { display: block; }

.mk-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 6px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px;
  border-bottom: 1px solid rgba(246, 196, 69, 0.2);
  background: rgba(8, 16, 30, 0.85);
}
.mk-top h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
}
.mk-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f6c445;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 18px;
  font-weight: 900;
}
.mk-icon svg { width: 22px; height: 22px; }
.mk-icon:active { transform: scale(0.95); }

.mk-wallet {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 0;
}
.mk-wal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #122036;
  border: 1px solid rgba(246, 196, 69, 0.22);
}
.mk-wal.is-gem { border-color: rgba(94, 200, 255, 0.35); }
.mk-wal img { width: 26px; height: 26px; object-fit: contain; }
.mk-wal strong { font-size: 15px; font-weight: 900; }

.mk-note {
  margin: 8px 12px 0;
  font-size: 11px;
  opacity: 0.72;
  text-align: center;
}
.mk-hint {
  margin: 0 0 10px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
}

.mk-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 12px 6px;
}
.mk-tab {
  position: relative;
  z-index: 2;
  min-height: 38px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  color: rgba(247, 241, 228, 0.7);
  background: #122036;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.mk-tab.on {
  background: linear-gradient(180deg, #f0c84a 0%, #c99210 100%);
  border-color: rgba(255, 220, 120, 0.55);
  color: #1a1204;
}
.mk-tab:active { transform: scale(0.97); }
.mk.is-busy .mk-btn,
.mk.is-busy .mk-sell-go { opacity: 0.55; pointer-events: none; }

.mk-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 6px 12px calc(16px + env(safe-area-inset-bottom, 0px));
}
.mk-list, .mk-sell-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk-empty {
  margin: 24px 0;
  text-align: center;
  opacity: 0.6;
}

.mk-card, .mk-sell-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(18, 32, 54, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}
.mk-inspect {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.mk-inspect:active { opacity: 0.88; }
.mk-sell-go {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  color: #1a1204;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffe56a, #c99210);
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.mk-sell-go:active { transform: scale(0.96); }
.mk-empty-sub {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
}
.mk-icon[disabled] { opacity: 0.35; pointer-events: none; }
.mk-card.rarity-rare { border-color: rgba(170, 110, 255, 0.35); }
.mk-card.rarity-legendary { border-color: rgba(246, 196, 69, 0.45); }
.mk-art, .mk-sell-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: block;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.mk-art img, .mk-sell-art img,
.mk-art .art-img, .mk-sell-art .art-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.mk-info, .mk-sell-meta { min-width: 0; }
.mk-info strong, .mk-sell-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-info em, .mk-sell-meta em {
  display: block;
  font-size: 11px;
  font-style: normal;
  opacity: 0.72;
  margin-top: 2px;
}
.mk-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.mk-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
}
.mk-price .mk-coin, .mk-price img {
  width: 18px !important;
  height: 18px !important;
}
.mk-btn {
  min-width: 64px;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 900;
  color: #1a1204;
  background: linear-gradient(180deg, #ffe56a, #c99210);
  border: 0;
}
.mk-btn.is-cancel {
  color: #f7f1e4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mk-btn:active { transform: scale(0.96); }
.mk-own {
  font-size: 11px;
  opacity: 0.6;
  font-weight: 800;
}

.mk-price-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
}
.mk-price-label input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a1528;
  color: #f7f1e4;
  font-size: 16px;
  font-weight: 800;
}
