/* ═══════════════════════════════════════════════════════════════
   ADMIN SHOP MANAGER — Cinematic dark fantasy backend
   Style aligned with Admin Sanctum (admin.css) + hero-stage.css
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SCROLL ARCHITECTURE — full-width scroll + fixed save bar
   ═══════════════════════════════════════════════════════════════
   Strategy:
   - .ashop-stage = FULL-WIDTH scroll container (overflow-y: auto)
     → scrollbar at the extreme right edge of screen (not inside content)
   - .ashop-bg + .ashop-vignette = position: sticky, fixed visually behind content
   - .ashop-content = max-width wrapper, centered (1400px)
   - .ashop-save-bar = position: fixed at viewport bottom (never moves)
   ═══════════════════════════════════════════════════════════════ */
.ashop-stage {
  position: relative;
  height: 100%;
  overflow-y: auto;                  /* SCROLL HERE — full-width → scrollbar at right edge */
  overflow-x: hidden;
  font-family: 'Crimson Text', serif;
  color: #e8d5a3;
  margin: -24px -36px 0;
  width: calc(100% + 72px);
}
@media (max-width: 768px) {
  .ashop-stage { margin: -11px -8px 0; width: calc(100% + 16px); }
}

/* Custom scrollbar — matches gold theme, appears at far right */
.ashop-stage::-webkit-scrollbar { width: 12px; }
.ashop-stage::-webkit-scrollbar-track { background: rgba(0,0,0,0.35); }
.ashop-stage::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8a6018, #5a3e08);
  border-radius: 6px;
  border: 1px solid rgba(212,165,69,0.4);
}
.ashop-stage::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a47028, #7a5418);
}

/* Background + vignette use sticky trick: stay visually in viewport while content scrolls */
.ashop-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;             /* collapse flow impact — only visual overlay */
  background-image: url('../assets/images/kingdom-night.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.22) saturate(0.8);
  z-index: 0;
  pointer-events: none;
  animation: ashopBgPan 60s ease-in-out infinite alternate;
}
@keyframes ashopBgPan {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.1) translate(-15px, -10px); }
}

.ashop-vignette {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(5, 3, 2, 0.75) 90%),
    linear-gradient(180deg, rgba(10, 6, 2, 0.5) 0%, transparent 40%, rgba(10, 6, 2, 0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.ashop-content {
  position: relative;
  z-index: 10;
  padding: 24px 40px 140px;          /* 140px bottom = space for fixed save bar */
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .ashop-content { padding: 16px 14px 120px; }
}

/* ──────────── Back button (positioned relative in content flow, not floating) ──────────── */
.ashop-back-btn {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(20, 12, 6, 0.85);
  border: 1px solid rgba(212, 165, 69, 0.55);
  color: #e8d5a3;
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s;
  border-radius: 4px;
  margin-bottom: 24px;
  align-self: flex-start;
}
.ashop-back-btn:hover {
  background: rgba(40, 24, 10, 0.9);
  border-color: rgba(212, 165, 69, 0.85);
  color: #ffd700;
}

/* ──────────── Hero ──────────── */
.ashop-hero {
  text-align: center;
  margin-bottom: 28px;
}
.ashop-title {
  font-family: 'Crimson Text', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 4px;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.9);
}
.ashop-subtitle {
  font-style: italic;
  color: #c8a96e;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* ──────────── Tabs ──────────── */
.ashop-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(212, 165, 69, 0.3);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.ashop-tab {
  padding: 14px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(200, 180, 140, 0.6);
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.ashop-tab:hover {
  color: #ffd700;
  background: rgba(212, 165, 69, 0.08);
}
.ashop-tab.active {
  color: #ffd700;
  border-bottom-color: #d4a545;
  text-shadow: 0 0 12px rgba(212, 165, 69, 0.4);
}
.ashop-tab-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: rgba(212, 165, 69, 0.2);
  border: 1px solid rgba(212, 165, 69, 0.4);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #ffd700;
}

/* ──────────── Panels ──────────── */
.ashop-panel {
  display: none;
  animation: ashopFadeIn 0.4s;
}
.ashop-panel.active { display: block; }
@keyframes ashopFadeIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ──────────── Category filter chips (Items tab) ──────────── */
.ashop-cat-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ashop-cat-chip {
  padding: 8px 18px;
  background: rgba(20, 15, 8, 0.6);
  border: 1px solid rgba(212, 165, 69, 0.3);
  color: #c8a96e;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: capitalize;
}
.ashop-cat-chip:hover {
  background: rgba(45, 33, 16, 0.8);
  border-color: rgba(212, 165, 69, 0.6);
  color: #ffd700;
}
.ashop-cat-chip.active {
  background: linear-gradient(180deg, rgba(138, 106, 32, 0.9) 0%, rgba(90, 66, 20, 0.95) 100%);
  border-color: #d4a545;
  color: #ffd700;
  box-shadow: 0 0 12px rgba(212, 165, 69, 0.25);
}
.ashop-cat-chip-count {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-size: 0.85rem;
}

/* ──────────── Top toolbar (search + add) ──────────── */
.ashop-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ashop-search {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  background: rgba(10, 8, 4, 0.7);
  border: 1px solid rgba(212, 165, 69, 0.4);
  color: #e8d5a3;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  border-radius: 4px;
}
.ashop-search:focus {
  outline: none;
  border-color: #d4a545;
  box-shadow: 0 0 12px rgba(212, 165, 69, 0.2);
}
.ashop-add-btn {
  padding: 10px 24px;
  background: linear-gradient(180deg, #8a6a20 0%, #5a4210 100%);
  border: 1px solid rgba(212, 165, 69, 0.7);
  color: #f5ede0;
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.25s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 230, 140, 0.2);
}
.ashop-add-btn:hover {
  background: linear-gradient(180deg, #b88a30 0%, #8a6a20 100%);
  border-color: #d4a545;
  color: #fff;
  transform: translateY(-1px);
}

/* ──────────── Items Grid ──────────── */
.ashop-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ashop-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(30, 22, 12, 0.95) 0%, rgba(18, 13, 6, 0.98) 100%);
  border: 1px solid rgba(212, 165, 69, 0.35);
  border-radius: 6px;
  padding: 14px;
  transition: all 0.25s;
}
.ashop-item-card:hover {
  border-color: rgba(212, 165, 69, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 18px rgba(212, 165, 69, 0.12);
}
.ashop-item-card.disabled {
  opacity: 0.5;
  border-style: dashed;
}

.ashop-item-preview {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 165, 69, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.ashop-item-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.ashop-item-name {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}
.ashop-item-category {
  font-size: 0.85rem;
  color: rgba(200, 180, 140, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.ashop-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 165, 69, 0.15);
}
.ashop-item-price {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd700;
}
.ashop-item-price.sale {
  color: #e08060;
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 0.95rem;
}
.ashop-item-price-sale {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff6040;
  margin-left: 8px;
  text-shadow: 0 0 8px rgba(255, 96, 64, 0.4);
}
.ashop-item-stat {
  font-size: 0.85rem;
  color: rgba(200, 180, 140, 0.7);
}

.ashop-sale-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 3px 10px;
  background: linear-gradient(90deg, #cc2020, #ff4040);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 3px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 64, 64, 0.5);
  animation: ashopSalePulse 1.8s infinite ease-in-out;
}
@keyframes ashopSalePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.ashop-item-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.ashop-item-btn {
  flex: 1;
  padding: 7px 12px;
  background: rgba(20, 15, 8, 0.8);
  border: 1px solid rgba(212, 165, 69, 0.4);
  color: #c8a96e;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
.ashop-item-btn:hover {
  background: rgba(40, 28, 14, 0.95);
  color: #ffd700;
  border-color: rgba(212, 165, 69, 0.7);
}
.ashop-item-btn.danger {
  border-color: rgba(180, 40, 40, 0.5);
  color: #e08060;
}
.ashop-item-btn.danger:hover {
  background: rgba(100, 20, 20, 0.8);
  border-color: rgba(220, 80, 80, 0.8);
  color: #ff8060;
}

/* ──────────── Empty state ──────────── */
.ashop-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(200, 180, 140, 0.6);
  font-style: italic;
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════
   EDITOR PANEL — add/edit item
   ══════════════════════════════════════════════════════════════ */
.ashop-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(30, 22, 12, 0.92) 0%, rgba(18, 13, 6, 0.96) 100%);
  border: 1px solid rgba(212, 165, 69, 0.4);
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Save bar — FIXED at viewport bottom, ALWAYS visible, never overlaps tabs.
   Visible only when Editor tab is rendered (innerHTML conditional in ui.js). */
.ashop-save-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1320px);
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(30, 22, 12, 0.98) 0%, rgba(12, 8, 4, 0.99) 100%);
  border: 2px solid rgba(212, 165, 69, 0.55);
  border-radius: 8px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 165, 69, 0.12);
  z-index: 40;                 /* above content (10), below maintenance banner (100000) */
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}
/* When maintenance banner is active, save bar shifts up slightly so it's fully visible */
body.maint-banner-active .ashop-save-bar { bottom: 16px; }
@media (max-width: 768px) {
  .ashop-save-bar { width: 94%; bottom: 12px; padding: 12px 14px; }
}
.ashop-save-bar-inner {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.ashop-save-bar .ashop-btn-save {
  flex: 1;
  max-width: 400px;
  padding: 16px 30px;
  font-size: 1.25rem;
  animation: ashopSaveGlow 2.4s infinite ease-in-out;
}
@keyframes ashopSaveGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 14px rgba(212,165,69,0.3); }
  50%      { box-shadow: 0 4px 18px rgba(0,0,0,0.6), 0 0 24px rgba(255,215,0,0.5); }
}
@media (max-width: 900px) {
  .ashop-editor { grid-template-columns: 1fr; }
}

.ashop-editor-section-title {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  color: #ffd700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 165, 69, 0.25);
}

.ashop-form-row {
  margin-bottom: 14px;
}
.ashop-form-row label {
  display: block;
  font-size: 0.95rem;
  color: #c8a96e;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.ashop-form-row input[type="text"],
.ashop-form-row input[type="number"],
.ashop-form-row select,
.ashop-form-row textarea {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 165, 69, 0.3);
  color: #e8d5a3;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  border-radius: 3px;
}
.ashop-form-row input:focus,
.ashop-form-row select:focus,
.ashop-form-row textarea:focus {
  outline: none;
  border-color: #d4a545;
  box-shadow: 0 0 10px rgba(212, 165, 69, 0.2);
}
.ashop-price-hint {
  font-size: 0.85rem;
  color: rgba(200, 180, 140, 0.65);
  font-style: italic;
  margin-top: 6px;
  line-height: 1.4;
}

/* File upload */
.ashop-file-drop {
  border: 2px dashed rgba(212, 165, 69, 0.4);
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  color: #c8a96e;
  cursor: pointer;
  transition: all 0.2s;
}
.ashop-file-drop:hover {
  border-color: #d4a545;
  background: rgba(212, 165, 69, 0.05);
}
.ashop-file-drop.has-file {
  border-color: #ffd700;
  background: rgba(212, 165, 69, 0.1);
  color: #ffd700;
}
.ashop-file-drop input[type="file"] {
  display: none;
}

/* Preview canvas with joystick */
.ashop-preview-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 165, 69, 0.25);
  border-radius: 6px;
}
.ashop-preview-stage {
  position: relative;
  width: 240px;
  height: 240px;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.03) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.03) 75%),
    rgba(20, 12, 6, 0.8);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  border: 1px solid rgba(212, 165, 69, 0.3);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ashop-preview-img {
  transform-origin: center;
  transition: transform 0.1s;
}

/* Joystick (circle + draggable dot) */
.ashop-joystick-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ashop-joystick {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(20, 15, 8, 0.9) 0%, rgba(5, 3, 2, 0.95) 100%);
  border: 2px solid rgba(212, 165, 69, 0.5);
  cursor: pointer;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.ashop-joystick::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(212, 165, 69, 0.2);
}
.ashop-joystick::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(212, 165, 69, 0.2);
}
.ashop-joystick-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd700, #b88a30);
  border: 1px solid #5a4210;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 215, 0, 0.4);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: box-shadow 0.15s;
}
.ashop-joystick-dot:active {
  cursor: grabbing;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 14px rgba(255, 215, 0, 0.6);
}
.ashop-joystick-label {
  font-size: 0.82rem;
  color: rgba(200, 180, 140, 0.6);
  letter-spacing: 0.5px;
}

/* Slider controls */
.ashop-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.ashop-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #c8a96e;
  letter-spacing: 0.5px;
}
.ashop-slider-label span:last-child {
  color: #ffd700;
  font-weight: 700;
}
.ashop-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(90, 66, 20, 0.5) 0%, rgba(212, 165, 69, 0.7) 100%);
  border-radius: 3px;
  outline: none;
}
.ashop-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #b88a30);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(212, 165, 69, 0.5);
  border: 1px solid #5a4210;
}
.ashop-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #b88a30);
  cursor: pointer;
  border: 1px solid #5a4210;
}

/* Action buttons in editor */
.ashop-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 165, 69, 0.3);
  margin-top: 10px;
}
.ashop-btn-save {
  padding: 12px 28px;
  background: linear-gradient(180deg, #8a6a20 0%, #5a4210 100%);
  border: 1px solid rgba(212, 165, 69, 0.7);
  color: #f5ede0;
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.25s;
}
.ashop-btn-save:hover {
  background: linear-gradient(180deg, #b88a30 0%, #8a6a20 100%);
  border-color: #ffd700;
  color: #fff;
}
.ashop-btn-cancel {
  padding: 12px 28px;
  background: rgba(20, 15, 8, 0.7);
  border: 1px solid rgba(212, 165, 69, 0.3);
  color: #c8a96e;
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  cursor: pointer;
  border-radius: 4px;
}
.ashop-btn-cancel:hover {
  border-color: rgba(212, 165, 69, 0.6);
  color: #ffd700;
}

.ashop-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
}
.ashop-status.success {
  background: rgba(40, 160, 80, 0.15);
  border: 1px solid rgba(60, 200, 100, 0.4);
  color: #7bd87b;
}
.ashop-status.error {
  background: rgba(160, 40, 40, 0.15);
  border: 1px solid rgba(220, 80, 80, 0.4);
  color: #e08060;
}

/* Sale section in editor */
.ashop-sale-section {
  padding: 14px;
  background: rgba(140, 30, 30, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.35);
  border-radius: 5px;
  margin-top: 10px;
}
.ashop-sale-section .ashop-editor-section-title {
  color: #ff8060;
  border-bottom-color: rgba(220, 80, 80, 0.25);
}

/* Dashboard stats cards */
.ashop-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ashop-stat-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(30, 22, 12, 0.9) 0%, rgba(18, 13, 6, 0.95) 100%);
  border: 1px solid rgba(212, 165, 69, 0.35);
  border-radius: 5px;
  text-align: center;
}
.ashop-stat-label {
  font-size: 0.9rem;
  color: rgba(200, 180, 140, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ashop-stat-value {
  font-family: 'Crimson Text', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 14px rgba(212, 165, 69, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   PLAYER SHOP — item cards, empty state, gold display
   ══════════════════════════════════════════════════════════════ */
.shop-gold-display {
  text-align: center;
  font-family: 'Crimson Text', serif;
  font-size: 1.15rem;
  color: #c8a96e;
  margin-bottom: 20px;
}
.shop-gold-display strong {
  color: #ffd700;
  font-size: 1.3rem;
}

.shop-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(30, 22, 12, 0.5) 0%, rgba(18, 13, 6, 0.7) 100%);
  border: 1px dashed rgba(212, 165, 69, 0.3);
  border-radius: 8px;
  margin: 40px auto;
  max-width: 480px;
}
.shop-empty-icon {
  font-size: 3.5rem;
  color: rgba(212, 165, 69, 0.5);
  margin-bottom: 14px;
}
.shop-empty-title {
  font-family: 'Crimson Text', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.shop-empty-desc {
  color: rgba(200, 180, 140, 0.7);
  font-style: italic;
  font-size: 1rem;
}

.shop-item-card.equipped {
  border-color: #ffd700 !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35) !important;
}
.shop-item-preview-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.shop-item-preview-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.shop-item-name {
  font-family: 'Crimson Text', serif;
  font-size: 1.1rem;
  color: #ffd700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.shop-item-price-row {
  text-align: center;
  margin-bottom: 8px;
}
.shop-item-price {
  font-family: 'Crimson Text', serif;
  font-size: 1.2rem;
  color: #ffd700;
  font-weight: 700;
}
.shop-item-buy-btn, .shop-item-equip-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(180deg, #8a6a20 0%, #5a4210 100%);
  border: 1px solid rgba(212, 165, 69, 0.6);
  color: #f5ede0;
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.shop-item-buy-btn:hover:not(:disabled),
.shop-item-equip-btn:hover:not(.equipped) {
  background: linear-gradient(180deg, #b88a30 0%, #8a6a20 100%);
  border-color: #ffd700;
  color: #fff;
}
.shop-item-buy-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.shop-item-equip-btn.equipped {
  background: linear-gradient(180deg, rgba(60,180,80,0.4) 0%, rgba(40,130,60,0.5) 100%);
  border-color: rgba(100, 220, 120, 0.7);
  color: #b8e8b8;
  cursor: default;
}

/* Picker hint + Shop redirect button (Settings → Avatar/Frame pickers) */
.picker-hint {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(200, 180, 140, 0.7);
  margin: 10px auto 20px;
  max-width: 500px;
}
.picker-shop-btn {
  display: block;
  margin: 24px auto 0;
  padding: 12px 28px;
  background: linear-gradient(180deg, #8a6a20 0%, #5a4210 100%);
  border: 1px solid rgba(212, 165, 69, 0.7);
  color: #f5ede0;
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.25s;
}
.picker-shop-btn:hover {
  background: linear-gradient(180deg, #b88a30 0%, #8a6a20 100%);
  border-color: #ffd700;
  color: #fff;
  transform: translateY(-1px);
}
