/* =========================================
   STORAGE PAGE ONLY: background + overlay
   (same concept as market, but scoped to #site-storage)
   ========================================= */

body#site-storage{
  position: relative;
  background: url("/assets/images/site_storage.webp") no-repeat center top fixed !important;
  background-size: cover !important;
  background-color: #000 !important; /* fallback */
}

/* overlay layer */
body#site-storage::before{
  content:"";
  position: fixed;
  inset: 0;

  /* same vibe as market */
  background: linear-gradient(
    135deg,
    rgba(8,16,28,0.55),
    rgba(8,16,28,0.35) 40%,
    rgba(8,16,28,0.55)
  );

  /* If storage page was causing STATUS_BREAKPOINT, keep blur light */
  backdrop-filter: blur(2px) saturate(120%);
  -webkit-backdrop-filter: blur(2px) saturate(120%);

  pointer-events: none;
  z-index: 0;
}




#site-storage  .swal2-container {position:fixed !important}
.storage_container {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(227,196,110,.08), transparent 62%),
    linear-gradient(180deg, #4a0b08 0%, #1a1311 55%, #070405 100%) !important;
   padding: 10px;
    border-radius: 10px;
    margin-left:5px;
}

.storage-char-select {
  margin-bottom: 15px;
}
.storage-char-current {
  margin-top: 6px;
  color: #ccc;
}

/* =========================
   MAIN GRID (2 rows)
   Row 1 = slots (equal height)
   Row 2 = gold (bottom)
========================= */
.storage-grid{
  --panelH: clamp(320px, 55vh, 640px);

  display: grid;
  grid-template-columns: 1fr 78px 1fr;
  grid-template-rows: var(--panelH) auto;
  grid-template-areas:
    "site mid depot"
    "siteGold goldMid depotGold";
  gap: 15px;
  align-items: stretch;
}

.site-panel  { grid-area: site; }
.depot-panel { grid-area: depot; }
.item-mid    { grid-area: mid; }

.gold-site   { grid-area: siteGold; }
.gold-center { grid-area: goldMid; }
.gold-depot  { grid-area: depotGold; }

/* =========================
   STORAGE PANELS (slots)
========================= */
.storage-panel {
  background: rgba(0,0,0,0.20);
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-width: 0; /* allows internal scrolling cleanly */
}
.storage-panel h3 {
  margin: 0 0 8px 0;
}

.storage-gold {
  font-size: 13px;
  color: #ffd27f;
  margin: 0 0 8px 0;
}

/* slots area scrolls if needed, and both sides match height because row 1 is fixed */
.slots-wrap{
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
}

/* Optional: nicer scrollbars (Chrome/Edge) */
.slots-wrap::-webkit-scrollbar { width: 10px; }
.slots-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
}
.slots-wrap::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
}

/* =========================
   MIDDLE CONTROLS (items)
========================= */
.storage-middle-controls{
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 6px 0;
  min-width: 78px;
}

.item-mid .mid-top{
  width: 100%;
  display: flex;
  justify-content: center;
}

.item-mid .mid-main{
  margin: auto 0;            /* keeps the group centered vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mid-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  outline: none;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.mid-btn-top {
  background: #555;
  color: #fff;
}
.mid-btn-main {
  background: #2f87ff;
  color: #fff;
}
.mid-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.mid-hint {
  max-width: 120px;
  font-size: 11px;
  color: #ddd;
  text-align: center;
}

/* Move icon */
.mid-btn-main img {
  width: 30px;
  height: 30px;
  display: block;
}



/* =========================
   SLOT GRID
========================= */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
  padding-right: 4px;
  align-content: start;
}

.slot-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.slot-card.selected {
  border-color: #2f87ff;
  box-shadow: 0 0 8px rgba(47,135,255,0.7);
}

.slot-card.empty {
  background: rgba(255,255,255,0.01);
  border: 1px dashed rgba(255,255,255,0.06);
  cursor: default;
}

.slot-icon {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  background-color: rgba(0,0,0,0.4);
}
.slot-icon.empty {
  border-color: rgba(255,255,255,0.06);
  background-color: rgba(0,0,0,0.3);
  background-image: none;
}

.slot-qty {
  position: absolute;
  right: -2px;
  bottom: -2px;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 5px 0 6px 0;
  background: rgba(0,0,0,0.9);
  color: #ffd27f;
  font-weight: 600;
}

/* =========================
   GOLD ROW (BOTTOM)
========================= */
.gold-panel{
  background: linear-gradient(180deg, rgba(255,210,127,0.08), rgba(0,0,0,0.22));
  border: 1px solid rgba(255,210,127,0.14);
  border-radius: 10px;
  padding: 10px 12px;

  align-self: end; /* keep at bottom of row */
}

.gold-title {
  font-size: 12px;
  color: #e7e2d6;
  margin-bottom: 6px;
}

.gold-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gold-balance {
  font-size: 19px;
  color: #4FCAFF;
  white-space: nowrap;
}

.gold-input {
  width: 100%;
  max-width: 160px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 12px;
  outline: none;
}
.gold-input:focus {
  border-color: rgba(47,135,255,0.85);
  box-shadow: 0 0 0 2px rgba(47,135,255,0.15);
}

.gold-subhint {
  margin-top: 6px;
  font-size: 11px;
  color: #b9b2a6;
}

/* middle gold button aligned bottom between both gold panels */
.gold-center{
  display: flex;
  justify-content: center;
  align-items: flex-end; /* bottom align */
  align-self: end;
  padding-bottom: 4px;
}

.gold-move-form{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gold-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,210,127,0.10);
  box-shadow: 0 0 10px rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gold-btn img {
  width: 29px !important;
  height: 29px;
  display: block;
}
.gold-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.gold-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #ddd;
  text-align: center;
  max-width: 160px;
}

/* =========================
   TOOLTIP (unchanged)
========================= */
.tt-item-desc {
  font-size: 11px;
  color: #dddddd;
  margin-bottom: 6px;
}
.tt-item-sockets {
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  gap: 4px;
}
.tt-socket-icon { /* keep your base */
  width: 31px;
  height: 31px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.6);
  image-rendering: pixelated;
}

/* unlocked but empty socket */
.tt-socket-icon.empty{
  opacity: 1;
  background-image: none;
  background-color: rgba(0,0,0,0.6);
}

/* locked socket (greyed out) */
.tt-socket-icon.locked{
  opacity: 0.25;
  background-image: none;
  background-color: rgba(0,0,0,0.6);
}
.item-tooltip {
  position: absolute;
  display: none;
  max-width: 340px;
  padding: 10px 12px;
  background: radial-gradient(circle at top, rgba(60,60,80,0.95), rgba(10,10,18,0.98));
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 128, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  color: #f5f5f5;
  font-size: 12px;
  line-height: 1.35;
  z-index: 10000;
  pointer-events: none;
}
.item-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15,15,24,0.98) transparent transparent transparent;
}
.item-tooltip.below::after {
  bottom: auto;
  top: -6px;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent rgba(15,15,24,0.98) transparent;
}
.tt-item-name {
  font-weight: 600;
  color: #ffdf73;
  margin-bottom: 4px;
}
.tt-item-meta {
  font-size: 11px;
  color: #c0c0c0;
  margin-bottom: 6px;
}
.tt-item-effects{
  margin: 6px 0 0;
  padding: 0;           /* ✅ remove list indent */
}

/* =========================
   MOBILE
========================= */
@media (max-width: 980px){
  .storage-grid{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "site"
      "mid"
      "depot"
      "siteGold"
      "goldMid"
      "depotGold";
  }

  /* middle buttons become a row on mobile */
  .storage-middle-controls{
    flex-direction: row;
    justify-content: center;
    padding: 10px 0;
  }
  .item-mid .mid-main{
    margin: 0;
    flex-direction: row;
    gap: 12px;
  }
  .mid-hint{
    max-width: none;
  }

  .gold-center{
    align-items: center;
    padding-bottom: 0;
  }
}

/* overlay */
.ajax-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.ajax-box {
  padding: 16px 20px;
  background: #171720;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8f8f8;
  font-size: 13px;
}
.ajax-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.gold-panel.active{
  border-color: rgba(47,135,255,0.7);
  box-shadow: 0 0 12px rgba(47,135,255,0.20);
 background: linear-gradient(180deg, rgba(255, 210, 127, 0.08), rgba(0, 0, 0, 0.22));
}

.gold-inline-msg{
  margin-top: 6px;
  font-size: 12px;
  min-height: 16px; /* keeps layout stable */
  color: #bbb;
}
.gold-inline-msg.err{
  color: #ff6b6b;
}
.gold-inline-msg.ok{
  color: #6bff9a;
}
.gold-panel.error{
  outline: 1px solid rgba(255,107,107,.6);
}

/* REQUIRED so absolute overlay is positioned on the button */
.mid-btn,
.gold-btn{
  position: relative;
  overflow: visible;
}

/* Cooldown overlay */
.cd-wrap{
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.cd-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,0.95) var(--deg, 0deg), rgba(255,255,255,0.18) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
}

.cd-num{
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
}

/* SweetAlert item preview */
.swal-item-preview{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:0 0 10px;
}
.swal-item-icon{
  display:inline-block; /* ✅ REQUIRED */
  width:30px;
  height:30px;
  background-repeat:no-repeat;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.swal-item-text{
  text-align:left;
  line-height:1.2;
}
.swal-item-name{
  font-weight:700;
  font-size:14px;
}
.swal-item-sub{
  font-size:12px;
  opacity:.8;
  margin-top:4px;
}

/* Effects spacing */
.item-tooltip .tt-item-effects,
.item-tooltip .tt-set-effects{
  margin: 6px 0 0;
  padding: 0;
}
.item-tooltip .tt-eff-normal,
.item-tooltip .tt-eff-set{
  margin: 2px 0;
  padding-left: 0;
}

/* meta effects: green by default, purple if item_set assigned */
.item-tooltip .tt-eff-meta{ margin: 2px 0; }



.item-tooltip .tt-set-pieces{
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.item-tooltip .tt-set-pieces .tt-set-other{
  color: #b9b2a6;      /* gray */
  font-weight: 500;
}

.item-tooltip .tt-set-pieces .tt-set-current{
  color: #ffd27d;      /* yellow */
  font-weight: 800;
}

/* set_script effects always green */
.item-tooltip .tt-eff-setbonus{
  margin: 2px 0;
  color: #8f8f8f;
}

/* META effects colors */
.item-tooltip .tt-eff-meta.tt-green  { color: #66ff66; }
.item-tooltip .tt-eff-meta.tt-purple { color: #c07cff; }

/* SET_SCRIPT bonuses (per hovered item) */
.item-tooltip .tt-eff-setbonus.is-active   { color: #66ff66; }  /* green */
.item-tooltip .tt-eff-setbonus.is-inactive { color: #8f8f8f; }  /* gray */



.tt-item-kind{
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 4px;
}


/* Tooltip text colors */
.tt-red   { color: #ff6b6b; }
.tt-green { color: #6bff9a; } /* optional, used elsewhere */
.tt-yellow{ color: #ffdf73; }

/* Add option lines (rolled stats) */
.item-tooltip .tt-eff-option{
  margin: 2px 0;
  color: #ffdf73; /* yellow */
  font-weight: 600;
}
.item-tooltip .tt-opt-grade{
  color: #ffdf73;   /* yellow grade */
}
.item-tooltip .tt-opt-text{
  color: #66ff66;   /* green stat text */
  font-weight: 600;
}
.tt-orange { color: #ffdf73; }

.tt-socket-effects{
  margin-top: 6px;
}
.tt-eff-socket{
  margin: 2px 0;
  color: #cfcfcf; /* gray/white */
}


.slot-icon { position: relative; }

.slot-refine{
  position: absolute;
  right: 1px;
  bottom: 2px;
  font-weight: 800;
  font-size: 9px;
  line-height: 1;
  color: #4cff4c;
  text-shadow: 0 0 2px #000, 0 0 4px #000;
  pointer-events: none;
  white-space: nowrap;
}
.slot-refine .ref-main { color: #ffdf73; } /* yellow */
.slot-refine .ref-ex   { color: #6bff9a; } /* green-ish */

.item-tooltip .tt-refine-wrap { font-weight: 700; }
.item-tooltip .tt-ref-label,
.item-tooltip .tt-ref-main { color: #ffdf73; }   /* yellow */
.item-tooltip .tt-ref-ex   { color: #6bff9a; }   /* green-ish */


/*sell popup*/
/* =========================
   SWEETALERT SELL POPUP
========================= */

/* layout */
.swal-sell-wrap{
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.swal-sell-left,
.swal-sell-right{
  flex:1;
  min-width:360px;
  text-align:left;
}

/* icon (prevents showing multiple icons from spritesheet) */
.swal-sell-icon-wrap{
  width:56px;
  height:56px;
  border-radius:12px;
  overflow:hidden;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
}
.swal-sell-icon-inner{
  width:32px;
  height:32px;
  background-repeat:no-repeat;
  image-rendering: pixelated;
  transform: scale(1.75);
  transform-origin: center;
}

/* make tooltip styles apply INSIDE popup */
.sell-tooltip.item-tooltip{
  position: relative;     /* override absolute */
  display: block;         /* override display:none */
  max-width: none;        /* override 340px */
  width: 100%;
  pointer-events: auto;   /* allow scrolling/selecting */
  margin: 0;
}
.sell-tooltip.item-tooltip::after{
  display:none;           /* no arrow in popup */
}

/* scroll container */
.swal-sell-tooltip{
  max-height: 430px;
  overflow: auto;

}

/* mobile: stack columns */
@media (max-width: 900px){
  .swal-sell-wrap{ flex-direction: column; }
  .swal-sell-left, .swal-sell-right{ min-width: 0; }
  .swal-sell-tooltip{ max-height: 320px; }
}

/* =========================
   SWEETALERT SELL POPUP THEME (dark)
========================= */
.swal2-popup.sell-popup{
  background: radial-gradient(circle at top, rgba(60,40,32,0.98), rgba(10,10,18,0.98));
  border: 1px solid rgba(255,210,127,0.22);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.75);
  color: #f5f5f5;
  padding: 16px 18px 14px;
}

.swal2-popup.sell-popup .sell-title{
  color: #f2f2f2;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 6px;
}

.swal2-popup.sell-popup .sell-html{
  margin: 0;
  padding: 0;
  color: #f5f5f5;
}

/* buttons */
.swal2-popup.sell-popup .sell-actions{
  margin-top: 12px;
}
.swal2-popup.sell-popup .sell-confirm{
  border-radius: 10px !important;
  font-weight: 800;
}
.swal2-popup.sell-popup .sell-cancel{
  border-radius: 10px !important;
  font-weight: 700;
  opacity: .9;
}

/* =========================
   SELL LAYOUT + ALIGNMENT
========================= */
.sell-item-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 12px;
}

.sell-item-meta .sell-item-name{
  font-weight: 800;
  font-size: 16px;
}
.sell-item-meta .sell-item-sub{
  font-size: 12px;
  opacity: .75;
}

/* right title */
.sell-right-title{
  font-weight: 900;
  font-size: 18px;
  margin: 4px 0 10px;
}

/* tabs (segmented) */
.sell-tabs{
  display:flex;
  gap:10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 14px;
}
.sell-tab{
  flex:1;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.sell-tab.is-active{
  background: linear-gradient(180deg, rgba(255,180,60,1), rgba(220,120,20,1));
  color: #1a1208;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.sell-tab.is-disabled{
  opacity: .35;
  cursor: default;
}

/* grid row: Currency | Price | Tax | Reward */
.sell-row{
  display:grid;
  grid-template-columns: 1.1fr 1.2fr .8fr .8fr;
  gap: 12px;
  align-items:center;
}

.sell-row-head{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 800;
}

.sell-row-body{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* currency cell */
.sell-currency{
  display:flex;
  align-items:center;
  gap:10px;
}
.sell-currency-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,210,127,0.14);
  border: 1px solid rgba(255,210,127,0.22);
  color: #ffd27f;
  font-weight: 900;
  font-size: 12px;
}
.sell-currency-label{
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}

/* price cell */
.sell-price-input{
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: #fff;
  outline: none;
  font-weight: 800;
}
.sell-price-input:focus{
  border-color: rgba(255,180,60,0.7);
  box-shadow: 0 0 0 2px rgba(255,180,60,0.12);
}

/* tax + reward */
.sell-tax{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-weight: 800;
}
.sell-tax-rate{
  opacity: .85;
}
.sell-tax-amt{
  color: #ffd27f;
}

/* default if you want */
#sellRewardAmt { font-weight: 900; }

#sellRewardAmt.is-gold  { color: #ffd36a; }  /* yellow-ish gold */
#sellRewardAmt.is-coins { color: #affff5; }  /* donation coins */

.sell-err{
  margin-top: 10px;
  min-height: 18px;
  color: #ffb3b3;
  font-weight: 700;
}

/* keep your tooltip rendering in popup */
.sell-tooltip.item-tooltip{
  position: relative;
  display: block;
  max-width: none;
  width: 100%;
  pointer-events: auto;
  margin: 0;
}
.sell-tooltip.item-tooltip::after{ display:none; }

/* icon sizing */
.swal-sell-icon-wrap{
  width:56px;
  height:56px;
  border-radius:12px;
  overflow:hidden;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
}
.swal-sell-icon-inner{
  width:32px;
  height:32px;
  background-repeat:no-repeat;
  image-rendering: pixelated;
  transform: scale(1.35);
  transform-origin: center;
}

/* mobile stacking */
@media (max-width: 900px){
  .swal-sell-wrap{ flex-direction: column; }
  .swal-sell-left, .swal-sell-right{ min-width: 0; }
  .swal-sell-tooltip{ max-height: 320px; }
  .sell-row{ grid-template-columns: 1fr; }
  .sell-row-head{ display:none; }
  .sell-row-body{
    gap: 10px;
    grid-template-columns: 1fr;
  }
}

/* Sell popup: make Quantity pop */
.sell-item-meta .sell-item-sub{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.78);
}

/* the "x8" part */
.sell-item-meta .sell-item-sub b{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;

  color: #FFF;
  background: linear-gradient(180deg, rgba(255,195,75,1), rgba(220,120,20,1));
  border: 1px solid rgba(255,210,127,.25);
  box-shadow:
    0 10px 18px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(0,0,0,.22);

  /* subtle "glow" */
  filter: drop-shadow(0 0 8px rgba(255,180,60,.22));
}

/* optional: tiny label emphasis */
.sell-item-meta .sell-item-sub::before{

  font-weight: 800;
  color: rgba(255,255,255,.85);
}

/* if you already print "Quantity:" in HTML, hide the duplicate label */
.sell-item-meta .sell-item-sub{
  /* remove this line if you prefer to keep "Quantity:" text from HTML */
}


/* default (Gold) */
.sell-currency-pill{
  background: rgba(255,210,127,0.14);
  border: 1px solid rgba(255,210,127,0.22);
  color: #ffd27f;
}

/* 9DCoins (blue like your screenshot) */
.sell-currency-pill.is-coins{

  border: 1px solid rgba(120, 255, 235, 0.38);
  color: #bffef2;
  box-shadow:
    0 10px 18px rgba(0,0,0,.35),
    0 0 12px rgba(120,255,235,.20),
    inset 0 0 0 1px rgba(0,0,0,.22);
}

.tt-exp-wrap{
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.tt-exp{
  font-weight: 900;
  font-size: 12px;
}

.tt-exp.active_exp  { color: #ffd27f;background:transparent; }  /* yellow */
.tt-exp.expired { color: #ff6b6b; }  /* red */


.slot-icon{ position: relative; }

.slot-lock{
  position:absolute;
  top:-4px;
  right:-4px;
  width:16px;
  height:16px;
  background: url('/marketplace/assets/icon/lock.svg') no-repeat center/contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.9));
  pointer-events:none;
  z-index:10;
}

.tt-personal-badge{
  display:inline-block;
  margin:6px 0 6px;
  padding:4px 10px;
  border-radius:8px;
  background: rgba(255, 40, 40, 0.92);
  border: 1px solid rgba(255, 120, 120, 0.55);
  color:#fff;
  font-weight:900;
  font-size:12px;
}

/* Karma title colors */
.tt-karma-bad{
  color: #ff6b6b;     /* red */
  font-weight: 900;
}

.tt-karma-good{
  color: #6bb3ff;     /* blue-ish */
  font-weight: 900;
}
.sell-coins-button.is-active {
	     background: linear-gradient(135deg, #affff5 0%, #7feee3 45%, #58d8d1 100%);
    
    box-shadow: 0 0 6px rgba(70, 255, 220, .25);
}
#site-storage #main-sidebar {margin-top:14px;}
#site-storage .alert-warning {background-color:transparent;border:transparent;}

