
/* Rings — directly under image */
#shop-ring-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #ffd60a;
  flex-wrap: wrap;
  flex-shrink: 0;
}

#shop-ring-display .currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#shop-ring-display .currency + .currency {
  margin-left: 10px;
}
#shop-ring-display img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

/* BUY / SELL — pinned near bottom, not flush */
.mode-tabs {
  margin-top: auto;
  margin-bottom: 6px; /* ⬅ lifts buttons upward */
  display: flex;
  gap: 8px;
  width: 100%;
}

.mode-tabs .mode-btn {
  flex: 1;
  padding: 10px 0;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #415a77;
  color: #fff;
}

.mode-tabs .mode-btn.active {
  background: #1b263b;
  outline: 2px solid #ffd60a;
}

/* ============================
   RIGHT SIDE (CONTENT — FULL HEIGHT)
   ============================ */
#shop-panel .shop-right {
  color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

/* ============================
   Shop mode containers
   ============================ */
.shop-mode {
  display: none;
  flex: 1;
  min-height: 0;
}

.shop-mode.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ============================
   BUY MODE CATEGORY TABS
   ============================ */
#shop-panel .tabs button {
  flex: 1;
  padding: 8px 0;
  font-size: 15px;
  font-weight: bold;
  background: #415a77;
  border: none;
  border-radius: 8px;
  color: #fff;
}

#shop-panel .tabs button.active {
  background: #1b263b;
  outline: 2px solid #ffd60a;
}

/* ============================
   Scrollable BUY list (FULL HEIGHT)
   ============================ */
#shop-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #0d1b2a;
  border-radius: 8px;
  padding: 6px;
}

#shop-panel .shop-item {
  background: #415a77;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}

#shop-panel .shop-item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: none;          /* sprite-sheet safe */
  object-position: 0px 0px;
  image-rendering: pixelated;
}

#shop-panel .shop-item.equip img {
  width: 32px;
  height: 32px;

  object-fit: none;          /* ✅ sprite-sheet safe */
  object-position: 0px 0px;  /* ✅ F-facing frame */

  image-rendering: pixelated;
}

/* ============================
   SELL MODE
   ============================ */
#sell-box {
  flex: 1;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 100%;
  min-height: 240px;
  padding: 20px;
  background: #0d1b2a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #415a77;
  box-sizing: border-box;
}

#sell-dropzone {
  width: min(220px, 80%);
  pointer-events: auto;
  min-width: 180px;
  height: 160px;
  background: #1b263b;
  border: 2px solid #415a77;
  border-radius: 12px;
  margin-bottom: 12px;
}

#sell-label {
  font-size: 14px;
  color: #a5b3cf;
  margin: 0;
}

#sell-info {
  font-size: 13px;
  color: #ffd60a;
  text-align: center;
  margin-top: 6px;
}

.hidden {
}

/* ============================
   Shop Confirm Panel (UNCHANGED)
   ============================ */
.shop-confirm-header {
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.shop-confirm-body {
  padding: 16px;
  text-align: center;
}

.shop-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0 16px 0;
}

.shop-confirm-buttons .ui-btn {
  background: rgba(0, 180, 216, 0.25);
  border: 1px solid #00b4d8;
  color: #fff;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.shop-confirm-buttons .ui-btn:hover {
  background: rgba(0, 180, 216, 0.45);
}

/* Stats panel debug toggle */
.stats-debug-toggle {
  position: absolute;
  top: 6px;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  color: #fff;
  cursor: pointer;
}
.stats-debug-toggle:hover {
  background: rgba(0,0,0,0.35);
}


/* ============================================================
   Shop revamp — cart-based buy flow + inventory-sized shell
   ============================================================ */
#shop-panel.panel {
  display: flex;
  flex-direction: column;
}

