/**
 * Loot Clicker - Glassmorphism Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Press+Start+2P&display=swap');

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --primary: #facc15;
  --muted: #18181b;
  --muted-foreground: #71717a;
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);
}

html, body {
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--foreground);
  display: flex;
  flex-direction: column;
}

.layout-fixed, .layout-fixed body {
  height: 100vh !important;
  overflow: hidden !important;
}

.font-game {
  font-family: 'Press Start 2P', cursive;
}

.glow-gold {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* ===== HEADER ===== */
header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

header h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 13px;
  letter-spacing: -1px;
}

/* ===== GLOBAL HUD ===== */
#global-hud {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  z-index: 40;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.stats-bar-top {
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.currency-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Press Start 2P', cursive;
  color: var(--primary);
  font-size: 13px;
}

.level-clicks-box {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--muted-foreground);
}

/* XP Bar */
.xp-section {
  padding: 0 8px 4px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--muted-foreground);
}

.xp-bar-outer {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

#xp-progress-bar {
  height: 100%;
  background: #3b82f6;
  width: 0%;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stats Grid */
.stats-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 8px;
}

.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: border-color 0.2s;
}

.stat-box:hover { border-color: rgba(250, 204, 21, 0.3); }
.stat-box .emoji { font-size: 12px; }
.stat-box .value { font-family: 'Press Start 2P', cursive; font-size: 8px; color: var(--primary); }
.stat-box .label { font-size: 6px; color: var(--muted-foreground); text-transform: uppercase; }

@media (min-width: 768px) {
  .stat-box { padding: 10px 8px; gap: 4px; }
  .stat-box .emoji { font-size: 18px; }
  .stat-box .value { font-size: 12px; }
  .stat-box .label { font-size: 10px; }
}

/* ===== PRESTIGE BAR ===== */
.prestige-bar {
  margin: 4px 0;
  padding: 10px 16px;
  background: var(--glass-bg);
  border: 1px solid rgba(250, 204, 21, 0.1);
  border-radius: 1.2rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  backdrop-filter: var(--glass-blur);
}

.prestige-bar:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.05);
  color: var(--foreground);
  transform: translateY(-1px);
}

.prestige-bar:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== CRYSTAL ===== */
.crystal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  min-height: 0;
}

.crystal-glow {
  width: min(260px, 55vw);
  height: min(260px, 55vw);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
  transition: transform 0.1s;
}

#crystal-btn {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

#crystal-btn model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

#crystal-btn model-viewer::part(default-progress-bar) { display: none; }

#crystal-btn img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
  animation: pulse-crystal 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulse-crystal {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.8)); }
}

#crystal-btn:active { transform: scale(0.92); }

.per-click-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 13px;
  color: var(--primary);
  opacity: 0.8;
  text-align: center;
  padding: 8px 0;
  flex-shrink: 0;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary);
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--muted-foreground);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
  background: var(--primary);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--primary);
}

.hamburger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 140;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  z-index: 150;
  padding: 70px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hamburger-menu.open {
  right: 0;
}

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-link:hover,
.hamburger-link:active {
  background: rgba(255,255,255,0.05);
  color: white;
}

.hamburger-link.active {
  background: rgba(var(--primary-rgb, 234,179,8), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb, 234,179,8), 0.2);
}

.hamburger-link span:first-child {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.hamburger-link span:last-child {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hamburger-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 16px;
}

/* ===== FOOTER NAV (uniquement la barre de navigation du jeu) ===== */
footer.game-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s;
  text-decoration: none;
  padding: 4px 0;
}

.nav-item.active { color: var(--primary); }
.nav-item span:first-child { font-size: 18px; }
.nav-item span:last-child { font-size: 8px; text-transform: uppercase; white-space: nowrap; }

/* ===== VIEWS ===== */
.view-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

main { padding-bottom: 140px !important; }

.layout-fixed .view-content { overflow: hidden; }

.layout-fixed #view-clicker,
.layout-fixed #view-chests {
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

#inventory-list, #upgrades-list, #leaderboard-body-container, #view-profile, #view-admin {
  flex: none;
  overflow-y: visible;
}

#inventory-list::-webkit-scrollbar, #upgrades-list::-webkit-scrollbar,
#view-profile::-webkit-scrollbar, #view-admin::-webkit-scrollbar { display: none; }

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  color: #fafafa;
}

/* ===== ICONS ===== */
.gold-icon, .star-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.star-icon {
  margin-left: 8px;
}

/* ===== CLICK EFFECTS ===== */
.click-text {
  position: absolute;
  pointer-events: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: var(--primary);
  animation: floatUp 0.8s ease-out forwards;
  z-index: 50;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.click-text.crit {
  color: #f97316;
  font-size: 18px;
  animation: floatUpCrit 1s ease-out forwards;
  text-shadow: 0 0 15px rgba(249, 115, 22, 0.6), 0 0 30px rgba(249, 115, 22, 0.3);
}

.click-text.crit::before {
  content: '💥 ';
  font-size: 14px;
}

.click-text.passive {
  color: #22c55e;
  font-size: 10px;
  animation: floatUpPassive 1.2s ease-out forwards;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

.click-text.passive::before {
  content: '⛏️ ';
  font-size: 9px;
}

@keyframes floatUp {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  100% { transform: translate(-50%, -250%) scale(1.2); opacity: 0; }
}

@keyframes floatUpCrit {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -80%) scale(1.4); }
  30% { transform: translate(-50%, -120%) scale(1.1); }
  100% { transform: translate(-50%, -300%) scale(1.5); opacity: 0; }
}

@keyframes floatUpPassive {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { opacity: 0.8; transform: translate(-50%, -80%) scale(0.9); }
  100% { transform: translate(-50%, -200%) scale(1); opacity: 0; }
}

/* ===== COMBO COUNTER ===== */
.combo-counter {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Press Start 2P', cursive;
  color: var(--primary);
  text-align: right;
  z-index: 40;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.combo-counter.hidden { opacity: 0; transform: translateY(-50%) scale(0.8); }
.combo-counter .combo-num { font-size: 24px; line-height: 1; text-shadow: 0 0 20px rgba(250, 204, 21, 0.5); }
.combo-counter .combo-label { font-size: 7px; color: rgba(250, 204, 21, 0.6); text-transform: uppercase; letter-spacing: 2px; }
.combo-counter.fire .combo-num { color: #f97316; text-shadow: 0 0 25px rgba(249, 115, 22, 0.6); }
.combo-counter.fire .combo-label { color: rgba(249, 115, 22, 0.7); }

/* ===== LEVEL UP FLASH ===== */
.levelup-flash {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  animation: levelFlash 1.2s ease-out forwards;
}
@keyframes levelFlash {
  0% { background: rgba(250, 204, 21, 0.3); }
  30% { background: rgba(250, 204, 21, 0.1); }
  100% { background: transparent; }
}

.levelup-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 301;
  pointer-events: none;
  text-align: center;
  animation: levelBannerIn 1.5s ease-out forwards;
}
.levelup-banner .lvl-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.levelup-banner .lvl-text { font-family: 'Press Start 2P', cursive; font-size: 16px; color: var(--primary); text-shadow: 0 0 30px rgba(250, 204, 21, 0.6); text-transform: uppercase; }
.levelup-banner .lvl-sub { font-family: 'Press Start 2P', cursive; font-size: 8px; color: rgba(250, 204, 21, 0.5); margin-top: 6px; }

@keyframes levelBannerIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  35% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}

/* ===== CLICK PARTICLES ===== */
.click-particle {
  position: absolute;
  pointer-events: none;
  z-index: 45;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: particleFly 0.6s ease-out forwards;
}
.click-particle.crit { width: 6px; height: 6px; background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.5); }

@keyframes particleFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* ===== GOLD PULSE ===== */
.gold-pulse {
  animation: goldPulse 0.3s ease-out;
}
@keyframes goldPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: #fff; }
  100% { transform: scale(1); }
}

/* ===== CHEST BUTTONS ===== */
.chest-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  padding: 4px;
}

.chest-btn:hover { transform: scale(1.08); filter: brightness(1.2); }
.chest-btn:active { transform: scale(0.92); }
.chest-btn.opened { opacity: 0.3; pointer-events: none; }

.chest-btn.opened .chest-reward-icon {
  display: flex !important;
  font-size: 32px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.5));
}

.chest-icon { transition: transform 0.3s; line-height: 0; pointer-events: none; }
.chest-icon img { pointer-events: none; user-select: none; }
.chest-reward-icon { pointer-events: none; }

.chest-btn.opening .chest-icon { animation: chestShake 0.6s ease-in-out; }

@keyframes chestShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(-12deg) scale(1.05); }
  30% { transform: rotate(12deg) scale(1.1); }
  45% { transform: rotate(-10deg) scale(1.1); }
  60% { transform: rotate(10deg) scale(1.05); }
  75% { transform: rotate(-5deg) scale(1.02); }
  90% { transform: rotate(3deg) scale(1); }
}

.chest-reward-pop { animation: rewardPop 0.4s ease-out; }

@keyframes rewardPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== STEP CHECK ===== */
.step-check {
  animation: checkDraw 0.4s ease-out forwards;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

@keyframes checkDraw { to { stroke-dashoffset: 0; } }

/* ===== NOTIFICATIONS ===== */
@keyframes notifIn {
  0% { transform: translateY(-20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes notifOut {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-10px) scale(0.95); opacity: 0; }
}

/* ===== CHEST NOTIFICATION ===== */
@keyframes chestNotifIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* ===== DIALOG MODAL ===== */
#dialog-modal.flex #dialog-box { animation: dialogIn 0.2s ease-out; }
#dialog-modal.flex #dialog-backdrop { animation: backdropIn 0.15s ease-out; }

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

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

/* ===== TEXT COLORS ===== */
h2, h3, p, label { color: #fafafa; }
.text-muted-foreground { color: #a1a1aa !important; }

/* ===== UPGRADE ROWS ===== */
.upgrade-row {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 10px 14px;
  margin-bottom: 6px;
  gap: 12px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.upgrade-affordable {
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.08);
}

.upgrade-affordable:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
}

.upgrade-icon { font-size: 20px; flex-shrink: 0; }
.upgrade-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.upgrade-name { font-family: 'Press Start 2P', cursive; font-size: 9px; display: flex; align-items: center; }
.upgrade-description { font-size: 9px; color: var(--muted-foreground); }

.upgrade-cost {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.upgrade-locked { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }

/* ===== INVENTORY ROWS ===== */
.inventory-row {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 10px 14px;
  margin-bottom: 6px;
  gap: 12px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

.inventory-row:hover {
  transform: translateX(4px);
  border-color: rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.03);
}

.inventory-row.is-equipped {
  border-color: var(--primary);
  border-left-color: var(--primary) !important;
  background: rgba(250, 204, 21, 0.05);
}

.inventory-row.rarity-bg-rare { background: rgba(59, 130, 246, 0.04); }
.inventory-row.rarity-bg-epic { background: rgba(168, 85, 247, 0.04); }
.inventory-row.rarity-bg-legendary { background: rgba(234, 179, 8, 0.04); }
.inventory-row.rarity-bg-mythic { background: rgba(239, 68, 68, 0.05); }
.inventory-row.rarity-bg-divine { background: rgba(245, 158, 11, 0.06); }

.equip-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 8px;
  border-radius: 0.8rem;
}

/* ===== FILTERS ===== */
.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 6px 12px;
  font-size: 9px;
  color: var(--muted-foreground);
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: var(--glass-blur);
}

.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(250, 204, 21, 0.08);
}

/* ===== MODAL BUTTONS ===== */
.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
}

.modal-btn-gold { border-color: var(--primary); color: var(--primary); background: rgba(250, 204, 21, 0.08); }
.modal-btn-gold:hover:not(:disabled) { background: var(--primary); color: #000; }
.modal-btn-red { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.08); }
.modal-btn-red:hover:not(:disabled) { background: #ef4444; color: #fff; }
.modal-btn-grey { border-color: var(--glass-border); color: var(--muted-foreground); background: rgba(255, 255, 255, 0.03); }
.modal-btn-grey:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: var(--foreground); }
.modal-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== RARITY BORDERS ===== */
.rarity-border-common { border-left-color: #71717a !important; border-top-color: #71717a !important; }
.rarity-border-rare { border-left-color: #3b82f6 !important; border-top-color: #3b82f6 !important; }
.rarity-border-epic { border-left-color: #a855f7 !important; border-top-color: #a855f7 !important; }
.rarity-border-legendary { border-left-color: #eab308 !important; border-top-color: #eab308 !important; }
.rarity-border-mythic { border-left-color: #ef4444 !important; border-top-color: #ef4444 !important; }
.rarity-border-divine { border-left-color: #f59e0b !important; border-top-color: #f59e0b !important; }

/* ===== MODAL RARITY ===== */
#modal-rarity-border {
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.3s;
}

.text-rarity-common { color: #a1a1aa; }
.text-rarity-rare { color: #3b82f6; }
.text-rarity-epic { color: #a855f7; }
.text-rarity-legendary { color: #facc15; }
.text-rarity-mythic { color: #ef4444; }
.text-rarity-divine { color: #f59e0b; text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }

.rarity-full-common { border-color: rgba(161, 161, 170, 0.3) !important; }
.rarity-full-rare { border-color: rgba(59, 130, 246, 0.4) !important; }
.rarity-full-epic { border-color: rgba(168, 85, 247, 0.4) !important; }
.rarity-full-legendary { border-color: rgba(250, 204, 21, 0.4) !important; }
.rarity-full-mythic { border-color: rgba(239, 68, 68, 0.5) !important; }
.rarity-full-divine { border-color: rgba(245, 158, 11, 0.6) !important; box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }

/* ===== FUSION ===== */
.fusion-slot {
  background: rgba(255, 255, 255, 0.02);
  max-width: 100px;
  cursor: default;
  border-radius: 1rem;
}

.fusion-slot.drag-over {
  background: rgba(250, 204, 21, 0.05);
  border-color: var(--primary);
  transform: scale(1.05);
}

.fusion-slot.filled {
  border-style: solid;
  border-color: var(--primary);
  background: rgba(250, 204, 21, 0.05);
}

.fusion-item-icon {
  font-size: 2rem;
  animation: bounce-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.fusion-success-flash { animation: flash 0.5s ease-out; }

@keyframes flash {
  0% { background: white; filter: brightness(2); }
  100% { background: transparent; filter: brightness(1); }
}

/* ===== EVENT BANNER ===== */
#active-event-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(202, 138, 4, 0.03) 100%);
  border: 1px solid rgba(234, 179, 8, 0.2);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.08);
  animation: banner-pulse 3s infinite ease-in-out;
  border-radius: 1rem;
}

@keyframes banner-pulse {
  0%, 100% { border-color: rgba(234, 179, 8, 0.2); box-shadow: 0 0 20px rgba(234, 179, 8, 0.08); }
  50% { border-color: rgba(234, 179, 8, 0.5); box-shadow: 0 0 30px rgba(234, 179, 8, 0.15); }
}

#event-timer {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* ===== SELECT OPTIONS ===== */
select option {
  background: #18181b;
  color: #fafafa;
}

/* ===== CUSTOM SCROLLBAR ===== */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== PETS / COMPAGNONS ===== */
.pet-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  min-height: 104px;
  justify-content: center;
}
.pet-slot-filled {
  border-style: solid;
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.05);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.08);
}
.pet-slot-icon {
  font-size: 34px;
  animation: petFloat 2.6s ease-in-out infinite;
}
@keyframes petFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.pet-slot-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: #facc15;
  text-align: center;
}
.pet-slot-bonus {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.pet-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 10px;
  line-height: 1;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.15s;
}
.pet-slot-remove:hover {
  background: #ef4444;
  color: white;
}
.pet-slot-empty-icon {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.15);
  font-weight: bold;
}
.pet-slot-empty-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.3);
}

.pet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--pet-color, rgba(255, 255, 255, 0.1));
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.pet-card:not(.pet-locked):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--pet-color) 25%, transparent);
}
.pet-card.pet-locked {
  opacity: 0.45;
  border-color: rgba(255, 255, 255, 0.05);
  filter: grayscale(0.6);
}
.pet-card.pet-equipped {
  background: color-mix(in srgb, var(--pet-color) 12%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--pet-color) 25%, transparent);
}
.pet-card.pet-equipped::before {
  content: '✅';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
}
.pet-card-icon {
  font-size: 38px;
  animation: petFloat 3s ease-in-out infinite;
}
.pet-card.pet-locked .pet-card-icon {
  animation: none;
}
.pet-card-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: var(--pet-color);
  text-align: center;
}
.pet-card-rarity {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pet-card-bonus {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.3;
  min-height: 24px;
}
.pet-card-btn {
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  background: color-mix(in srgb, var(--pet-color) 20%, transparent);
  color: var(--pet-color);
  border: 1px solid color-mix(in srgb, var(--pet-color) 40%, transparent);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.pet-card-btn:hover:not(:disabled) {
  background: var(--pet-color);
  color: #0a0a0a;
}
.pet-card-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ===== BOSS SOLO ===== */
.boss-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boss-stage {
  position: relative;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  overflow: hidden;
}
.boss-icon {
  font-size: 120px;
  filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.45));
  animation: bossIdle 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.15s;
}
@keyframes bossIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.03); }
}
.boss-hit-shake {
  animation: bossShake 0.3s ease-out !important;
}
@keyframes bossShake {
  0% { transform: translateX(0) rotate(0) scale(1); }
  20% { transform: translateX(-8px) rotate(-3deg) scale(1.08); filter: brightness(2) drop-shadow(0 0 40px rgba(239, 68, 68, 0.8)); }
  40% { transform: translateX(8px) rotate(3deg) scale(1.08); }
  60% { transform: translateX(-4px) rotate(-1deg) scale(1.04); }
  100% { transform: translateX(0) rotate(0) scale(1); }
}
.boss-damage-text {
  position: absolute;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  color: #fca5a5;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: bossDamageFly 0.9s ease-out forwards;
}
.boss-damage-text.crit {
  color: #facc15;
  font-size: 20px;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
}
@keyframes bossDamageFly {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  20% { opacity: 1; transform: translateY(-10px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}
.boss-hp-bar {
  position: relative;
  width: 100%;
  height: 22px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 11px;
  overflow: hidden;
}
.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
  transition: width 0.25s ease-out;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}
.boss-hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: white;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}
.boss-timer-urgent {
  color: #ef4444 !important;
  animation: bossTimerBlink 0.5s ease-in-out infinite;
}
@keyframes bossTimerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.boss-hit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== ENCHANTEMENTS ===== */
.enchant-section {
  padding: 12px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-top: 4px;
  margin-bottom: 4px;
}
.enchant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.enchant-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.enchant-remove-btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
  transition: all 0.15s;
}
.enchant-remove-btn:hover {
  background: #ef4444;
  color: white;
}
.enchant-applied {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 10px;
}
.enchant-gem-icon {
  font-size: 24px;
}
.enchant-gem-info { flex: 1; }
.enchant-gem-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #e9d5ff;
}
.enchant-gem-bonus {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}
.enchant-empty {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 8px;
  font-style: italic;
}
.enchant-gem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.enchant-gem-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.enchant-gem-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
}
.enchant-gem-btn-icon {
  font-size: 22px;
}
.enchant-gem-btn-info { flex: 1; }
.enchant-gem-btn-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: #e9d5ff;
}
.enchant-gem-btn-desc {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.enchant-gem-btn-count {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #c084fc;
}
.enchant-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 10px;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.8));
  animation: enchantSparkle 2s ease-in-out infinite;
}
@keyframes enchantSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.7; }
}

/* ===== CRAFT / ARTISANAT ===== */
.craft-material-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.craft-material-icon { font-size: 24px; }
.craft-material-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.6);
}
.craft-material-count {
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  color: #facc15;
}
.craft-recipe-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: background 0.15s;
}
.craft-recipe-card:not(.craft-recipe-disabled):hover {
  background: rgba(250, 204, 21, 0.05);
  border-color: rgba(250, 204, 21, 0.2);
}
.craft-recipe-disabled {
  opacity: 0.6;
}
.craft-recipe-icon {
  font-size: 30px;
}
.craft-recipe-info {
  flex: 1;
  min-width: 0;
}
.craft-recipe-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: white;
  margin-bottom: 4px;
}
.craft-recipe-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.craft-cost {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.craft-cost-missing {
  color: #ef4444;
}
.craft-recipe-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.craft-recipe-btn:hover:not(:disabled) {
  background: #facc15;
  color: #0a0a0a;
}
.craft-recipe-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== BATTLE PASS ===== */
.bp-progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.2);
}
.bp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15 0%, #f59e0b 50%, #ef4444 100%);
  transition: width 0.5s ease-out;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
}
.bp-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s;
}
.bp-tier-ready {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.06);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.12);
}
.bp-tier-claimed {
  opacity: 0.5;
  border-color: rgba(74, 222, 128, 0.25);
}
.bp-tier-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.12);
  border: 2px solid rgba(250, 204, 21, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #facc15;
  flex-shrink: 0;
}
.bp-tier-claimed .bp-tier-number {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}
.bp-tier-info {
  flex: 1;
  min-width: 0;
}
.bp-tier-reward {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: white;
  margin-bottom: 4px;
}
.bp-tier-xp {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}
.bp-tier-btn {
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.bp-tier-btn:hover:not(:disabled) {
  background: #facc15;
  color: #0a0a0a;
}
.bp-tier-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bp-tier-claimed .bp-tier-btn {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* ===== ADMIN BATTLE PASS EDITOR ===== */
.bp-admin-empty {
  text-align: center;
  padding: 24px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}
.bp-admin-card {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(250, 204, 21, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.bp-admin-card:hover {
  border-color: rgba(250, 204, 21, 0.3);
}
.bp-admin-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bp-admin-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.15);
  border: 2px solid rgba(250, 204, 21, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #facc15;
  flex-shrink: 0;
}
.bp-admin-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-admin-move button {
  width: 20px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-size: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-admin-move button:hover:not(:disabled) {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}
.bp-admin-move button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.bp-admin-preview {
  flex: 1;
  min-width: 0;
  padding: 0 4px;
}
.bp-preview-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.bp-preview-reward {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-admin-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.bp-admin-action {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-admin-action-dup {
  color: #60a5fa;
}
.bp-admin-action-dup:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}
.bp-admin-action-del {
  color: #f87171;
}
.bp-admin-action-del:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}
.bp-admin-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}
.bp-admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}
.bp-admin-field-grow {
  flex: 1;
  min-width: 140px;
}
.bp-admin-field label {
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.bp-admin-field input,
.bp-admin-field select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: white;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  width: 100%;
}
.bp-admin-field input:focus,
.bp-admin-field select:focus {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.05);
}
.bp-admin-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23facc15'><path d='M5.5 7.5L10 12l4.5-4.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
  cursor: pointer;
}
.bp-admin-field select option {
  background: #0a0a0a;
  color: white;
}

/* ===== MARCHÉ ===== */
.market-tab {
  padding: 10px;
  border-radius: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s;
}
.market-tab:hover { background: rgba(250, 204, 21, 0.08); color: #facc15; }
.market-tab-active {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}
.market-empty {
  text-align: center;
  padding: 24px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}
.market-listing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left-width: 3px !important;
}
.market-item-icon { font-size: 32px; flex-shrink: 0; }
.market-item-info { flex: 1; min-width: 0; }
.market-item-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  margin-bottom: 3px;
}
.market-item-meta {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.market-item-footer {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
.market-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.market-price {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #facc15;
}
.market-action-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.market-btn-buy {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.market-btn-buy:hover {
  background: #4ade80;
  color: #0a0a0a;
}
.market-btn-cancel {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.market-btn-cancel:hover {
  background: #ef4444;
  color: white;
}
.market-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'Press Start 2P', cursive;
  font-size: 7px;
  text-transform: uppercase;
}
.market-status-active   { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.market-status-sold     { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.market-status-expired  { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.market-status-cancelled{ background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }
