/* ===== RESPONSIVE & CROSS-BROWSER SUPPORT ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Browser Warning Banner */
.browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 200, 0, 0.95);
    color: #000;
    text-align: center;
    padding: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

/* Rotation Warning for Mobile */
.rotation-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Rubik', sans-serif;
}

.rotation-warning-content {
    text-align: center;
    color: white;
    font-family: 'Rubik', sans-serif;
}

.rotation-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: rotateIcon 2s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

.rotation-text {
    font-size: 24px;
    font-weight: 600;
    padding: 0 20px;
}

/* Responsive Game Container */
.game {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.game-area {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Mobile Portrait Orientation */
@media (orientation: portrait) and (max-width: 768px) {
    .rotation-warning {
        display: flex !important;
    }
    
    #game {
        display: none !important;
    }
}

/* Tablet Support */
@media (min-width: 769px) and (max-width: 1024px) {
    .game-area {
        transform-origin: top left;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    .rotation-text {
        font-size: 18px;
    }
    
    .rotation-icon {
        font-size: 60px;
    }
}

/* Large Screens - Auto Scale */
@media (min-width: 1920px) {
    .game-area {
        max-width: 1920px;
        max-height: 1080px;
        margin: 0 auto;
    }
}

/* ===== SHOP MODAL - Modern Redesign ===== */
.shop-modal { 
  position: fixed; 
  inset: 0; 
  display: none; 
  place-items: center; 
  z-index: 1200; 
  animation: fadeInShop 0.3s ease;
}

@keyframes fadeInShop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shop-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(8px); 
  display: none; 
  z-index: 1199;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.shop-overlay[style*="display: block"] {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.shop-modal-content { 
  width: min(1200px, 96vw); 
  height: min(85vh, 950px); 
  display: grid; 
  grid-template-rows: auto 1fr; 
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 24px; 
  border: 2px solid rgba(147, 51, 234, 0.15); 
  overflow: hidden; 
  box-shadow: 0 25px 80px rgba(147, 51, 234, 0.3), 
              0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: slideUpShop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpShop {
  from { 
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to { 
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.shop-modal-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 20px 28px; 
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.2);
  position: relative;
  overflow: hidden;
}

.shop-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shineHeader 3s infinite;
}

@keyframes shineHeader {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.shop-modal-icon { 
  font-size: 28px; 
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-5deg); }
}

.shop-modal-title { 
  font-family: 'Rubik', sans-serif; 
  font-size: 26px; 
  font-weight: 900; 
  color: #ffffff; 
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.shop-modal-close { 
  background: rgba(255, 255, 255, 0.2); 
  border: 2px solid rgba(255, 255, 255, 0.3); 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  cursor: pointer; 
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: grid;
  place-items: center;
}

.shop-modal-close:hover { 
  background: rgba(255, 255, 255, 0.95); 
  color: #9333ea;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.shop-modal-close:active {
  transform: scale(0.95);
}

.shop-modal-body { 
  display: flex; 
  gap: 24px; 
  padding: 24px; 
  min-height: 0; 
  overflow: hidden; 
  background: linear-gradient(to bottom, #fafbff 0%, #f5f7ff 100%);
}

.shop-main-container { 
  display: flex; 
  gap: 24px; 
  width: 100%; 
  height: 100%; 
  min-height: 0; 
}

.shop-left { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  min-width: 0; 
  overflow: hidden; 
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(147, 51, 234, 0.1);
  box-shadow: inset 0 2px 10px rgba(147, 51, 234, 0.05);
}

.shop-toolbar { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  padding: 16px 20px; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  border-bottom: 2px solid rgba(147, 51, 234, 0.1); 
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.shop-categories { 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
}

.shop-category { 
  padding: 10px 18px; 
  border-radius: 12px; 
  border: 2px solid rgba(147, 51, 234, 0.2); 
  background: rgba(255, 255, 255, 0.9); 
  cursor: pointer; 
  font-family: 'Rubik', sans-serif; 
  font-weight: 700; 
  color: #6b21a8;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.shop-category::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.shop-category:hover::before {
  width: 200px;
  height: 200px;
}

.shop-category:hover { 
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.shop-category.active { 
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%); 
  color: #fff; 
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
  transform: translateY(-2px);
}

.shop-balance { 
  font-family: 'Rubik', sans-serif; 
  font-weight: 800; 
  display: flex; 
  gap: 20px;
  align-items: center;
}

.shop-balance .coins { 
  color: #16a34a;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.1));
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid rgba(22, 163, 74, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.shop-balance .gold { 
  color: #ca8a04;
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.1), rgba(234, 179, 8, 0.1));
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid rgba(202, 138, 4, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.15);
}

.shop-items-grid { 
  padding: 20px; 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  gap: 18px; 
  overflow-y: auto;
  overflow-x: hidden;
}

.shop-items-grid::-webkit-scrollbar {
  width: 8px;
}

.shop-items-grid::-webkit-scrollbar-track {
  background: rgba(147, 51, 234, 0.05);
  border-radius: 10px;
}

.shop-items-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border-radius: 10px;
}

.shop-items-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.shop-item { 
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%); 
  border: 2px solid rgba(147, 51, 234, 0.15); 
  border-radius: 18px; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 12px; 
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.1),
              0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.shop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.shop-item:hover::before {
  left: 100%;
}

.shop-item:hover { 
  border-color: rgba(147, 51, 234, 0.4); 
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.25),
              0 4px 12px rgba(147, 51, 234, 0.15);
  transform: translateY(-8px) scale(1.02);
}

.shop-item:active {
  transform: translateY(-4px) scale(0.98);
}

.shop-item img { 
  width: 100px; 
  height: 100px; 
  object-fit: contain; 
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.shop-item:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 6px 20px rgba(147, 51, 234, 0.3));
}

.shop-item-name { 
  font-family: 'Rubik', sans-serif; 
  font-weight: 800; 
  color: #1e1b4b; 
  text-align: center; 
  font-size: 15px;
  line-height: 1.3;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-price { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Rubik', sans-serif; 
  font-weight: 800; 
}

.shop-price-coins { 
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); 
  color: #ffffff; 
  padding: 6px 12px; 
  border-radius: 10px; 
  border: 2px solid rgba(22, 163, 74, 0.3);
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-price-gold { 
  background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%); 
  color: #ffffff; 
  padding: 6px 12px; 
  border-radius: 10px; 
  border: 2px solid rgba(202, 138, 4, 0.3);
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(202, 138, 4, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-item-buy { 
  margin-top: 4px; 
  padding: 12px 20px; 
  border-radius: 12px; 
  border: none; 
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%); 
  color: #fff; 
  font-weight: 800; 
  cursor: pointer; 
  font-size: 14px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Rubik', sans-serif;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.shop-item-buy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.shop-item-buy:hover::before {
  width: 300px;
  height: 300px;
}

.shop-item-buy:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.shop-item-buy:active {
  transform: translateY(0);
}

.shop-item-buy:disabled { 
  opacity: 0.5; 
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.shop-preview { 
  width: 400px; 
  flex-shrink: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border-radius: 20px; 
  padding: 24px; 
  border: 2px solid rgba(147, 51, 234, 0.15);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shop-preview-title { 
  font-family: 'Rubik', sans-serif; 
  font-size: 20px; 
  font-weight: 900; 
  color: #1e1b4b; 
  text-align: center;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.shop-preview-wrapper { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 20px; 
}

.shop-preview-character { 
  position: relative; 
  width: 240px; 
  height: 240px; 
  background: linear-gradient(145deg, #f8f9ff 0%, #eef2ff 100%); 
  border-radius: 18px; 
  border: 3px solid rgba(147, 51, 234, 0.2); 
  overflow: hidden; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 
    0 8px 24px rgba(147, 51, 234, 0.15),
    inset 0 2px 8px rgba(147, 51, 234, 0.05);
  transition: all 0.3s ease;
}

.shop-preview-character:hover {
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow: 
    0 12px 32px rgba(147, 51, 234, 0.25),
    inset 0 2px 8px rgba(147, 51, 234, 0.08);
}

.shop-preview-base { 
  width: 220px; /* Exactly 2x game size (110px * 2) */
  height: 220px; 
  object-fit: contain; 
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.shop-preview-items { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 240px; 
  height: 240px; 
  pointer-events: none; 
}

.shop-preview-items img { 
  position: absolute; 
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.shop-try-on-btn { 
  padding: 14px 28px; 
  border-radius: 14px; 
  border: none; 
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); 
  color: #fff; 
  font-family: 'Rubik', sans-serif; 
  font-weight: 800; 
  cursor: pointer; 
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.shop-try-on-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.shop-try-on-btn:hover::before {
  width: 400px;
  height: 400px;
}

.shop-try-on-btn:hover { 
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.shop-try-on-btn:active {
  transform: translateY(-1px);
}

/* Toolbar button */
.shop-btn-toolbar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: 1px solid rgba(255,255,255,0.15); 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    cursor: pointer; 
    font-size: 18px; 
    display: grid; 
    place-items: center; 
}
.shop-indicator {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    color: #1e1b4b;
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    border: 2px solid rgba(147, 51, 234, 0.35);
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.3);
    backdrop-filter: blur(10px);
    animation: floatUp 1.6s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translate(-50%, -2px); }
    50% { transform: translate(-50%, 2px); }
}

/* Shop item transitions already defined above with modern animations */
.shop-btn-toolbar:hover { 
    background: rgba(147, 51, 234, 0.25); 
    border-color: rgba(147, 51, 234, 0.5);
    transform: scale(1.08); 
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
}
/* Shop confirm modal */
.shop-confirm {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn .18s ease;
}
.shop-confirm-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid rgba(102,126,234,0.3);
    border-radius: 18px;
    width: min(92vw, 420px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    font-family: 'Rubik', sans-serif;
}
.shop-confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    border-bottom: 1px solid rgba(102,126,234,0.25);
}
.shop-confirm-icon { font-size: 20px; }
.shop-confirm-title { font-weight: 800; color: #333; }
.shop-confirm-close {
    margin-inline-start: auto;
    width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.8);
}
.shop-confirm-close:hover { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.shop-confirm-body { padding: 16px; color: #333; font-weight: 700; }
.shop-confirm-text { line-height: 1.6; }
.shop-confirm-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 16px; background: #f8f9fa; }
.shop-confirm-approve {
    padding: 10px 16px; border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: #fff; font-weight: 800;
}
.shop-confirm-cancel {
    padding: 10px 16px; border: 2px solid rgba(0,0,0,0.1); border-radius: 10px; cursor: pointer;
    background: #fff; color: #333; font-weight: 800;
}
/* משחק סקיי */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #87CEEB;
}

/* Loading screen now uses the new design below */

/* ========== ITEMS WARDROBE - FULLSCREEN ========== */
.items-wardrobe-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    display: grid;
    place-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.items-wardrobe-content-fullscreen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
}

.items-header-fullscreen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(75, 184, 168, 0.1);
    border-bottom: 2px solid rgba(75, 184, 168, 0.3);
    backdrop-filter: blur(5px);
}

.items-title-fullscreen {
    color: #4bb8a8;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.items-close-fullscreen {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.items-close-fullscreen:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.items-loading-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4bb8a8;
    font-size: 24px;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(75, 184, 168, 0.3);
    border-top: 6px solid #4bb8a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-weight: 600;
}

.items-body-fullscreen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    overflow: hidden;
}

.user-status-fullscreen {
    background: rgba(75, 184, 168, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(75, 184, 168, 0.2);
    backdrop-filter: blur(5px);
}

.status-badges-fullscreen {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.admin {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.status-badge.subscriber {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.status-badge.regular {
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(75, 184, 168, 0.3);
}

.user-stats-fullscreen {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item-fullscreen {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(75, 184, 168, 0.15);
    border-radius: 10px;
    border: 2px solid rgba(75, 184, 168, 0.3);
    font-size: 16px;
    min-width: 120px;
    justify-content: center;
}

.stat-icon-fullscreen {
    font-size: 20px;
}

.stat-value-fullscreen {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.categories-fullscreen {
    margin-bottom: 20px;
}

.category-tabs-fullscreen {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab-fullscreen {
    background: rgba(75, 184, 168, 0.1);
    color: #4bb8a8;
    border: 2px solid rgba(75, 184, 168, 0.3);
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.category-tab-fullscreen:hover {
    background: rgba(75, 184, 168, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 184, 168, 0.2);
}

.category-tab-fullscreen.active {
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: white;
    border-color: #4bb8a8;
    box-shadow: 0 4px 12px rgba(75, 184, 168, 0.3);
}

.wardrobe-main-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    overflow: hidden;
}

.preview-section-fullscreen {
    background: rgba(75, 184, 168, 0.1);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(75, 184, 168, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}


.items-section-fullscreen {
    background: rgba(75, 184, 168, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(75, 184, 168, 0.2);
    backdrop-filter: blur(5px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.items-grid-fullscreen {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(75, 184, 168, 0.1);
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.item-card:hover {
    background: rgba(75, 184, 168, 0.15);
    border-color: rgba(75, 184, 168, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(75, 184, 168, 0.3);
}

.item-card.equipped {
    background: linear-gradient(135deg, rgba(75, 184, 168, 0.3) 0%, rgba(91, 200, 184, 0.3) 100%);
    border-color: #4bb8a8;
    box-shadow: 0 0 25px rgba(75, 184, 168, 0.4);
}

.item-card.equipped::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4bb8a8;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(75, 184, 168, 0.3);
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 10px;
}

.item-name {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.item-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-badge.admin {
    background: #e74c3c;
}

.item-badge.subscriber {
    background: #f39c12;
}

/* ========== ITEMS WARDROBE ========== */
.items-wardrobe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: grid;
    place-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.items-wardrobe-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(75, 184, 168, 0.3);
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(75, 184, 168, 0.3);
}

.items-title {
    color: #4bb8a8;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.items-close {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.items-close:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.items-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #4bb8a8;
    font-size: 18px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(75, 184, 168, 0.3);
    border-top: 4px solid #4bb8a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    top: auto;
    transform: none;
}

.items-body {
    display: flex;
    gap: 30px;
    height: calc(100vh - 200px);
}

/* Removed - replaced by new items-preview at line 1462 */


.user-status-card {
    background: rgba(75, 184, 168, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(75, 184, 168, 0.2);
}

.status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.admin {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.status-badge.subscriber {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.status-badge.regular {
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(75, 184, 168, 0.3);
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(75, 184, 168, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(75, 184, 168, 0.1);
}

.stat-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
    flex: 1;
}

.stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.items-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(75, 184, 168, 0.1);
    color: #4bb8a8;
    border: 2px solid rgba(75, 184, 168, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(75, 184, 168, 0.2);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: white;
    border-color: #4bb8a8;
    box-shadow: 0 4px 12px rgba(75, 184, 168, 0.3);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(75, 184, 168, 0.1);
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    background: rgba(75, 184, 168, 0.1);
    border-color: rgba(75, 184, 168, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(75, 184, 168, 0.2);
}

.item-card.equipped {
    background: linear-gradient(135deg, rgba(75, 184, 168, 0.2) 0%, rgba(91, 200, 184, 0.2) 100%);
    border-color: #4bb8a8;
    box-shadow: 0 0 20px rgba(75, 184, 168, 0.3);
}

.item-card.equipped::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4bb8a8;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 8px;
}

.item-name {
    color: #ecf0f1;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.item-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-badge.admin {
    background: #e74c3c;
}

.item-badge.subscriber {
    background: #f39c12;
}

/* Count badge for wardrobe items */
.item-count-badge-wardrobe {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    font-family: 'Rubik', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========== WARDROBE ICON ABOVE PLAYER ========== */
.wardrobe-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    z-index: 100;
    animation: wardrobePulse 2s ease-in-out infinite;
    border: 3px solid white;
}

@keyframes wardrobePulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
    }
}

/* Remote wardrobe indicator for other players */
.wardrobe-indicator-remote {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    z-index: 100;
    animation: wardrobePulse 2s ease-in-out infinite;
    border: 3px solid white;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 25px;
}

.game {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh; /* dynamic viewport for mobile browsers */
    background: #87CEEB;
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.game-area {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Top-right in-game menu */
.game-topbar { position: fixed; top: 12px; right: 12px; z-index: 5200; display: flex; gap: 8px; flex-direction: row-reverse; }
.game-menu-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.35); color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.35); backdrop-filter: blur(6px); font-size: 18px; display: grid; place-items: center; transition: all 0.2s ease; }
.game-menu-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.45); }
.game-menu-panel { position: absolute; top: 48px; right: 0; background: rgba(20,20,35,0.92); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 8px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); min-width: 180px; }
.game-menu-item { display:block; color:#fff; text-decoration:none; padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.game-menu-item:hover { background: rgba(255,255,255,0.08); }

.other-players {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
}

.player * {
    pointer-events: none;
}

.player {
    pointer-events: auto;
}

.my-player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    user-select: none;
}
.my-player.invisible, .other-players .player.invisible { opacity: 0.4; }

.character {
    width: clamp(64px, 8vw, 110px);
    height: clamp(64px, 8vw, 110px);
    object-fit: contain;
    transition: transform 120ms ease;
    position: relative;
    z-index: 1; /* Character is between back (0) and middle (2) layers */
}

.player-name-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.player-name-stars {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.player-name {
    position: relative;
    z-index: 1;
    font-size: clamp(12px, 2.2vw, 16px);
    font-weight: 600;
    color: #ffffff;
    text-shadow: none;
    text-align: center;
    white-space: nowrap;
}

.player.admin .player-name { color: #ff4545; animation: adminGlow 1.6s ease-in-out infinite alternate; }

/* אדמין מקומי (השחקן שלי) */
.my-player.admin .player-name {
    color: #ff4545;
    animation: adminGlow 1.6s ease-in-out infinite alternate;
}

@keyframes adminGlow { from { text-shadow: 0 0 6px #ff4545; } to { text-shadow: 0 0 16px #ff4545; } }

/* אנימציית הליכה עדינה בזמן תזוזה */
.character.walking, 
.player.walking .character,
.my-player.walking .character {
    animation: walkBob 380ms ease-in-out infinite;
}

/* Apply walk animation to items directly to preserve z-index layering */
.player.walking .player-items img,
.player.walking .player-items .player-item,
.my-player.walking .player-items img,
.my-player.walking .player-items .player-item {
    animation: walkBobItems 380ms ease-in-out infinite;
}

@keyframes walkBob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes walkBobItems {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

/* Chat and toolbar */
.chat-toolbar {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #2a1e3f 0%, #1a142b 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 6px 10px;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.1),
        0 3px 6px rgba(0,0,0,0.4),
        0 0 20px rgba(90, 50, 150, 0.3);
}

.chat-input {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    outline: none;
    color: #fff;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.chat-input::placeholder {
    color: #999;
}

.chat-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 0 0 2px rgba(124, 92, 255, 0.2);
}

.emoji-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.15),
        0 3px 6px rgba(0,0,0,0.3);
    font-size: 18px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}

.emoji-btn:hover {
    background: rgba(124, 92, 255, 0.2);
    border-color: rgba(124, 92, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 4px 10px rgba(124, 92, 255, 0.4);
}

.emoji-btn:hover::after {
    content: 'אימוג׳ים';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}

.emoji-btn:active {
    transform: scale(0.97);
}

.emoji-menu {
    position: absolute;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,50,0.9);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    z-index: 1200;
}

.emoji-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    font-size: 18px;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #6fd9c9, #4bb8a8);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 3px 8px rgba(111, 217, 201, 0.4),
        0 0 12px rgba(111, 217, 201, 0.2);
    font-size: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
}

.send-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.4),
        0 4px 12px rgba(111, 217, 201, 0.6),
        0 0 20px rgba(111, 217, 201, 0.4);
}

.send-btn:hover::after {
    content: 'שלח הודעה';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}

.send-btn:active {
    transform: scale(0.97);
}

/* Admin button */
.admin-btn { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer; 
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 8px 20px rgba(0,0,0,0.35), 
        0 0 15px rgba(255, 50, 50, 0.6);
    background: linear-gradient(145deg, #ff4b4b, #d92b2b); 
    display: grid; 
    place-items: center; 
    transition: all 0.3s ease; 
    z-index: 1001;
    position: relative;
    font-size: 20px;
}

.admin-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 12px 30px rgba(0,0,0,0.45), 
        0 0 25px rgba(255, 50, 50, 0.8);
    filter: brightness(1.15); 
}

.admin-btn:hover::after {
    content: 'פאנל מנהל';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}

.admin-btn:active {
    transform: scale(0.95);
}

/* Admin panel */
.admin-panel { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 50%, rgba(10,10,18,0.65), rgba(10,10,18,0.55)); z-index: 3000; backdrop-filter: blur(2px); }
.admin-panel-content { background: linear-gradient(180deg, #121225, #0b0b18); color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 0; width: min(96vw, 680px); box-shadow: 0 26px 80px rgba(0,0,0,0.55), 0 0 0 4px rgba(80,120,255,0.08) inset; overflow: hidden; font-family: 'Rubik', sans-serif; }
.admin-panel-title { font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.admin-panel-header { display:flex; align-items:center; gap:12px; padding:16px 18px; background: linear-gradient(90deg, #405ec3, #6a6ae5, #9b59d1); border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(64,94,195,0.35); }
.admin-panel-header .icon { width:36px; height:36px; border-radius:10px; background: rgba(255,255,255,0.18); display:grid; place-items:center; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12); }
.admin-tabs { display:flex; gap:10px; padding: 10px 12px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-tab { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color:#fff; border-radius: 999px; padding:8px 14px; cursor:pointer; font-weight:800; font-size: 14px; transition: background .14s ease, transform .14s ease, box-shadow .14s ease; }
.admin-tab:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.admin-tab.active { background: linear-gradient(90deg,#6a6ae5,#9b59d1); border-color: rgba(255,255,255,0.25); }
.admin-panel-body { padding: 18px; overflow-y: auto; max-height: min(74vh, 560px); }
.admin-row { display:flex; gap:10px; margin-bottom: 14px; }
.admin-input { flex:1; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.22); color:#fff; border-radius:12px; padding:10px 12px; outline: none; box-shadow: 0 6px 14px rgba(0,0,0,0.25) inset; }
.admin-input:focus { border-color:#6a9bff; box-shadow: 0 0 0 3px rgba(106,155,255,0.2), 0 6px 14px rgba(0,0,0,0.25) inset; }
.admin-action { border:0; border-radius:12px; padding:10px 14px; color:#0b1218; font-weight:900; cursor:pointer; box-shadow: 0 10px 22px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.12) inset; transition: transform .14s ease, box-shadow .14s ease; }
.admin-action:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,255,255,0.18) inset; }
.admin-action.red { background: linear-gradient(180deg, #ff6b6b, #d34040); }
.admin-action.orange { background: linear-gradient(180deg, #ffb86b, #d47a40); }
.admin-action.green { background: linear-gradient(180deg, #43e6a1, #2cc88f); }
.admin-action.blue { background: linear-gradient(180deg, #2196F3, #1976D2); }
.admin-close { background: transparent; border:1px solid rgba(255,255,255,0.28); color:#fff; border-radius:12px; padding:8px 12px; cursor:pointer; margin-top:6px; transition: background .14s ease, transform .14s ease; }
.admin-close:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }

/* Admin banner (top) */
.admin-banner { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: #fff; border:2px solid #ff4444; border-radius: 14px; padding: 16px; display:flex; align-items:center; gap: 16px; z-index: 10000; box-shadow: 0 8px 24px rgba(0,0,0,0.2); width: min(96vw, 480px); direction: rtl; animation: slideDown 0.4s ease-out; }
.admin-banner-avatar { width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.admin-banner-items { position: absolute; pointer-events: none; }
.admin-banner-items img { position: absolute; image-rendering: crisp-edges; }
.admin-banner-content { flex: 1; }
.admin-banner-from { font-weight: 900; font-size: 19px; color: #ff4444; text-shadow: 0 0 8px rgba(255,68,68,0.6); margin-bottom: 6px; }
.admin-banner-msg { font-size: 16px; color: #444; line-height: 1.4; }
.admin-banner-close { background: transparent; color:#ff4444; border:0; font-size:22px; cursor:pointer; padding: 4px 8px; border-radius: 8px; position: absolute; top: 8px; left: 8px; transition: all 0.2s ease; }
.admin-banner-close:focus { outline: none; }
.admin-banner-close:hover { background: rgba(255,68,68,0.15); transform: scale(1.1); }

/* System message specific styles */
.admin-banner.system-message {
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3), 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.system-message-icon {
    position: relative;
    animation: rotateGear 3s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes rotateGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(76, 175, 80, 0.8); }
}

/* Coins Reward Popup */
.coins-reward-popup {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 15000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-out, visibility 0s 0.4s;
}

.coins-reward-popup.show,
.coins-reward-popup[style*="display: grid"],
.coins-reward-popup[style*="display: block"] {
    display: grid;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease-out, visibility 0s 0s;
}

.coins-reward-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: popupBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.coins-reward-image {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.5));
    animation: imageGlow 2s ease-in-out infinite;
}

.coins-reward-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(76, 175, 80, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.coins-reward-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.coins-reward-btn:hover::before {
    width: 300px;
    height: 300px;
}

.coins-reward-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(76, 175, 80, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.3) inset;
}

.coins-reward-btn:active {
    transform: scale(0.98);
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.1) translateY(10px);
    }
    70% {
        transform: scale(0.95) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes imageGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 15px 40px rgba(255, 215, 0, 0.8));
    }
}

.coins-reward-popup.hiding {
    animation: fadeOutPopup 0.3s ease-in forwards;
}

.coins-reward-popup.hiding .coins-reward-content {
    animation: popupShrink 0.3s ease-in forwards;
}

@keyframes fadeOutPopup {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes popupShrink {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
}

/* Chat alert popup */
.chat-alert {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    animation: fadeIn .18s ease;
}
.chat-alert-content {
    background: radial-gradient(120% 100% at 50% 0%, #6b1015 0%, #2a0204 70%);
    color: #fff;
    border: 2px solid rgba(255,77,79,0.9);
    border-radius: 18px;
    padding: 18px 20px;
    width: min(92vw, 420px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 3px rgba(255,77,79,0.3) inset, 0 0 38px rgba(255,77,79,0.45);
    transform: scale(0.9);
    animation: popIn .18s ease forwards;
    font-family: 'Rubik', Arial, sans-serif;
}
.chat-alert-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-alert-icon { width: 28px; height: 28px; border-radius: 50%; background: #ff4d4f; color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 12px rgba(255,77,79,0.7); }
.chat-alert-title { font-weight: 800; font-size: 18px; color: #ff9b9d; text-shadow: 0 0 8px rgba(255,77,79,0.5); }
.chat-alert-text { opacity: .95; line-height: 1.6; margin-bottom: 14px; font-weight: 800; text-decoration: underline; }
.chat-alert-ok {
    background: linear-gradient(180deg, #43e6a1, #2cc88f);
    color: #0e1b1b;
    border: 2px solid rgba(46, 213, 115, 0.9);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(46, 213, 115, 0.35), 0 0 0 3px rgba(46,213,115,0.25) inset;
    transition: transform .14s ease, box-shadow .14s ease;
}
.chat-alert-ok:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(46, 213, 115, 0.45), 0 0 0 3px rgba(46,213,115,0.32) inset; }
@keyframes popIn { from { transform: scale(0.9); opacity: .8; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Speech bubbles over players */
.speech {
    position: absolute;
    bottom: 124%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.6));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 10px 14px;
    max-width: 400px;
    min-width: 60px;
    width: max-content;
    min-height: auto;
    pointer-events: none;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
    overflow: visible;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    word-break: normal;
}
.speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: rgba(0,0,0,0.6) transparent transparent transparent;
}

.speech.admin {
    background: linear-gradient(180deg, rgba(255,59,59,0.95), rgba(200,30,30,0.9));
    border-color: rgba(255, 120, 120, 0.95);
}
.speech.admin::after { border-color: rgba(200,30,30,0.9) transparent transparent transparent; }

.speech.subscriber {
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.9), rgba(210, 135, 0, 0.85));
    border-color: rgba(255, 180, 80, 0.95);
}
.speech.subscriber::after { border-color: rgba(210,135,0,0.85) transparent transparent transparent; }

@media (max-width: 768px) {
    .chat-box { min-width: min(88vw, 480px); }
}

/* Items Button in Toolbar */
.items-btn-toolbar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: 1px solid rgba(255,255,255,0.15); 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    cursor: pointer; 
    font-size: 18px; 
    display: grid; 
    place-items: center; 
    transition: all 0.3s ease; 
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.15),
        0 3px 6px rgba(0,0,0,0.3);
    flex-shrink: 0; 
    position: relative;
}
.items-btn-toolbar:hover { 
    background: rgba(124, 92, 255, 0.2); 
    border-color: rgba(124, 92, 255, 0.4);
    transform: scale(1.05); 
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 4px 10px rgba(124, 92, 255, 0.4);
}
.items-btn-toolbar:hover::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}
/* Specific hover labels per button */
#itemsBtn.items-btn-toolbar:hover::after { content: 'ארון פריטים'; }
#shopBtn.items-btn-toolbar:hover::after { content: 'חנות'; }
.items-btn-toolbar:active {
    transform: scale(0.97);
}

/* Map Button in Toolbar */
.map-btn-toolbar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.15),
        0 3px 6px rgba(0,0,0,0.3);
    flex-shrink: 0;
    position: relative;
}
.map-btn-toolbar:hover {
    background: rgba(76, 175, 255, 0.2);
    border-color: rgba(76, 175, 255, 0.4);
    transform: scale(1.05);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 4px 10px rgba(76, 175, 255, 0.4);
}
.map-btn-toolbar:hover::after {
    content: 'מפה';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}
.map-btn-toolbar:active {
    transform: scale(0.97);
}

/* Items Wardrobe */
.items-wardrobe { 
    position: fixed; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%); 
    z-index: 9000; 
    display: none;
    place-items: center; 
    backdrop-filter: blur(12px) saturate(180%);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
}

.items-wardrobe.show,
.items-wardrobe[style*="display: grid"] {
    display: grid;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.items-wardrobe-content { 
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #f0f2f5 100%); 
    border: 3px solid rgba(75, 184, 168, 0.3); 
    border-radius: 24px; 
    width: 100vw; 
    height: 100vh; 
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(75, 184, 168, 0.2) inset,
        0 0 60px rgba(75, 184, 168, 0.1); 
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.96) translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
    position: relative;
}

.items-wardrobe-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(75, 184, 168, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.items-wardrobe.show .items-wardrobe-content {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.items-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 28px 36px; 
    background: linear-gradient(135deg, rgba(75, 184, 168, 0.2) 0%, rgba(147, 51, 234, 0.15) 100%);
    border-bottom: 2px solid rgba(75, 184, 168, 0.3); 
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.items-title { 
    color: #4bb8a8; 
    font-size: 32px; 
    font-weight: 800; 
    margin: 0; 
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(75, 184, 168, 0.2);
    letter-spacing: 1px;
    font-family: 'Rubik', sans-serif;
}

.items-close { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
    color: #ffffff; 
    border: 2px solid rgba(255, 255, 255, 0.3); 
    border-radius: 12px; 
    width: 44px; 
    height: 44px; 
    font-size: 20px; 
    font-weight: bold;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.items-close:hover { 
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); 
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.08); 
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
    color: #ffffff;
}

.items-loading { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    color: #495057; 
    font-size: 18px; 
    font-weight: 600;
    flex: 1;
    font-family: 'Rubik', sans-serif;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.items-loading .loading-spinner {
    position: relative;
    margin: 0 auto;
    left: auto;
    top: auto;
    transform: none;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(75, 184, 168, 0.3);
    border-top: 4px solid #4bb8a8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(75, 184, 168, 0.2);
}

.items-body { 
    display: flex; 
    flex-direction: column;
    gap: 24px; 
    padding: 28px 36px; 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Category tabs container at top */
.category-tabs-container {
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(75, 184, 168, 0.3);
    position: relative;
}

.category-tabs-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(75, 184, 168, 0.4) 50%, transparent 100%);
}

/* Main container for items grid and preview */
.items-main-container {
    display: flex !important;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
    overflow: visible;
    min-height: 0;
    width: 100%;
}

/* Items grid container - takes most space in the middle */
.items-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    position: relative;
}



.user-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif 중요한;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.user-badge.admin {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    animation: glowRed 2s ease-in-out infinite alternate;
}

.user-badge.subscriber {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
    animation: glowOrange 2s ease-in-out infinite alternate;
}

.user-badge.regular {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.2);
}

@keyframes glowRed {
    0% { box-shadow: 0 4px 12px rgba(255,68,68,0.4); }
    100% { box-shadow: 0 6px 20px rgba(255,68,68,0.8), 0 0 15px rgba(255,68,68,0.5); }
}

@keyframes glowOrange {
    0% { box-shadow: 0 4px 12px rgba(255,140,0,0.4); }
    100% { box-shadow: 0 6px 20px rgba(255,140,0,0.8), 0 0 15px rgba(255,165,0,0.5); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(200%) translateY(200%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.user-info-card .user-info-line:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-2px);
}

.user-info-card .user-badge:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}

/* ========== PLAYER CARD - WARDROBE ========== */
.player-card-wardrobe {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    min-width: 220px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.player-card-wardrobe .player-card-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid rgba(75, 184, 168, 0.3) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(75, 184, 168, 0.2) inset !important;
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    direction: rtl !important;
}

.player-card-wardrobe .player-card-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(75, 184, 168, 0.1) 0%, transparent 50%, rgba(147, 51, 234, 0.08) 100%),
        radial-gradient(circle at 50% 0%, rgba(75, 184, 168, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.player-card-wardrobe .player-card-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(75, 184, 168, 0.6) 50%, transparent 100%);
    pointer-events: none;
}

.player-card-wardrobe .player-card-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.player-card-wardrobe .player-card-character-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatGentle 3s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.player-card-wardrobe .player-card-base {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.player-card-wardrobe .player-card-items {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: auto;
}

.player-card-wardrobe .player-card-username {
    font-family: 'Rubik', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.player-card-wardrobe .player-card-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.player-card-wardrobe .player-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: badgePulse 2.5s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-card-wardrobe .player-card-badge.admin {
    background: linear-gradient(135deg, #8b0000 0%, #1a0000 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.player-card-wardrobe .player-card-badge.subscriber {
    background: linear-gradient(135deg, #1e90ff 0%, #000080 100%);
    color: #ffffff;
    border: 1px solid rgba(100, 149, 237, 0.3);
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.player-card-wardrobe .player-card-coins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.6) 100%);
    border-radius: 12px;
    border: 2px solid rgba(75, 184, 168, 0.3);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.player-card-wardrobe .player-card-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.6) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-card-wardrobe .player-card-gold-icon {
    font-size: 18px;
}

.player-card-wardrobe .player-card-gold-amount {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.player-card-wardrobe .player-card-coin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    animation: coinShimmer 10s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes coinShimmer {
    0%, 90%, 100% {
        opacity: 1;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) brightness(1);
    }
    5%, 85% {
        opacity: 1;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) brightness(1.3);
    }
    45% {
        opacity: 1;
        filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4)) brightness(1.5);
    }
}

.player-card-wardrobe .player-card-coins-amount {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-info-line {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.user-info-line span {
    font-weight: 600;
    color: #ffffff;
}

/* User Status Card */
.user-status-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(75, 184, 168, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.admin {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.status-badge.subscriber {
    background: linear-gradient(135deg, #ffd93d 0%, #f6c23e 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 217, 61, 0.3);
}

.status-badge.regular {
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(75, 184, 168, 0.3);
}

.user-stats-simple {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.user-stats-simple .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(75, 184, 168, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(75, 184, 168, 0.2);
    font-size: 14px;
    min-width: 60px;
    justify-content: center;
}

.user-stats-simple .stat-icon {
    font-size: 16px;
}

.user-stats-simple .stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(75, 184, 168, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(75, 184, 168, 0.1);
}

.stat-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    flex: 1;
}

.stat-value {
    font-size: 12px;
    color: #333;
    font-weight: 700;
    text-align: right;
}

.show-more-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(75, 184, 168, 0.3);
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #5bc8b8 0%, #4bb8a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 184, 168, 0.4);
}

.show-more-btn:active {
    transform: translateY(0);
}

/* User Details Popup */
.user-details-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
    place-items: center;
    backdrop-filter: blur(8px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.user-details-popup.show,
.user-details-popup[style*="display: grid"],
.user-details-popup[style*="display: block"] {
    display: grid;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.user-details-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid rgba(75, 184, 168, 0.3);
    border-radius: 20px;
    width: min(90vw, 500px);
    max-height: 80vh;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    overflow: hidden;
}

.user-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.user-details-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-details-close {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
}

.user-details-close:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: rotate(90deg) scale(1.1);
}

.user-details-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(75, 184, 168, 0.2);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    background: rgba(75, 184, 168, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(75, 184, 168, 0.1);
}

.detail-item-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}


/* Removed old .items-categories - moved categories to top */

.category-tabs { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
}

.category-tab { 
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%); 
    color: #495057; 
    border: 2px solid rgba(75, 184, 168, 0.3); 
    border-radius: 12px; 
    padding: 10px 18px; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Rubik', sans-serif;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(75, 184, 168, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-tab:hover { 
    background: linear-gradient(145deg, rgba(75, 184, 168, 0.15) 0%, rgba(59, 130, 120, 0.1) 100%); 
    border-color: rgba(75, 184, 168, 0.5); 
    color: #2c3e50;
    transform: translateY(-2px); 
    box-shadow: 0 4px 16px rgba(75, 184, 168, 0.3);
}

.category-tab:hover::before {
    opacity: 1;
}

.category-tab.active { 
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%); 
    border-color: rgba(75, 184, 168, 0.6); 
    color: #ffffff;
    box-shadow: 
        0 4px 20px rgba(75, 184, 168, 0.4),
        0 0 0 1px rgba(75, 184, 168, 0.3) inset;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.items-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(110px, 110px)); 
    gap: 16px; 
    overflow-y: auto; 
    padding: 20px; 
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 249, 250, 0.4) 100%);
    border-radius: 16px;
    flex: 1;
    min-height: 0;
    justify-content: start;
    border: 2px solid rgba(75, 184, 168, 0.2);
}

.items-grid::-webkit-scrollbar {
    width: 8px;
}

.items-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.items-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    border-radius: 10px;
}

.items-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5bc8b8 0%, #4bb8a8 100%);
}

.item-card { 
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%); 
    border: 2px solid rgba(75, 184, 168, 0.3); 
    border-radius: 14px; 
    padding: 10px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 110px;
    height: 130px;
    box-sizing: border-box;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(75, 184, 168, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.item-card:hover { 
    background: linear-gradient(145deg, rgba(75, 184, 168, 0.15) 0%, rgba(59, 130, 120, 0.1) 100%); 
    border-color: rgba(75, 184, 168, 0.5); 
    transform: translateY(-6px) scale(1.05); 
    box-shadow: 
        0 8px 24px rgba(75, 184, 168, 0.3),
        0 0 0 1px rgba(75, 184, 168, 0.3) inset;
}

.item-card:hover::before {
    opacity: 1;
}

.item-card.equipped { 
    border-color: #4bb8a8; 
    background: linear-gradient(145deg, rgba(75, 184, 168, 0.2) 0%, rgba(59, 130, 120, 0.15) 100%);
    box-shadow: 
        0 0 30px rgba(75, 184, 168, 0.4),
        0 0 0 2px rgba(75, 184, 168, 0.3) inset,
        0 4px 16px rgba(75, 184, 168, 0.3);
    position: relative;
}

.item-card.equipped::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4bb8a8 0%, #5bc8b8 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(75, 184, 168, 0.5);
    z-index: 2;
}

.item-card.locked { 
    opacity: 0.5; 
    cursor: not-allowed; 
    filter: grayscale(0.8);
}

.item-card.locked:hover { 
    transform: none; 
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-color: rgba(75, 184, 168, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-image { 
    width: 60px; 
    height: 60px; 
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.item-name { 
    color: #495057;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.3;
    margin-top: 0;
    font-family: 'Rubik', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    max-height: 28px;
}

.item-description {
    display: none; /* Hide description in compact view */
}

.item-badge { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%); 
    color: #000; 
    font-size: 10px; 
    font-weight: 900; 
    padding: 3px 8px; 
    border-radius: 8px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-family: 'Rubik', sans-serif;
}

.item-badge.admin { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
    color: #fff; 
}

.item-badge.subscriber { 
    background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%); 
    color: #fff; 
}

/* Player Items */
.player-items { 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: auto; /* Allow items to have their own z-index */
    /* Ensure items move together with player - no transform on container */
}
.player-item { 
    position: absolute; 
    pointer-events: none;
    /* z-index is set inline from JSON layer data - do not override in CSS */
    /* Animation will be applied directly to maintain proper layering */
}

/* Player Card */
.player-card {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: none;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.player-card.show,
.player-card[style*="display: grid"],
.player-card[style*="display: block"] {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.player-card-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.player-card.show .player-card-content {
    transform: scale(1);
    opacity: 1;
}

.player-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.player-card-content {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 0;
    width: min(95vw, 500px);
    height: min(85vh, 600px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.02);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.player-card.show .player-card-content {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
}

.player-card-header {
    padding: 40px;
    text-align: center;
    position: relative;
}

.player-card-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.player-card-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: shimmer 2s infinite;
}

.player-card-badge.subscriber {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.player-card-badge.admin {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
}

.player-card-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmerMove 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes shimmerMove {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.player-card-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.player-card-avatar:hover {
    transform: scale(1.05);
}

.player-card-info {
    width: 100%;
}

.player-card-name {
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.player-card-level {
    display: none;
}

.player-card-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4d4f;
    color: #fff;
    border: 2px solid #ff4d4f;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
    z-index: 10001 !important;
    pointer-events: auto !important;
}

.player-card-close:hover {
    background: #ff6b6d;
    transform: rotate(90deg) scale(1.2);
    box-shadow: 0 6px 18px rgba(255, 77, 79, 0.6);
}

.player-card-close:active {
    transform: rotate(90deg) scale(0.95);
    background: #e63946;
}

.player-card-body {
    padding: 40px;
    text-align: center;
}

.player-card-rank {
    display: none;
}

.rank-icon {
    display: none;
}

.rank-text {
    display: none;
}

/* Map Popup */
.map-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.map-popup.show,
.map-popup[style*="display: grid"],
.map-popup[style*="display: block"] {
    display: grid;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.map-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    width: min(95vw, 800px);
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
    position: relative;
}

.map-header {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.map-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.map-title {
    flex: 1;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.map-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
}

.map-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.map-body {
    padding: 30px;
    max-height: calc(90vh - 90px);
    overflow-y: auto;
    position: relative;
}

.map-stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.map-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.map-area-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.map-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.map-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.map-area-name {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}

.map-area-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.map-area-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.map-area-badge.admin {
    background: rgba(255, 68, 68, 0.9);
}

.map-area-badge.subscriber {
    background: rgba(255, 215, 0, 0.9);
    color: #333;
}

.map-area-badge.current {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
}

.map-area-card.current-area {
    border: 2px solid #4CAF50;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.map-area-goto {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.map-area-goto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.5);
}

.map-area-goto:active {
    transform: translateY(0);
}

.map-area-goto:disabled {
    background: linear-gradient(135deg, #999, #666);
    cursor: not-allowed;
    opacity: 0.6;
}

.map-area-goto:disabled:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9; 
    }
}

.player-card-actions {
    display: flex;
    justify-content: center;
}

.player-card-action {
    font-family: 'Rubik', sans-serif;
    background: #4bb8a8;
    color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 20px 40px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    box-shadow: 
        0 5px 15px rgba(75, 184, 168, 0.3);
    width: 100%;
    letter-spacing: 0.5px;
}

.player-card-action:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 184, 168, 0.4);
    background: #5bc8b8;
}

.player-card-action:active:not(:disabled) {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgba(75, 184, 168, 0.3);
}

.player-card-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
    border-color: rgba(150, 150, 150, 0.5);
}

/* Trade Button - Special Styling */
.trade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 18px 45px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(118, 75, 162, 0.3);
    width: 100%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.trade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.trade-btn:hover:not(:disabled)::before {
    left: 100%;
}

.trade-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 36px rgba(102, 126, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 50px rgba(240, 147, 251, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    animation: gradientShift 1.5s ease infinite, pulseGlow 1.5s ease infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 12px 36px rgba(102, 126, 234, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 50px rgba(240, 147, 251, 0.6);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(102, 126, 234, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 60px rgba(240, 147, 251, 0.8);
    }
}

.trade-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.trade-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    border-color: rgba(150, 150, 150, 0.3);
    box-shadow: none;
    animation: none;
}

.trade-btn-icon {
    font-size: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.trade-btn:hover:not(:disabled) .trade-btn-icon {
    animation: rotateIcon 0.6s ease;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.trade-btn-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== TRADE SYSTEM ========== */

/* Toast Notifications (ימין למעלה) */
.trade-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    pointer-events: none;
}

.trade-toast-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.trade-toast-success .trade-toast-content {
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.trade-toast-error .trade-toast-content {
    border-color: rgba(244, 67, 54, 0.4);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.trade-toast-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.trade-toast-text {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    flex: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* Trade Request Panels (שמאל למעלה) */
.trade-request-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    min-width: 320px;
    max-width: 420px;
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trade-request-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.trade-request-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trade-request-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.trade-request-title {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trade-request-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.trade-request-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.trade-request-body {
    padding: 20px;
}

.trade-request-text {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.5;
}

.trade-username {
    font-weight: 800;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trade-request-actions {
    display: flex;
    gap: 12px;
}

.trade-request-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.trade-request-accept {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.trade-request-accept:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.trade-request-reject {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.trade-request-reject:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(244, 67, 54, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Trade Window (גדול כמו ארון פריטים) */
/* ===== TRADE WINDOW - Ultimate Redesign 2025 ===== */
.trade-window {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    place-items: center;
    animation: fadeInTrade 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInTrade {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.trade-window.show {
    display: grid;
}

.trade-window-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    backdrop-filter: blur(20px);
    animation: overlayPulse 3s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.trade-window-content {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.95) 50%,
        rgba(241, 245, 249, 0.98) 100%);
    border: 4px solid transparent;
    background-clip: padding-box;
    border-radius: 40px;
    width: min(98vw, 1600px);
    height: min(94vh, 950px);
    box-shadow: 
        0 40px 120px rgba(99, 102, 241, 0.3),
        0 20px 60px rgba(147, 51, 234, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(99, 102, 241, 0.1);
    position: relative;
    transform: scale(0.85) translateY(40px) rotateX(10deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    overflow: hidden;
    backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    border-image: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.3), 
        rgba(147, 51, 234, 0.4), 
        rgba(168, 85, 247, 0.3)) 1;
}

.trade-window-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.5),
        rgba(147, 51, 234, 0.6),
        rgba(168, 85, 247, 0.5),
        rgba(99, 102, 241, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.trade-window.show .trade-window-content {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

.trade-window-header {
    padding: 32px 42px;
    border-bottom: 4px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        #6366f1 0%, 
        #8b5cf6 30%, 
        #a855f7 60%,
        #9333ea 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.trade-window-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { 
        transform: translate(-25%, -25%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-30%, -30%) scale(1.2);
        opacity: 0.6;
    }
}

.trade-window-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent);
    animation: shineHeader 4s ease-in-out infinite;
}

@keyframes shineHeader {
    0% { left: -100%; }
    100% { left: 200%; }
}

.trade-window-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.trade-window-title::before {
    content: '🔄';
    font-size: 38px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: rotateTrade 4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    display: inline-block;
    transform-origin: center;
}

@keyframes rotateTrade {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
    }
    50% { 
        transform: rotate(180deg) scale(1);
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
    }
}

.trade-window-close {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25), 
        rgba(255, 255, 255, 0.15));
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.trade-window-close::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trade-window-close:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(255, 255, 255, 0.95));
    color: #6366f1;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 12px 40px rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.3),
        inset 0 2px 4px rgba(99, 102, 241, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.trade-window-close:hover::before {
    opacity: 1;
}

.trade-window-close:active {
    transform: scale(1.05) rotate(90deg);
}

.trade-window-body {
    flex: 1;
    padding: 42px;
    overflow-y: auto;
    background: linear-gradient(145deg, 
        #fafbff 0%, 
        #f8fafc 25%,
        #f1f5f9 50%,
        #f8fafc 75%,
        #fafbff 100%);
    position: relative;
}

.trade-window-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.08), 
        transparent);
    pointer-events: none;
    z-index: 0;
}

.trade-window-body::-webkit-scrollbar {
    width: 10px;
}

.trade-window-body::-webkit-scrollbar-track {
    background: rgba(147, 51, 234, 0.05);
    border-radius: 10px;
}

.trade-window-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border-radius: 10px;
}

.trade-window-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* Trade Main Container - Redesigned */
.trade-main-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    height: 100%;
    min-height: 600px;
}

/* Trade Side (My & Partner) - Ultimate Design */
.trade-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 38px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(248, 250, 252, 0.96),
        rgba(241, 245, 249, 0.98));
    border-radius: 32px;
    border: 4px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.15),
        0 10px 30px rgba(147, 51, 234, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(99, 102, 241, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.trade-side::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.3),
        rgba(147, 51, 234, 0.4),
        rgba(168, 85, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.trade-side::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.08) 0%, 
        transparent 70%);
    animation: sideGlow 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sideGlow {
    0%, 100% { 
        transform: translate(-25%, -25%) scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-30%, -30%) scale(1.3);
        opacity: 0.8;
    }
}

.trade-side:hover::before {
    opacity: 1;
}

.trade-side:hover {
    transform: translateY(-8px) scale(1.02) rotateZ(0.5deg);
    box-shadow: 
        0 30px 80px rgba(99, 102, 241, 0.25),
        0 15px 40px rgba(147, 51, 234, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(99, 102, 241, 0.1);
}

.trade-side-my {
    background: linear-gradient(145deg, 
        rgba(99, 102, 241, 0.12), 
        rgba(139, 92, 246, 0.1),
        rgba(99, 102, 241, 0.08));
}

.trade-side-my::before {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.4),
        rgba(139, 92, 246, 0.5),
        rgba(168, 85, 247, 0.4));
}

.trade-side-partner {
    background: linear-gradient(145deg, 
        rgba(236, 72, 153, 0.12), 
        rgba(219, 39, 119, 0.1),
        rgba(236, 72, 153, 0.08));
}

.trade-side-partner::before {
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.4),
        rgba(219, 39, 119, 0.5),
        rgba(244, 63, 94, 0.4));
}

.trade-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.trade-player-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border: 4px solid rgba(147, 51, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(147, 51, 234, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.trade-player-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trade-side:hover .trade-player-avatar::after {
    opacity: 1;
}

.trade-side:hover .trade-player-avatar {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 
        0 12px 40px rgba(147, 51, 234, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.9);
}

.trade-player-name {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1e1b4b;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.trade-offer-label {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #9333ea;
    margin-top: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.trade-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.trade-item-slot {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 3px dashed rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    min-height: 90px;
    overflow: hidden;
}

.trade-item-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(124, 58, 237, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trade-item-slot:hover::before {
    opacity: 1;
}

.trade-item-slot:hover {
    border-color: rgba(147, 51, 234, 0.6);
    border-style: solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

.trade-item-slot.has-item {
    border-style: solid;
    border-color: rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    cursor: default;
    box-shadow: 
        0 4px 15px rgba(147, 51, 234, 0.2),
        inset 0 2px 4px rgba(147, 51, 234, 0.05);
}

.trade-item-slot .item-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    border-radius: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.trade-item-slot.has-item:hover .item-preview {
    transform: scale(1.1);
}

.trade-item-slot .item-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 3px solid white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.trade-item-slot .item-remove:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

.trade-add-items-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
}

.trade-add-items-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.trade-add-items-btn:hover::before {
    width: 400px;
    height: 400px;
}

.trade-add-items-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.5);
}

.trade-add-items-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.trade-status {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    text-align: center;
    min-height: 24px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(22, 163, 74, 0.2);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

/* Trade Center - Redesigned */
.trade-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-width: 320px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(248, 250, 252, 0.6));
    border-radius: 24px;
    border: 3px solid rgba(147, 51, 234, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 40px rgba(147, 51, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.trade-confirm-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.trade-confirm-btn,
.trade-final-confirm-btn,
.trade-cancel-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.trade-confirm-btn::before,
.trade-final-confirm-btn::before,
.trade-cancel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.trade-confirm-btn:hover::before,
.trade-final-confirm-btn:hover::before,
.trade-cancel-btn:hover::before {
    width: 400px;
    height: 400px;
}

.trade-confirm-btn {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(22, 163, 74, 0.4);
}

.trade-confirm-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 35px rgba(22, 163, 74, 0.5);
}

.trade-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.trade-final-confirm-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulseWarning 2s ease-in-out infinite;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}

.trade-final-confirm-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 35px rgba(239, 68, 68, 0.6);
    animation: none;
}

@keyframes pulseWarning {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(239, 68, 68, 0.7);
    }
}

.trade-cancel-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}

.trade-cancel-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 35px rgba(239, 68, 68, 0.6);
}

.trade-confirm-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.trade-confirm-status {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    min-height: 50px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    border: 2px solid rgba(147, 51, 234, 0.15);
    line-height: 1.6;
}

/* Trade Items Popup - Amazing Redesign */
.trade-items-popup {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: none;
    place-items: center;
    animation: fadeInTrade 0.3s ease;
}

.trade-items-popup.show {
    display: grid;
}

.trade-items-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.trade-items-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 3px solid rgba(147, 51, 234, 0.2);
    border-radius: 32px;
    width: min(92vw, 900px);
    max-height: min(88vh, 800px);
    box-shadow: 
        0 30px 100px rgba(147, 51, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    overflow: hidden;
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
}

.trade-items-popup.show .trade-items-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.trade-items-popup-header {
    padding: 26px 32px;
    border-bottom: 3px solid rgba(147, 51, 234, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
    position: relative;
    overflow: hidden;
}

.trade-items-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shineHeader 3s infinite;
}

.trade-items-popup-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trade-items-popup-title::before {
    content: '📦';
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.trade-items-popup-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.trade-items-popup-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #9333ea;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.trade-items-popup-body {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(to bottom, #fafbff 0%, #f5f7ff 100%);
}

.trade-items-popup-body::-webkit-scrollbar {
    width: 10px;
}

.trade-items-popup-body::-webkit-scrollbar-track {
    background: rgba(147, 51, 234, 0.05);
    border-radius: 10px;
}

.trade-items-popup-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border-radius: 10px;
}

.trade-items-popup-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.trade-items-search {
    width: 100%;
}

.trade-items-search-input {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid rgba(147, 51, 234, 0.2);
    border-radius: 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
}

.trade-items-search-input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 
        0 0 0 4px rgba(147, 51, 234, 0.15),
        0 6px 20px rgba(147, 51, 234, 0.2);
    transform: translateY(-2px);
}

.trade-items-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trade-category-btn {
    padding: 10px 20px;
    border: 3px solid rgba(147, 51, 234, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    color: #9333ea;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1);
}

.trade-category-btn:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(124, 58, 237, 0.1));
    border-color: rgba(147, 51, 234, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.trade-category-btn.active {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
}

.trade-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
    max-height: 320px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(248, 250, 252, 0.6));
    border-radius: 20px;
    border: 3px solid rgba(147, 51, 234, 0.1);
}

.trade-items-list::-webkit-scrollbar {
    width: 8px;
}

.trade-items-list::-webkit-scrollbar-track {
    background: rgba(147, 51, 234, 0.05);
    border-radius: 8px;
}

.trade-items-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border-radius: 8px;
}

.trade-item-select {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 3px solid rgba(147, 51, 234, 0.25);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.trade-item-select::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trade-item-select:hover::before {
    opacity: 1;
}

.trade-item-select:hover {
    border-color: rgba(147, 51, 234, 0.6);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

.trade-item-select.selected {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(124, 58, 237, 0.15));
    border-color: rgba(147, 51, 234, 0.7);
    box-shadow: 
        0 4px 20px rgba(147, 51, 234, 0.4),
        inset 0 2px 4px rgba(147, 51, 234, 0.1);
}

.trade-item-select .item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.trade-item-select .item-name {
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.2;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.trade-item-select .item-count-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    font-family: 'Rubik', sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.trade-item-select .item-check {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.trade-items-selected {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(124, 58, 237, 0.08));
    border-radius: 18px;
    padding: 18px;
    border: 3px solid rgba(147, 51, 234, 0.15);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
}

.trade-items-selected-label {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #9333ea;
    margin-bottom: 14px;
    text-shadow: 0 1px 3px rgba(147, 51, 234, 0.2);
}

.trade-items-selected-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trade-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    padding: 10px 14px;
    border-radius: 14px;
    border: 3px solid rgba(147, 51, 234, 0.25);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trade-selected-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.25);
}

.trade-selected-item .item-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.trade-selected-item .item-name {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
}

.trade-selected-item .item-remove-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.trade-selected-item .item-remove-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.trade-items-popup-footer {
    padding: 24px 32px;
    border-top: 3px solid rgba(147, 51, 234, 0.15);
    display: flex;
    gap: 14px;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(248, 250, 252, 0.6));
}

.trade-items-confirm-btn,
.trade-items-cancel-btn {
    padding: 16px 36px;
    border: none;
    border-radius: 16px;
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.trade-items-confirm-btn::before,
.trade-items-cancel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.trade-items-confirm-btn:hover::before,
.trade-items-cancel-btn:hover::before {
    width: 400px;
    height: 400px;
}

.trade-items-confirm-btn {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.trade-items-confirm-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.5);
}

.trade-items-cancel-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    color: #9333ea;
    border: 3px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.15);
}

.trade-items-cancel-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.25);
}

@keyframes pulseText {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Trade Chat - Amazing Redesign */
.trade-chat-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.trade-chat-messages {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border-radius: 18px;
    padding: 18px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 3px solid rgba(147, 51, 234, 0.15);
    box-shadow: 
        0 4px 15px rgba(147, 51, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.trade-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.trade-chat-messages::-webkit-scrollbar-track {
    background: rgba(147, 51, 234, 0.05);
    border-radius: 6px;
}

.trade-chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    border-radius: 6px;
}

.trade-chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trade-chat-message.my-message {
    align-items: flex-end;
}

.trade-chat-username {
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #9333ea;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.trade-chat-message.my-message .trade-chat-username {
    flex-direction: row-reverse;
    color: #7c3aed;
}

.trade-chat-username-text {
    display: inline-block;
}

.trade-chat-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    font-family: 'Rubik', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.trade-chat-badge-admin {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    animation: badgeGlowRed 2s ease-in-out infinite alternate;
}

.trade-chat-badge-subscriber {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    animation: badgeGlowOrange 2s ease-in-out infinite alternate;
}

@keyframes badgeGlowRed {
    0% { box-shadow: 0 2px 6px rgba(255,68,68,0.4); }
    100% { box-shadow: 0 3px 10px rgba(255,68,68,0.7), 0 0 8px rgba(255,68,68,0.4); }
}

@keyframes badgeGlowOrange {
    0% { box-shadow: 0 2px 6px rgba(255,140,0,0.4); }
    100% { box-shadow: 0 3px 10px rgba(255,140,0,0.7), 0 0 8px rgba(255,140,0,0.4); }
}

.trade-chat-text {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1e1b4b;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
    border: 2px solid rgba(147, 51, 234, 0.2);
    box-shadow: 
        0 2px 8px rgba(147, 51, 234, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    max-width: 85%;
    transition: all 0.2s ease;
}

.trade-chat-text:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(147, 51, 234, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.trade-chat-message.my-message .trade-chat-text {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 4px 16px rgba(147, 51, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.trade-chat-message.my-message .trade-chat-text:hover {
    box-shadow: 
        0 6px 20px rgba(147, 51, 234, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.trade-chat-input-container {
    display: flex;
    gap: 10px;
}

.trade-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 3px solid rgba(147, 51, 234, 0.2);
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1);
}

.trade-chat-input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 
        0 0 0 3px rgba(147, 51, 234, 0.15),
        0 4px 15px rgba(147, 51, 234, 0.2);
    transform: translateY(-2px);
}

.trade-chat-send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.trade-chat-send-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.trade-chat-send-btn:hover::before {
    width: 300px;
    height: 300px;
}

.trade-chat-send-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

/* Trade Indicator (like wardrobe indicator) */
.trade-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
    z-index: 100;
    animation: tradePulse 2s ease-in-out infinite;
    border: 3px solid white;
}

@keyframes tradePulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
    }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Desktop (מחשב נייח) - רזולוציות גדולות */
@media screen and (min-width: 1920px) {
    .items-wardrobe-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 110px));
        gap: 14px;
    }
    
    .item-card {
        width: 110px;
        height: 130px;
    }
    
    .user-info-card {
        width: 240px;
        padding: 14px 18px;
    }
}

/* Laptop (מחשב נייד) - רזולוציות בינוניות */
@media screen and (min-width: 1366px) and (max-width: 1919px) {
    .items-wardrobe-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 100px));
        gap: 12px;
    }
    
    .item-card {
        width: 100px;
        height: 120px;
    }
    
    .user-info-card {
        width: 220px;
        padding: 12px 16px;
    }
}

/* Tablet (טאבלט) */
@media screen and (min-width: 768px) and (max-width: 1365px) {
    .items-wardrobe-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .items-main-container {
        flex-direction: row !important;
        gap: 16px;
    }
    
    .items-grid-container {
        flex: 1;
        min-height: 0;
    }
    
    .player-card-wardrobe {
        display: block !important;
        width: 200px !important;
        min-width: 200px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .items-preview {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 90px));
        gap: 10px;
    }
    
    .item-card {
        width: 90px;
        height: 110px;
    }
    
    .item-image {
        width: 50px;
        height: 50px;
    }
    
    .item-name {
        font-size: 10px;
    }
    
    .user-info-card {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-tab {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Redeem Code Modal */
.redeem-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.redeem-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid rgba(75, 184, 168, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    min-width: 400px;
    max-width: 500px;
    overflow: hidden;
}

.redeem-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.redeem-modal-icon {
    font-size: 32px;
}

.redeem-modal-title {
    font-size: 22px;
    font-weight: 800;
    flex: 1;
}

.redeem-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.redeem-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.redeem-modal-body {
    padding: 25px;
}

.redeem-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redeem-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.redeem-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.redeem-status {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.redeem-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.redeem-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.redeem-modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.redeem-btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.redeem-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.redeem-btn-secondary {
    padding: 12px 24px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redeem-btn-secondary:hover {
    background: #d0d0d0;
}

.redeem-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* Redeem Success Modal */
.redeem-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
    max-width: 90vw;
    width: 100%;
    max-width: 500px;
}

.redeem-success-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    padding: 40px 30px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.redeem-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
    display: block;
}

.redeem-success-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

.redeem-success-rewards {
    margin: 25px 0;
    min-height: 50px;
}

.redeem-rewards-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.redeem-rewards-list div {
    font-size: 20px;
    font-weight: 700;
    color: #2d5016;
    padding: 12px 0;
    line-height: 1.6;
    text-align: center;
}

.redeem-rewards-list div:not(:last-child) {
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.redeem-success-message {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    line-height: 1.5;
    padding: 0 10px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive design for redeem success modal */
@media (max-width: 600px) {
    .redeem-success-modal {
        max-width: 95vw;
        padding: 0;
    }
    
    .redeem-success-content {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .redeem-success-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .redeem-success-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .redeem-rewards-list {
        padding: 15px;
        margin: 10px 0;
    }
    
    .redeem-rewards-list div {
        font-size: 18px;
        padding: 10px 0;
    }
    
    .redeem-success-message {
        font-size: 14px;
        margin-top: 15px;
    }
}

.redeem-btn-toolbar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,107,107,0.2);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.redeem-btn-toolbar:hover {
    background: rgba(255,107,107,0.3);
    border-color: rgba(255,107,107,0.4);
    transform: scale(1.05);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 4px 10px rgba(255,107,107,0.4);
}

.redeem-btn-toolbar:active {
    transform: scale(0.97);
}

/* Monthly Reward Button in Toolbar - עם עיצוב מנצנץ */
.monthly-reward-btn-toolbar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 215, 0, 0.4) 100%);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: monthlyRewardPulse 2s ease-in-out infinite;
}

.monthly-reward-btn-toolbar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    z-index: -1;
    animation: monthlyRewardShimmer 3s linear infinite;
    opacity: 0.7;
}

.monthly-reward-btn-toolbar:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.5) 0%, rgba(255, 215, 0, 0.6) 100%);
    border-color: rgba(255, 215, 0, 0.9);
    transform: scale(1.1);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255,255,255,0.3);
    animation: monthlyRewardPulseHover 0.5s ease-in-out infinite;
}

.monthly-reward-btn-toolbar:active {
    transform: scale(0.95);
}

.monthly-reward-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    animation: monthlyRewardIconBounce 2s ease-in-out infinite;
}

.monthly-reward-badge {
    font-size: 8px;
    line-height: 1;
    margin-top: -2px;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    font-weight: bold;
    letter-spacing: 0.5px;
}

@keyframes monthlyRewardPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.4);
    }
}

@keyframes monthlyRewardPulseHover {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.6);
    }
}

@keyframes monthlyRewardShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes monthlyRewardIconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Monthly Reward Modal */
.monthly-reward-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.monthly-reward-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    min-width: 400px;
    max-width: 500px;
    overflow: hidden;
}

.monthly-reward-modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.monthly-reward-modal-icon {
    font-size: 32px;
}

.monthly-reward-modal-title {
    font-size: 22px;
    font-weight: 800;
    flex: 1;
}

.monthly-reward-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.monthly-reward-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.monthly-reward-modal-body {
    padding: 25px;
}

.monthly-reward-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
}

.monthly-reward-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.monthly-reward-info {
    text-align: center;
}

.monthly-reward-name {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}

.monthly-reward-description {
    font-size: 14px;
    color: #666;
}

.monthly-reward-rewards {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.monthly-reward-rewards-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.monthly-reward-reward-item {
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.monthly-reward-reward-item:last-child {
    margin-bottom: 0;
}

.monthly-reward-status {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.monthly-reward-status.already-claimed {
    background: rgba(255, 193, 7, 0.1);
    color: #ff9800;
}

.monthly-reward-status.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.monthly-reward-modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.monthly-reward-btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.monthly-reward-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.monthly-reward-btn-primary:active {
    transform: translateY(0);
}

.monthly-reward-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.monthly-reward-btn-secondary {
    padding: 12px 24px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.monthly-reward-btn-secondary:hover {
    background: #d0d0d0;
}

.monthly-reward-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* Monthly Reward Success Modal */
.monthly-reward-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.monthly-reward-success-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    min-width: 400px;
    max-width: 500px;
    padding: 30px;
    text-align: center;
}

.monthly-reward-success-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.monthly-reward-success-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
}

.monthly-reward-success-rewards {
    margin: 20px 0;
}

.monthly-reward-success-reward-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.monthly-reward-success-reward-item:last-child {
    margin-bottom: 0;
}

.monthly-reward-success-message {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.monthly-reward-warning {
    font-size: 12px;
    color: #ff9800;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Monthly Reward Unbox Modal - שלב פתיחת המתנה */
.monthly-reward-unbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.monthly-reward-unbox-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(10px);
    animation: monthlyRewardUnboxBackgroundPulse 2s ease-in-out infinite;
}

@keyframes monthlyRewardUnboxBackgroundPulse {
    0%, 100% {
        background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    }
    50% {
        background: radial-gradient(circle at center, rgba(255, 215, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%);
    }
}

.monthly-reward-unbox-container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 40px;
}

.monthly-reward-unbox-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: monthlyRewardTitleGlow 2s ease-in-out infinite;
}

@keyframes monthlyRewardTitleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.6);
    }
}

.monthly-reward-unbox-counter {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.monthly-reward-unbox-counter span {
    font-size: 36px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.monthly-reward-gift-box {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
    animation: monthlyRewardGiftFloat 3s ease-in-out infinite;
}

.monthly-reward-gift-box:active {
    transform: scale(0.9);
}

@keyframes monthlyRewardGiftFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.monthly-reward-gift-icon {
    font-size: 180px;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    animation: monthlyRewardGiftPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes monthlyRewardGiftPulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 1));
        transform: scale(1.05);
    }
}

.monthly-reward-gift-sparkle {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: monthlyRewardSparkleRotate 4s linear infinite;
    pointer-events: none;
}

@keyframes monthlyRewardSparkleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.monthly-reward-gift-box.clicked {
    animation: monthlyRewardGiftBoom 0.3s ease;
}

@keyframes monthlyRewardGiftBoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.monthly-reward-unbox-progress {
    width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.monthly-reward-unbox-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: monthlyRewardProgressShimmer 2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes monthlyRewardProgressShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Monthly Reward Result Modal - שלב הצגת המתנה */
.monthly-reward-result-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.monthly-reward-result-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(76, 175, 80, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(10px);
    animation: monthlyRewardResultBackgroundPulse 2s ease-in-out infinite;
}

@keyframes monthlyRewardResultBackgroundPulse {
    0%, 100% {
        background: radial-gradient(circle at center, rgba(76, 175, 80, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    }
    50% {
        background: radial-gradient(circle at center, rgba(76, 175, 80, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%);
    }
}

.monthly-reward-result-container {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 4px solid rgba(76, 175, 80, 0.5);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: monthlyRewardResultSlideIn 0.5s ease;
}

@keyframes monthlyRewardResultSlideIn {
    0% {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.monthly-reward-result-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: monthlyRewardResultTitleBounce 0.6s ease;
}

@keyframes monthlyRewardResultTitleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.monthly-reward-result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.monthly-reward-result-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: monthlyRewardResultItemSlide 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes monthlyRewardResultItemSlide {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.monthly-reward-result-item-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: monthlyRewardResultIconPulse 2s ease-in-out infinite;
}

@keyframes monthlyRewardResultIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.monthly-reward-result-item-info {
    flex: 1;
    text-align: right;
}

.monthly-reward-result-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.monthly-reward-result-item-amount {
    font-size: 24px;
    font-weight: 800;
    color: #ff9800;
    text-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

.monthly-reward-result-item-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.monthly-reward-result-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.monthly-reward-result-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    width: 100%;
}

.monthly-reward-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.monthly-reward-result-btn:active {
    transform: translateY(0);
}

/* Quests Button in Toolbar */
.quests-btn-toolbar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,215,0,0.2);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.quests-btn-toolbar:hover {
    background: rgba(255,215,0,0.3);
    border-color: rgba(255,215,0,0.4);
    transform: scale(1.05);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 4px 10px rgba(255,215,0,0.4);
}

.quests-btn-toolbar:hover::after {
    content: 'משימות';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}

/* Quest button animation for first day users */
.quests-btn-toolbar.first-day {
    animation: questButtonPulse 2s ease-in-out infinite;
}

@keyframes questButtonPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 
            inset 0 2px 4px rgba(255,255,255,0.2),
            0 3px 6px rgba(255,215,0,0.3);
    }
    50% {
        transform: scale(1.15) translateY(-5px);
        box-shadow: 
            inset 0 2px 4px rgba(255,255,255,0.3),
            0 8px 20px rgba(255,215,0,0.6);
    }
}

/* Friends button hover */
#friendsBtn.items-btn-toolbar:hover::after {
    content: 'חברים';
}

/* Arcade button hover */
#arcadeBtn.items-btn-toolbar:hover::after {
    content: 'ארקייד';
}

/* Redeem button hover */
.redeem-btn-toolbar:hover::after {
    content: 'מימוש קוד';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}

/* Monthly reward button hover */
.monthly-reward-btn-toolbar:hover::after {
    content: 'מתנה חודשית';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
}

.quests-btn-toolbar:active {
    transform: scale(0.97);
}

.quests-completed-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5);
    animation: questBadgePulse 2s ease-in-out infinite;
}

@keyframes questBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.8); }
}

@keyframes questBadgeBounce {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5);
    }
    25% { 
        transform: translateY(-8px) scale(1.1); 
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.8);
    }
    50% { 
        transform: translateY(-4px) scale(1.05); 
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.7);
    }
    75% { 
        transform: translateY(-6px) scale(1.08); 
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.8);
    }
}

.quests-completed-badge.quest-badge-new {
    animation: questBadgeBounce 1s ease-in-out infinite;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.7);
}

/* Quests Modal */
/* Removed duplicate quests-modal styles - using the one below */

.quests-modal-header {
    padding: 24px 32px;
    border-bottom: 3px solid rgba(217, 119, 6, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        rgba(217, 119, 6, 0.9) 0%, 
        rgba(245, 158, 11, 0.9) 50%,
        rgba(217, 119, 6, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.quests-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent);
    animation: shineHeader 3s ease-in-out infinite;
}

.quests-modal-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: bounceIcon 2s ease-in-out infinite;
}

.quests-modal-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quests-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quests-modal-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #d97706;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.quests-modal-body {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #fffbeb 0%, #fef3c7 100%);
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quest-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.95));
    border: 3px solid rgba(217, 119, 6, 0.2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.quest-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    border-radius: 0 8px 8px 0;
}

.quest-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(217, 119, 6, 0.4);
    box-shadow: 
        0 10px 30px rgba(217, 119, 6, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.quest-item.completed {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.95), rgba(167, 243, 208, 0.95));
    border-color: rgba(16, 185, 129, 0.3);
}

.quest-item.completed::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.quest-completed-badge-large {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    margin-top: 12px;
    animation: questCompletedPulse 2s ease-in-out infinite;
}

@keyframes questCompletedPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
        transform: scale(1.02);
    }
}

.quest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.quest-name {
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1e1b4b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quest-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.quest-status.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.quest-status.ready-to-claim {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: readyToClaimPulse 2s ease-in-out infinite;
}

@keyframes readyToClaimPulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.6);
        transform: scale(1.05);
    }
}

.quest-claim-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    margin-top: 12px;
    animation: claimButtonPulse 2s ease-in-out infinite;
}

@keyframes claimButtonPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(245, 158, 11, 0.7);
    }
}

.quest-claim-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.6);
}

.quest-claim-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.quest-description {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.quest-progress {
    margin-bottom: 16px;
}

.quest-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.quest-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.quest-progress-text {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin-top: 8px;
    text-align: center;
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 14px;
    border: 2px solid rgba(147, 51, 234, 0.2);
}

.quest-reward-icon {
    font-size: 24px;
}

.quest-reward-text {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #9333ea;
}

.quest-complete-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    margin-top: 12px;
}

.quest-complete-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.quest-complete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Quest Completed Notification */
.quest-completed-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10004;
    display: none;
    animation: questNotificationSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quest-completed-notification.show {
    display: block;
}

@keyframes questNotificationSlideIn {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.quest-notification-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px 32px;
    box-shadow: 
        0 20px 60px rgba(16, 185, 129, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.5);
    position: relative;
    min-width: 320px;
    max-width: 500px;
}

.quest-notification-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quest-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

.quest-notification-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 8px;
    animation: questIconBounce 0.6s ease-in-out;
}

@keyframes questIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.quest-notification-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quest-notification-name {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 12px;
}

.quest-notification-reward {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 767px) {
    .items-wardrobe-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .items-main-container {
        flex-direction: row !important;
        gap: 12px;
    }
    
    .items-grid-container {
        flex: 1;
        min-height: 0;
    }
    
    .player-card-wardrobe {
        display: block !important;
        width: 180px !important;
        min-width: 180px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .items-preview {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }
    
    .preview-title {
        font-size: 16px;
    }
    
    .preview-wrapper {
        min-height: 150px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 75px));
        gap: 8px;
        padding: 12px;
    }
    
    .item-card {
        width: 75px;
        height: 95px;
        padding: 6px;
    }
    
    .item-image {
        width: 40px;
        height: 40px;
    }
    
    .item-name {
        font-size: 9px;
    }
    
    .user-info-card {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        font-size: 12px;
    }
    
    .user-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }
    
    .category-tab {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* Game area responsive */
    .game-area {
        width: 100vw;
        height: 100vh;
    }

    /* Chat toolbar responsive */
    .chat-toolbar {
        padding: 8px;
    }

    .chat-box {
        gap: 6px;
    }

    .chat-input {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Game topbar responsive */
    .game-topbar {
        padding: 8px 12px;
    }

    .game-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Player names responsive */
    .player-name {
        font-size: 12px;
        padding: 2px 6px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .custom-dialog {
        width: 98vw;
    }

    .cookie-banner-content {
        gap: 12px;
    }

    .cookie-banner-icon {
        font-size: 36px;
    }

    .cookie-banner-title {
        font-size: 16px;
    }

    .cookie-banner-desc {
        font-size: 13px;
    }

    .chat-input {
        font-size: 13px;
        max-width: 120px;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .custom-dialog {
        width: 70vw;
        max-width: 600px;
    }

    .cookie-banner-content {
        max-width: 900px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .custom-dialog {
        width: 550px;
    }

    .cookie-banner-content {
        max-width: 1400px;
    }
}

/* ===== COOKIE BANNER - Modern Design ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(20px);
    border-top: 3px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUpCookie 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpCookie {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.3));
    animation: bounceCookie 2s ease-in-out infinite;
}

@keyframes bounceCookie {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-title {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 8px;
}

.cookie-banner-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.cookie-btn-accept::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.cookie-btn-accept:hover::before {
    width: 400px;
    height: 400px;
}

.cookie-btn-accept:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.5);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-icon {
        font-size: 40px;
    }
    
    .cookie-banner-title {
        font-size: 18px;
    }
    
    .cookie-banner-desc {
        font-size: 14px;
    }
    
    .cookie-banner-buttons {
        width: 100%;
    }
    
    .cookie-btn-accept {
        width: 100%;
        min-width: auto;
    }
}

/* ===== CUSTOM DIALOG SYSTEM - Beautiful Design ===== */
.custom-dialog-overlay {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeInDialog 0.3s ease;
    padding: 20px;
}

@keyframes fadeInDialog {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-dialog {
    width: min(500px, 90vw);
    max-width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    border: 2px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 25px 80px rgba(147, 51, 234, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    animation: slideInDialog 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideInDialog {
    from {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.custom-dialog-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.custom-dialog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shineDialog 3s infinite;
}

@keyframes shineDialog {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.custom-dialog-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.custom-dialog-title {
    flex: 1;
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.custom-dialog-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.custom-dialog-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #9333ea;
    transform: scale(1.1) rotate(90deg);
}

.custom-dialog-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.custom-dialog-text {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1e1b4b;
    text-align: center;
}

.custom-dialog-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    margin-top: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e1b4b;
}

.custom-dialog-input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.custom-dialog-input::placeholder {
    color: #9ca3af;
}

.custom-dialog-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.custom-dialog-btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.custom-dialog-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.custom-dialog-btn:hover::before {
    width: 300px;
    height: 300px;
}

.custom-dialog-btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.custom-dialog-btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.custom-dialog-btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 2px solid rgba(107, 114, 128, 0.2);
}

.custom-dialog-btn-secondary:hover {
    background: rgba(107, 114, 128, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .custom-dialog {
        width: 95vw;
        max-height: 85vh;
    }
    
    .custom-dialog-header {
        padding: 16px 20px;
    }
    
    .custom-dialog-icon {
        font-size: 28px;
    }
    
    .custom-dialog-title {
        font-size: 18px;
    }
    
    .custom-dialog-body {
        padding: 20px;
    }
    
    .custom-dialog-text {
        font-size: 15px;
    }
    
    .custom-dialog-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }
    
    .custom-dialog-btn {
        width: 100%;
        padding: 14px;
    }
}

/* ===== LOADING SCREEN - Amazing Redesign ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9998;
    animation: fadeInLoading 0.5s ease;
}

@keyframes fadeInLoading {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    animation: spinLoader 2s linear infinite;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    animation: spinLoader 1.5s linear infinite;
}

.loading-spinner::before {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    border-width: 4px;
    border-top-color: rgba(255, 255, 255, 0.8);
}

.loading-spinner::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-width: 3px;
    border-top-color: rgba(255, 255, 255, 1);
    animation-direction: reverse;
}

@keyframes spinLoader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: pulseText 1.5s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@media (max-width: 768px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-spinner::before {
        width: 60px;
        height: 60px;
    }
    
    .loading-spinner::after {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .loading-text {
        font-size: 20px;
    }
}

/* ===== QUESTS MODAL ===== */
.quests-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 1200;
    pointer-events: none;
}

.quests-modal.show {
    display: grid;
    pointer-events: auto;
}

.quests-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 1199;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.quests-overlay[style*="display: block"] {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.quests-modal-content {
    width: min(800px, 90vw);
    max-height: 85vh;
    display: grid;
    grid-template-rows: auto 1fr;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    border: 2px solid rgba(147, 51, 234, 0.15);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(147, 51, 234, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.quests-modal.show .quests-modal-content {
    transform: scale(1);
    opacity: 1;
}

.quests-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
}

.quests-modal-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.quests-modal-title {
    font-size: 24px;
    font-weight: 800;
    flex: 1;
    font-family: 'Rubik', sans-serif;
}

.quests-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
}

.quests-modal-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    transform: scale(1.1) rotate(90deg);
}

.quests-modal-body {
    padding: 24px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #fafbff 0%, #f5f7ff 100%);
}

.quests-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.quest-tab {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

.quest-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.quest-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quest-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(147, 51, 234, 0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.3);
}

.quest-card.completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.quest-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quest-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quest-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    flex: 1;
    font-family: 'Rubik', sans-serif;
}

.quest-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.quest-progress {
    margin-bottom: 16px;
}

.quest-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quest-progress-text {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.quest-reward-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #b8860b;
}

.quest-action-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
    width: 100%;
}

.quest-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quest-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quest-action-btn.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Quest Help Button and Tooltip */
.quest-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.quest-help-wrapper {
    position: relative;
    display: inline-flex;
}

.quest-help-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    line-height: 1;
}

.quest-help-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quest-help-icon {
    display: block;
    line-height: 1;
}

.quest-help-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    min-width: 250px;
    max-width: 350px;
    visibility: hidden;
}

.quest-help-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.quest-help-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(102, 126, 234, 0.95);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.quest-help-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(10px);
    text-align: right;
    font-family: 'Rubik', sans-serif;
}

/* ===== FRIENDS MODAL ===== */
.friends-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 1200;
    animation: fadeInShop 0.3s ease;
}

.friends-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 1199;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.friends-overlay[style*="display: block"] {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.friends-modal-content {
    width: min(700px, 90vw);
    max-height: 85vh;
    display: grid;
    grid-template-rows: auto 1fr;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 24px;
    border: 2px solid rgba(147, 51, 234, 0.15);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(147, 51, 234, 0.3);
    animation: slideUpShop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.friends-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.friends-modal-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.friends-modal-title {
    font-size: 24px;
    font-weight: 800;
    flex: 1;
    font-family: 'Rubik', sans-serif;
}

.friends-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
}

.friends-modal-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    transform: scale(1.1) rotate(90deg);
}

.friends-modal-body {
    padding: 24px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #fafbff 0%, #f5f7ff 100%);
}

.friends-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.friend-tab {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

.friend-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.friend-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(147, 51, 234, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.friend-card.friend-online::before {
    background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
}

.friend-card.friend-offline::before {
    background: linear-gradient(180deg, #9e9e9e 0%, #616161 100%);
}

.friend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.3);
}

.friend-card.friend-online:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.4);
}

.friend-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.friend-card:hover .friend-avatar {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.friend-online-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #4caf50;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-family: 'Rubik', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-status {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.friend-status.online {
    color: #4caf50;
    font-weight: 600;
}

.friend-status.offline {
    color: #9e9e9e;
}

.friend-status-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.friend-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.friend-action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.friend-action-icon {
    font-size: 16px;
}

.friend-action-text {
    font-size: 13px;
}

.friend-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.friend-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.friend-action-btn.danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.friend-action-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.friend-action-btn.secondary {
    background: #e0e0e0;
    color: #333;
}

.friend-action-btn.secondary:hover {
    background: #d0d0d0;
}

@media (max-width: 600px) {
    .friend-action-text {
        display: none;
    }
    
    .friend-action-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }
}

.friend-status.online {
    color: #10b981;
}

.friend-status.offline {
    color: #999;
}

.friend-actions {
    display: flex;
    gap: 8px;
}

.friend-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

.friend-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.friend-action-btn.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.friend-action-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.friend-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.friends-search {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.friend-search-input {
    padding: 14px 18px;
    border: 2px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.friend-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.friend-search-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rubik', sans-serif;
}

.friend-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.friend-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 600;
}

/* ===== EVENT SYSTEM STYLES ===== */

/* Event Fade Overlay */
.event-fade {
    position: fixed;
    inset: 0;
    background: black;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
    z-index: 999999;
}

/* Confetti Effect - Real falling particles */
.event-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5000;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(calc(var(--drift, 0) * 1px)) rotate(calc(var(--rotation, 360) * 1deg));
        opacity: 0;
    }
}

/* Animated Gradient Background - Colorful and smooth color transitions */
.event-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background: 
        linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 25%, #ffe66d 50%, #ff9ff3 75%, #54a0ff 100%),
        linear-gradient(135deg, #4ecdc4 0%, #ffe66d 25%, #ff9ff3 50%, #54a0ff 75%, #5f27cd 100%),
        linear-gradient(135deg, #ffe66d 0%, #ff9ff3 25%, #54a0ff 50%, #5f27cd 75%, #ff6b6b 100%),
        linear-gradient(135deg, #ff9ff3 0%, #54a0ff 25%, #5f27cd 50%, #ff6b6b 75%, #4ecdc4 100%),
        linear-gradient(135deg, #54a0ff 0%, #5f27cd 25%, #ff6b6b 50%, #4ecdc4 75%, #ffe66d 100%),
        linear-gradient(135deg, #5f27cd 0%, #ff6b6b 25%, #4ecdc4 50%, #ffe66d 75%, #ff9ff3 100%);
    background-size: 400% 400%;
    background-position: 0% 50%, 20% 50%, 40% 50%, 60% 50%, 80% 50%, 100% 50%;
    animation: gradient-color-shift 10s ease infinite;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

@keyframes gradient-color-shift {
    0% {
        background-position: 0% 50%, 20% 50%, 40% 50%, 60% 50%, 80% 50%, 100% 50%;
        opacity: 0.5;
    }
    16.66% {
        background-position: 20% 50%, 40% 50%, 60% 50%, 80% 50%, 100% 50%, 0% 50%;
        opacity: 0.6;
    }
    33.33% {
        background-position: 40% 50%, 60% 50%, 80% 50%, 100% 50%, 0% 50%, 20% 50%;
        opacity: 0.5;
    }
    50% {
        background-position: 60% 50%, 80% 50%, 100% 50%, 0% 50%, 20% 50%, 40% 50%;
        opacity: 0.6;
    }
    66.66% {
        background-position: 80% 50%, 100% 50%, 0% 50%, 20% 50%, 40% 50%, 60% 50%;
        opacity: 0.5;
    }
    83.33% {
        background-position: 100% 50%, 0% 50%, 20% 50%, 40% 50%, 60% 50%, 80% 50%;
        opacity: 0.6;
    }
    100% {
        background-position: 0% 50%, 20% 50%, 40% 50%, 60% 50%, 80% 50%, 100% 50%;
        opacity: 0.5;
    }
}

/* ===== ADMIN ACTIONS IN PLAYER CARD ===== */
.player-card-admin-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.05) 0%, rgba(255, 68, 68, 0.02) 100%);
    border-radius: 12px;
    padding: 16px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -16px;
}

.admin-actions-title {
    font-size: 15px;
    font-weight: 800;
    color: #ff4444;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 68, 68, 0.3);
    letter-spacing: 0.5px;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.admin-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-action-btn:hover::before {
    opacity: 1;
}

.admin-action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.admin-action-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.admin-action-btn:hover .admin-action-icon {
    transform: scale(1.1) rotate(5deg);
}

.admin-action-text {
    font-size: 11px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Admin Action Modals */
.admin-action-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.admin-action-modal[style*="display: grid"] {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.admin-action-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 8999;
}

.admin-action-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 68, 68, 0.1);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9001;
    position: relative;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-action-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-bottom: 2px solid rgba(255, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, transparent 100%);
}

.admin-action-modal-icon {
    font-size: 24px;
}

.admin-action-modal-title {
    flex: 1;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.admin-action-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-action-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-action-modal-body {
    padding: 20px;
}

.admin-action-input-group {
    margin-bottom: 16px;
}

.admin-action-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.admin-action-input,
.admin-action-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

.admin-action-input:focus,
.admin-action-textarea:focus {
    outline: none;
    border-color: rgba(75, 184, 168, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.admin-action-textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-action-confirm-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 20px 0;
}

.admin-action-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.admin-action-status.success {
    background: rgba(75, 184, 168, 0.2);
    border: 1px solid rgba(75, 184, 168, 0.5);
    color: #4bb8a8;
}

.admin-action-status.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.admin-action-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-action-btn-submit,
.admin-action-btn-cancel {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
}

.admin-action-btn-submit {
    background: linear-gradient(135deg, #4bb8a8 0%, #3a9a8a 100%);
    color: #fff;
}

.admin-action-btn-submit:hover {
    background: linear-gradient(135deg, #3a9a8a 0%, #2a7a6a 100%);
    transform: translateY(-2px);
}

.admin-action-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-action-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}
