
.search-container[data-v-3bbc4adb] {
  position: relative;
  width: 300px;
  margin: 0 auto;
  z-index: 10002;
  flex-shrink: 0;
}
.search-input-container[data-v-3bbc4adb] {
  position: relative;
  display: block;
  width: 100%;
  z-index: 10002;
}
.search-input[data-v-3bbc4adb] {
  width: 100%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 52px 16px 52px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow:
      0 4px 20px var(--shadow-light),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: 56px;
  box-sizing: border-box;
  cursor: text;
  position: relative;
  z-index: 10002;
}
.search-input[data-v-3bbc4adb]:hover {
  border-color: var(--border-color);
  background: var(--card-bg);
}
.search-input.focused[data-v-3bbc4adb] {
  border-color: var(--accent-color);
  background: var(--card-bg);
  box-shadow:
      0 8px 32px var(--shadow-medium),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.search-input.has-results[data-v-3bbc4adb] {
  border-bottom: 2px solid transparent !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow:
      0 4px 20px var(--shadow-light),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.search-input.focused.has-results[data-v-3bbc4adb] {
  box-shadow:
      0 8px 32px var(--shadow-medium),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.search-input[data-v-3bbc4adb]::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}
.search-icon[data-v-3bbc4adb] {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10003;
}
.search-input.focused ~ .search-icon[data-v-3bbc4adb] {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.05);
}
.clear-btn[data-v-3bbc4adb] {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--hover-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
}
.clear-btn[data-v-3bbc4adb]:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  transform: translateY(-50%) scale(1.1);
}
.clear-btn[data-v-3bbc4adb]:active {
  transform: translateY(-50%) scale(0.95);
}
.clear-btn svg[data-v-3bbc4adb] {
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.loading-spinner[data-v-3bbc4adb] {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin-3bbc4adb 1s linear infinite;
  z-index: 10003;
}
@keyframes spin-3bbc4adb {
0% { transform: translateY(-50%) rotate(0deg);
}
100% { transform: translateY(-50%) rotate(360deg);
}
}
.search-results[data-v-3bbc4adb] {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--glass-border);
  border-top: none !important;
  border-radius: 0 0 16px 16px;
  backdrop-filter: blur(20px);
  box-shadow:
      0 16px 48px var(--shadow-medium),
      0 8px 24px var(--shadow-light),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-height: 400px;
  overflow: hidden;
  z-index: 10001;
}
.search-input.focused.has-results ~ .search-results[data-v-3bbc4adb] {
  border-color: var(--accent-color);
  box-shadow:
      0 16px 48px var(--shadow-medium),
      0 8px 24px var(--shadow-light),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dropdown-enter-active[data-v-3bbc4adb],
.dropdown-leave-active[data-v-3bbc4adb] {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top center;
}
.dropdown-enter-from[data-v-3bbc4adb] {
  opacity: 0;
  transform: scaleY(0.3);
}
.dropdown-leave-to[data-v-3bbc4adb] {
  opacity: 0;
  transform: scaleY(0.8);
}
.results-header[data-v-3bbc4adb] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg,
  rgba(255, 107, 53, 0.08) 0%,
  rgba(255, 71, 87, 0.08) 100%);
  border-bottom: 1px solid var(--border-color);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-icon[data-v-3bbc4adb] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-text[data-v-3bbc4adb] {
  flex: 1;
  min-width: 0;
}
.results-count[data-v-3bbc4adb] {
  background: rgba(255, 107, 53, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.results-list[data-v-3bbc4adb] {
  max-height: 300px;
  overflow-y: auto;
}
.results-list[data-v-3bbc4adb]::-webkit-scrollbar {
  width: 6px;
}
.results-list[data-v-3bbc4adb]::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}
.results-list[data-v-3bbc4adb]::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.4);
  border-radius: 3px;
}
.results-list[data-v-3bbc4adb]::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 53, 0.6);
}
.result-item[data-v-3bbc4adb] {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.result-item[data-v-3bbc4adb]:last-child {
  border-bottom: none;
}
.result-item[data-v-3bbc4adb]:hover,
.result-item.highlighted[data-v-3bbc4adb] {
  background: var(--hover-bg);
}
.result-item[data-v-3bbc4adb]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--accent-color), #ff4757);
  transition: width 0.2s ease;
}
.result-item[data-v-3bbc4adb]:hover::before,
.result-item.highlighted[data-v-3bbc4adb]::before {
  width: 3px;
}
.result-avatar[data-v-3bbc4adb] {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.player-avatar[data-v-3bbc4adb] {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  transition: all 0.2s ease;
}
.result-item:hover .player-avatar[data-v-3bbc4adb],
.result-item.highlighted .player-avatar[data-v-3bbc4adb] {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
  transform: scale(1.05);
}
.result-info[data-v-3bbc4adb] {
  flex: 1;
  min-width: 0;
}
.result-name[data-v-3bbc4adb] {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-stats[data-v-3bbc4adb] {
  display: flex;
  gap: 16px;
}
.stat-item[data-v-3bbc4adb] {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.stat-icon[data-v-3bbc4adb] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.points-stat[data-v-3bbc4adb] {
  color: var(--text-tertiary);
}
.stat-value[data-v-3bbc4adb] {
  white-space: nowrap;
  color: var(--text-secondary);
}
.result-actions[data-v-3bbc4adb] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.result-item:hover .result-actions[data-v-3bbc4adb],
.result-item.highlighted .result-actions[data-v-3bbc4adb] {
  color: var(--accent-color);
}
.action-icon[data-v-3bbc4adb] {
  width: 16px;
  height: 16px;
}
.no-results[data-v-3bbc4adb],
.search-hint[data-v-3bbc4adb] {
  padding: 40px 20px;
  text-align: center;
}
.no-results-content[data-v-3bbc4adb],
.hint-content[data-v-3bbc4adb] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 280px;
  margin: 0 auto;
}
.no-results-icon[data-v-3bbc4adb],
.hint-icon[data-v-3bbc4adb] {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.no-results-text[data-v-3bbc4adb],
.hint-text[data-v-3bbc4adb] {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.search-suggestion[data-v-3bbc4adb] {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
.search-container[data-v-3bbc4adb] {
    width: 300px;
    max-width: 300px;
}
}
@media (max-width: 768px) {
.search-container[data-v-3bbc4adb] {
    width: 300px;
    max-width: 300px;
}
.search-input[data-v-3bbc4adb] {
    padding: 14px 48px 14px 48px;
    min-height: 52px;
    font-size: 0.95rem;
}
.search-icon[data-v-3bbc4adb] {
    left: 16px;
    width: 18px;
    height: 18px;
}
.clear-btn[data-v-3bbc4adb], .loading-spinner[data-v-3bbc4adb] {
    right: 16px;
}
.clear-btn[data-v-3bbc4adb] {
    width: 28px;
    height: 28px;
}
.results-header[data-v-3bbc4adb],
  .result-item[data-v-3bbc4adb] {
    padding: 12px 16px;
}
.result-avatar[data-v-3bbc4adb] {
    width: 36px;
    height: 36px;
}
}
@media (max-width: 640px) {
.search-container[data-v-3bbc4adb] {
    width: 300px;
    max-width: 300px;
}
.search-input[data-v-3bbc4adb] {
    padding: 12px 44px 12px 44px;
    min-height: 48px;
    font-size: 0.9rem;
    border-radius: 14px;
}
.search-input.has-results[data-v-3bbc4adb] {
    border-radius: 14px 14px 0 0 !important;
}
.search-results[data-v-3bbc4adb] {
    border-radius: 0 0 14px 14px;
}
.search-icon[data-v-3bbc4adb] {
    left: 14px;
    width: 16px;
    height: 16px;
}
.clear-btn[data-v-3bbc4adb], .loading-spinner[data-v-3bbc4adb] {
    right: 14px;
}
.clear-btn[data-v-3bbc4adb] {
    width: 26px;
    height: 26px;
}
.clear-btn svg[data-v-3bbc4adb] {
    width: 14px;
    height: 14px;
}
.result-avatar[data-v-3bbc4adb] {
    width: 32px;
    height: 32px;
}
.result-name[data-v-3bbc4adb] {
    font-size: 0.9rem;
}
.results-header[data-v-3bbc4adb] {
    font-size: 0.8rem;
    padding: 10px 14px;
}
.header-icon[data-v-3bbc4adb] {
    width: 16px;
    height: 16px;
}
.results-count[data-v-3bbc4adb] {
    font-size: 0.7rem;
    padding: 3px 6px;
}
}
@media (max-width: 350px) {
.search-container[data-v-3bbc4adb] {
    width: 280px;
    max-width: 280px;
}
}
@media (max-width: 320px) {
.search-container[data-v-3bbc4adb] {
    width: 260px;
    max-width: 260px;
}
.search-input[data-v-3bbc4adb] {
    padding: 6px 32px 6px 32px;
    min-height: 36px;
    font-size: 0.75rem;
}
.search-icon[data-v-3bbc4adb] {
    left: 8px;
    width: 10px;
    height: 10px;
}
.clear-btn[data-v-3bbc4adb], .loading-spinner[data-v-3bbc4adb] {
    right: 8px;
}
.clear-btn[data-v-3bbc4adb] {
    width: 18px;
    height: 18px;
}
.clear-btn svg[data-v-3bbc4adb] {
    width: 8px;
    height: 8px;
}
.loading-spinner[data-v-3bbc4adb] {
    width: 14px;
    height: 14px;
}
.results-header[data-v-3bbc4adb] {
    padding: 4px 8px;
    font-size: 0.7rem;
    gap: 4px;
}
.header-icon[data-v-3bbc4adb] {
    width: 12px;
    height: 12px;
}
.results-count[data-v-3bbc4adb] {
    font-size: 0.65rem;
    padding: 2px 4px;
}
.result-item[data-v-3bbc4adb] {
    padding: 4px 8px;
    gap: 4px;
}
.result-avatar[data-v-3bbc4adb] {
    width: 20px;
    height: 20px;
}
.result-name[data-v-3bbc4adb] {
    font-size: 0.75rem;
}
.stat-item[data-v-3bbc4adb] {
    font-size: 0.65rem;
}
.stat-icon[data-v-3bbc4adb] {
    width: 10px;
    height: 10px;
}
.result-actions[data-v-3bbc4adb] {
    width: 16px;
    height: 16px;
}
.action-icon[data-v-3bbc4adb] {
    width: 10px;
    height: 10px;
}
.no-results[data-v-3bbc4adb],
  .search-hint[data-v-3bbc4adb] {
    padding: 20px 10px;
}
.no-results-icon[data-v-3bbc4adb],
  .hint-icon[data-v-3bbc4adb] {
    width: 28px;
    height: 28px;
}
.no-results-text[data-v-3bbc4adb],
  .hint-text[data-v-3bbc4adb] {
    font-size: 0.75rem;
}
.search-suggestion[data-v-3bbc4adb] {
    font-size: 0.65rem;
}
}


/* ===== SISTEMA COMPLETO Z-INDEX ===== */
header[data-v-5132c79f] {
  z-index: 1000 !important;
}
.header-container[data-v-5132c79f] {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-width: 280px;
  position: relative;
  z-index: 1001;
  overflow: visible !important;
}
.header-content[data-v-5132c79f] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  padding: 12px 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-light);
  backdrop-filter: blur(20px);
  border-radius: 0 0 20px 20px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
  min-height: 72px;
  gap: 16px;
  position: relative;
  z-index: 1002;
  overflow: visible !important;
}

/* Left section: Logo + Navigation */
.left-section[data-v-5132c79f] {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  max-width: calc(100% - 200px);
  position: relative;
  z-index: 1003;
}

/* Logo Section */
.logo-section[data-v-5132c79f] {
  flex-shrink: 0;
  position: relative;
  z-index: 1004;
}
.logo-img[data-v-5132c79f] {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 107, 0, 0.3));
  transition: all 0.3s ease;
}
.logo-img[data-v-5132c79f]:hover {
  filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.5));
  transform: scale(1.05);
}

/* Navigation Section */
.nav-section[data-v-5132c79f] {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 1;
  overflow: hidden;
  min-width: 0;
  flex: 0 1 auto;
  position: relative;
  z-index: 1003;
}
.nav-item[data-v-5132c79f] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: fit-content;
  position: relative;
  z-index: 1004;
}
.nav-item.discord-item[data-v-5132c79f] {
  flex-shrink: 0;
  min-width: auto;
}
.nav-item[data-v-5132c79f]:hover {
  color: var(--text-primary);
  background: var(--hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}
.nav-item.active[data-v-5132c79f] {
  background: linear-gradient(135deg,
  rgba(255, 107, 53, 0.2) 0%,
  rgba(255, 71, 87, 0.2) 100%);
  color: var(--accent-color);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow:
      0 0 24px rgba(255, 107, 53, 0.15),
      0 4px 16px rgba(255, 107, 53, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.nav-item i[data-v-5132c79f] {
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-text[data-v-5132c79f] {
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== RIGHT SECTION ===== */
.right-section[data-v-5132c79f] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: auto;
  position: relative;
  z-index: 1020;
  overflow: visible !important;
}

/* Theme Section */
.theme-section[data-v-5132c79f] {
  display: flex;
  align-items: center;
}
.theme-btn[data-v-5132c79f] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.theme-btn[data-v-5132c79f]:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Search Section */
.search-section[data-v-5132c79f] {
  flex: 1;
  min-width: 0;
  max-width: 280px;
  position: relative;
  z-index: 1025;
}

/* Language Switcher */
.lang-switcher[data-v-5132c79f] {
  position: relative;
  width: 70px;
  min-width: 70px;
  flex-shrink: 0;
  z-index: 1040;
  overflow: visible !important;
}
.lang-current[data-v-5132c79f] {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow:
      0 4px 16px var(--shadow-light),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1041;
}
.lang-current[data-v-5132c79f]:hover {
  transform: translateY(-1px);
  background: var(--card-bg);
  border-color: var(--accent-color);
  box-shadow:
      0 6px 20px var(--shadow-medium),
      0 2px 8px rgba(255, 107, 53, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lang-current svg[data-v-5132c79f] {
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  width: 16px;
  height: 12px;
}
.lang-current:hover svg[data-v-5132c79f] {
  transform: scale(1.05);
}
.lang-label[data-v-5132c79f] {
  display: block;
  font-size: 0.7rem;
}
.theme-section[data-v-5132c79f] {
  display: flex;
  align-items: center;
}
.theme-btn[data-v-5132c79f] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.light .theme-btn[data-v-5132c79f] {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #475569;
}
.theme-btn[data-v-5132c79f]:hover {
  transform: translateY(-2px);
  border-color: #ff6b35;
  color: #ff6b35;
}
.dropdown-arrow[data-v-5132c79f] {
  font-size: 0.5rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.dropdown-arrow.rotated[data-v-5132c79f] {
  transform: rotate(180deg);
}
.lang-current:hover .dropdown-arrow[data-v-5132c79f] {
  color: #ff6b35;
}

/* ===== DROPDOWN - CORREZIONE POSIZIONAMENTO ===== */
.lang-dropdown[data-v-5132c79f] {
  position: absolute; /* il JS può sovrascrivere in runtime (absolute/fixed) */
  top: 0;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow-y: auto;
  max-height: calc(4 * 40px);
  backdrop-filter: blur(20px);
  box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.6), /* Shadow più pronunciato */
      0 8px 24px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 1;
  transform: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 53, 0.5) transparent;
  z-index: 10000; /* Z-index molto più alto */
  width: 120px;
  min-width: 120px;
  pointer-events: auto; /* Abilita interazioni */
  isolation: isolate; /* Crea nuovo stacking context */
}
.lang-dropdown.mobile-dropdown[data-v-5132c79f] {
  position: fixed !important; /* Usa fixed per mobile */
  right: 10px !important;
  left: auto !important;
  top: 80px !important;
  width: 120px;
  z-index: 10000 !important; /* Z-index molto alto */
  transform: none !important;
}
.lang-option[data-v-5132c79f] {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.lang-option[data-v-5132c79f]:hover {
  background: linear-gradient(135deg,
  rgba(255, 107, 53, 0.12) 0%,
  rgba(255, 71, 87, 0.12) 100%);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow:
      0 2px 8px rgba(255, 107, 53, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.lang-option svg[data-v-5132c79f] {
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  width: 16px;
  height: 12px;
}
.lang-option:hover svg[data-v-5132c79f] {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}
.lang-option-label[data-v-5132c79f] {
  flex-shrink: 0;
  font-weight: 600;
}
.lang-option[data-v-5132c79f]:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== CORREZIONI SPECIFICHE PER SOVRAPPOSIZIONE SOTTO 378px ===== */

/* Breakpoint critico per sovrapposizione */
@media (max-width: 378px) {
.header-content[data-v-5132c79f] {
    padding: 8px 10px;
    gap: 8px;
    min-height: 64px;
}
.right-section[data-v-5132c79f] {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.search-section[data-v-5132c79f] {
    max-width: calc(100% - 50px) !important; /* Spazio garantito per lang selector */
    min-width: 0;
    flex: 1;
    margin-right: 0;
}
.lang-switcher[data-v-5132c79f] {
    width: 48px !important;
    min-width: 48px !important;
    flex-shrink: 0;
    margin-left: 4px;
}
.lang-current[data-v-5132c79f] {
    padding: 5px 6px;
    font-size: 0.65rem;
    width: 100%;
}
.lang-current svg[data-v-5132c79f] {
    width: 14px;
    height: 10px;
}
.lang-label[data-v-5132c79f] {
    display: none; /* Nascondi label su schermi molto piccoli */
}
.dropdown-arrow[data-v-5132c79f] {
    display: none; /* Nascondi freccia per risparmiare spazio */
}

  /* Garantisci che la searchbar non si espanda troppo */
.search-section[data-v-5132c79f] .search-container {
    min-width: 120px;
}

  /* Posizionamento dropdown mobile ottimizzato */
.lang-dropdown[data-v-5132c79f]:not(.mobile-dropdown) {
    right: 5px !important;
    left: auto !important;
    top: 70px !important; /* Regolato in base all'altezza ridotta dell'header */
    width: 110px;
    z-index: 10000 !important;
}
}

/* ===== RESPONSIVE DESIGN - CORREZIONI CRITICHE ===== */

/* Large Screens */
@media (min-width: 1024px) {
.right-section[data-v-5132c79f] {
    gap: 16px;
}
.search-section[data-v-5132c79f] {
    max-width: 320px;
}
}

/* Breakpoint principale: Layout verticale */
@media (max-width: 1023px) {
.header-content[data-v-5132c79f] {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    align-items: stretch;
}
.left-section[data-v-5132c79f] {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    max-width: none;
    order: 1;
}
.right-section[data-v-5132c79f] {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: space-between;
    order: 2;
    gap: 12px;
    z-index: 1020;
}
.search-section[data-v-5132c79f] {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin-right: 0;
    z-index: 1025;
}
.lang-switcher[data-v-5132c79f] {
    width: 70px;
    min-width: 70px;
    z-index: 1040;
}
.lang-dropdown[data-v-5132c79f]:not(.mobile-dropdown) {
    position: fixed !important;
    right: 10px !important;
    left: auto !important;
    top: 80px !important;
    width: 120px;
    z-index: 10000 !important;
    transform: none !important;
}
}

/* Medium screens */
@media (min-width: 601px) and (max-width: 900px) {
.nav-section[data-v-5132c79f] {
    justify-content: flex-end;
}
.search-section[data-v-5132c79f] {
    max-width: calc(100% - 90px);
}
}

/* Small Mobile - CORREZIONI CRITICHE */
@media (max-width: 600px) {
.header-content[data-v-5132c79f] {
    padding: 10px;
    gap: 10px;
}
.nav-text[data-v-5132c79f] {
    display: none;
}
.theme-btn[data-v-5132c79f] {
    width: 36px;
    height: 36px;
}
.search-section[data-v-5132c79f] {
    max-width: calc(100% - 90px);
}
.nav-item[data-v-5132c79f] {
    padding: 8px 10px;
}
.logo-img[data-v-5132c79f] {
    width: 40px;
    height: 40px;
}
.right-section[data-v-5132c79f] {
    gap: 8px;
    z-index: 1020;
}
.lang-switcher[data-v-5132c79f] {
    width: 60px;
    min-width: 60px;
    z-index: 1040;
}
.lang-current[data-v-5132c79f] {
    padding: 6px 8px;
}

  /* DROPDOWN MOBILE - POSIZIONAMENTO FISSO CORRETTO */
.lang-dropdown[data-v-5132c79f]:not(.mobile-dropdown) {
    right: 10px !important;
    top: 80px !important; /* Sotto l'header */
    width: 120px;
    z-index: 10000 !important; /* Z-index massimo */
}
}

/* Breakpoint ultra-stretto per dispositivi molto piccoli */
@media (max-width: 320px) {
.header-content[data-v-5132c79f] {
    padding: 6px 8px;
    gap: 6px;
    min-height: 60px;
}
.right-section[data-v-5132c79f] {
    gap: 4px;
}
.search-section[data-v-5132c79f] {
    max-width: calc(100% - 46px) !important;
}
.lang-switcher[data-v-5132c79f] {
    width: 44px !important;
    min-width: 44px !important;
}
.lang-current[data-v-5132c79f] {
    padding: 4px 5px;
}
.lang-dropdown[data-v-5132c79f]:not(.mobile-dropdown) {
    right: 3px !important;
    top: 68px !important;
    width: 100px;
}

  /* Riduci ulteriormente la navigazione */
.nav-item[data-v-5132c79f] {
    padding: 4px 6px;
}
.nav-item i[data-v-5132c79f] {
    font-size: 0.8rem;
}
.logo-img[data-v-5132c79f] {
    width: 30px;
    height: 30px;
}
}

/* Very Small Mobile */
@media (max-width: 479px) {
.header-content[data-v-5132c79f] {
    padding: 8px;
    gap: 8px;
}
.left-section[data-v-5132c79f] {
    gap: 8px;
}
.logo-img[data-v-5132c79f] {
    width: 36px;
    height: 36px;
}
.nav-item[data-v-5132c79f] {
    padding: 6px 8px;
}
.nav-text[data-v-5132c79f] {
    display: none;
}
.nav-item.discord-item[data-v-5132c79f] {
    display: flex !important;
    min-width: 40px;
}
.right-section[data-v-5132c79f] {
    gap: 6px;
    z-index: 1020;
}
.search-section[data-v-5132c79f] {
    max-width: calc(100% - 50px);
    z-index: 1025;
}
.lang-switcher[data-v-5132c79f] {
    width: 50px;
    min-width: 50px;
    z-index: 1040;
}
.lang-current[data-v-5132c79f] {
    padding: 5px;
    justify-content: center;
}
.lang-label[data-v-5132c79f] {
    display: none;
}
.dropdown-arrow[data-v-5132c79f] {
    display: none;
}
.lang-dropdown[data-v-5132c79f]:not(.mobile-dropdown) {
    right: 5px !important;
    width: 110px;
    top: 75px !important;
    z-index: 10000 !important;
}
}

/* Garantisci che la searchbar sia sempre utilizzabile */
@media (max-width: 280px) {
.search-section[data-v-5132c79f] {
    max-width: calc(100% - 42px) !important;
    min-width: 100px;
}
.lang-switcher[data-v-5132c79f] {
    width: 40px !important;
    min-width: 40px !important;
}
.nav-section[data-v-5132c79f] {
    gap: 2px;
}
.nav-item[data-v-5132c79f] {
    padding: 3px 4px;
}
}

/* Ultra Small */
@media (max-width: 360px) {
.nav-section[data-v-5132c79f] {
    gap: 4px;
}
.nav-item[data-v-5132c79f] {
    padding: 5px 6px;
}
.nav-item i[data-v-5132c79f] {
    font-size: 0.8rem;
}
.nav-item.discord-item i[data-v-5132c79f] {
    color: #5865F2;
}
.logo-img[data-v-5132c79f] {
    width: 32px;
    height: 32px;
}
.lang-dropdown[data-v-5132c79f]:not(.mobile-dropdown) {
    right: 3px !important;
    width: 100px;
}
}

/* ===== MIGLIORAMENTO GENERALE DEL LAYOUT MOBILE ===== */

/* Rafforza le regole esistenti per evitare sovrapposizioni */
@media (max-width: 600px) {
.right-section[data-v-5132c79f] {
    position: relative;
    z-index: 1020;
}
.search-section[data-v-5132c79f] {
    z-index: 1025;
    position: relative;
}
.lang-switcher[data-v-5132c79f] {
    z-index: 1040;
    position: relative;
}

  /* Previeni che elementi flessibili si schiaccino */
.search-section[data-v-5132c79f], .lang-switcher[data-v-5132c79f] {
    flex-shrink: 0;
}
}

/* Assicura che il contenuto della searchbar sia visibile */
@media (max-width: 378px) {
.search-section[data-v-5132c79f] .search-input {
    font-size: 0.8rem;
    padding: 6px 8px;
}
.search-section[data-v-5132c79f] .search-input::placeholder {
    font-size: 0.75rem;
}
}

/* ===== CORREZIONE FINALE PER DROPDOWN MOBILE ===== */

/* Assicurati che il dropdown mobile sia sempre correttamente posizionato */
.lang-dropdown.mobile-dropdown[data-v-5132c79f] {
  position: fixed !important;
  right: 10px !important;
  left: auto !important;
  top: 80px !important;
  width: 120px;
  z-index: 10000 !important;
}
@media (max-width: 378px) {
.lang-dropdown.mobile-dropdown[data-v-5132c79f] {
    top: 70px !important;
    right: 5px !important;
}
}
@media (max-width: 320px) {
.lang-dropdown.mobile-dropdown[data-v-5132c79f] {
    top: 68px !important;
    right: 3px !important;
}
}

/* Fix specifico per quando non c'è searchbar */
.right-section:has(.search-section:not(:defined)) .lang-switcher[data-v-5132c79f],
.right-section:not(:has(.search-section)) .lang-switcher[data-v-5132c79f] {
  margin-left: auto;
}

/* ===== GARANZIA Z-INDEX FINALE ===== */
/* Assicura che tutti gli elementi dell'header siano sopra il main content */
/* Nota: Non forziamo `position: relative` globalmente — questo creava il problema. */
header[data-v-5132c79f],
.header-container[data-v-5132c79f],
.header-content[data-v-5132c79f],
.left-section[data-v-5132c79f],
.right-section[data-v-5132c79f],
.search-section[data-v-5132c79f],
.lang-switcher[data-v-5132c79f],
.lang-dropdown[data-v-5132c79f] {
  /* non impostare position qui per non rompere lo stacking context del dropdown */
}

/* Forza i z-index critici */
header[data-v-5132c79f] {
  z-index: 1000 !important;
}
.right-section[data-v-5132c79f] {
  z-index: 1020 !important;
}
.search-section[data-v-5132c79f] {
  z-index: 1025 !important;
}
.lang-switcher[data-v-5132c79f] {
  z-index: 1040 !important;
}
.lang-dropdown[data-v-5132c79f] {
  z-index: 10000 !important;
}


.modal-backdrop[data-v-78f0bb54] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 10px;
  animation: fadeIn-78f0bb54 0.3s ease-out;
}
@keyframes fadeIn-78f0bb54 {
from { opacity: 0;
}
to { opacity: 1;
}
}
.modal-container[data-v-78f0bb54] {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 95vh;
  margin: auto;
  animation: slideUp-78f0bb54 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp-78f0bb54 {
from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}
to {
    opacity: 1;
    transform: translateY(0) scale(1);
}
}
.close-button[data-v-78f0bb54] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.close-button[data-v-78f0bb54]:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.modal-content[data-v-78f0bb54] {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden; /* Cambiato da auto a hidden */
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

/* Nuovo container per lo scroll */
.modal-scroll-container[data-v-78f0bb54] {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  max-height: 100%;
  padding-right: 4px; /* Spazio per la scrollbar */
  margin-right: -4px; /* Compensa il padding per mantenere l'allineamento */
}

/* Scrollbar styling - applicato al container interno */
.modal-scroll-container[data-v-78f0bb54]::-webkit-scrollbar {
  width: 8px;
}
.modal-scroll-container[data-v-78f0bb54]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 8px 2px; /* Margine per non toccare i bordi */
}
.modal-scroll-container[data-v-78f0bb54]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-scroll-container[data-v-78f0bb54]::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-scroll-container[data-v-78f0bb54]::-webkit-scrollbar-thumb:active {
  background: rgba(255, 255, 255, 0.4);
}

/* Per Firefox */
@supports (scrollbar-width: thin) {
.modal-scroll-container[data-v-78f0bb54] {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}
}
.modal-header[data-v-78f0bb54] {
  position: relative;
  padding: 30px 20px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-background[data-v-78f0bb54] {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
  rgba(239, 68, 68, 0.05) 0%,
  rgba(220, 38, 127, 0.05) 100%);
  border-radius: 20px 20px 0 0;
}
.avatar-section[data-v-78f0bb54] {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}
.avatar-container[data-v-78f0bb54] {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}
.player-avatar[data-v-78f0bb54] {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 3px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  transition: all 0.3s ease;
}
.player-info[data-v-78f0bb54] {
  position: relative;
  z-index: 2;
}
.player-name[data-v-78f0bb54] {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  background: var(--text-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
  line-height: 1.2;
}
.player-uuid[data-v-78f0bb54] {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
  word-break: break-all;
  line-height: 1.3;
}
.modal-body[data-v-78f0bb54] {
  padding: 20px;
}
.section[data-v-78f0bb54] {
  margin-bottom: 24px;
}
.section-title[data-v-78f0bb54] {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-icon[data-v-78f0bb54] {
  color: #ef4444;
  text-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Overall Stats Section */
.stats-container[data-v-78f0bb54] {
  margin-bottom: 20px;
}
.stats-card[data-v-78f0bb54] {
  background: linear-gradient(135deg,
  rgba(139, 69, 19, 0.2) 0%,
  rgba(101, 67, 33, 0.2) 100%);
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
}
.stats-row[data-v-78f0bb54] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-item[data-v-78f0bb54] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.stat-label[data-v-78f0bb54] {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
}
.stat-value[data-v-78f0bb54] {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rank-value[data-v-78f0bb54] {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
}
.rank-value img[data-v-78f0bb54] {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.overall-value[data-v-78f0bb54] {
  color: #ef4444;
  font-weight: 800;
}
.tiers-grid[data-v-78f0bb54] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.tier-card[data-v-78f0bb54] {
  background: linear-gradient(135deg,
  rgba(75, 85, 99, 0.8) 0%,
  rgba(55, 65, 81, 0.8) 100%);
  border: 2px solid rgba(75, 85, 99, 0.5);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 80px;
  display: flex;
  align-items: center;
}
.tier-card[data-v-78f0bb54]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.tier-card-high[data-v-78f0bb54] {
  background: linear-gradient(135deg,
  rgba(239, 68, 68, 0.8) 0%,
  rgba(220, 38, 127, 0.8) 100%);
  border-color: rgba(239, 68, 68, 0.6);
}
.tier-card-high[data-v-78f0bb54]:hover {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}
.tier-card-low[data-v-78f0bb54] {
  background: linear-gradient(135deg,
  rgba(245, 158, 11, 0.8) 0%,
  rgba(217, 119, 6, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.6);
}
.tier-card-low[data-v-78f0bb54]:hover {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}
.tier-content[data-v-78f0bb54] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  width: 100%;
}
.tier-icon[data-v-78f0bb54] {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.tier-card:hover .tier-icon[data-v-78f0bb54] {
  transform: scale(1.1);
}
.tier-mode[data-v-78f0bb54] {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  word-break: break-word;
}
.tier-badge[data-v-78f0bb54] {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.badge-high[data-v-78f0bb54] {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge-low[data-v-78f0bb54] {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge-default[data-v-78f0bb54] {
  background: rgba(107, 114, 128, 0.3);
  color: #d1d5db;
  border: 1px solid rgba(107, 114, 128, 0.5);
}
.actions-section[data-v-78f0bb54] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.action-btn[data-v-78f0bb54] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  width: 100%;
}
.btn-secondary[data-v-78f0bb54] {
  background: linear-gradient(135deg,
  rgba(59, 130, 246, 0.15) 0%,
  rgba(37, 99, 235, 0.15) 100%);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}
.btn-secondary[data-v-78f0bb54]:hover {
  background: linear-gradient(135deg,
  rgba(59, 130, 246, 0.2) 0%,
  rgba(37, 99, 235, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}
.btn-ghost[data-v-78f0bb54] {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-ghost[data-v-78f0bb54]:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Tablet e schermi più grandi */
@media (min-width: 481px) {
.modal-backdrop[data-v-78f0bb54] {
    padding: 20px;
}
.close-button[data-v-78f0bb54] {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}
.modal-content[data-v-78f0bb54] {
    border-radius: 24px;
}
.modal-header[data-v-78f0bb54] {
    padding: 40px 32px 32px;
}
.header-background[data-v-78f0bb54] {
    border-radius: 24px 24px 0 0;
}
.avatar-container[data-v-78f0bb54] {
    width: 96px;
    height: 96px;
}
.player-avatar[data-v-78f0bb54] {
    border-radius: 20px;
    border-width: 4px;
}
.player-name[data-v-78f0bb54] {
    font-size: 2rem;
}
.player-uuid[data-v-78f0bb54] {
    font-size: 0.8rem;
}
.modal-body[data-v-78f0bb54] {
    padding: 32px;
}
.section[data-v-78f0bb54] {
    margin-bottom: 32px;
}
.section-title[data-v-78f0bb54] {
    font-size: 1.3rem;
    gap: 12px;
    margin-bottom: 20px;
}
.stats-card[data-v-78f0bb54] {
    border-radius: 16px;
    padding: 24px;
}
.stats-row[data-v-78f0bb54] {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}
.stat-item[data-v-78f0bb54] {
    flex-direction: column;
    text-align: center;
    gap: 4px;
}
.stat-label[data-v-78f0bb54] {
    font-size: 0.9rem;
}
.stat-value[data-v-78f0bb54] {
    font-size: 1.2rem;
}
.rank-value img[data-v-78f0bb54] {
    width: 24px;
    height: 24px;
}
.tiers-grid[data-v-78f0bb54] {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.tier-card[data-v-78f0bb54] {
    border-radius: 12px;
    padding: 16px;
    min-height: 100px;
}
.tier-content[data-v-78f0bb54] {
    gap: 8px;
}
.tier-icon[data-v-78f0bb54] {
    width: 28px;
    height: 28px;
}
.tier-mode[data-v-78f0bb54] {
    font-size: 0.8rem;
}
.tier-badge[data-v-78f0bb54] {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}
.actions-section[data-v-78f0bb54] {
    flex-direction: row;
    gap: 16px;
    padding-top: 24px;
}
.action-btn[data-v-78f0bb54] {
    width: auto;
    padding: 12px 20px;
    font-size: 0.9rem;
}
}

/* Desktop e schermi più grandi */
@media (min-width: 769px) {
.tiers-grid[data-v-78f0bb54] {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.tier-card[data-v-78f0bb54] {
    min-height: 120px;
}
}

/* Schermi molto piccoli (meno di 360px) */
@media (max-width: 360px) {
.tiers-grid[data-v-78f0bb54] {
    grid-template-columns: repeat(2, 1fr);
}
.tier-mode[data-v-78f0bb54] {
    font-size: 0.7rem;
}
.tier-badge[data-v-78f0bb54] {
    font-size: 0.65rem;
    padding: 2px 4px;
}
}


/* Reset */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
}
main {
  padding-top: 1rem;
}
main.pt-0 {
  padding-top: 0 !important;
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-style: normal;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('https://fonts.gstatic.com/s/inter/v20/UcC73FwrK...woff2') format('woff2');
    font-display: swap;
}

/* =====================
   CSS Variables & Theme Setup
   ===================== */
:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #ff6b35;
    --accent-secondary: #8b5cf6;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.9);
    --hover-bg: rgba(0, 0, 0, 0.02);
}

html.dark {
    /* Dark theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: linear-gradient(135deg, rgba(20, 25, 35, 0.8) 0%, rgba(15, 20, 30, 0.8) 100%);;
    --bg-tertiary: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --accent-color: #ff6b35;
    --accent-secondary: #8b5cf6;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(30, 35, 45, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 35, 45, 0.9);
    --hover-bg: rgba(255, 255, 255, 0.02);
}

/* =====================
   Base & Global Styles
   ===================== */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    font-variation-settings: 'opsz' 32;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

#app { min-height: 100vh; position: relative; z-index: 1; }

/* =====================
   Background Patterns - Theme Specific
   ===================== */
body::before,
body::after {
    content: '';
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background-attachment: fixed;
}

/* Light theme background */
html.light body::before {
    z-index: -2;
    background:
            radial-gradient(circle at 20% 80%, rgba(120,119,198,0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255,107,53,0.05) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(139,92,246,0.03) 0%, transparent 50%);
}

html.light body::after {
    z-index: -1;
    background:
            linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.1) 100%),
            radial-gradient(ellipse at top left, rgba(255,107,53,0.02) 0%, transparent 60%),
            radial-gradient(ellipse at bottom right, rgba(139,92,246,0.02) 0%, transparent 60%);
}

/* Dark theme background */
html.dark body::before {
    z-index: -2;
    background:
            radial-gradient(circle at 20% 80%, rgba(120,119,198,0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255,107,53,0.08) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

html.dark body::after {
    z-index: -1;
    background:
            linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.4) 100%),
            radial-gradient(ellipse at top left, rgba(255,107,53,0.03) 0%, transparent 60%),
            radial-gradient(ellipse at bottom right, rgba(139,92,246,0.03) 0%, transparent 60%);
}

/* =====================
   Typography & Gradient Text
   ===================== */
.text-gaming-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 25%, #8b5cf6 50%, #06b6d4 75%, #10b981 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

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

/* =====================
   Buttons - Theme Aware
   ===================== */
.btn {
    @apply relative inline-flex items-center justify-center px-6 py-3 font-semibold rounded-2xl transition-all duration-300 overflow-hidden;
    background: linear-gradient(135deg, var(--glass-bg), var(--bg-tertiary));
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px var(--shadow-light), inset 0 1px 0 rgba(255,255,255,0.1);
}

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

.btn:hover:before { left: 100%; }
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px var(--shadow-medium), inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: var(--accent-color);
}

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

/* Variant Buttons */
.btn-gaming {
    background: linear-gradient(135deg,#ff6b35,#ff4757);
    border:1px solid rgba(255,107,53,0.5);
    color: white;
    box-shadow: 0 8px 32px rgba(255,107,53,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-gaming:hover {
    background: linear-gradient(135deg,#ff7849,#ff5a6b);
    box-shadow: 0 16px 40px rgba(255,107,53,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255,107,53,0.8);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(139,92,246,0.8), rgba(79,70,229,0.8));
    border:1px solid rgba(139,92,246,0.5);
    color: white;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(79,70,229,0.9));
    border-color: rgba(139,92,246,0.8);
}

.btn-ghost {
    background: var(--hover-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

.btn-lg { @apply px-8 py-4 text-lg; }

/* =====================
   Glass Components - Theme Aware
   ===================== */
.glass-dark, .glass-card {
    backdrop-filter: blur(20px);
    border-radius: 1rem;
}

.glass-dark {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow-light), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px var(--shadow-light), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* =====================
   Animations
   ===================== */
@keyframes spin { to{transform:rotate(360deg);} }
.loading-spinner {
    width:48px; height:48px;
    border:4px solid rgba(255,107,53,0.2);
    border-left-color:#ff6b35;
    border-radius:50%;
    animation: spin 1s linear infinite;
}

/* Reusable shine effect */
.shine-effect::before, .gamemode-card::before, .btn:before {
    transition: left 0.6s;
}

/* =====================
   Utility Classes - Theme Aware
   ===================== */
.bg-gaming-gradient { background: linear-gradient(135deg,#ff6b35,#ff4757,#8b5cf6); }
.border-gaming { border:1px solid rgba(255,107,53,0.3); }
.shadow-gaming { box-shadow:0 25px 50px var(--shadow-medium),0 0 50px rgba(255,107,53,0.2); }
.backdrop-blur-ultra { backdrop-filter: blur(32px); }
.focus-ring { @apply focus:outline-none focus:ring-2 focus:ring-orange-400 focus:ring-offset-2 focus:ring-offset-gray-900; }

/* =====================
   Scrollbar - Theme Aware
   ===================== */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius:4px; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(255,107,53,0.6), rgba(255,71,87,0.6)); border-radius:4px; transition:background 0.3s; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(255,107,53,0.8), rgba(255,71,87,0.8)); }

/* =====================
   Selection - Theme Aware
   ===================== */
::selection, ::-moz-selection {
    background: rgba(255,107,53,0.3);
    color: var(--text-primary);
}

/* =====================
   Responsive
   ===================== */
@media(max-width:768px){
    .stats-card{padding:1rem;}
    .btn{padding:.75rem 1.5rem;font-size:.875rem;}
    .text-gaming-gradient{font-size:2.5rem;line-height:1.2;}
}

@media(max-width:640px){
    .leaderboard-header{padding:1rem;}
    .player-row{padding:1rem;}
    .modal-backdrop{padding:.5rem;}
    .modal-content{border-radius:1.5rem; max-height:95vh;}
}
