/* ==========================================================================
   CYBERBUILD PC MASTER - PRO GAMING DESIGN SYSTEM & STYLESHEET
   Futuristic Cyberpunk / ROG / Esports Glassmorphism Theme
   Focused on High Clarity, Ergonomic Dark Contrast, and Smooth Gaming Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Chakra+Petch:wght@500;700;800&family=JetBrains+Mono:wght@500;700;800&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
  /* Harmonious Deep Gaming Palette */
  --bg-deep: #070a10;
  --bg-dark: #0b111a;
  --bg-card: rgba(13, 20, 33, 0.82);
  --bg-card-hover: rgba(20, 31, 50, 0.92);
  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.55);

  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-purple: #9d4edd;
  --neon-green: #00ff88;
  --neon-gold: #ffd166;
  --neon-danger: #ff2a55;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  --font-main: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cyber: 'Chakra Petch', 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.32);
  --shadow-pink: 0 0 20px rgba(255, 0, 127, 0.35);
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.75);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(0, 240, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(255, 0, 127, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: var(--text-main);
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Typography Utilities */
.text-cyan { color: var(--neon-cyan); }
.text-pink { color: var(--neon-pink); }
.text-green { color: var(--neon-green); }
.text-gold { color: var(--neon-gold); }
.text-danger { color: var(--neon-danger); }
.text-muted { color: var(--text-muted); }

/* Glass Panel Style */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-card);
  transition: all var(--transition-fast);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.32);
}

/* Main App Shell Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top App Header / Gaming Cockpit HUD Bar */
.top-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: rgba(9, 14, 23, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

/* Animated Ambient RGB Underglow Line */
.top-hud-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00f0ff, #9d4edd, #ff007f, #ffd166, #00ff88, #00f0ff);
  background-size: 300% 100%;
  animation: rgbFlow 10s linear infinite;
  opacity: 0.85;
}

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

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-badge {
  font-family: var(--font-cyber);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.hud-metrics-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-metric-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 22, 35, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.hud-metric-pill:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(18, 28, 45, 0.92);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 240, 255, 0.18);
}

.hud-metric-pill .icon {
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.hud-metric-pill .label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.hud-metric-pill .value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
}

.hud-metric-pill.balance-pill {
  border-color: rgba(255, 209, 102, 0.45);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(14, 22, 35, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 209, 102, 0.2), 0 0 16px rgba(255, 209, 102, 0.15);
}

.hud-metric-pill.balance-pill .value {
  color: var(--neon-gold);
  font-size: 16px;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
}

.hud-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Separator between balance and other stats */
.hud-metrics-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  margin: 0 4px;
}

/* Daily Reward Action Button */
.hud-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 209, 102, 0.4);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(14, 22, 35, 0.85));
  color: var(--neon-gold);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.12);
}

.hud-action-btn:hover {
  border-color: var(--neon-gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.25), rgba(14, 22, 35, 0.9));
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.35);
  transform: translateY(-1px);
}

.hud-action-label {
  font-size: 12px;
}

/* Icon-only HUD Buttons */
.hud-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 22, 35, 0.8);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hud-icon-btn:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.hud-icon-btn.hud-icon-danger:hover {
  border-color: rgba(255, 42, 85, 0.5);
  background: rgba(255, 42, 85, 0.12);
  color: var(--neon-danger);
  box-shadow: 0 0 12px rgba(255, 42, 85, 0.2);
}

.hud-btn-bgm {
  width: auto;
  min-width: 68px;
  padding: 0 10px;
  gap: 5px;
  font-size: 13px;
  font-family: var(--font-main);
  font-weight: 700;
}

.hud-btn-bgm.active-bgm {
  border-color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(157, 78, 221, 0.25));
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  animation: retroPulse 2s infinite ease-in-out;
}

@keyframes retroPulse {
  0%, 100% { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
  50% { border-color: rgba(255, 0, 127, 0.8); box-shadow: 0 0 18px rgba(255, 0, 127, 0.4); }
}

.hud-btn-track {
  width: auto;
  max-width: 120px;
  padding: 0 9px;
  gap: 4px;
  font-size: 11px;
  color: #cbd5e1;
}

.hud-volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 22, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  height: 36px;
}

.hud-volume-slider-wrap:hover {
  border-color: rgba(0, 240, 255, 0.35);
}



/* Cloud Status Indicator */
.cloud-status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 22, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.cloud-status-badge.status-synced {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.cloud-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Player HUD Profile Pill */
.player-hud-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12);
  transition: all var(--transition-fast);
}

.player-hud-profile-pill:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.player-hud-profile-pill .user-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.25) 0%, rgba(6, 9, 17, 0.9) 75%);
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  overflow: hidden;
}

/* Animated Pixel Art Avatar HUD Element */
.hud-pixel-avatar {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
  transition: transform var(--transition-fast);
}

.player-hud-profile-pill:hover .hud-pixel-avatar {
  transform: scale(1.15);
}

/* Avatar Emotional Mood Glows */
.player-hud-profile-pill.mood-success {
  border-color: var(--neon-gold) !important;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.6), inset 0 0 12px rgba(255, 209, 102, 0.25) !important;
  animation: moodCelebration 0.8s infinite alternate ease-in-out;
}

@keyframes moodCelebration {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-3px) scale(1.05); }
}

.player-hud-profile-pill.mood-error {
  border-color: var(--neon-danger) !important;
  box-shadow: 0 0 25px rgba(255, 42, 85, 0.7), inset 0 0 12px rgba(255, 42, 85, 0.3) !important;
  animation: moodShaking 0.15s infinite;
}

@keyframes moodShaking {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  25% { transform: translate(-2px, -1px) rotate(-1deg); }
  50% { transform: translate(-1px, 2px) rotate(1deg); }
  75% { transform: translate(2px, 1px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.player-hud-profile-pill.mood-focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.2) !important;
}

/* Workbench Builder Avatar Companion Strip */
.workbench-avatar-dock {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11, 18, 30, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.workbench-avatar-circle {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.25) 0%, rgba(6, 9, 17, 0.95) 80%);
  border: 2px solid rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.workbench-avatar-dock:hover .workbench-avatar-circle {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

.workbench-pixel-avatar {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

.workbench-avatar-talk {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.avatar-companion-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.avatar-companion-name .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1.5s infinite;
}

.avatar-companion-quote {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.workbench-avatar-dock.mood-success {
  border-color: var(--neon-gold) !important;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.4) !important;
}
.workbench-avatar-dock.mood-success .workbench-avatar-circle {
  border-color: var(--neon-gold) !important;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.6) !important;
}

.workbench-avatar-dock.mood-error {
  border-color: var(--neon-danger) !important;
  box-shadow: 0 0 20px rgba(255, 42, 85, 0.4) !important;
}
.workbench-avatar-dock.mood-error .workbench-avatar-circle {
  border-color: var(--neon-danger) !important;
  box-shadow: 0 0 20px rgba(255, 42, 85, 0.6) !important;
}

.workbench-avatar-dock.mood-focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) !important;
}

/* Friday Market Atmospheric Pixel Art Hero Banner */
.friday-market-hero-banner {
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.52) 0%, rgba(8, 12, 22, 0.94) 100%),
              url('assets/images/friday_market_bg.webp') center center / cover no-repeat;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), inset 0 0 50px rgba(0, 0, 0, 0.7);
  margin-bottom: 22px;
}

.friday-market-hero-banner h3 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 240, 255, 0.4);
}

.friday-market-hero-banner p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  max-width: 650px;
}

.player-hud-profile-pill .user-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

/* Pro Gaming Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  transition: all var(--transition-fast);
}

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

.btn-sm {
  padding: 6px 13px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #030712;
  border-color: #00f0ff;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #38f9d7 0%, #00f0ff 100%);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
  color: #000;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(18, 28, 45, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.btn-secondary:hover {
  background: rgba(28, 42, 65, 0.95);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.btn-gold-gradient {
  background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
  color: #1e1102;
  border: 1px solid rgba(255, 209, 102, 0.8);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.35);
}

.btn-gold-gradient:hover {
  background: linear-gradient(135deg, #ffe082 0%, #fbbf24 100%);
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.55);
  transform: translateY(-2px);
  color: #000;
}

/* Primary Navigation Bar */
.main-nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(8, 12, 19, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 9px 18px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.nav-tab-btn.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.16) 0%, rgba(0, 240, 255, 0.03) 100%);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 18px rgba(0, 240, 255, 0.25);
}

.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 15%;
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 10px var(--neon-cyan);
  border-radius: 9999px;
}

/* Main Content Area */
.content-area {
  flex: 1;
  padding: 24px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.game-tab-view {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.game-tab-view.active {
  display: block;
}

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

/* ------------------- WORKBENCH TAB ------------------- */

/* Multi-Builds Management Bar */
.builds-manager-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(13, 20, 33, 0.94) 0%, rgba(18, 28, 45, 0.88) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}

.builds-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.build-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.build-selector-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.build-dropdown {
  background: #090e17;
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.build-dropdown:focus, .build-dropdown:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.badge-builds-count {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
}

.build-summary-pill {
  font-size: 12px;
  color: var(--text-muted);
}

.builds-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Active Build Telemetry Strip */
.active-build-telemetry-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(8, 14, 24, 0.95) 0%, rgba(13, 22, 38, 0.92) 100%);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-left: 4px solid var(--neon-green);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 16px;
}

.build-telemetry-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-badge-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: telemetryPulse 1.8s infinite;
}

@keyframes telemetryPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; box-shadow: 0 0 18px var(--neon-green); }
  100% { transform: scale(1); opacity: 1; }
}

.telemetry-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.telemetry-build-name {
  font-family: var(--font-cyber);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.build-telemetry-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.build-metric-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 20, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.build-metric-pill:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(20, 31, 50, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
}

.build-metric-pill .icon {
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.build-metric-pill .label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.build-metric-pill .value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
}

/* Workbench Grid Layout */
.workbench-layout-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  align-items: start;
}

/* Canvas Rig Wrapper */
.canvas-rig-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, rgba(13, 20, 33, 0.88) 0%, rgba(9, 14, 24, 0.94) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Cyber corner brackets */
.canvas-rig-wrapper::before,
.canvas-rig-wrapper::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.canvas-rig-wrapper::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}
.canvas-rig-wrapper::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

.canvas-toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toolbar-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Navigation Pixel Art Icons */
.nav-pixel-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-tab-btn:hover .nav-pixel-icon {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

.nav-tab-btn.active .nav-pixel-icon {
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 1));
}

/* Workbench ESD & Tooling Dock Ribbon */
.workbench-tools-ribbon {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.wb-tool-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.wb-tool-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Facility Pixel Art Icon Image */
.facility-pixel-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

/* Mining Facility Ambient Environment Strip */
.mining-facility-environment {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(6, 10, 18, 0.9), rgba(10, 15, 25, 0.85));
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.env-metric-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.env-metric-label {
  color: var(--text-muted);
  white-space: nowrap;
}

.env-metric-val {
  font-size: 12px;
  font-weight: 700;
}

/* Mining Rig Card: Enhanced with Pixel Frame Visual */
.rig-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rig-frame-visual-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.rig-visual-preview {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 2px;
  flex-shrink: 0;
}

.rig-visual-telemetry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mini-spec-row {
  display: flex;
  gap: 5px;
  font-size: 11px;
  align-items: center;
}

.mini-spec-row span {
  color: var(--text-muted);
  white-space: nowrap;
}

.rig-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rig-stat-cell .label {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.rig-stat-cell .value {
  font-size: 13px;
  font-weight: 800;
}

.rig-pixel-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: middle;
}

.pulse-dot-green {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulseGreen 1.5s infinite;
  flex-shrink: 0;
}

/* Coin Pixel Art Icon in Mining Coin Selector */
.coin-pixel-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: middle;
}


.workbench-canvas {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at center, #0e1522 0%, #05080e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 240, 255, 0.04);
  transition: all var(--transition-smooth);
}

/* Supercar Cockpit Power Button */
.btn-power-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #162032 0%, #0f172a 100%);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--font-cyber);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.btn-power-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-power-toggle .power-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  transition: all var(--transition-fast);
}

.btn-power-toggle.is-on {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(13, 20, 33, 0.95) 100%);
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.35), inset 0 1px 0 rgba(0, 255, 136, 0.3);
}

.btn-power-toggle.is-on .power-indicator-dot {
  background: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
  animation: pulseGreen 1.5s infinite;
}

/* Slots Manager Panel */
.slots-manager-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(13, 20, 33, 0.9) 0%, rgba(9, 14, 24, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.panel-header-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.slots-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}

.workbench-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  background: rgba(14, 22, 35, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.workbench-slot-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all var(--transition-fast);
}

.workbench-slot-card:hover {
  background: rgba(18, 30, 48, 0.95);
  border-color: var(--neon-cyan);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.workbench-slot-card:hover::before {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.workbench-slot-card.has-part {
  border-style: solid;
  border-color: rgba(0, 240, 255, 0.28);
  background: linear-gradient(90deg, rgba(14, 22, 36, 0.92) 0%, rgba(18, 30, 48, 0.92) 100%);
}

.workbench-slot-card.has-part::before {
  background: var(--neon-cyan);
}

.slot-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot-icon-badge {
  font-size: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
  overflow: hidden;
  flex-shrink: 0;
}

.workbench-slot-card.has-part .slot-icon-badge {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(13, 20, 33, 0.9) 100%);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

/* Pixel Art Sprite Icons System */
.pixel-art-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-fast);
}

.pixel-art-icon-lg {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-fast);
}

.store-card-sprite-thumb,
.inv-card-sprite-thumb {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, rgba(9, 14, 23, 0.75) 80%);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.store-item-card:hover .store-card-sprite-thumb,
.inventory-card:hover .inv-card-sprite-thumb {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.store-item-card:hover .pixel-art-icon-lg,
.inventory-card:hover .pixel-art-icon-lg {
  transform: scale(1.1) rotate(-2deg);
}

.workbench-slot-card:hover .pixel-art-icon {
  transform: scale(1.15);
}

.workbench-slot-card:not(.has-part) .pixel-art-icon {
  opacity: 0.4;
  filter: grayscale(0.7) brightness(0.8);
}

.slot-info-box h5 {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.slot-part-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.slot-part-spec {
  font-size: 11px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

.slot-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-action-sell {
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--neon-gold);
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.slot-action-sell:hover {
  background: rgba(255, 209, 102, 0.3);
  border-color: var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.3);
  transform: translateY(-1px);
}

.slot-action-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.slot-action-remove:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Compatibility Status Box */
.compatibility-box {
  margin-top: 14px;
}

.comp-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.comp-banner.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.comp-banner.warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fde047;
}

.comp-banner.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.comp-warning-note {
  font-size: 12px;
  color: #fbbf24;
  margin-top: 6px;
}

/* ------------------- STORE TAB ------------------- */
.store-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.store-categories-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.store-cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.store-cat-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
}

.store-cat-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon);
}

.store-filter-controls select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
}

.store-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.store-item-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.9) 0%, rgba(9, 14, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.store-item-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.18);
}

.store-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.store-card-brand {
  font-family: var(--font-cyber);
  font-size: 12px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.store-compat-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.store-compat-badge.compatible {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.store-compat-badge.warning {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.store-compat-badge.incompatible {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.store-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.store-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 34px;
}

.store-specs-list {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.store-item-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--neon-gold);
}

/* Quantity Controller */
.store-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.quantity-controller {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.btn-qty {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.btn-qty:hover {
  background: var(--neon-cyan);
  color: #000;
}

.qty-input {
  width: 38px;
  height: 28px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-buy-block {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
}

.inv-count-badge {
  background: rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
}
.spec-line strong {
  color: #f1f5f9;
}

.store-search-input:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

.badge-tier.tier-budget {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.badge-tier.tier-mid {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.badge-tier.tier-high {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.badge-tier.tier-enthusiast {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* ------------------- INVENTORY TAB ------------------- */
.inventory-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.inventory-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.9) 0%, rgba(9, 14, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.inventory-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 18px rgba(0, 240, 255, 0.15);
}

.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.part-cat-pill {
  font-size: 11px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sell-val {
  font-size: 12px;
  color: var(--neon-gold);
  font-family: var(--font-mono);
}

.inv-title {
  font-size: 15px;
  font-weight: 700;
}

.inv-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.empty-inventory-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(14, 21, 32, 0.4);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-inventory-message .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ------------------- MINING STATION TAB ------------------- */
.mining-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.mining-hero-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mining-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mining-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mining-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.mining-stat-box .title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mining-stat-box .val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.mining-chart-wrapper {
  background: #090d14;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 10px;
}

#miningChartCanvas {
  width: 100%;
  height: 160px;
  display: block;
}

.coins-selection-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-coin {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-coin .algo-tag {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-coin.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: var(--shadow-neon);
}

/* Wallet & Overclock Controls */
.mining-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wallet-claim-card {
  padding: 20px;
  text-align: center;
}

.wallet-balance-big {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--neon-gold);
  margin: 10px 0 16px 0;
}

.overclock-card {
  padding: 20px;
}

.oc-slider-group {
  margin-bottom: 14px;
}

.oc-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.oc-slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--neon-cyan);
}

/* ------------------- BENCHMARKS & COMPETITIONS TAB (CYBER ESPORTS ARENA) ------------------- */

/* 1. Esports Header Hero Banner */
.esports-header-banner {
  background: linear-gradient(135deg, rgba(8, 14, 25, 0.95) 0%, rgba(14, 22, 38, 0.9) 50%, rgba(25, 10, 36, 0.92) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 240, 255, 0.06);
}

.esports-header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), var(--neon-gold), transparent);
}

.esports-banner-content {
  max-width: 680px;
}

.esports-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.esports-tag {
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.engine-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 0, 119, 0.15);
  border: 1px solid var(--neon-pink);
  color: #ff6b9d;
}

.league-badge {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
}

.esports-header-banner h2 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.esports-header-banner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.esports-stats-pills {
  display: flex;
  gap: 12px;
}

.esports-stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.esports-stat-pill .icon {
  font-size: 26px;
}

.esports-stat-pill .num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.esports-stat-pill .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* 2. Competitions Layout Grid */
.competitions-layout-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .competitions-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. Benchmark Hero Card */
.benchmark-hero-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 19, 32, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.bench-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.bench-badge-mark {
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 900;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.bench-status-badge {
  font-size: 12px;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.bench-hero-body {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .bench-hero-body {
    flex-direction: column;
    text-align: center;
  }
}

.bench-dial-widget {
  min-width: 110px;
}

.bench-dial-circle {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.2) 0%, rgba(6, 9, 17, 0.95) 75%);
  border: 3px solid var(--neon-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
  animation: dialPulse 3s infinite alternate;
}

@keyframes dialPulse {
  0% { box-shadow: 0 0 18px rgba(0, 240, 255, 0.3), inset 0 0 12px rgba(0, 240, 255, 0.15); }
  100% { box-shadow: 0 0 32px rgba(0, 240, 255, 0.6), inset 0 0 22px rgba(0, 240, 255, 0.3); }
}

.bench-dial-fps {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.bench-dial-lbl {
  font-size: 10px;
  color: var(--neon-cyan);
  font-weight: 700;
  margin-top: 4px;
}

.bench-hero-info {
  flex: 1;
}

.bench-hero-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.bench-hero-info p {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.staged-rig-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 9, 17, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.btn-cyber-glow {
  position: relative;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #000;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.45);
  transition: all var(--transition-fast);
}

.btn-cyber-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.7);
}

/* 4. Benchmark Certificate Card */
.bench-certificate {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 25, 42, 0.98) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1.5px solid var(--neon-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 209, 102, 0.2);
  position: relative;
  overflow: hidden;
}

.cert-watermark {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-cyber);
  font-size: 72px;
  font-weight: 900;
  color: rgba(255, 209, 102, 0.04);
  pointer-events: none;
  user-select: none;
}

.cert-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.cert-seal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--neon-gold);
  background: rgba(255, 209, 102, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.cert-title-block h3 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
}

.cert-tier-badge {
  font-family: var(--font-cyber);
  font-size: 16px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, #ffd166, #ff9f1c);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.5);
}

.cert-hero-metric {
  text-align: center;
  margin-bottom: 22px;
}

.cert-score-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cert-score-circle .score-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 900;
  color: var(--neon-gold);
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 209, 102, 0.5);
}

.cert-score-circle .score-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}

.cert-rating-pill {
  margin-top: 10px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.cert-metrics-quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: rgba(6, 9, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.quad-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.quad-item .label {
  color: var(--text-muted);
}

.quad-item .val {
  font-family: var(--font-mono);
  font-weight: 800;
}

.cert-footer-rig {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

/* 5. Tournaments List & Cards (Esports Arenas) */
.section-title-row {
  margin-bottom: 14px;
}

.tournaments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tourney-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 21, 33, 0.95) 0%, rgba(9, 14, 23, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.tourney-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
}

/* Tier Specific Themes */
.tourney-card.tourney-tier-bronze {
  border-color: rgba(205, 127, 50, 0.4);
}
.tourney-card.tourney-tier-bronze:hover {
  border-color: #cd7f32;
  box-shadow: 0 12px 35px rgba(205, 127, 50, 0.25);
}

.tourney-card.tourney-tier-silver {
  border-color: rgba(0, 240, 255, 0.4);
}
.tourney-card.tourney-tier-silver:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.3);
}

.tourney-card.tourney-tier-gold {
  border-color: rgba(255, 209, 102, 0.5);
}
.tourney-card.tourney-tier-gold:hover {
  border-color: var(--neon-gold);
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.35);
}

.tourney-card.tourney-tier-apex {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(180deg, rgba(20, 15, 36, 0.95) 0%, rgba(10, 8, 20, 0.98) 100%);
}
.tourney-card.tourney-tier-apex:hover {
  border-color: #c084fc;
  box-shadow: 0 14px 45px rgba(168, 85, 247, 0.45);
}

.tourney-card.completed {
  border-color: rgba(34, 197, 94, 0.5);
}

.tourney-ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tourney-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tourney-title-wrap .tourney-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.tourney-badge-reward {
  font-size: 11px;
  color: var(--neon-cyan);
  font-weight: 700;
}

.trophy-won-pill {
  font-size: 11px;
  font-weight: 800;
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.tourney-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(6, 9, 17, 0.75);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tourney-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tourney-stat-cell .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.tourney-stat-cell .val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}

.prize-glow {
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
}

/* Readiness Meter */
.readiness-meter-wrap {
  margin-bottom: 14px;
}

.readiness-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 5px;
}

.readiness-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.readiness-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.readiness-fill.fill-ready {
  background: linear-gradient(90deg, #00f0ff, #22c55e);
  box-shadow: 0 0 8px #22c55e;
}

.readiness-fill.fill-warning {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

/* Rival Encounter Box */
.tourney-rival-box {
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rival-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 0, 119, 0.25) 0%, rgba(6, 9, 17, 0.95) 80%);
  border: 1.5px solid var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 12px rgba(255, 0, 119, 0.4);
}

.tourney-actions-row .btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
}

/* 6. Global Leaderboard & Champions Podium */
.leaderboard-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.leaderboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

/* Podium Container */
.leaderboard-podium-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 12px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  position: relative;
}

.podium-avatar-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-crown {
  position: absolute;
  top: -16px;
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.podium-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.podium-gold .podium-avatar {
  width: 58px;
  height: 58px;
  font-size: 30px;
  border-color: var(--neon-gold);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.5);
}

.podium-silver .podium-avatar {
  border-color: #cbd5e1;
  box-shadow: 0 0 15px rgba(203, 213, 225, 0.4);
}

.podium-bronze .podium-avatar {
  border-color: #cd7f32;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}

.podium-player-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}

.podium-rig-tag {
  font-size: 10px;
  color: var(--text-muted);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-block {
  width: 100%;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  margin-top: 6px;
}

.block-gold {
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.4) 0%, rgba(255, 209, 102, 0.15) 100%);
  border-top: 2px solid var(--neon-gold);
  color: var(--neon-gold);
}

.block-silver {
  height: 52px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.3) 0%, rgba(203, 213, 225, 0.1) 100%);
  border-top: 2px solid #cbd5e1;
}

.block-bronze {
  height: 40px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.3) 0%, rgba(205, 127, 50, 0.1) 100%);
  border-top: 2px solid #cd7f32;
  color: #e2b083;
}

/* Leaderboard Filter Group */
.leaderboard-filter-group {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.leaderboard-filter-group .filter-btn {
  flex: 1;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.leaderboard-filter-group .filter-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
}

.leaderboard-filter-group .filter-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Table Design */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.leaderboard-table th {
  text-align: right;
  padding: 8px 10px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.leaderboard-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr.player-row td {
  background: rgba(0, 240, 255, 0.1);
  font-weight: 800;
}

.rank-badge-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 11px;
}

.rank-badge-cell.rank-top1 {
  background: rgba(255, 209, 102, 0.2);
  color: var(--neon-gold);
  border: 1px solid var(--neon-gold);
}
.rank-badge-cell.rank-top2 {
  background: rgba(203, 213, 225, 0.2);
  color: #cbd5e1;
  border: 1px solid #cbd5e1;
}
.rank-badge-cell.rank-top3 {
  background: rgba(205, 127, 50, 0.2);
  color: #cd7f32;
  border: 1px solid #cd7f32;
}

.btn-inspect-pc {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-inspect-pc:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 7. Benchmark HUD Overlay Bar */
.bench-hud-overlay-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(6, 9, 17, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.bench-hud-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bench-hud-metric .lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.bench-hud-metric .val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
}

.bench-progress-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bench-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #00f0ff, #a855f7);
  box-shadow: 0 0 12px #00f0ff;
  transition: width 0.1s linear;
}

/* ------------------- MODALS & BENCHMARK DIALOG ------------------- */
.game-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.game-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog-content {
  background: linear-gradient(180deg, #0e1625 0%, #080d16 100%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 240, 255, 0.25);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform var(--transition-smooth);
}

.game-modal.open .modal-dialog-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

#benchmarkCanvas {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-sm);
  background: #000;
  margin-bottom: 16px;
  display: block;
}

.bench-certificate {
  padding: 20px;
  text-align: center;
  margin-top: 16px;
  border-color: rgba(255, 209, 102, 0.4);
}

.cert-tier {
  display: inline-block;
  font-family: var(--font-cyber);
  font-size: 14px;
  color: var(--neon-gold);
  background: rgba(255, 209, 102, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.cert-score-hero {
  margin: 18px 0;
}

.cert-score-hero .score-num {
  font-family: var(--font-cyber);
  font-size: 54px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  display: block;
}

.cert-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Modal Part Picker List */
.modal-part-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.modal-part-row.incompatible {
  opacity: 0.6;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ------------------- BUTTONS & UI ELEMENTS ------------------- */
.btn {
  font-family: var(--font-main);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #0077ff);
  color: #000;
  font-weight: 800;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--neon-cyan);
  color: #000;
}

.btn-cyan:hover:not(:disabled) {
  box-shadow: var(--shadow-neon);
}

.btn-danger {
  background: var(--neon-danger);
  color: #fff;
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--neon-danger);
  color: var(--neon-danger);
}

.btn-danger-outline:hover {
  background: rgba(255, 42, 85, 0.15);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* Toast Container */
#toastContainer {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.game-toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: slideInLeft 0.3s ease-out;
  border-right: 4px solid;
}

.game-toast.fade-out {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.35s ease;
}

.toast-info {
  background: rgba(14, 21, 32, 0.95);
  color: #fff;
  border-color: var(--neon-cyan);
}

.toast-success {
  background: rgba(6, 36, 21, 0.95);
  color: #86efac;
  border-color: #22c55e;
}

.toast-warning {
  background: rgba(41, 31, 6, 0.95);
  color: #fde047;
  border-color: #eab308;
}

.toast-danger {
  background: rgba(43, 10, 18, 0.95);
  color: #fca5a5;
  border-color: #ef4444;
}

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

/* ------------------- QUESTS & ACHIEVEMENTS ------------------- */
.quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(14, 21, 32, 0.7);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.quest-item:hover {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(14, 21, 32, 0.95);
}

.quest-item.completed {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.quest-checkbox {
  font-size: 20px;
  margin-left: 14px;
}

.quest-content {
  flex: 1;
}

.quest-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.quest-content p {
  font-size: 12px;
  color: var(--text-muted);
}

.quest-reward {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--neon-gold);
  font-size: 16px;
  background: rgba(255, 209, 102, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .workbench-layout-grid,
  .mining-dashboard-grid,
  .competitions-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-hud-bar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .hud-metrics-group {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav-bar {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .mining-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .builds-manager-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .builds-bar-left {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   ONLINE MULTI-PLAYER & MULTI-BUILDS ENHANCEMENTS
   ========================================================================== */

/* Cloud Sync Badge */
.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  background: rgba(14, 21, 32, 0.85);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.cloud-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cloud-status-badge.status-synced {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--neon-green);
}
.cloud-status-badge.status-synced .status-dot {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.cloud-status-badge.status-syncing,
.cloud-status-badge.status-loading {
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
}
.cloud-status-badge.status-syncing .status-dot,
.cloud-status-badge.status-loading .status-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulseDot 1s infinite alternate;
}

.cloud-status-badge.status-guest {
  border-color: rgba(255, 209, 102, 0.3);
  color: var(--neon-gold);
}
.cloud-status-badge.status-guest .status-dot {
  background: var(--neon-gold);
}

.cloud-status-badge.status-error {
  border-color: rgba(255, 42, 85, 0.4);
  color: var(--neon-danger);
}
.cloud-status-badge.status-error .status-dot {
  background: var(--neon-danger);
}

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

/* Player Account HUD Button */
.player-account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.player-account-btn .user-avatar {
  font-size: 15px;
}

/* ==========================================================================
   MULTI-BUILDS MANAGEMENT BAR
   ========================================================================== */
.builds-manager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: linear-gradient(90deg, rgba(14, 21, 32, 0.95), rgba(10, 15, 22, 0.9));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.builds-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.build-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.build-selector-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
}

.build-dropdown {
  background: #0d1520;
  color: #fff;
  border: 1px solid var(--border-glow);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 220px;
  outline: none;
  transition: all var(--transition-fast);
}

.build-dropdown:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.badge-builds-count {
  font-size: 11px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: var(--font-mono);
}

.build-summary-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.build-summary-pill .chip {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.builds-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   LEADERBOARD & ONLINE COMPETITIONS
   ========================================================================== */
.leaderboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.leaderboard-filter-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.leaderboard-filter-group .filter-btn {
  background: rgba(14, 21, 32, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.leaderboard-filter-group .filter-btn:hover {
  color: #fff;
  border-color: rgba(0, 240, 255, 0.3);
}

.leaderboard-filter-group .filter-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.leaderboard-table th {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
}

.leaderboard-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}

.leaderboard-table tr.player-row td {
  background: rgba(255, 209, 102, 0.08);
  font-weight: 700;
}

.btn-inspect-pc {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-inspect-pc:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* ==========================================================================
   AUTH & MODALS STYLING
   ========================================================================== */
.modal-sm { max-width: 440px; }
.modal-md { max-width: 560px; }
.modal-lg { max-width: 780px; }

.auth-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
  color: #fff;
}

.auth-tab-btn.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.auth-form-view {
  display: none;
}
.auth-form-view.active {
  display: block;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-alert.danger {
  background: rgba(255, 42, 85, 0.15);
  border: 1px solid var(--neon-danger);
  color: #ff99aa;
}
.auth-alert.success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--neon-green);
  color: #88ffcc;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input, .form-select {
  background: #0d1520;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.form-checkbox-group {
  margin: 14px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.form-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-actions {
  margin-top: 18px;
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.avatar-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar-opt {
  font-size: 20px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.avatar-opt:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
}

.avatar-opt.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Profile View */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-avatar {
  font-size: 36px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.badge-online {
  font-size: 11px;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.profile-stats-grid .stat-box {
  background: rgba(14, 21, 32, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stats-grid .stat-box .label {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-stats-grid .stat-box .val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.profile-actions button {
  flex: 1;
}

/* Inspect PC Build Modal */
.inspect-metrics-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px;
  background: rgba(14, 21, 32, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.inspect-metric-col {
  text-align: center;
}
.inspect-metric-col .label {
  font-size: 11px;
  color: var(--text-muted);
}
.inspect-metric-col .val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.inspect-parts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.inspect-part-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(14, 21, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.inspect-part-icon {
  font-size: 24px;
}

.inspect-part-info h5 {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.inspect-part-info small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   MANDATORY AUTHENTICATION GATE STYLING
   ========================================================================== */
.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  background-image: radial-gradient(ellipse at 50% 25%, #05060b 0%, #000000 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animated 3D Cyber Canvas Background */
.auth-cyber-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Discreet Audio Toggle Button */
.portal-audio-btn {
  background: rgba(255, 0, 128, 0.14);
  border: 1px solid rgba(255, 0, 128, 0.45);
  color: #ff99cc;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.gate-audio-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--neon-pink));
}
.portal-audio-btn:hover, .portal-audio-btn.playing {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.35), rgba(0, 240, 255, 0.35));
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Floating Audio Toggle Pill for Login Screen */
.gate-floating-audio-pill {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 30, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 9999px;
  color: #a5f3fc;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 240, 255, 0.2);
  transition: all 0.25s ease;
}
.gate-floating-audio-pill:hover,
.gate-floating-audio-pill.playing {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(255, 0, 128, 0.22));
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 240, 255, 0.45);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .gate-floating-audio-pill {
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

.terminal-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .terminal-badge-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* ================= CENTERED AUTHENTICATION STAGE ================= */
.auth-center-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 10px 12px 30px;
}

/* Logo Showcase with Floating Animation & Glow */
.auth-logo-showcase {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.auth-main-logo {
  max-width: 380px;
  width: 88%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.55)) drop-shadow(0 0 50px rgba(255, 0, 128, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.auth-main-logo:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 70px rgba(255, 0, 128, 0.6));
}

.auth-logo-glow-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 140px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.3), rgba(255, 0, 128, 0.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Centered Form Terminal - Pure Pitch Black Cyber Obsidian Theme */
.auth-portal-terminal {
  width: 100%;
  background: rgba(3, 4, 7, 0.97);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 30px 90px #000000, 0 0 25px rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.auth-portal-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #ff0080, #7000ff);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.terminal-header {
  margin-bottom: 20px;
  text-align: center;
}
.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #020306;
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--neon-cyan);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.terminal-badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}
.terminal-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tabs with Custom Generated Icons */
.auth-gate-tabs {
  display: flex;
  border-bottom: 1px solid #141824;
  margin-bottom: 22px;
  gap: 8px;
}

.gate-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 10px;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
}
.gate-tab-btn:hover {
  color: #cbd5e1;
}
.gate-tab-btn.active {
  color: #00f0ff;
  border-bottom-color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.auth-tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.5));
}

.gate-form-view {
  display: none;
}
.gate-form-view.active {
  display: block;
}

/* Deep Black Form Inputs */
.auth-portal-terminal .form-group {
  margin-bottom: 18px;
}
.auth-portal-terminal label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  display: block;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field-icon {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}
.auth-portal-terminal .form-input {
  width: 100%;
  background: #020305;
  border: 1px solid #161c28;
  color: #f8fafc;
  padding: 12px 48px 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
}
.auth-portal-terminal .form-input:focus {
  background: #040508;
  border-color: #00f0ff;
  outline: none;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.9);
}
.auth-portal-terminal .form-input::placeholder {
  color: #475569;
}
.form-input-en {
  font-family: 'Consolas', 'Courier New', monospace, sans-serif;
  direction: ltr;
  text-align: left;
  letter-spacing: 0.5px;
}
.field-rules-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
  padding-right: 2px;
}

/* Password Requirements Checklist */
.pwd-rules-checklist {
  margin-top: 10px;
  background: #010204;
  border: 1px solid #151a24;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pwd-rules-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
}
.pwd-rule-item {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.pwd-rule-item .rule-icon {
  font-size: 11px;
  color: #475569;
  width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.pwd-rule-item.satisfied {
  color: #4ade80;
}
.pwd-rule-item.satisfied .rule-icon {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.auth-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 8px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

/* Starter Bonus Banner - Deep Black Accent */
.starter-bonus-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #020403;
  border: 1px solid rgba(0, 255, 136, 0.28);
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.03);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0 20px;
}
.auth-bonus-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.6));
}
.starter-bonus-banner .bonus-details strong {
  display: block;
  color: #86efac;
  font-size: 13px;
  margin-bottom: 2px;
}
.starter-bonus-banner .bonus-details p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Security Footer Guarantee */
.terminal-footer-security {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-sec-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.85;
}

.gate-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gate-alert.danger {
  background: rgba(255, 42, 85, 0.18);
  border: 1px solid var(--neon-danger);
  color: #ff99aa;
}
.gate-alert.success {
  background: rgba(0, 255, 136, 0.18);
  border: 1px solid var(--neon-green);
  color: #88ffcc;
}


.player-hud-profile-pill .user-name {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

/* Missing Button Styles */
.btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}
.btn-secondary:hover:not(:disabled) {
  background: #334155;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd166, #f39c12);
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.35);
}
.btn-gold:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.55);
}

/* Ensure Modals have high z-index above everything */
.game-modal {
  z-index: 20000 !important;
}

/* ==========================================================================
   MULTI-PC MINING ROOM & FACILITY UPGRADES
   ========================================================================== */
.mining-facility-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(14, 21, 32, 0.95), rgba(8, 14, 24, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.facility-main-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 320px;
}

.facility-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.facility-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.facility-title-row .badge-tier {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.facility-title-row .badge-capacity {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.facility-perks-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.facility-perk-pill {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.facility-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.player-level-hud {
  min-width: 220px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.level-hud-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.level-hud-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.level-hud-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  transition: width 0.4s ease;
}

/* Multi-Rig Grid Layout */
.mining-rigs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.rig-slot-card {
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(14, 21, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  position: relative;
}

.rig-slot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.3);
}

.rig-slot-card.active-mining {
  border-color: rgba(0, 255, 136, 0.4);
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.04), rgba(14, 21, 32, 0.95));
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.08);
}

.rig-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.rig-slot-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rig-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.rig-status-pill.mining {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}
.rig-status-pill.idle {
  background: rgba(255, 209, 102, 0.15);
  color: var(--neon-gold);
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.rig-slot-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 12px;
}

.rig-slot-stats strong {
  font-size: 14px;
}

.rig-slot-card .btn-release-rig {
  width: 100%;
  font-size: 12px;
  padding: 7px;
  background: rgba(239, 68, 68, 0.15);
  color: #ff6b81;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rig-slot-card .btn-release-rig:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

/* Active Mining Card: datacenter realism */
.rig-slot-card.active-mining {
  border-color: rgba(0, 255, 136, 0.5);
  background: linear-gradient(145deg, rgba(0, 20, 10, 0.6), rgba(14, 21, 32, 0.95));
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.rig-slot-card.active-mining .rig-slot-header {
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.rig-status-pill.mining {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-green);
}

/* Empty Slot Card */
.rig-slot-card.empty-slot {
  border: 2px dashed rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.02);
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 24px;
}
.rig-slot-card.empty-slot:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}
.empty-slot-icon {
  font-size: 28px;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}
.empty-slot-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-cyan);
}
.empty-slot-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Locked Slot Card */
.rig-slot-card.locked-slot {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.65;
}
.locked-slot-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

/* Room Upgrade Modal Tiers Grid */
.mining-tiers-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tier-upgrade-card {
  background: rgba(14, 21, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}
.tier-upgrade-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}
.tier-upgrade-card.current-tier {
  border-color: var(--neon-cyan);
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.08), rgba(14, 21, 32, 0.95));
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.tier-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tier-card-icon {
  font-size: 32px;
}
.tier-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.tier-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tier-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.tier-perks-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Assign Rig Modal List */
.assign-rigs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.assign-rig-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(14, 21, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.assign-rig-row:hover {
  background: rgba(20, 30, 45, 0.95);
  border-color: rgba(0, 240, 255, 0.3);
}
.assign-rig-row.disabled {
  opacity: 0.6;
}

.assign-rig-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.assign-rig-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.assign-rig-specs {
  font-size: 12px;
  color: var(--text-muted);
}

/* Conflict Alert Banner in Competitions */
.mining-conflict-alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   TRADE ARENA (ساحة المقايضة) STYLES
   ========================================================================== */

.trade-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.trade-subtabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trade-subtab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.trade-subtab-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
}
.trade-subtab-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon);
}

.trade-filter-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.trade-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.trade-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.trade-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.4);
}

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

.trade-owner-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.trade-owner-badge .user-avatar {
  font-size: 16px;
}

.trade-price-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-gold);
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.trade-part-title-row {
  margin-bottom: 10px;
}
.trade-part-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.trade-specs-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.trade-spec-pill {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.trade-wishlist-box {
  background: rgba(0, 240, 255, 0.04);
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.wishlist-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 2px;
}
.wishlist-text {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
}

.trade-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.offers-count-badge {
  font-size: 12px;
  color: var(--text-muted);
}

.badge-status-open {
  font-size: 11px;
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.badge-status-completed {
  font-size: 11px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.badge-status-cancelled {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.barter-exchange-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.exchange-part-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.exchange-part-box.highlight {
  border-right: 2px solid var(--neon-cyan);
  padding-right: 8px;
}
.exchange-arrow {
  font-size: 18px;
  color: var(--neon-cyan);
  font-weight: 800;
}
.box-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-green {
  background: linear-gradient(135deg, #00ff88, #00b862);
  color: #000;
  border: none;
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-green:hover {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   FRIDAY USED MARKET (سوق الجمعة للقطع المستعملة) STYLES
   ========================================================================== */

.market-card {
  border: 1px solid rgba(255, 209, 102, 0.18);
  background: linear-gradient(145deg, rgba(14, 21, 32, 0.85) 0%, rgba(26, 20, 10, 0.45) 100%);
}
.market-card:hover {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 8px 25px -5px rgba(255, 209, 102, 0.12);
}

.condition-tag {
  font-size: 10px;
  background: rgba(255, 209, 102, 0.15);
  color: var(--neon-gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-right: 4px;
}

.market-badge-deal {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.market-badge-deal.good {
  background: rgba(0, 255, 136, 0.12);
  color: var(--neon-green);
  border-color: rgba(0, 255, 136, 0.35);
}
.market-badge-deal.hot {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(255, 209, 102, 0.25));
  color: #fff;
  border: 1px solid rgba(255, 209, 102, 0.5);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.25);
  animation: pulse 2s infinite ease-in-out;
}

.market-condition-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.condition-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-gold);
  display: block;
  margin-bottom: 3px;
}
.condition-text {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.market-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}
.market-asking-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--neon-gold);
}
.market-orig-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}

.market-subtabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.market-subtab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.market-subtab-btn:hover {
  color: #fff;
  border-color: var(--neon-gold);
}
.market-subtab-btn.active {
  background: var(--neon-gold);
  color: #000;
  border-color: var(--neon-gold);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.35);
}

/* ==========================================================================
   DAILY REWARDS SYSTEM (نظام المكافآت اليومية)
   ========================================================================== */
#hudDailyRewardBtn.reward-ready {
  animation: pulseNeon 1.6s infinite alternate;
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.5);
}

.daily-reward-status-banner {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
}

.daily-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 12px;
}

.daily-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.daily-card.active-today {
  border: 2px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.daily-card.claimed {
  opacity: 0.65;
  border-color: rgba(6, 214, 160, 0.4);
  background: rgba(6, 214, 160, 0.05);
}

.daily-card.locked {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.daily-card.day-7-card {
  border: 2px solid var(--neon-gold);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.12), rgba(0, 0, 0, 0.4));
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.3);
}

.daily-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.daily-icon {
  font-size: 28px;
  margin: 4px 0 6px;
}

.daily-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.daily-reward-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--neon-gold);
  margin-bottom: 4px;
}

.daily-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.badge-claimed {
  font-size: 9px;
  background: rgba(6, 214, 160, 0.2);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.badge-today {
  font-size: 9px;
  background: rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  animation: pulseNeon 1s infinite alternate;
}

.badge-locked {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 1px 4px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   INTERACTIVE PC DUEL ARENA (حلبة المبارزة التفاعلية ضد الخصم)
   ========================================================================== */
.duel-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(239, 71, 111, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.duel-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.duel-header-icon {
  font-size: 24px;
}

.duel-stage-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.duel-stage-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at center top, rgba(13, 19, 32, 0.95), #07090e);
}

/* Fighters Bar */
.duel-fighters-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.fighter-corner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-corner {
  justify-content: flex-start;
}

.rival-corner {
  justify-content: flex-end;
}

.fighter-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
}

.fighter-avatar-badge.rival-avatar {
  background: rgba(239, 71, 111, 0.1);
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(239, 71, 111, 0.3);
}

.fighter-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fighter-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fighter-tag.tag-rival {
  color: var(--neon-pink);
}

.fighter-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.fighter-rig {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fighter-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}

.fighter-score-box.text-right {
  margin-left: 0;
  margin-right: 10px;
}

.wins-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 209, 102, 0.2);
  color: var(--neon-gold);
  border: 1px solid var(--neon-gold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.live-score-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-cyan);
}

/* Tug of War in Center */
.duel-vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}

.vs-emblem {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 18px;
  color: var(--neon-gold);
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
}

.tug-of-war-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tug-meter-bar {
  height: 10px;
  background: rgba(239, 71, 111, 0.7);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tug-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #06d6a0);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.tug-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Rival Speech Bubble */
.duel-rival-chat-row {
  display: flex;
  justify-content: center;
}

.rival-chat-speech-bubble {
  background: rgba(239, 71, 111, 0.15);
  border: 1px solid rgba(239, 71, 111, 0.4);
  color: #ffcad4;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  position: relative;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rival-chat-speech-bubble.pop {
  animation: speechPop 0.4s ease-out;
}

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

/* Round Progress */
.duel-round-banner {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.round-title-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.round-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulseNeon 1s infinite alternate;
}

.round-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.round-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
  transition: width 0.1s linear;
}

/* Outcome Banner */
.duel-outcome-banner {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  animation: popIn 0.3s ease-out;
}

.duel-outcome-banner.victory {
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.25), rgba(255, 209, 102, 0.15));
  border: 2px solid var(--neon-green);
  color: #fff;
}

.duel-outcome-banner.defeat {
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.25), rgba(0, 0, 0, 0.4));
  border: 2px solid var(--neon-pink);
  color: #fff;
}

.duel-outcome-banner h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.duel-outcome-banner p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

/* Duel Timer Badge */
.duel-round-timer-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.35);
  animation: pulseNeon 1s infinite alternate;
}

/* Vitals & Energy Gauges */
.fighter-vitals-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.vital-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vital-temp {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.vital-temp.overheating {
  background: rgba(239, 71, 111, 0.2);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  animation: pulseNeon 0.6s infinite alternate;
}

.vital-status.status-stable {
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.vital-status.status-throttled {
  background: rgba(239, 71, 111, 0.25);
  border: 1px solid var(--neon-pink);
  color: #ffcad4;
  animation: pulseNeon 0.5s infinite alternate;
}

.vital-status.status-shielded {
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.vital-status.status-disrupted {
  background: rgba(255, 209, 102, 0.2);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
}

.fighter-energy-bar-wrap {
  margin-top: 6px;
  width: 100%;
}

.energy-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.energy-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), #00c3ff);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  transition: width 0.2s ease-out;
}

.energy-bar-fill.rival-energy {
  background: linear-gradient(90deg, var(--neon-pink), #ff758f);
  box-shadow: 0 0 8px rgba(239, 71, 111, 0.6);
}

.energy-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* Tactical Battle Deck (Attack vs Defense) */
.duel-tactics-deck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .duel-tactics-deck-grid {
    grid-template-columns: 1fr;
  }
}

.tactics-column {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.tactics-column-attack {
  border: 1px solid rgba(239, 71, 111, 0.25);
  box-shadow: inset 0 0 15px rgba(239, 71, 111, 0.05);
}

.tactics-column-defense {
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.tactics-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tactics-col-header strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.tactics-col-header small {
  font-size: 10px;
  color: var(--text-muted);
}

.tactics-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-tactic {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: right;
  width: 100%;
}

.btn-tactic.tactic-attack:hover:not(:disabled) {
  border-color: var(--neon-pink);
  background: rgba(239, 71, 111, 0.12);
  box-shadow: 0 0 15px rgba(239, 71, 111, 0.25);
  transform: translateX(-3px);
}

.btn-tactic.tactic-defense:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: translateX(-3px);
}

.btn-tactic:disabled {
  opacity: 0.35;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

.tactic-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cost-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 209, 102, 0.15);
  color: var(--neon-gold);
  border: 1px solid rgba(255, 209, 102, 0.35);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.tactic-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tactic-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tactic-info strong {
  font-size: 12px;
}

.tactic-info small {
  font-size: 10px;
  color: var(--text-muted);
}

/* Commentary Box */
.duel-commentary-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.commentary-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.commentary-stream {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.commentary-row {
  font-size: 12px;
  line-height: 1.4;
  color: #ccc;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.commentary-row .time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 6px;
}

.commentary-row.cyan { color: var(--neon-cyan); font-weight: 700; }
.commentary-row.gold { color: var(--neon-gold); font-weight: 700; }
.commentary-row.green { color: var(--neon-green); font-weight: 700; }
.commentary-row.danger { color: var(--neon-pink); font-weight: 700; }

.duel-stage-footer {
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   ACTIVE BUILD TELEMETRY STRIP (مؤشرات التجميعة المحددة في منضدة العمل)
   ========================================================================== */
.active-build-telemetry-strip {
  margin-bottom: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(14, 21, 32, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.build-telemetry-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-badge-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulseNeon 1.5s infinite alternate;
}

.telemetry-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.telemetry-build-name {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.build-telemetry-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.build-metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.build-metric-pill:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.06);
  transform: translateY(-1px);
}

.build-metric-pill .icon {
  font-size: 16px;
}

.build-metric-pill .label {
  font-size: 11px;
  color: var(--text-muted);
}

.build-metric-pill .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

/* ==========================================================================
   TOURNAMENT BUILD SELECTION MODAL
   ========================================================================== */
.tourney-target-summary-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tourney-builds-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
}

.tourney-build-select-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.tourney-build-select-card:hover:not(.disabled) {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}

.tourney-build-select-card.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.tourney-build-select-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.build-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.build-card-header-row h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.build-card-score-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--neon-gold);
}

.build-card-specs-list {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.build-card-status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  font-size: 11px;
}

/* =============================================
   STARTER GIFT MODAL - Welcome new player
   ============================================= */
#starterGiftModal.game-modal {
  z-index: 99999 !important;
  animation: starterGiftFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#starterGiftModal .modal-dialog {
  animation: starterGiftSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

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

/* Gold shimmer effect on the gift icon */
#starterGiftModal .modal-dialog > div:first-child > div:first-child {
  animation: giftBounce 1.2s ease-in-out infinite alternate;
}

@keyframes giftBounce {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-8px) rotate(3deg); }
}

/* Gold border pulse */
#starterGiftModal .modal-dialog {
  animation: giftBorderPulse 2.5s ease-in-out infinite alternate,
             starterGiftSlideUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes giftBorderPulse {
  from { box-shadow: 0 0 60px rgba(234, 179, 8, 0.3); }
  to   { box-shadow: 0 0 80px rgba(234, 179, 8, 0.6), 0 0 120px rgba(234, 179, 8, 0.2); }
}






/* CyberWar CSS placeholder - see below */


/* ═══════════════════════════════════════════════════════
   CYBERWAR SYSTEM - الحرب السيبرانية
   ═══════════════════════════════════════════════════════ */

.cw-nav-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(15,23,42,0.8)) !important;
  border-color: rgba(239,68,68,0.4) !important;
}
.cw-nav-btn:hover, .cw-nav-btn.active {
  background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(15,23,42,0.9)) !important;
  border-color: rgba(239,68,68,0.8) !important;
  box-shadow: 0 0 20px rgba(239,68,68,0.3) !important;
}
.cw-nav-icon { font-size: 20px; }
.cw-nav-pulse {
  position: absolute; top:6px; right:6px;
  width:8px; height:8px; border-radius:50%;
  background:#ef4444; box-shadow:0 0 6px #ef4444;
  animation: pulseGreen 1.2s infinite;
}

.cw-page-header {
  position:relative; overflow:hidden;
  border-radius:var(--radius-md); margin-bottom:20px; min-height:120px;
}
.cw-page-header-bg {
  position:absolute; inset:0;
  background:linear-gradient(135deg,#0a0014 0%,#14001a 40%,#001014 100%);
  z-index:0;
}
.cw-page-header-bg::before {
  content:''; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(239,68,68,0.04) 28px, rgba(239,68,68,0.04) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(239,68,68,0.04) 28px, rgba(239,68,68,0.04) 29px);
}
.cw-page-header-content {
  position:relative; z-index:1;
  display:flex; align-items:center; gap:20px; padding:24px 28px;
}
.cw-header-icon {
  font-size:52px;
  filter:drop-shadow(0 0 20px rgba(239,68,68,0.8));
  animation:giftBounce 2s ease-in-out infinite alternate;
  flex-shrink:0;
}
.cw-header-title {
  font-size:26px; font-weight:900;
  background:linear-gradient(135deg,#ef4444,#fbbf24);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  margin:0 0 4px;
}
.cw-header-sub { color:#94a3b8; font-size:13px; margin:0; }
.cw-header-warning {
  margin-left:auto; padding:8px 16px;
  background:rgba(234,179,8,0.12); border:1px solid rgba(234,179,8,0.4);
  border-radius:var(--radius-full); font-size:12px; color:#fbbf24; white-space:nowrap;
}

.cw-main-panel { margin-bottom:20px; padding:20px; }
.cw-main-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start;
}
@media (max-width:900px) { .cw-main-grid { grid-template-columns:1fr; } }
.cw-column { display:flex; flex-direction:column; gap:18px; }
.cw-panel { padding:18px; }
.cw-attack-panel {
  border-color:rgba(239,68,68,0.3) !important;
  background:linear-gradient(145deg,rgba(15,5,5,0.6),rgba(14,21,32,0.9)) !important;
}

.cw-section-title { font-size:15px; font-weight:800; margin:0 0 6px; display:flex; align-items:center; gap:8px; }
.cw-section-sub { font-size:12px; color:var(--text-muted); margin:0 0 14px; }

.cw-status-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.cw-status-card {
  display:flex; align-items:flex-start; gap:12px;
  background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-sm); padding:14px; transition:all 0.2s;
}
.cw-status-card.cw-active  { border-color:rgba(0,255,136,0.4); background:rgba(0,255,136,0.05); }
.cw-status-card.cw-danger  { border-color:rgba(239,68,68,0.4);  background:rgba(239,68,68,0.05); }
.cw-status-card.cw-tool-active { border-color:rgba(239,68,68,0.4); background:rgba(239,68,68,0.05); }
.cw-status-icon { font-size:22px; flex-shrink:0; }
.cw-status-body { flex:1; min-width:0; }
.cw-status-label { font-size:11px; color:var(--text-muted); margin-bottom:2px; }
.cw-status-value { font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cw-status-sub { font-size:11px; margin-top:3px; }
.cw-status-loading { color:var(--text-muted); font-size:13px; padding:20px 0; text-align:center; }

.cw-items-grid { display:flex; flex-direction:column; gap:10px; }
.cw-item-card {
  background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-sm); padding:12px; transition:all 0.2s;
}
.cw-item-card:hover { border-color:rgba(255,255,255,0.18); transform:translateY(-1px); }
.cw-item-card.cw-owned     { border-color:rgba(0,240,255,0.4); background:rgba(0,240,255,0.05); }
.cw-item-card.cw-tool-owned { border-color:rgba(239,68,68,0.5); background:rgba(239,68,68,0.07); }
.cw-item-header { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.cw-item-icon  { font-size:22px; flex-shrink:0; }
.cw-item-name  { font-size:13px; font-weight:700; }
.cw-item-tier  { font-size:10px; color:var(--text-muted); }
.cw-badge-owned {
  margin-left:auto; padding:2px 8px;
  background:rgba(0,240,255,0.15); border:1px solid rgba(0,240,255,0.4);
  border-radius:var(--radius-full); font-size:10px; color:var(--neon-cyan); white-space:nowrap;
}
.cw-badge-tool {
  margin-left:auto; padding:2px 8px;
  background:rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.4);
  border-radius:var(--radius-full); font-size:10px; color:#ef4444; white-space:nowrap;
}
.cw-item-stats { display:flex; gap:12px; margin-bottom:8px; flex-wrap:wrap; }
.cw-stat { display:flex; flex-direction:column; gap:2px; font-size:11px; }
.cw-stat span:first-child { color:var(--text-muted); }
.cw-item-desc { font-size:11px; color:var(--text-muted); line-height:1.5; margin:0 0 10px; }
.cw-attack-types { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:8px; }
.cw-attack-badge {
  padding:2px 7px;
  background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.3);
  border-radius:var(--radius-full); font-size:10px; color:#fca5a5;
}

.cw-target-list { display:flex; flex-direction:column; gap:6px; max-height:320px; overflow-y:auto; }
.cw-target-row {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--radius-sm); cursor:pointer; transition:all 0.15s;
}
.cw-target-row:hover { border-color:rgba(239,68,68,0.4); background:rgba(239,68,68,0.06); }
.cw-target-row.cw-target-selected {
  border-color:#ef4444; background:rgba(239,68,68,0.12);
  box-shadow:0 0 12px rgba(239,68,68,0.2);
}
.cw-target-avatar { font-size:22px; flex-shrink:0; }
.cw-target-info  { flex:1; min-width:0; }
.cw-target-name  { font-size:13px; font-weight:700; }
.cw-target-stats { font-size:11px; color:var(--text-muted); display:flex; gap:10px; margin-top:2px; }
.cw-target-badges { display:flex; flex-direction:column; gap:3px; align-items:flex-end; flex-shrink:0; }
.cw-av-badge { padding:2px 7px; border-radius:var(--radius-full); font-size:10px; white-space:nowrap; }
.cw-av-badge.cw-av-on  { background:rgba(0,255,136,0.1); border:1px solid rgba(0,255,136,0.35); color:#86efac; }
.cw-av-badge.cw-av-off { background:rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.4); color:#fca5a5; }
.cw-target-check { font-size:16px; color:#ef4444; font-weight:900; margin-left:4px; }

.cw-console-box { display:flex; flex-direction:column; gap:10px; }
.cw-console-target, .cw-console-tool {
  display:flex; align-items:center; gap:10px; padding:8px 12px;
  background:rgba(0,0,0,0.3); border-radius:var(--radius-sm); font-size:13px;
}
.cw-console-label { color:var(--text-muted); font-size:12px; white-space:nowrap; }
.cw-console-value { font-weight:700; }

.cw-attack-type-selector { display:flex; flex-direction:column; gap:6px; }
.cw-attack-type-list { display:flex; flex-direction:column; gap:6px; }
.cw-attack-type-btn {
  padding:8px 12px;
  background:rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-sm); cursor:pointer; transition:all 0.15s;
  color:var(--text-primary);
}
.cw-attack-type-btn:hover { border-color:rgba(239,68,68,0.4); background:rgba(239,68,68,0.06); }
.cw-attack-type-btn.cw-attack-type-selected {
  border-color:#ef4444; background:rgba(239,68,68,0.15);
  box-shadow:0 0 10px rgba(239,68,68,0.2);
}
.cw-success-estimate {
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 12px;
  background:rgba(251,191,36,0.08); border:1px solid rgba(251,191,36,0.25);
  border-radius:var(--radius-sm); font-size:13px; color:var(--text-muted);
}

.cw-log-tabs-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.cw-log-tabs, .cw-board-tabs { display:flex; gap:4px; }
.cw-log-tab, .cw-board-tab {
  padding:4px 12px;
  background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-full); font-size:11px; color:var(--text-muted);
  cursor:pointer; transition:all 0.15s; font-family:var(--font-main);
}
.cw-log-tab.active, .cw-board-tab.active {
  background:rgba(239,68,68,0.2); border-color:rgba(239,68,68,0.5); color:#fca5a5;
}

.cw-log-list, .cw-board-list { display:flex; flex-direction:column; gap:6px; max-height:280px; overflow-y:auto; }
.cw-log-entry {
  display:flex; align-items:center; gap:10px; padding:9px 12px;
  border-radius:var(--radius-sm); border:1px solid transparent;
}
.cw-log-entry.cw-log-success { background:rgba(0,255,136,0.05); border-color:rgba(0,255,136,0.15); }
.cw-log-entry.cw-log-fail    { background:rgba(239,68,68,0.05);  border-color:rgba(239,68,68,0.15); }
.cw-log-icon   { font-size:16px; flex-shrink:0; }
.cw-log-info   { flex:1; min-width:0; }
.cw-log-title  { font-size:12px; font-weight:600; }
.cw-log-meta   { font-size:10px; color:var(--text-muted); margin-top:2px; }
.cw-log-amount { font-size:13px; font-weight:800; white-space:nowrap; }

.cw-board-row {
  display:flex; align-items:center; gap:10px; padding:8px 12px;
  background:rgba(0,0,0,0.25); border-radius:var(--radius-sm); font-size:13px;
}
.cw-board-rank   { font-size:16px; width:28px; text-align:center; flex-shrink:0; }
.cw-board-avatar { font-size:18px; flex-shrink:0; }
.cw-board-name   { font-weight:700; flex:1; }
.cw-board-stat   { font-size:11px; color:var(--text-muted); text-align:right; }

.cw-empty { text-align:center; padding:20px; color:var(--text-muted); font-size:13px; }

.btn-danger {
  background:linear-gradient(135deg,#ef4444,#dc2626);
  color:#fff; border:none; font-weight:700;
  box-shadow:0 0 15px rgba(239,68,68,0.35);
}
.btn-danger:hover:not(:disabled) {
  filter:brightness(1.15); box-shadow:0 0 25px rgba(239,68,68,0.55);
  transform:translateY(-1px);
}
.btn-danger:disabled { opacity:0.4; cursor:not-allowed; box-shadow:none; }

/* ══════════════════════════════════════════════════════════════════════════
   DARK WEB TAB - الإنترنت المظلم
   ══════════════════════════════════════════════════════════════════════════ */
.darkweb-nav-btn {
  background: linear-gradient(135deg, rgba(10,0,20,0.9), rgba(20,0,40,0.95)) !important;
  border: 1px solid rgba(139, 0, 255, 0.4) !important;
  color: #c084fc !important;
  position: relative; overflow: hidden;
}
.darkweb-nav-btn::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139,0,255,0.03) 2px, rgba(139,0,255,0.03) 4px);
  pointer-events: none;
}
.darkweb-nav-btn:hover { border-color: rgba(192,132,252,0.8) !important; box-shadow: 0 0 20px rgba(139,0,255,0.5) !important; color: #e879f9 !important; }
.darkweb-nav-btn.active { background: linear-gradient(135deg,#1a0030,#2d0060) !important; border-color: #c084fc !important; box-shadow: 0 0 30px rgba(139,0,255,0.7) !important; color: #f0abfc !important; }
.dw-nav-icon { font-size: 18px; }
.dw-nav-pulse { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 8px #c084fc; animation: dw-pulse 1.5s ease-in-out infinite; }
@keyframes dw-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }
#tabView_darkweb { background: #000000 !important; position: relative; overflow: hidden; min-height: calc(100vh - 120px); font-family: 'JetBrains Mono','Courier New',monospace; color: #00ff41; }
.dw-matrix-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.18; pointer-events: none; }
.dw-tor-header { position: relative; z-index: 2; }
.dw-tor-browser-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #1a1a1a; border-bottom: 1px solid #333; }
.dw-traffic-lights { display: flex; gap: 6px; align-items: center; }
.dw-light { width: 12px; height: 12px; border-radius: 50%; }
.dw-light.dw-red    { background: #ff5f57; box-shadow: 0 0 4px #ff5f57; }
.dw-light.dw-yellow { background: #febc2e; box-shadow: 0 0 4px #febc2e; }
.dw-light.dw-green  { background: #28c840; box-shadow: 0 0 4px #28c840; }
.dw-address-bar { flex: 1; display: flex; align-items: center; gap: 8px; background: #111; border: 1px solid #333; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #00ff41; }
.dw-tor-icon { font-size: 14px; }
.dw-url-text { color: #9ca3af; font-size: 11px; }
.dw-ssl-badge { background: #7c3aed; color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; font-weight: 700; letter-spacing: 0.5px; }
.dw-connection-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6b7280; }
.dw-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dw-dot-green { background: #00ff41; box-shadow: 0 0 6px #00ff41; animation: dw-pulse 2s infinite; }
.dw-warning-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: linear-gradient(90deg,rgba(255,0,0,0.08),rgba(255,160,0,0.08),rgba(255,0,0,0.08)); border-bottom: 1px solid rgba(255,100,0,0.3); font-size: 11px; color: #f59e0b; letter-spacing: 0.5px; }
.dw-warn-icon { font-size: 14px; }
.dw-main-content { position: relative; z-index: 2; display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 600px; }
.dw-sidebar { background: rgba(0,0,0,0.85); border-right: 1px solid rgba(0,255,65,0.2); padding: 12px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.dw-sidebar-panel { border: 1px solid rgba(0,255,65,0.2); border-radius: 4px; overflow: hidden; }
.dw-sidebar-title { background: rgba(0,255,65,0.08); padding: 6px 10px; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #4ade80; border-bottom: 1px solid rgba(0,255,65,0.2); }
.dw-category-list { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.dw-cat-btn { width: 100%; text-align: right; background: transparent; border: 1px solid transparent; border-radius: 3px; padding: 7px 10px; font-size: 12px; color: #6b7280; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.dw-cat-btn:hover { color: #00ff41; background: rgba(0,255,65,0.08); border-color: rgba(0,255,65,0.3); }
.dw-cat-btn.active { color: #000; background: #00ff41; border-color: #00ff41; font-weight: 700; }
.dw-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 11px; color: #6b7280; border-bottom: 1px solid rgba(0,255,65,0.08); }
.dw-stat-row:last-child { border-bottom: none; }
.dw-stat-val { font-weight: 700; color: #9ca3af; font-size: 12px; }
.dw-stat-val.dw-green { color: #00ff41; }
.dw-stat-val.dw-red   { color: #ef4444; }
.dw-stat-val.dw-gold  { color: #facc15; }
.dw-owned-tools-panel { flex: 1; }
.dw-owned-tool-pill { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; font-size: 12px; color: #00ff41; background: rgba(0,255,65,0.06); border-radius: 4px; margin: 6px; }
.dw-owned-power { font-size: 10px; color: #4ade80; font-weight: 700; }
.dw-empty-msg { padding: 10px; font-size: 11px; color: #374151; text-align: center; }
.dw-market-area { display: flex; flex-direction: column; background: rgba(0,0,0,0.6); overflow-y: auto; padding: 16px; transition: filter 0.3s; }
@keyframes dw-glitch { 0%{filter:hue-rotate(0deg) brightness(1)} 15%{filter:hue-rotate(90deg) brightness(2);transform:skewX(2deg)} 30%{filter:hue-rotate(0deg) brightness(1);transform:skewX(0)} 45%{filter:hue-rotate(180deg) brightness(1.5);transform:skewX(-1deg)} 60%{filter:hue-rotate(0deg) brightness(1);transform:skewX(0)} 100%{filter:none} }
.dw-market-area.dw-glitch-flash { animation: dw-glitch 0.6s ease; }
.dw-market-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(0,255,65,0.2); }
.dw-market-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dw-skull-icon { font-size: 28px; }
.dw-market-title { font-size: 20px; font-weight: 900; color: #00ff41; text-shadow: 0 0 20px rgba(0,255,65,0.5); font-family: 'Orbitron',sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.dw-market-badge { background: rgba(0,255,65,0.1); border: 1px solid rgba(0,255,65,0.4); color: #4ade80; font-size: 10px; padding: 2px 8px; border-radius: 3px; letter-spacing: 1px; font-weight: 700; }
.dw-market-sub { color: #374151; font-size: 12px; margin-top: 4px; }
.dw-tools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; flex: 1; }
.dw-loading { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px; color: #00ff41; font-size: 14px; }
.dw-spinner { width: 24px; height: 24px; border: 2px solid rgba(0,255,65,0.2); border-top-color: #00ff41; border-radius: 50%; animation: spin 0.8s linear infinite; }
.dw-tool-card { --dw-tier-color: #4ade80; position: relative; background: rgba(0,8,0,0.85); border: 1px solid rgba(0,255,65,0.2); border-radius: 6px; overflow: hidden; transition: border-color 0.3s,box-shadow 0.3s,transform 0.2s; }
.dw-tool-card:hover { border-color: var(--dw-tier-color); box-shadow: 0 0 20px rgba(0,255,65,0.2),inset 0 0 20px rgba(0,255,65,0.04); transform: translateY(-2px); }
.dw-tool-card.dw-tool-owned { border-color: var(--dw-tier-color); box-shadow: 0 0 15px rgba(0,255,65,0.2); }
.dw-tool-tier-stripe { height: 3px; background: var(--dw-tier-color); box-shadow: 0 0 10px var(--dw-tier-color); }
.dw-tool-card::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.15) 2px,rgba(0,0,0,0.15) 4px); pointer-events: none; z-index: 0; }
.dw-tool-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.dw-tool-icon { font-size: 28px; flex-shrink: 0; }
.dw-tool-meta { flex: 1; }
.dw-tool-tier-badge { font-size: 9px; font-weight: 900; letter-spacing: 2px; color: var(--dw-tier-color); display: block; margin-bottom: 2px; }
.dw-tool-name { font-size: 13px; font-weight: 700; color: #e2e8f0; margin: 0; }
.dw-tool-equipped { font-size: 10px; color: #00ff41; font-weight: 700; background: rgba(0,255,65,0.1); border: 1px solid rgba(0,255,65,0.4); padding: 2px 6px; border-radius: 3px; }
.dw-tool-desc { position: relative; z-index: 1; padding: 0 14px 8px; font-size: 11px; color: #4b5563; line-height: 1.5; }
.dw-tool-stats { position: relative; z-index: 1; padding: 0 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.dw-tool-stat { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.dw-stat-label { color: #374151; letter-spacing: 1px; font-weight: 700; width: 42px; flex-shrink: 0; }
.dw-stat-text { color: #6b7280; font-size: 10px; }
.dw-stat-num  { color: var(--dw-tier-color); font-weight: 700; font-size: 11px; margin-right: 4px; }
.dw-power-bar { flex: 1; height: 5px; background: rgba(0,255,65,0.1); border-radius: 2px; overflow: hidden; }
.dw-power-fill { height: 100%; background: var(--dw-tier-color); box-shadow: 0 0 6px var(--dw-tier-color); border-radius: 2px; transition: width 0.8s ease; }
.dw-tool-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 12px; border-top: 1px solid rgba(0,255,65,0.1); }
.dw-tool-price { font-size: 16px; font-weight: 900; color: #00ff41; font-family: 'Orbitron',monospace; }
.dw-btc { color: #facc15; margin-left: 2px; }
.dw-btn { padding: 7px 14px; font-size: 11px; font-weight: 700; border-radius: 4px; cursor: pointer; transition: all 0.2s; font-family: inherit; border: 1px solid; }
.dw-btn-buy { background: rgba(0,255,65,0.1); color: #00ff41; border-color: rgba(0,255,65,0.4); }
.dw-btn-buy:hover:not(:disabled) { background: #00ff41; color: #000; box-shadow: 0 0 20px rgba(0,255,65,0.6); }
.dw-btn-owned { background: rgba(0,255,65,0.05); color: #4b5563; border-color: rgba(0,255,65,0.1); cursor: not-allowed; }
.dw-btn-broke { background: rgba(239,68,68,0.08); color: #ef4444; border-color: rgba(239,68,68,0.3); }
.dw-btn:disabled { cursor: not-allowed; }
.dw-disclaimer { margin-top: 20px; padding: 10px 14px; border: 1px solid rgba(0,255,65,0.1); border-radius: 4px; font-size: 10px; color: #1f2937; text-align: center; background: rgba(0,255,65,0.02); letter-spacing: 0.5px; }
.security-av-card { border-top: 3px solid #00ff96 !important; }
.security-av-card:hover { box-shadow: 0 0 20px rgba(0,255,150,0.2) !important; }
.store-cat-security { background: rgba(0,255,150,0.06) !important; border: 1px solid rgba(0,255,150,0.3) !important; color: #00ff96 !important; }
.store-cat-security.active { background: linear-gradient(135deg,#00ff96,#00cc78) !important; color: #000 !important; }
@media (max-width:900px) {
  .dw-main-content { grid-template-columns: 1fr; }
  .dw-sidebar { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid rgba(0,255,65,0.2); }
  .dw-sidebar-panel { flex: 1; min-width: 140px; }
  .dw-tools-grid { grid-template-columns: 1fr; }
}

/* ================= CYBER EXPLOIT INSTALLER (WORKBENCH REALISM) ================= */
.wb-cyber-installer-bay {
  background: linear-gradient(135deg, rgba(3, 14, 8, 0.9), rgba(6, 24, 14, 0.85));
  border: 1px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.08), inset 0 0 15px rgba(0, 255, 65, 0.03);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.wb-cyber-installer-bay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #00ff41, transparent);
}
.wb-cyber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}
.wb-cyber-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #00ff41;
  letter-spacing: 0.5px;
}
.wb-cyber-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.wb-cyber-badge-armed {
  background: rgba(0, 255, 65, 0.15);
  color: #00ff41;
  border: 1px solid rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
.wb-cyber-badge-empty {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.wb-cyber-tools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wb-cyber-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 6px;
  transition: all 0.2s;
}
.wb-cyber-tool-item:hover {
  border-color: rgba(0, 255, 65, 0.4);
  background: rgba(0, 20, 10, 0.6);
}
.wb-cyber-tool-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wb-cyber-tool-icon {
  font-size: 24px;
}
.wb-cyber-tool-name {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}
.wb-cyber-tool-meta {
  font-size: 11px;
  color: #8892b0;
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.wb-cyber-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal for Realistic Installation Terminal */
.cyber-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cyber-terminal-card {
  width: 100%;
  max-width: 660px;
  background: #050a07;
  border: 1px solid #00ff41;
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.25), inset 0 0 25px rgba(0, 255, 65, 0.05);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  font-family: 'Consolas', 'Courier New', monospace;
  direction: ltr;
  text-align: left;
}
.cyber-terminal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.3) 2px, rgba(0, 0, 0, 0.3) 4px);
  pointer-events: none;
  z-index: 5;
}
.cyber-terminal-header {
  background: #021a0a;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cyber-terminal-dots {
  display: flex;
  gap: 6px;
}
.cyber-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.cyber-dot-red { background: #ef4444; }
.cyber-dot-yellow { background: #eab308; }
.cyber-dot-green { background: #22c55e; }
.cyber-terminal-title {
  color: #00ff41;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.cyber-device-spec-bar {
  background: rgba(0, 255, 65, 0.05);
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
  padding: 8px 16px;
  font-size: 11px;
  color: #a3e635;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cyber-terminal-screen {
  padding: 16px;
  height: 220px;
  overflow-y: auto;
  font-size: 12px;
  color: #00ff41;
  line-height: 1.6;
  background: #030805;
}
.cyber-terminal-screen p {
  margin: 0 0 6px 0;
}
.cyber-term-prefix {
  color: #38bdf8;
  font-weight: 700;
}
.cyber-term-success {
  color: #4ade80;
  font-weight: 700;
}
.cyber-term-alert {
  color: #facc15;
}
.cyber-terminal-progress-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  background: #021a0a;
}
.cyber-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #00ff41;
  margin-bottom: 6px;
}
.cyber-progress-track {
  height: 8px;
  background: rgba(0, 255, 65, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.cyber-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff41, #38bdf8);
  box-shadow: 0 0 10px #00ff41;
  transition: width 0.3s ease;
}
.cyber-terminal-footer {
  padding: 12px 16px;
  background: #050a07;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   CUSTOM IN-GAME DIALOG SYSTEM (Cyberpunk Gaming Confirm / Alert)
   ========================================================================== */
#gameCustomDialogModal.game-modal {
  z-index: 999999 !important;
}

.custom-dialog-dialog {
  max-width: 500px !important;
  background: linear-gradient(180deg, #0e1726 0%, #060a12 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 240, 255, 0.25) !important;
  position: relative;
  overflow: hidden;
  animation: customDialogSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.custom-dialog-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #7000ff, #00ff41);
  opacity: 0.9;
}

.custom-dialog-dialog[data-dialog-type="danger"] {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(239, 68, 68, 0.3) !important;
}
.custom-dialog-dialog[data-dialog-type="danger"]::before {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.custom-dialog-dialog[data-dialog-type="green"] {
  border-color: rgba(0, 255, 65, 0.55) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 255, 65, 0.3) !important;
}
.custom-dialog-dialog[data-dialog-type="green"]::before {
  background: linear-gradient(90deg, #00ff41, #10b981);
}

.custom-dialog-dialog[data-dialog-type="warning"] {
  border-color: rgba(245, 158, 11, 0.55) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.3) !important;
}
.custom-dialog-dialog[data-dialog-type="warning"]::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.custom-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.custom-dialog-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  flex-shrink: 0;
}

.custom-dialog-dialog[data-dialog-type="danger"] .custom-dialog-icon-badge {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.custom-dialog-dialog[data-dialog-type="green"] .custom-dialog-icon-badge {
  background: rgba(0, 255, 65, 0.15);
  border-color: rgba(0, 255, 65, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.25);
}

.custom-dialog-dialog[data-dialog-type="warning"] .custom-dialog-icon-badge {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.custom-dialog-message-box {
  font-size: 13.5px;
  line-height: 1.8;
  color: #cbd5e1;
  white-space: pre-line;
  background: rgba(0, 0, 0, 0.28);
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.custom-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}


