@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Montserrat:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');



body {
  font-family: 'Montserrat', sans-serif;
  color: white;
  margin: 0;
  padding-left: 250px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 30px 10px;
  justify-content: center;
}

.market-item {
  background: linear-gradient(145deg, #1a1a2f, #0e0e18);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.06);
  padding: 20px;
  transition: all 0.3s ease-in-out;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.market-item:hover {
  transform: scale(1.025);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.15);
}



.market-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}



.market-item.vip {
  border: 2px solid #e91e63;
  box-shadow: 0 0 25px rgba(233, 30, 99, 0.8);
}
.market-item.vip::before {
  content: "VIP";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, #ff0066, #ffcc00);
  padding: 4px 10px;
  font-weight: bold;
  color: #000;
  border-bottom-right-radius: 12px;
  font-size: 12px;
  text-shadow: none;
}

.item-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}


.item-img {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at center, #111 40%, #000);
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.6);
  box-shadow: 
    inset 0 0 6px rgba(255, 255, 255, 0.15),
    0 0 12px rgba(255, 215, 0, 0.3),
    0 0 22px rgba(255, 200, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease-in-out;
}

.item-img:hover {
  transform: scale(1.05);
  box-shadow:0 0 16px rgba(255, 255, 200, 0.6), 0 0 32px rgba(255, 200, 100, 0.4);
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
  image-rendering: auto; /* או 'pixelated' אם אתה רוצה סטייל MU */
}



.item-name.exc { color: #39ff14; }
.item-name.exc.socket { color: gold; }

.item-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #ffd740;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: help;
  position: relative;
}

.item-price .currency-icon {
  font-size: 18px;
  color: #f4c430;
}
.item-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.item-seller {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #00e5ff;
  text-shadow:
    0 0 4px rgba(0, 229, 255, 0.6),
    0 0 6px rgba(0, 229, 255, 0.4);
  background: linear-gradient(to right, #002b36, #003d4d);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
}

.item-seller i {
  color: #00e5ff;
  font-size: 14px;
  text-shadow: 0 0 4px #00e5ff;
}




/* === תגיות תצוגה === */
.item-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}

.tag {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  background: #333;
  box-shadow: 0 0 6px rgba(255,255,255,0.1);
}

/* === תגיות לפי סוג === */
.tag.socket {
  background: linear-gradient(to right, #6a1b9a, #9c27b0);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(156, 39, 176, 0.6);
}

.tag.exc {
  background: linear-gradient(to right, #2e7d32, #76ff03);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(118, 255, 3, 0.5);
}

.tag.evolution-v2 {
  background: linear-gradient(135deg, #4a0000, #ff3d00, #ff7043);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 61, 0, 0.7);
  animation: pulseV2 2s infinite;
}

@keyframes pulseV2 {
  0% { box-shadow: 0 0 10px rgba(255, 61, 0, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 61, 0, 0.9); }
  100% { box-shadow: 0 0 10px rgba(255, 61, 0, 0.5); }
}

.tag.evolution-v3 {
  background: linear-gradient(135deg, #ff1744, #ff6e40, #ffab40);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 110, 64, 0.8);
  animation: pulseV3 1.5s infinite ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes pulseV3 {
  0% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 110, 64, 0.6); }
  50% { transform: scale(1.03); box-shadow: 0 0 24px rgba(255, 110, 64, 1); }
  100% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 110, 64, 0.6); }
}

.tag.special-jewel {
  background: linear-gradient(to right, #c62828, #ff5252);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.5);
}

.tag.normal-jewel {
  background: linear-gradient(to right, #2ecc71, #00e676);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

.tag.last-chance {
  background: linear-gradient(to right, #d50000, #ff1744);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}

.tag.new-item {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.6);
}

.tag.pet {
  background: linear-gradient(to right, #ff69b4, #ff85c1);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.tag.wing {
  background: linear-gradient(to right, #4682b4, #00bcd4);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
}

.tag.mount {
  background: linear-gradient(to right, #8a2be2, #a64dff);
  color: #fff;
  box-shadow: 0 0 8px rgba(166, 77, 255, 0.5);
}

.tag.ring {
  background: linear-gradient(to right, #f39c12, #f1c40f);
  color: #000;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.5);
}

.tag.pendant {
  background: linear-gradient(to right, #3498db, #5dade2);
  color: #fff;
  box-shadow: 0 0 8px rgba(93, 173, 226, 0.5);
}

.tag.earring {
  background: linear-gradient(to right, #9b59b6, #bb8fce);
  color: #fff;
  box-shadow: 0 0 8px rgba(187, 143, 206, 0.5);
}

.tag.normal {
  background: linear-gradient(to right, #999, #ccc);
  color: #000;
  box-shadow: 0 0 4px rgba(200, 200, 200, 0.3);
}




/* === Glow Colors for Item Names === */
.item-name.green-glow { color: #00ff00; text-shadow: 0 0 6px #66ff66; }
.item-name.purple-glow { color: #a97bff; text-shadow: 0 0 6px #b388ff; }
.item-name.gold-glow { color: #fbc02d; text-shadow: 0 0 8px #fff176; }
.item-name.red-glow { color: #ff1744; text-shadow: 0 0 8px #ff5252; }
.item-name.turquoise-glow { color: #40e0d0; text-shadow: 0 0 6px #80ffff; }

/* === Market Item Skins by Category === */
.market-item[data-tags~="itemv3"] {
  background: linear-gradient(135deg, #3b0a0a, #d93b30);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.4);
}

.market-item[data-tags~="itemv2"] {
  background: linear-gradient(135deg, #32004f, #ffd700);
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.3);
}

.market-item[data-tags~="exc"] {
  background: linear-gradient(135deg, #0d3b00, #76ff03);
  box-shadow: 0 0 10px rgba(118, 255, 3, 0.3);
}

.market-item[data-tags~="socket"] {
  background: linear-gradient(135deg, #1a0030, #a64dff);
  box-shadow: 0 0 12px rgba(166, 77, 255, 0.3);
}

.market-item[data-tags~="ancient"] {
  background: linear-gradient(135deg, #3e2723, #ffccbc);
  box-shadow: 0 0 10px rgba(255, 204, 188, 0.25);
}

.market-item[data-tags~="normal"] {
  background: linear-gradient(135deg, #1a1a1a, #121212);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}




.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #1c1c2b;
  padding: 20px;
  border-radius: 12px;
  color: white;
  text-align: center;
  width: 300px;
}
.modal input[type="number"] {
  padding: 6px;
  width: 80%;
  margin-bottom: 10px;
}
.market-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  gap: 10px;
}
#searchInput {
  padding: 10px;
  width: 300px;
  border-radius: 8px;
  border: 2px solid gold;
  background-color: #101020;
  color: white;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 8px gold;
}

#searchInput::placeholder {
  color: gold;
  font-weight: bold;
  font-style: italic;
  opacity: 0.8;
}


.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.filter-btn {
  padding: 6px 12px;
  background-color: #0d1b2a;
  color: gold;
    font-family: 'Orbitron', sans-serif;
  border: 1px solid gold;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 10px;
}

.filter-btn:hover {
  background-color: #1e1e30;
  border-color: #ffcc00;
  transform: scale(1.05);
  transition: 0.2s ease-in-out;
}

.filter-btn.active {
  background: radial-gradient(circle, #111 60%, #1e1e2f 100%);
  color: #ffe066;
  border: 1px solid #ffe066;
  box-shadow: 0 0 10px rgba(255, 230, 100, 0.4);
  font-weight: bold;
}

.filter-btn.reset {
  background-color: #b71c1c;
  color: white;
  border: 1px solid #ff1744;
}

/* סגנון לפילטר אייקונים */
.icon-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.icon-filter {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #111;
  border: 2px solid gold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}
.icon-filter:hover, .icon-filter.active {
  background-color: gold;
  color: black;
  box-shadow: 0 0 10px gold;
}

.icon-filter i {
  font-size: 18px;
}
.icon-filter[title]::after {
  content: attr(title);
  position: absolute;
  bottom: -24px;
  background: #222;
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  white-space: nowrap;
}
.icon-filter:hover::after {
  opacity: 1;
}
#item-count {
  text-align: center;
  font-size: 14px;
  color: gold;
  margin-bottom: 10px;
}
#sortPrice {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid gold;
  background-color: #111;
  color: gold;
  margin: 10px auto;
  display: block;
}

.market-filters-wrapper {
  background: url('../images/frame_filter.png') center center / cover no-repeat;  
    box-shadow: 0 0 10px rgba(255, 230, 100, 0.4), 0 0 20px rgba(255, 230, 100, 0.2),  inset 0 0 8px rgba(255, 255, 255, 0.05);
  border: 2px solid gold;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 12px gold;
}
.market-search-sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.market-search-sort input[type="text"] {
  padding: 10px;
  width: 280px;
  border-radius: 10px;
  border: 2px solid gold;
  background-color: #101020;
  color: white;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 8px gold;
}
.sort-dropdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.sort-dropdown select {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid gold;
  background-color: #111;
  color: gold;
  font-weight: bold;
}
.price-range {
  font-size: 12px;
  color: white;
}
.price-range input[type="range"] {
  width: 140px;
}
.range-values {
  font-size: 12px;
  color: gold;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .icon-filter-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .icon-filter {
    width: 36px;
    height: 36px;
  }
}

.sort-dropdown-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sort-dropdown-row select {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid gold;
  background-color: #111;
  color: gold;
  font-weight: bold;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 0 10px;
  justify-content: center;
}

@media (max-width: 768px) {
  .market-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 0 5px;
  }

  .market-item {
    width: 100%;
  }
}

.market-item {
  border: 2px solid gold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 16px;
  color: white;
  background: #101020;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.market-item:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 0 25px gold;
}

.item-header {
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}


.item-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === שם הפריט עם Glow לפי סוג === */
.item-name {
  margin-top: 10px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.item-name.exc { color: #00e676; }
.item-name.exc.socket { color: #e040fb; }

.item-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
  z-index: 1;
}


.item-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.item-footer .button-row {
 display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #fff9c4, #ffe082, #ffd54f, #ffc107, #ffb300);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  overflow: hidden;
  width: 210px;
  margin: 12px auto 0 auto;
  padding: 0;
}

.button-group .buy-button,
.button-group .offer-button {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  box-shadow: none;
  text-shadow: none;
}

.button-group .buy-button:hover,
.button-group .offer-button:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
  text-shadow: 0 0 6px rgba(255, 255, 0, 0.6);
}

/* מפריד בין הכפתורים */
.button-group .buy-button {
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}


.market-search-sort {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sort-dropdown-row select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid gold;
  background-color: #0d1b2a;
  color: gold;
  font-weight: bold;
  box-shadow: 0 0 6px gold;
  text-align: center;
  min-width: 160px;
}

#searchInput {
  padding: 10px;
  width: 300px;
  border-radius: 10px;
  border: 2px solid gold;
  background-color: #101020;
  color: white;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 10px gold;
  font-weight: bold;
}

#searchInput::placeholder {
  color: gold;
  opacity: 0.8;
  font-style: italic;
  font-weight: bold;
  text-shadow: 0 0 6px gold;
}

.price-range.hidden {
  display: none;
}

.category-section {
  margin: 20px 0;
  text-align: center;
}

.main-categories {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.main-category {
  background-color: #222;
  color: gold;
  border: 2px solid gold;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-category:hover {
  background-color: #333;
}

.subcategory-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}

.filter-btn {
  background-color: #111;
  border: 1px solid #ffd700;
  color: #ffd700;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  background-color: #222;
}

.item-name.green-glow {
  color: #00ff00;
  text-shadow: 0 0 6px #66ff66;
}

.item-name.purple-glow {
  color: #a97bff;
  text-shadow: 0 0 6px #b388ff;
}

.item-name.gold-glow {
  color: #9c27b0;
  text-shadow: 0 0 8px #ffecb3, 0 0 10px #fff176;
}

.item-name.red-glow {
  color: #ff1744;
  text-shadow: 0 0 8px #ff5252;
}

.item-name.turquoise-glow {
  color: #40e0d0;
  text-shadow: 0 0 6px #80ffff;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-select-group {
  position: relative;
}

#searchType {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: #101020;
  color: gold;
  border: 2px solid gold;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 0 10px gold;
  cursor: pointer;
  transition: 0.3s ease;
  min-width: 160px;
  text-align: center;
}

#searchType:hover {
  background-color: #181828;
  box-shadow: 0 0 12px #ffd700;
}

@media (max-width: 768px) {
  .search-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  #searchInput,
  #searchType {
    width: 100%;
    max-width: 280px;
  }
}

.highlight {
  background: linear-gradient(90deg, #ffeb3b, #ffc107);
  padding: 2px 4px;
  border-radius: 4px;
  animation: flash-glow 1s ease-in-out infinite alternate;
  color: black;
  font-weight: bold;
}

@keyframes flash-glow {
  0%   { box-shadow: 0 0 4px gold; }
  100% { box-shadow: 0 0 12px gold; }
}


/* Tooltip */
.item-price::after {
  content: attr(data-currency);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #ffd700;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.7);
}

.item-price::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.item-price:hover::after,
.item-price:hover::before {
  opacity: 1;
}

/* SPECIAL JEWEL */
.tag.special-jewel {
  background: linear-gradient(135deg, #ff4081, #6a1b9a);
  color: #ffffff;
  border: 1px solid #ce93d8;
  box-shadow: 0 0 10px rgba(255, 64, 129, 0.7);
  font-weight: bold;
}

/* NORMAL JEWEL */
.tag.normal-jewel {
  background-color: #00bcd4;
  color: black;
  border: 1px solid #00e5ff;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.6);
  font-weight: bold;
}

/* Existing base tag style (in case you need to tweak) */
.tag {
  padding: 4px 8px;
  border-radius: 6px;
  margin: 3px;
  font-size: 12px;
  display: inline-block;
  text-align: center;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.search-row select,
.search-row input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #111;
  color: #fff;
  font-size: 14px;
  transition: border 0.2s;
}

.search-row select {
  width: 180px;
}

.search-row input {
  width: 400px;
}

.search-row select:focus,
.search-row input:focus {
  outline: none;
  border-color: #ffcc00;
}

/* Autocomplete Dropdown */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

#searchSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2f;
  border: 1px solid #444;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 160px;
  overflow-y: auto;
  z-index: 999;
  padding: 0;
  margin-top: 4px;
  list-style: none;
}

#searchSuggestions.hidden {
  display: none;
}

#searchSuggestions li {
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}

#searchSuggestions li:hover,
#searchSuggestions li.highlight {
  background-color: #2f2f44;
}

.watchlist-button {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 25px;
  background: none;
  border: none;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 221, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.watchlist-button:hover {
  color: #ff3366;
  transform: scale(1.2);
}
.watchlist-button.active {
  color: #ff3366;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
}


/* === התאמות למובייל === */
@media (max-width:768px) {
  .market-item { width: 100%; max-width: 220px; padding: 14px; }
  .item-name { font-size: 15px; }
  .item-price { font-size: 16px; }
}

#watchlistFilterBtn {
  color: #ff66b2;
  border: 2px solid #ff66b2;
  background: linear-gradient(145deg, #2a0033, #33001a);
  border-radius: 10px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  text-shadow: 0 0 6px #ff99cc;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
  transition: 0.3s ease-in-out;
}

#watchlistFilterBtn:hover {
  background: linear-gradient(to right, #ff1a75, #e040fb);
  color: white;
  border-color: #ff80ab;
  box-shadow: 0 0 16px #ff4da6, 0 0 20px #ff80c0;
  transform: scale(1.05);
}

#watchlistFilterBtn.active {
  background: linear-gradient(to right, #ff4081, #c2185b);
  color: #fff;
  font-weight: 900;
  border-color: #ff99cc;
  text-shadow: 0 0 10px #ffc1e3;
  box-shadow: 0 0 20px #ff4d88, 0 0 28px #ff80b0;
}

.lastChanceBtn {
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(circle at center, rgba(0, 30, 60, 0.6), rgba(0, 10, 20, 0.8));
  color: #66e0ff;
  border: 1px solid rgba(100, 220, 255, 0.6);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  text-shadow: 0 0 6px #33ccff;
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.4), inset 0 0 6px rgba(0, 90, 130, 0.3);
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
  cursor: pointer;
}

.lastChanceBtn:hover {
  background: rgba(0, 60, 90, 0.7);
  color: #ffffff;
  border-color: #00c8ff;
  box-shadow: 0 0 16px #00c8ff, 0 0 22px #99f0ff;
  transform: scale(1.05);
}

#vipFilterBtn {
    font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, rgba(90, 0, 120, 0.6), rgba(40, 0, 80, 0.6));
  color: #ff96ff;
  border: 1px solid rgba(255, 120, 255, 0.5);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  text-shadow: 0 0 6px #ff66ff;
  box-shadow: 0 0 12px rgba(255, 80, 220, 0.4), inset 0 0 6px rgba(100, 0, 100, 0.3);
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
  cursor: pointer;
}

#vipFilterBtn:hover {
  background: rgba(120, 0, 160, 0.7);
  color: #fff0ff;
  border-color: #ff66cc;
  box-shadow: 0 0 18px #ff66cc, 0 0 26px #ff99ff;
  transform: scale(1.05);
}


.timer-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #ffe066;
  margin-bottom: 4px;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}
.countdown-timer .timer-box {
  background: #111020;
  padding: 6px 10px;
  border: 1px solid #ffd700;
  border-radius: 6px;
  color: #ffe066;
  box-shadow: 0 0 6px rgba(255,215,0,0.3);
  min-width: 36px;
  text-align: center;
}

@keyframes pulse-timer {
  0%   { box-shadow: 0 0 4px #ffd700; }
  100% { box-shadow: 0 0 12px #ffd700; }
}

.market-item.last-chance {
  border: 2px solid #ff4d4d;
  box-shadow: 0 0 12px #ff4d4d;
}

.market-item.last-chance .timer-label {
  color: #ff4d4d;
  font-weight: bold;
  text-shadow: 0 0 8px #ffcccc;
}

.tag.last-chance {
  background: #ff4444;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  padding: 6px;
  font-size: 11px;
  box-shadow: 0 0 6px #ff4444;
  animation: pulseLastChance 1s infinite;
}

@keyframes pulseLastChance {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 10px #ff4444; }
  100% { transform: scale(1); }
}

.tag.new-item {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  animation: glowNewItem 1s ease-in-out infinite alternate;
}

@keyframes glowNewItem {
  from {
    box-shadow: 0 0 6px #00c6ff;
  }
  to {
    box-shadow: 0 0 12px #00c6ff;
  }
}

.countdown-expired {
  color: #ff4c4c;
  font-weight: bold;
  background: #1a0000;
  border: 1px solid #ff0000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-block;
  animation: pulseExpired 1.2s infinite;
}

@keyframes pulseExpired {
  0% { box-shadow: 0 0 4px red; }
  50% { box-shadow: 0 0 10px red; }
  100% { box-shadow: 0 0 4px red; }
}

.item_ancient_option {
  color: white !important;
  background: red !important;
}

/* === סרט VIP בפינה === */
.market-item.vip-item .vip-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  z-index: 5;
  animation: shimmerVip 3s infinite linear;
  letter-spacing: 0.5px;
  transform: rotate(0deg);
}

@keyframes shimmerVip {
  0% {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 193, 7, 1);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
  }
}


.market-item[data-tags~="exc"] .item-name {
  color: #00e676;
  text-shadow: 0 0 6px #00e676;
}

.market-item[data-tags~="socket"] .item-name {
  color: #d1c4e9;
  text-shadow: 0 0 6px #a64dff;
}

.market-item[data-tags~="itemv2"] .item-name {
  color: gold;
  text-shadow: 0 0 6px #ff4081;
}

.market-item[data-tags~="itemv3"] .item-name {
  color: #ff7043;
  text-shadow: 0 0 6px #ff7043;
}

.market-item[data-tags~="ancient"] .item-name {
  color: #ffab91;
  text-shadow: 0 0 6px #ffab91;
}

.market-item[data-tags~="normal"] .item-name {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* === VIP ITEM CONTAINER === */
.vip-item {
  background: linear-gradient(to bottom right, #1c0f00, #0d0400);
  border-radius: 5px;
  border: 2px solid gold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
      position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


/* === אנימציית Scale גם לפריטים VIP === */
.market-item,
.market-item.vip-item {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.market-item:hover,
.market-item.vip-item:hover {
  transform: scale(1.03);
  z-index: 10;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
}


.market-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(15, 0, 25, 0.4); /* רקע כהה שקוף */
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:  0 0 10px rgba(255, 200, 255, 0.08),
    0 0 16px rgba(80, 180, 255, 0.06),
    inset 0 0 6px rgba(255, 255, 255, 0.03);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 28px;
  z-index: 3;
}

.toolbar-btn {
  color: #ffeedd;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 22px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
  backdrop-filter: blur(6px);
  box-shadow:  0 0 8px rgba(255, 255, 255, 0.05),
    inset 0 0 4px rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
}

.toolbar-btn i {
  margin-right: 6px;
}

.toolbar-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:    0 0 12px rgba(255, 255, 255, 0.15),
    0 0 18px rgba(255, 255, 255, 0.07);
}


.toolbar-btn.special {
  background: linear-gradient(to right, #ffe082, #ffc107);
  color: #111;
  font-weight: 900;
  border: 2px solid #ffca28;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 14px;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 8px rgba(255, 200, 0, 0.3),
    0 0 16px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease-in-out;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.toolbar-btn.special:hover {
  background: linear-gradient(to right, #ffd740, #ffb300);
  transform: scale(1.06);
  box-shadow:0 0 14px rgba(255, 235, 59, 0.5),
    0 0 24px rgba(255, 214, 0, 0.3);
  color: #000;
}


.filter-btn,
.main-category,
.icon-filter {
  box-shadow: 0 0 8px rgba(255, 230, 100, 0.3), inset 0 0 2px rgba(255,255,255,0.05);
}