
.webshop-item-box {
    border: 1px solid #444;
    background-color: #111;
    width: 200px;
    padding: 10px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.webshop-item-name {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-socket {
    color: #d633ff;
    text-shadow: 1px 1px 2px #000;
}

.name-excellent {
    color: #00ff00;
    text-shadow: 1px 1px 2px #000;
}

.name-option {
    color: #8cbaff;
    text-shadow: 1px 1px 2px #000;
}

.name-normal {
    color: #ffffff;
    text-shadow: 1px 1px 2px #000;
}

.name-ancient {
    color: #00ffff;
    text-shadow: 1px 1px 2px #000;
}

.name-wings {
    color: gold;
    text-shadow: 1px 1px 2px #000;
}

.webshop-item-image {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    cursor: help;
    background-color: #050505;
    border: 1px solid #333;
}

.webshop-item-image img {
    max-width: 100%;
    max-height: 100%;
}

.webshop-item-tooltip {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #666;
    padding: 10px;
    width: 250px;
    z-index: 9999;
    color: #fff;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
}

.webshop-item-image:hover .webshop-item-tooltip {
    display: block;
}

.tooltip-section {
    margin-bottom: 5px;
}

.text-yellow {
    color: #ffff00;
}

.text-blue {
    color: #8cbaff;
}

.text-violet {
    color: #d633ff;
}

.text-gray {
    color: #aaaaaa;
}

.text-green {
    color: #00ff00;
}

.text-white {
    color: #ffffff;
}

.text-red {
    color: #ff0000;
}

.webshop-item-actions {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.webshop-item-actions button {
    width: 100%;
    margin-top: 5px;
}

.webshop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #000000;
    border: 1px solid #333;
    border-radius: 5px;
    justify-content: flex-start;
    align-items: center;
}

.category-btn {
    background: #111;
    border: 1px solid #444;
    color: #e5e5e5;
    padding: 5px 15px;
    text-decoration: none;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: #222;
    color: #fadca9 !important;
    border-color: #666;
    text-decoration: none;
}

.category-btn.active {
    background: #252525;
    color: #fab948 !important;
    border-color: #8cbaff;
    box-shadow: 0 0 5px rgba(140, 186, 255, 0.3);
}

.sort-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.sort-select {
    background: #111;
    border: 1px solid #444;
    color: #ccc;
    padding: 5px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}

.sort-select:hover {
    border-color: #666;
    color: #fff;
}

.character-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    padding: 10px;
}

.char-filter-item {
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 0.7;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid transparent;
}

.char-filter-item:hover,
.char-filter-item.active {
    opacity: 1;
    transform: scale(1.1);
    border-color: #ffd700;
}

.char-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.char-avatar-all {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #555;
}

/* Isolated Button Styles for Webshop Economy */
.ws-btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    user-select: none;
    text-decoration: none;
    color: #fff;
}

.ws-btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.ws-btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.ws-btn-success:hover {
    background-color: #449d44;
    border-color: #398439;
    color: #fff;
}

.ws-btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.ws-btn-primary:hover {
    background-color: #286090;
    border-color: #204d74;
    color: #fff;
}

.ws-btn-info {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}
.ws-btn-info:hover {
    background-color: #31b0d5;
    border-color: #269abc;
    color: #fff;
}

.ws-btn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}
.ws-btn-warning:hover {
    background-color: #ec971f;
    border-color: #d58512;
    color: #fff;
}
/* ===================================================
   FINAL CLEAN – 3 PER ROW (market-grid-container)
   =================================================== */

/* kontejner (má inline flex, přepíšeme jen gap a jistoty) */
#market-grid-container{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: stretch;
  width: 100%;
}

/* 3 na řádek */
#market-grid-container .webshop-item-box{
  box-sizing: border-box;
  flex: 0 0 calc(33.333% - 14px) !important;
  max-width: calc(33.333% - 14px) !important;
  width: auto !important;
  margin: 0 !important;

  /* modern look */
  border: 1px solid #222;
  background: linear-gradient(160deg, #151515, #0d0d0d);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all .25s ease;
  box-shadow: 0 15px 35px rgba(0,0,0,.6);
  overflow: visible !important;
  z-index: 1;
}

#market-grid-container .webshop-item-box::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:70px;
  background: radial-gradient(circle at top center, rgba(140,186,255,.08), transparent 70%);
  pointer-events:none;
}

#market-grid-container .webshop-item-box:hover{
  transform: translateY(-5px);
  border-color: #8cbaff;
  box-shadow: 0 25px 45px rgba(0,0,0,.8), 0 0 20px rgba(140,186,255,.15);
  z-index: 50;
}

/* name */
#market-grid-container .webshop-item-name{
  font-weight: 650;
  text-align:center;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing:.3px;
  width:100%;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* image */
#market-grid-container .webshop-item-image{
  width:100%;
  height:120px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:10px;
  position:relative;
  background: radial-gradient(circle at center, #141414, #070707 75%);
  border-radius:12px;
  border:1px solid #1f1f1f;
  overflow: visible !important;
  transition: all .2s ease;
}

#market-grid-container .webshop-item-box:hover .webshop-item-image{
  border-color: rgba(140,186,255,.5);
  box-shadow: inset 0 0 20px rgba(140,186,255,.08);
}

#market-grid-container .webshop-item-image img{
  max-width: 85%;
  max-height: 85%;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.7));
  transition: transform .2s ease;
}

#market-grid-container .webshop-item-box:hover .webshop-item-image img{
  transform: scale(1.05);
}

/* actions */
#market-grid-container .webshop-item-actions{
  margin-top:auto;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:6px;
}

#market-grid-container .webshop-item-actions button{
  width:100%;
  border-radius: 10px;
  padding: 6px;
  font-weight: 600;
  font-size: 12px;
}

/* tooltip (menší + nad kartami) */
#market-grid-container .webshop-item-tooltip{
  position:absolute;
  top:50%;
  left:100%;
  margin-left:10px;
  transform: translateY(-50%);
  width: 210px;
  padding: 10px 12px;
  background: linear-gradient(160deg, #141414, #080808);
  border: 1px solid #333;
  border-radius: 14px;
  color:#eee;
  font-size: 10px;
  text-align:left;
  box-shadow: 0 20px 45px rgba(0,0,0,.85);
  z-index: 999999;
  opacity:0;
  visibility:hidden;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events:none;
}

#market-grid-container .webshop-item-image:hover .webshop-item-tooltip{
  opacity:1;
  visibility:visible;
  transform: translateY(-50%) translateX(5px);
}

/* responsive */
@media (max-width: 1200px){
  #market-grid-container .webshop-item-box{
    flex: 0 0 calc(50% - 14px) !important;
    max-width: calc(50% - 14px) !important;
  }
}
@media (max-width: 700px){
  #market-grid-container .webshop-item-box{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
/* ===================================================
   WAREHOUSE MODALS (sell/zen/withdraw) – DARK PREMIUM
   Přepisuje inline styly přes !important
   =================================================== */

/* overlay */
#sellModal, #zenModal, #withdrawZenModal{
  background: rgba(0,0,0,0.70) !important;
  backdrop-filter: blur(3px);
}

/* modal box (ten vnitřní div bez class) */
#sellModal > div,
#zenModal > div,
#withdrawZenModal > div{
  background: linear-gradient(160deg, #141414, #0a0a0a) !important;
  color: #eaeaea !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  width: 340px !important;             /* trochu širší než 300 */
  box-shadow: 0 25px 60px rgba(0,0,0,0.75) !important;
}

/* nadpisy */
#sellModal h3,
#zenModal h3,
#withdrawZenModal h3{
  margin: 0 0 10px !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  color: #8cbaff !important;
  text-transform: uppercase;
  font-size: 14px !important;
}

/* texty v modalu */
#sellModal p, #zenModal p, #withdrawZenModal p{
  color: #d7d7d7 !important;
  margin-bottom: 10px !important;
}

/* labely */
#sellModal label,
#zenModal label,
#withdrawZenModal label{
  display:block !important;
  margin: 10px 0 6px !important;
  font-size: 12px !important;
  color: rgba(140,186,255,0.95) !important;
  text-transform: uppercase !important;
  letter-spacing: .9px !important;
}

/* input/select (bootstrap .form-control) */
#sellModal .form-control,
#zenModal .form-control,
#withdrawZenModal .form-control{
  width: 100% !important;
  background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.01)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #f2f2f2 !important;
  border-radius: 12px !important;
  padding: 12px 12px !important;
  box-shadow: none !important;
  outline: none !important;
}

/* focus */
#sellModal .form-control:focus,
#zenModal .form-control:focus,
#withdrawZenModal .form-control:focus{
  border-color: rgba(140,186,255,.90) !important;
  box-shadow: 0 0 0 3px rgba(140,186,255,.15) !important;
}

/* hezčí select šipka */
#sellModal select.form-control,
#zenModal select.form-control,
#withdrawZenModal select.form-control{
  appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(140,186,255,.9) 50%),
    linear-gradient(135deg, rgba(140,186,255,.9) 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  padding-right: 34px !important;
}

/* oddělovač deposit formu */
#sellModal #depositForm{
  border-top: 1px solid rgba(255,255,255,.10) !important;
}

/* tlačítka (bootstrap btn i ws-btn) */
#sellModal .btn,
#zenModal .btn,
#withdrawZenModal .btn,
#sellModal .ws-btn,
#zenModal .ws-btn,
#withdrawZenModal .ws-btn{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

#sellModal .btn:hover,
#zenModal .btn:hover,
#withdrawZenModal .btn:hover,
#sellModal .ws-btn:hover,
#zenModal .ws-btn:hover,
#withdrawZenModal .ws-btn:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 24px rgba(0,0,0,.45) !important;
  filter: brightness(1.05) !important;
}

/* primární */
#sellModal .btn-primary,
#withdrawZenModal .ws-btn-primary{
  background: linear-gradient(145deg, #2f6df6, #1f4fd1) !important;
  color: #fff !important;
}

/* warning */
#sellModal .btn-warning,
#zenModal .ws-btn-success,
#withdrawZenModal .ws-btn-primary{
  border-color: rgba(0,0,0,.2) !important;
}

/* cancel */
#sellModal .btn-secondary,
#zenModal .btn-secondary,
#withdrawZenModal .btn-secondary{
  background: linear-gradient(145deg, #2a2a2a, #141414) !important;
  color: #e6e6e6 !important;
}

/* drobné spacing úpravy */
#sellModal br, #zenModal br, #withdrawZenModal br{
  display: none;
}
#sellModal form{ margin-top: 10px; }
#sellModal button[type="submit"]{ width: 100% !important; }
#sellModal .btn-secondary{ width: 100% !important; margin-top: 10px !important; }

/* ====== POZNÁMKA: hláška "Vyplňte prosím toto pole." je nativní validace prohlížeče
   a nejde ji stylovat CSS. Dá se nahradit vlastní, ale to už je malý zásah do HTML/JS. */
/* ===================================
   MINI + BUTTON (Zen deposit)
   =================================== */

.zen-display .ws-btn.ws-btn-xs {
  padding: 0 !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  min-width: 18px !important;
}

.zen-display .ws-btn.ws-btn-xs:hover {
  transform: translateY(-1px);
}
/* =========================================
   JEWEL BANK MINI BUTTON FIX (FORCED)
   ========================================= */

/* cílíme přímo na ws-btn-xs uvnitř tabulky */
table .ws-btn.ws-btn-xs{
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;

    padding: 0 !important;
    font-size: 11px !important;
    line-height: 16px !important;

    border-radius: 6px !important;
}

/* lehký hover */
table .ws-btn.ws-btn-xs:hover{
    transform: translateY(-1px);
}
/* ===== Webshop SELL ITEM - make options readable (native select) ===== */

/* zobrazená hodnota v selectu */
.webshop-modal select,
.modal select {
  background: #0b0f14 !important;
  color: #fff !important;
}

/* rozbalený seznam možností */
.webshop-modal select option,
.modal select option {
  background: #fff !important;
  color: #000 !important;
}

/* vybraná možnost (v některých prohlížečích pomůže) */
.webshop-modal select option:checked,
.modal select option:checked {
  background: #2b2b2b !important;
  color: #fff !important;
}
select option {
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
