/**
 * BLOOD CAFÉ - ULTIMATE GAMING AESTHETIC
 * Professional dark theme with cyber accents - NO ANIMATIONS
 * Built: November 16, 2025
 */

/* ========================================
   CSS VARIABLES - GAMING COLOR SYSTEM
   ======================================== */
:root {
  /* Background colors */
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1419;
  --bg-card: #151b26;
  --bg-card-hover: #1a2130;
  --bg-input: #0d1117;

  /* Neon accent colors */
  --neon-blue: #00d9ff;
  --neon-cyan: #00ffff;
  --neon-purple: #a855f7;
  --neon-magenta: #ff00ff;
  --cyber-purple: #7c3aed;
  --blood-red: #ff0033;
  --electric-blue: #0080ff;

  /* UI colors */
  --text-primary: #ffffff;
  --text-secondary: #b8c5db;
  --text-muted: #6b7a94;
  --border: rgba(0, 217, 255, 0.15);
  --border-bright: rgba(0, 217, 255, 0.4);

  /* Status colors */
  --success: #00ff88;
  --warning: #ffaa00;
  --danger: #ff0033;
  --info: #00d9ff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #00d9ff 100%);
  --gradient-secondary: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
  --gradient-danger: linear-gradient(135deg, #ff0033 0%, #cc0000 100%);
  --gradient-success: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 20px rgba(0, 217, 255, 0.3), 0 0 40px rgba(0, 217, 255, 0.1);
  --shadow-purple: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* CRITICAL: NO animations or transitions */
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

html {
  scroll-behavior: auto !important;
}

body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-primary);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Rajdhani', 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY - GAMING STYLE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

h1 {
  font-size: 42px;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

h2 {
  font-size: 32px;
  color: var(--neon-blue);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

h3 {
  font-size: 24px;
  color: var(--text-primary);
}

h4 {
  font-size: 20px;
  color: var(--text-secondary);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ========================================
   LAYOUT - PROFESSIONAL SPACING
   ======================================== */
.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-xl);
}

main {
  display: grid;
  gap: var(--space-xl);
}

/* ========================================
   HEADER & NAVIGATION - BADASS DESIGN
   ======================================== */
.header {
  background: rgba(15, 20, 25, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
              0 0 1px rgba(0, 217, 255, 0.3);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: var(--space-2xl);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.brand .h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: inherit;
  margin: 0;
}

.badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.nav {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

/* ========================================
   BUTTONS - GAMING AESTHETIC
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
  /* NO animations */
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.btn::before,
.btn::after {
  display: none !important;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md), var(--shadow-neon);
  color: var(--neon-blue);
}

.btn:active {
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: var(--gradient-primary);
  border: 1px solid var(--neon-purple);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-purple);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-purple), 0 0 30px rgba(124, 58, 237, 0.4);
  border-color: var(--neon-purple);
  color: white;
}

.btn-success {
  background: var(--gradient-success);
  border: 1px solid var(--success);
  color: #000;
  font-weight: 800;
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 136, 0.5);
  color: #000;
}

.btn-danger {
  background: var(--gradient-danger);
  border: 1px solid var(--danger);
  color: white;
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 0, 51, 0.3);
}

.btn-danger:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 0, 51, 0.5);
  color: white;
}

.btn-logout {
  background: var(--gradient-danger);
  border: 1px solid var(--danger);
  color: white;
  font-weight: 700;
}

.btn-logout:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 0, 51, 0.5);
  transform: translateY(-2px);
}

/* ========================================
   CARDS & PANELS - GLASSMORPHISM
   ======================================== */
.panel, .card {
  background: rgba(21, 27, 38, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.panel:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
}

/* Section titles */
.section-title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--neon-blue);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ========================================
   FORMS & INPUTS - CYBER STYLE
   ======================================== */
.input, input[type="text"], input[type="number"], input[type="password"],
input[type="email"], textarea, select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  /* NO animations */
  transition: none !important;
  transform: none !important;
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 217, 255, 0.1);
  outline: none;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d9ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ========================================
   GRIDS - RESPONSIVE LAYOUT
   ======================================== */
.grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-characters {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.row {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: var(--space-lg);
}

/* ========================================
   CHARACTER CARDS - EPIC DESIGN
   ======================================== */
.char {
  background: rgba(21, 27, 38, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.char:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: var(--shadow-md), var(--shadow-neon);
  background: rgba(0, 217, 255, 0.05);
}

.char.active {
  background: var(--gradient-primary);
  border-color: var(--neon-purple);
  color: white;
  box-shadow: var(--shadow-lg), var(--shadow-purple);
}

/* ========================================
   SLOT CARDS - ORGANIZED & CLEAN
   ======================================== */
.slot-card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.slot-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.slot-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-blue);
}

.badge-s {
  background: rgba(0, 217, 255, 0.15);
  color: var(--neon-blue);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.5px;
}

/* ========================================
   TABS - MODERN DESIGN
   ======================================== */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-sm);
}

.tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  bottom: -2px;
}

.tab:hover {
  color: var(--neon-blue);
  border-bottom-color: rgba(0, 217, 255, 0.3);
}

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

/* ========================================
   PILLS & BADGES - STATUS INDICATORS
   ======================================== */
.pill {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--neon-purple);
}

/* ========================================
   NOTICES & ALERTS
   ======================================== */
.notice {
  background: rgba(0, 217, 255, 0.08);
  border-left: 4px solid var(--neon-blue);
  padding: var(--space-md);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: rgba(21, 27, 38, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  color: var(--text-primary);
  font-weight: 600;
  max-width: 400px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  border-color: var(--success);
  color: var(--success);
}

.toast.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
  border-color: var(--danger);
  color: var(--danger);
}

/* ========================================
   LISTS - BUILD CARDS
   ======================================== */
.list {
  display: grid;
  gap: var(--space-md);
}

.build-card {
  background: rgba(21, 27, 38, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.build-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 217, 255, 0.1);
}

.build-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.build-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.build-card-creator {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.build-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Star Rating System */
.build-card-rating {
  display: flex;
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating .star {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  text-shadow: none;
}

.star-rating .star:hover,
.star-rating .star.filled {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.star-rating .star:hover ~ .star {
  color: var(--text-muted);
  text-shadow: none;
}

.star-rating:hover .star {
  color: var(--text-muted);
  text-shadow: none;
}

.star-rating:hover .star:hover,
.star-rating:hover .star:hover ~ .star.filled,
.star-rating .star:hover ~ .star:hover {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.star-rating:hover .star:hover ~ .star {
  color: var(--text-muted);
  text-shadow: none;
}

/* Hover preview for star ratings */
.star-rating:hover .star:nth-child(1):hover ~ .star,
.star-rating:hover .star:nth-child(2):hover ~ .star:not(:nth-child(-n+2)),
.star-rating:hover .star:nth-child(3):hover ~ .star:not(:nth-child(-n+3)),
.star-rating:hover .star:nth-child(4):hover ~ .star:not(:nth-child(-n+4)) {
  color: var(--text-muted);
}

.star-rating:hover .star:nth-child(1):hover,
.star-rating:hover .star:nth-child(2):hover,
.star-rating:hover .star:nth-child(2):hover ~ .star:nth-child(-n+2),
.star-rating:hover .star:nth-child(3):hover,
.star-rating:hover .star:nth-child(3):hover ~ .star:nth-child(-n+3),
.star-rating:hover .star:nth-child(4):hover,
.star-rating:hover .star:nth-child(4):hover ~ .star:nth-child(-n+4),
.star-rating:hover .star:nth-child(5):hover {
  color: #fbbf24;
}

/* Rating score display */
.rating-score {
  margin-left: var(--space-md);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-score .score-value {
  color: #fbbf24;
  font-weight: 700;
  font-size: 16px;
}

.rating-score .vote-count {
  color: var(--text-muted);
  font-size: 12px;
}

/* Tag badges */
.tag-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-badge.tag-pvp {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tag-badge.tag-pve {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-badge.tag-hybrid {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-nav {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  height: auto !important;
  max-height: none !important;
  background: rgba(15, 20, 25, 0.98);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  padding: 4px 4px env(safe-area-inset-bottom, 4px) 4px !important;
  z-index: 1000;
  overflow: hidden;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-around !important;
  gap: 2px;
  padding: 0 4px;
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px;
  padding: 6px 4px !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 72px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  border-radius: 6px;
  transition: all 0.15s ease;
  overflow: hidden;
  border: none;
  background: none;
  cursor: pointer;
}

/* Menu button highlight */
.mobile-menu-btn {
  color: var(--neon-blue, #00d9ff) !important;
}

/* ========================================
   FULL-SCREEN MOBILE MENU OVERLAY
   ======================================== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 20, 0.98);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-menu-overlay.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  font-family: 'Rajdhani', sans-serif;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.mobile-menu-close:active {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  flex: 1;
  align-content: start;
}

.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #c9d1d9;
  transition: all 0.15s ease;
  min-height: 72px;
}

.mobile-menu-item:active {
  background: rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.4);
  transform: scale(0.97);
}

.mobile-menu-item.active {
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.5);
  color: #00d9ff;
}

.mobile-menu-item.logout {
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

.mobile-menu-item.logout:active {
  background: rgba(255, 107, 107, 0.15);
}

.mobile-menu-icon {
  font-size: 24px;
  line-height: 1;
}

.mobile-menu-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--neon-blue);
  background: rgba(0, 217, 255, 0.15);
}

.mobile-nav-item .icon {
  font-size: 16px;
  line-height: 1;
}

.mobile-nav-item .label {
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 9px;
}

.mobile-nav-item.logout {
  color: #ff6b6b;
}

.mobile-nav-item.logout:hover,
.mobile-nav-item.logout.active {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */
@media (max-width: 768px) {
  :root {
    --space-xl: 20px;
    --space-2xl: 32px;
  }

  .wrap {
    padding: var(--space-lg);
  }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .header .wrap {
    padding: var(--space-md);
  }

  .brand {
    font-size: 22px;
  }

  .nav {
    display: none;
  }

  .mobile-nav {
    display: block !important;
  }

  body {
    padding-bottom: 72px !important;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .grid-characters {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
  }

  .char {
    padding: var(--space-md) var(--space-sm);
    font-size: 11px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }

/* ========================================
   SPHERE AUTOCOMPLETE DROPDOWN
   ======================================== */
.sphere-autocomplete-container {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
}

.sphere-suggestions {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  border: 2px solid #00d9ff;
  border-radius: 12px;
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
  pointer-events: auto;

  /* Multi-layer shadows */
  box-shadow:
    0 0 1px rgba(0, 217, 255, 0.8),
    0 0 20px rgba(0, 217, 255, 0.4),
    0 0 40px rgba(0, 217, 255, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.8);
}

.sphere-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.sphere-suggestion-item:last-child {
  margin-bottom: 0;
}

.sphere-suggestion-item:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.3),
    0 0 20px rgba(0, 217, 255, 0.15);
}

.sphere-suggestion-color {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sphere-suggestion-text {
  flex: 1;
  min-width: 0;
}

.sphere-suggestion-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.sphere-suggestion-category {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom scrollbar for suggestions */
.sphere-suggestions::-webkit-scrollbar {
  width: 8px;
}

.sphere-suggestions::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.sphere-suggestions::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
  border-radius: 4px;
  border: 1px solid rgba(0, 217, 255, 0.5);
}

.sphere-suggestions::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00ffff 0%, #00d9ff 100%);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ========================================
   TOOLTIP SYSTEM - HELPFUL TIPS
   ======================================== */
[data-tip] {
  position: relative;
  cursor: help;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(10, 15, 25, 0.98);
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 280px;
  white-space: normal;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
  margin-bottom: 8px;
}

[data-tip]:hover::after {
  opacity: 1;
  visibility: visible;
}

[data-tip]::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--neon-blue);
  margin-bottom: 2px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}

[data-tip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Tip position variants */
[data-tip-pos="bottom"]::after {
  bottom: auto;
  top: 100%;
  margin-top: 8px;
  margin-bottom: 0;
}

[data-tip-pos="bottom"]::before {
  bottom: auto;
  top: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--neon-blue);
  margin-top: 2px;
  margin-bottom: 0;
}

[data-tip-pos="left"]::after {
  left: auto;
  right: 100%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 8px;
  margin-bottom: 0;
}

[data-tip-pos="left"]::before {
  left: auto;
  right: 100%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-left-color: var(--neon-blue);
  margin-right: 2px;
  margin-bottom: 0;
}

[data-tip-pos="right"]::after {
  left: 100%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  margin-bottom: 0;
}

[data-tip-pos="right"]::before {
  left: 100%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-right-color: var(--neon-blue);
  margin-left: 2px;
  margin-bottom: 0;
}

/* Hide tooltips on mobile */
@media (max-width: 768px) {
  [data-tip]::after,
  [data-tip]::before {
    display: none;
  }
}

/* ========================================
   GLOBAL OVERRIDES - NO ANIMATIONS
   ======================================== */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

/* ========================================
   SCROLL PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* GPU acceleration for fixed/sticky elements */
.header,
.mobile-nav,
.toast,
#synergyPanel,
#compareFloatingBtn {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Disable expensive backdrop-filter on scroll-heavy elements */
@media (max-width: 1024px) {
  .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 20, 25, 0.98) !important;
  }

  .panel, .card, .build-card, .char {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 20, 25, 0.99) !important;
  }
}

/* Remove background-attachment: fixed on mobile (causes jank) */
@media (max-width: 1024px) {
  body {
    background-attachment: scroll !important;
  }
}

/* Simplify shadows for better scroll performance */
@media (max-width: 768px) {
  .panel, .card, .build-card, .slot-card, .char {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  }

  .panel:hover, .card:hover, .build-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  }

  .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  }

  /* Disable neon glow effects on mobile */
  .char:hover, .char.active,
  .btn:hover, .btn-primary, .btn-success, .btn-danger {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  }
}

/* Reduce paint areas during scroll */
.header {
  contain: layout style;
}

.mobile-nav {
  contain: layout style;
}
