.shop-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.shop-header,
.shop-dashboard,
.shop-login,
.shop-section {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.shop-brand {
  font-family: Georgia, "Palatino Linotype", serif;
  color: var(--accent-strong);
  font-size: 1.25rem;
  text-decoration: none;
}

.shop-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shop-header nav a {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.shop-header nav a:hover,
.shop-header nav a:focus-visible {
  color: var(--text);
  background: rgba(216, 150, 58, 0.12);
}

.shop-login,
.shop-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 8px;
}

.shop-login h1,
.shop-dashboard h1,
.shop-section h2 {
  margin: 0;
}

.shop-login p {
  max-width: 52rem;
  color: var(--muted);
}

.shop-form {
  display: grid;
  gap: 0.85rem;
}

.shop-form label,
.sell-row {
  display: grid;
  gap: 0.35rem;
}

.shop-form input,
.sell-row input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.shop-money {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
  padding: 1rem;
  border: 1px solid rgba(208, 159, 84, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.shop-money span,
.shop-money small,
.shop-section-head span,
.item-card p,
.market-card p {
  color: var(--muted);
}

.shop-money strong {
  font-size: 1.55rem;
  color: var(--accent-strong);
}

.shop-section {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 8px;
}

.shop-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}

.item-card,
.market-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.item-card {
  grid-template-columns: 52px minmax(0, 1fr);
}

.item-card .sell-row {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.item-card img,
.market-card img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
  image-rendering: pixelated;
}

.item-card h3,
.market-card h3 {
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.item-card p,
.market-card p {
  margin: 0;
  font-size: 0.9rem;
}

.market-card strong {
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.shop-alert {
  margin: 0 0 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(208, 159, 84, 0.25);
}

.shop-alert-ok {
  color: #ddffd0;
  background: rgba(54, 122, 42, 0.22);
}

.shop-alert-error {
  color: #ffe1d8;
  background: rgba(140, 36, 22, 0.28);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shop-header,
  .shop-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-login,
  .shop-dashboard {
    grid-template-columns: 1fr;
  }

  .item-card .sell-row {
    grid-template-columns: 1fr;
  }
}

.bank-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}

.bank-slot {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.bank-slot > strong {
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.bank-slot-items {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 0.45rem;
}

.bank-cell {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.bank-cell-empty {
  opacity: 0.42;
}

.bank-item-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.bank-item-button img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: initial;
  image-rendering: pixelated;
}

.item-bonus,
.item-bound {
  position: absolute;
  right: 2px;
  bottom: 0;
  color: #ff5b4f;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.item-bound {
  left: 3px;
  right: auto;
  color: var(--accent-strong);
}

.bank-sell-panel {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  top: 50px;
  width: 210px;
  padding: 0.75rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.bank-cell:hover .bank-sell-panel,
.bank-cell:focus-within .bank-sell-panel {
  display: grid;
  gap: 0.55rem;
}

.bank-sell-panel h3 {
  margin: 0;
  font-size: 0.98rem;
}

.bank-sell-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.bank-sell-panel input {
  width: 100%;
  min-height: 38px;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}
.bank-cell.is-open .bank-sell-panel {
  display: grid;
  gap: 0.55rem;
}

.bank-cell.is-bound .item-bound {
  color: #ffd27a;
}
.shop-search {
  min-width: min(260px, 100%);
  margin-left: auto;
}

.shop-search input {
  width: 100%;
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.pickup-note {
  margin: -0.4rem 0 1rem;
  color: var(--muted);
}
.is-filter-hidden {
  display: none !important;
}
.account-status {
  display: inline-grid;
  gap: 0.15rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(208, 159, 84, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.account-status strong {
  font-size: 0.95rem;
}

.account-status span,
.sell-fee-preview {
  color: var(--muted);
  font-size: 0.84rem;
}

.account-status.is-online strong {
  color: #ff9a85;
}

.account-status.is-offline strong {
  color: #9ee07f;
}

.market-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: visible;
}

.market-thumb img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
  image-rendering: pixelated;
}

.market-thumb .item-bonus,
.market-thumb .item-bound {
  bottom: 1px;
}

.history-list {
  display: grid;
  gap: 0.65rem;
}

.history-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(208, 159, 84, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.history-row h3,
.history-row p {
  margin: 0;
}

.history-row h3 {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.history-row p {
  color: var(--muted);
  font-size: 0.86rem;
}

.history-row strong {
  color: var(--accent-strong);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .history-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .history-row strong {
    grid-column: 2;
  }
}
.shop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(208, 159, 84, 0.22);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.shop-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
}

.price-hint,
.price-stat {
  color: var(--muted);
  font-size: 0.84rem;
}

.price-hint {
  display: grid;
  gap: 0.4rem;
}

.price-suggest-button {
  justify-self: start;
  min-height: 30px;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(208, 159, 84, 0.26);
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(208, 159, 84, 0.08);
  cursor: pointer;
}

.price-suggest-button:hover,
.price-suggest-button:focus-visible {
  background: rgba(208, 159, 84, 0.16);
}
.history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-left: auto;
}

.history-filter input {
  width: min(260px, 100%);
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
}

.history-filter a {
  color: var(--muted);
  text-decoration: none;
}

.history-filter a:hover,
.history-filter a:focus-visible {
  color: var(--text);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--muted);
}

.pager a,
.pager span {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.pager a,
.pager button {
  color: var(--accent-strong);
  text-decoration: none;
}

.pager a:hover,
.pager a:focus-visible {
  background: rgba(208, 159, 84, 0.12);
}
.pager button {
  font: inherit;
  cursor: pointer;
}

.pager button:disabled {
  opacity: 0.42;
  cursor: default;
}
/* Polished shop controls */
.shop-section {
  overflow: visible;
  border-color: rgba(208, 159, 84, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 229, 176, 0.045), rgba(0, 0, 0, 0) 130px),
    var(--panel);
}

.shop-section-head {
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(208, 159, 84, 0.14);
}

.shop-section-head h2 {
  color: var(--text);
  font-size: 1.22rem;
}

.shop-section-head > span,
.shop-toggle {
  min-height: 38px;
  border-color: rgba(208, 159, 84, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-section-head > span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.shop-search,
.history-filter {
  position: relative;
  min-width: min(320px, 100%);
}

.shop-search::before,
.history-filter::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(255, 210, 122, 0.72);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.shop-search::after,
.history-filter::after {
  content: "";
  position: absolute;
  left: 1.42rem;
  top: 1.36rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 210, 122, 0.72);
  transform: rotate(45deg);
  pointer-events: none;
}

.shop-search input,
.history-filter input {
  min-height: 42px;
  padding-left: 2.35rem;
  border-color: rgba(208, 159, 84, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0)),
    rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.14);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.shop-search input:hover,
.history-filter input:hover {
  border-color: rgba(208, 159, 84, 0.38);
}

.shop-search input:focus,
.history-filter input:focus {
  border-color: rgba(255, 210, 122, 0.62);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(208, 159, 84, 0.13);
}

.shop-search input::placeholder,
.history-filter input::placeholder {
  color: rgba(218, 204, 177, 0.62);
}

.shop-toggle {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0)),
    rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.shop-toggle:hover {
  border-color: rgba(208, 159, 84, 0.4);
  background: rgba(0, 0, 0, 0.3);
}

.shop-toggle input {
  margin: 0;
}

.market-card,
.bank-slot,
.history-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.market-card:hover,
.bank-slot:hover,
.history-row:hover {
  border-color: rgba(208, 159, 84, 0.34);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.market-card:hover {
  transform: translateY(-1px);
}

.market-card strong {
  justify-self: start;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(208, 159, 84, 0.2);
  border-radius: 8px;
  background: rgba(208, 159, 84, 0.08);
}

.price-stat {
  padding-top: 0.15rem;
  border-top: 1px solid rgba(208, 159, 84, 0.1);
}

.market-thumb,
.bank-cell {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 210, 122, 0.1), rgba(0, 0, 0, 0) 62%),
    rgba(0, 0, 0, 0.22);
}

.bank-cell:hover,
.bank-cell:focus-within {
  border-color: rgba(255, 210, 122, 0.42);
  box-shadow: 0 0 0 2px rgba(208, 159, 84, 0.12);
}

.bank-sell-panel {
  border-color: rgba(255, 210, 122, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 229, 176, 0.06), rgba(0, 0, 0, 0) 86px),
    var(--panel-strong);
}

.pager {
  padding-top: 0.25rem;
}

.pager a,
.pager button,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  border-color: rgba(208, 159, 84, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pager span {
  color: var(--text);
  background: rgba(208, 159, 84, 0.08);
}

.pager a,
.pager button {
  background: rgba(0, 0, 0, 0.22);
}

.pager a:hover,
.pager a:focus-visible,
.pager button:hover:not(:disabled),
.pager button:focus-visible:not(:disabled) {
  border-color: rgba(255, 210, 122, 0.46);
  background: rgba(208, 159, 84, 0.14);
}

@media (max-width: 760px) {
  .shop-search,
  .history-filter,
  .shop-toggle,
  .shop-section-head > span {
    width: 100%;
    margin-left: 0;
  }

  .shop-section-head > span,
  .shop-toggle {
    justify-content: center;
  }
}
.money-pickup-card {
  border-color: rgba(255, 210, 122, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 210, 122, 0.08), rgba(0, 0, 0, 0) 90px),
    rgba(0, 0, 0, 0.2);
}

.money-pickup-card .market-thumb {
  border: 1px solid rgba(255, 210, 122, 0.22);
  border-radius: 8px;
}

.money-pickup-card strong {
  color: #ffd27a;
}
/* Pager contrast hard override */
.pager button,
.pager a {
  color: #ffd27a !important;
  -webkit-text-fill-color: #ffd27a;
}

.pager button:disabled {
  color: #b8aa91 !important;
  -webkit-text-fill-color: #b8aa91;
  opacity: 1 !important;
}
.request-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.75fr) minmax(180px, auto) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.request-create-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.request-create-form input {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
}

.request-fee-preview {
  color: var(--muted);
  font-size: 0.84rem;
  align-self: center;
}

.request-card {
  border-color: rgba(128, 174, 209, 0.2);
}

.request-card:hover {
  border-color: rgba(128, 174, 209, 0.34);
}

@media (max-width: 920px) {
  .request-create-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .request-create-form {
    grid-template-columns: 1fr;
  }
}
/* Request form visual override */
.request-create-form {
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.65fr) minmax(210px, auto) auto !important;
  gap: 0.85rem !important;
  align-items: end !important;
  padding: 1rem !important;
  border-color: rgba(208, 159, 84, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255, 229, 176, 0.055), rgba(0, 0, 0, 0) 92px),
    rgba(0, 0, 0, 0.22) !important;
}

.request-create-form label {
  position: relative;
  gap: 0.42rem !important;
  color: var(--text) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.request-create-form label span {
  color: var(--muted);
  font-weight: 700;
}

.request-create-form input {
  min-height: 44px !important;
  padding: 0.6rem 0.75rem !important;
  border-color: rgba(208, 159, 84, 0.28) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0)),
    rgba(0, 0, 0, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 18px rgba(0, 0, 0, 0.12) !important;
  outline: none !important;
}

.request-create-form input:hover {
  border-color: rgba(208, 159, 84, 0.42) !important;
}

.request-create-form input:focus {
  border-color: rgba(255, 210, 122, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(208, 159, 84, 0.14) !important;
}

.request-create-form input::placeholder {
  color: rgba(218, 204, 177, 0.62) !important;
  -webkit-text-fill-color: rgba(218, 204, 177, 0.62);
}

.request-create-form label:first-of-type input {
  padding-left: 2.35rem !important;
}

.request-create-form label:first-of-type::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  bottom: 0.96rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(255, 210, 122, 0.72);
  border-radius: 50%;
  pointer-events: none;
}

.request-create-form label:first-of-type::after {
  content: "";
  position: absolute;
  left: 1.42rem;
  bottom: 0.84rem;
  width: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 210, 122, 0.72);
  transform: rotate(45deg);
  pointer-events: none;
}

.request-fee-preview {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.request-fulfill-form {
  display: grid;
  gap: 0.55rem;
}

.request-fulfill-form select {
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  outline: none;
}

.request-fulfill-form select:hover,
.request-fulfill-form select:focus {
  border-color: rgba(255, 210, 122, 0.58);
  box-shadow: 0 0 0 3px rgba(208, 159, 84, 0.12);
}

.request-fulfill-form option {
  color: #1f160f;
  background: #f1e1c3;
}
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.shop-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font: inherit;
  cursor: pointer;
}

.shop-tabs button span {
  min-width: 1.45rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  color: #1f160f;
  background: rgba(255, 210, 122, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.shop-tabs button:hover,
.shop-tabs button:focus-visible {
  border-color: rgba(255, 210, 122, 0.44);
  color: var(--text);
  outline: none;
}

.shop-tabs button.is-active {
  border-color: rgba(255, 210, 122, 0.62);
  color: #ffd27a;
  background: rgba(208, 159, 84, 0.14);
  box-shadow: 0 0 0 3px rgba(208, 159, 84, 0.1);
}

.shop-tab-panel[hidden] {
  display: none !important;
}

.shop-tab-panel {
  margin-top: 0.75rem;
}

@media (max-width: 760px) {
  .shop-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-tabs button {
    justify-content: center;
  }
}
/* Compact logged-in player card */
.shop-dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 0.9rem;
  padding: 0.8rem 1rem;
}

.account-title {
  display: grid;
  gap: 0.25rem;
}

.account-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.shop-dashboard h1 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
}

.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(0, 0, 0, 0.22);
}

.account-status.is-online {
  color: #ff9a85;
  border-color: rgba(255, 154, 133, 0.38);
}

.account-status.is-offline {
  color: #9ee07f;
  border-color: rgba(158, 224, 127, 0.38);
}

.shop-money {
  gap: 0.08rem;
  padding: 0.65rem 0.75rem;
}

.shop-money strong {
  font-size: 1.28rem;
}
.account-vip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 210, 122, 0.5);
  border-radius: 999px;
  color: #ffd27a;
  background: rgba(255, 210, 122, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}
/* Count labels and mobile player card fixes */
[data-market-count],
[data-request-count],
[data-history-count] {
  display: inline-block;
  margin-right: 0.28em;
}

@media (max-width: 760px) {
  .shop-dashboard {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.75rem;
    align-items: stretch;
  }

  .shop-dashboard > div:first-child {
    min-width: 0;
  }

  .account-title {
    gap: 0.18rem;
  }

  .account-name-row {
    gap: 0.38rem;
  }

  .shop-dashboard h1 {
    font-size: 1.28rem;
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .account-status,
  .account-vip {
    min-height: 24px;
    padding: 0.22rem 0.45rem;
    font-size: 0.74rem;
  }

  .shop-money {
    width: 100%;
    padding: 0.55rem 0.65rem;
  }

  .shop-money strong {
    font-size: 1.12rem;
  }
}
/* Item bundles */
.bundle-sell-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.bundle-sell-form label,
.request-line label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.bundle-sell-form input,
.request-line input {
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(208, 159, 84, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
}

.bundle-pick {
  position: absolute;
  z-index: 3;
  right: -6px;
  top: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 210, 122, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.bundle-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bundle-pick span {
  color: #ffd27a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.bundle-pick:has(input:checked) {
  background: rgba(255, 210, 122, 0.88);
}

.bundle-pick:has(input:checked) span {
  color: #1f160f;
}

.bundle-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bundle-summary span {
  padding: 0.22rem 0.45rem;
  border: 1px solid rgba(208, 159, 84, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.8rem;
}

.request-lines {
  display: grid;
  gap: 0.55rem;
}

.request-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px auto;
  gap: 0.55rem;
  align-items: end;
}

@media (max-width: 760px) {
  .bundle-sell-form,
  .request-line {
    grid-template-columns: 1fr;
  }
}
.bundle-thumb {
  justify-content: flex-start;
  isolation: isolate;
}

.bundle-thumb img {
  position: absolute;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
}

.bundle-thumb img:nth-child(1) {
  left: 6px;
  top: 8px;
  z-index: 4;
}

.bundle-thumb img:nth-child(2) {
  left: 18px;
  top: 13px;
  z-index: 3;
  opacity: 0.92;
}

.bundle-thumb img:nth-child(3) {
  left: 28px;
  top: 6px;
  z-index: 2;
  opacity: 0.84;
}

.bundle-thumb img:nth-child(4) {
  left: 33px;
  top: 21px;
  z-index: 1;
  opacity: 0.76;
}

/* Clear disabled action buttons */
.shop-shell .button:disabled,
.shop-shell button:disabled:not(.shop-tabs button):not(.pager button),
.shop-shell .button[disabled] {
  border-color: rgba(150, 142, 126, 0.28) !important;
  color: #9d968a !important;
  -webkit-text-fill-color: #9d968a;
  background: linear-gradient(180deg, rgba(82, 78, 70, 0.46), rgba(45, 43, 39, 0.56)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  filter: grayscale(0.35);
}

.shop-shell .button:disabled:hover,
.shop-shell .button:disabled:focus-visible,
.shop-shell button:disabled:not(.shop-tabs button):not(.pager button):hover,
.shop-shell button:disabled:not(.shop-tabs button):not(.pager button):focus-visible {
  border-color: rgba(150, 142, 126, 0.28) !important;
  color: #9d968a !important;
  -webkit-text-fill-color: #9d968a;
  background: linear-gradient(180deg, rgba(82, 78, 70, 0.46), rgba(45, 43, 39, 0.56)) !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none;
}

/* History player quick filter */
.history-player-link {
  display: inline;
  padding: 0;
  border: 0;
  color: #ffd27a;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 122, 0.42);
  text-underline-offset: 0.16em;
}

.history-player-link:hover,
.history-player-link:focus-visible {
  color: #fff0bd;
  text-decoration-color: currentColor;
  outline: none;
}

.history-player-stats {
  flex-basis: 100%;
  margin: -0.25rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 210, 122, 0.24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(208, 159, 84, 0.1);
  font-size: 0.9rem;
}