/* ============================================
   Deadlock Stats Analyzer — Premium Dashboard
   Redesigned for big-data digestibility
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Ultra-Premium Dark Theme */
  --bg-primary: #02040a;
  --bg-secondary: #090e17;
  --bg-tertiary: #111827;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(9, 14, 23, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  /* Neon Accents */
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.6);
  --accent-gold-dim: rgba(245, 158, 11, 0.15);

  --team-0: #f59e0b;
  --team-0-glow: rgba(245, 158, 11, 0.4);
  --team-0-bg: rgba(245, 158, 11, 0.12);
  --team0-color: var(--team-0);

  --team-1: #8b5cf6;
  --team-1-glow: rgba(139, 92, 246, 0.4);
  --team-1-bg: rgba(139, 92, 246, 0.12);
  --team1-color: var(--team-1);

  --personal: #a855f7;
  --personal-glow: rgba(168, 85, 247, 0.4);
  --personal-dim: rgba(168, 85, 247, 0.12);

  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-header: 'Outfit', var(--font-sans);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Upgraded Shadows */
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow-amber: 0 0 40px rgba(245, 158, 11, 0.25);
  --shadow-glow-sapphire: 0 0 40px rgba(139, 92, 246, 0.25);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
}

/* ============================================
   RESET & GLOBAL
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at top left, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at center, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.sidebar {
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  overflow-y: hidden;
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border-glass);
  margin-right: 0.25rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-container:hover {
  opacity: 0.85;
}

.logo-container:active {
  transform: scale(0.98);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--accent-gold), #d97706, #b45309);
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 0 20px var(--accent-gold-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 15px var(--accent-gold-glow); }
  50% { box-shadow: 0 0 25px var(--accent-gold-glow), 0 0 40px rgba(245, 158, 11, 0.1); }
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.logo-badge {
  display: none;
}

/* Search Command Bar */
.search-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

.search-label { display: none; }

.input-group {
  position: relative;
  display: flex;
  min-width: 180px;
}

.search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow), 0 0 20px rgba(245, 158, 11, 0.08);
  background: var(--bg-elevated);
}

.btn-search {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-search:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
}

/* Nav Buttons */
.btn-trends {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  position: relative;
}

.btn-trends:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-trends.active {
  color: var(--personal);
  background: var(--personal-dim);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.08);
}

.btn-trends.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--personal);
  border-radius: 2px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-glass);
}

.settings-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.settings-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .main-content { padding: 1rem; }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  gap: 1.25rem;
  min-height: 400px;
}

.empty-icon {
  font-size: 4rem;
  animation: emptyPulse 3s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { opacity: 0.5; transform: scale(1) translateY(0); }
  50% { opacity: 0.9; transform: scale(1.05) translateY(-4px); }
}

.empty-title {
  font-size: 1.75rem;
  color: var(--text-primary);
}

.empty-desc {
  color: var(--text-secondary);
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   DASHBOARD HEADER — Outcome Banner
   ============================================ */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

/* Ambient gradient glow behind header — set dynamically via JS */
.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.dashboard-header.amber-win::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.dashboard-header.sapphire-win::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

.dashboard-header > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .dashboard-header { flex-direction: column; align-items: flex-start; }
}

.header-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.match-title {
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.match-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.subtitle-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Team Score Summary (injected by JS) */
.header-team-scores {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-header);
}

.team-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.team-score-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.team-score-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.team-score-value.amber { color: var(--team-0); }
.team-score-value.sapphire { color: var(--team-1); }

.score-vs {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Outcome Badge — Now larger and more prominent */
.outcome-badge {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.outcome-badge.victory-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  color: var(--team-0);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1), inset 0 0 20px rgba(245, 158, 11, 0.05);
}

.outcome-badge.victory-sapphire {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08));
  color: var(--team-1);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.outcome-nw-diff {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}

/* ============================================
   MVP CARDS — Hero Spotlights
   ============================================ */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--text-muted);
}

.stat-card.amber::before { background: var(--team-0); }
.stat-card.sapphire::before { background: var(--team-1); }
.stat-card.accent::before { background: var(--accent-gold); }
.stat-card.personal::before { background: var(--personal); }

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card.amber .stat-icon { color: var(--team-0); background: var(--team-0-bg); }
.stat-card.sapphire .stat-icon { color: var(--team-1); background: var(--team-1-bg); }
.stat-card.personal .stat-icon { color: var(--personal); background: var(--personal-dim); }
.stat-card.accent .stat-icon { color: var(--accent-gold); background: var(--accent-gold-dim); }

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-header);
  line-height: 1.2;
}

.stat-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* MVP Lead Indicator */
.mvp-lead-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.1rem;
}

.mvp-hero-portrait {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  object-fit: cover;
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

/* ============================================
   DASHBOARD PANELS — Glass Cards
   ============================================ */
.dashboard-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: panelFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow for premium feel */
.dashboard-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

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

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.85rem;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

/* ============================================
   TABS
   ============================================ */
.tab-group {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.15rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TEAM SECTIONS
   ============================================ */
.teams-tables-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-header);
  letter-spacing: 0.02em;
}

.team-header-bar.amber {
  background: linear-gradient(to right, rgba(245, 158, 11, 0.12), transparent);
  border-left: 3px solid var(--team-0);
  color: var(--team-0);
}

.team-header-bar.sapphire {
  background: linear-gradient(to right, rgba(139, 92, 246, 0.12), transparent);
  border-left: 3px solid var(--team-1);
  color: var(--team-1);
}

.team-summary-inline {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   PLAYER STAT CARDS — Data-Dense Rows
   ============================================ */
.team-roster-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  animation: cardSlideIn 0.25s ease-out;
  margin-bottom: 0.75rem;
}

.player-stat-card:last-child { border-bottom: none; }

.player-stat-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

.player-stat-card.my-player {
  background: var(--personal-dim);
  border-left: 3px solid var(--personal);
}

.player-stat-card.my-player:hover {
  background: rgba(6, 182, 212, 0.1);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 24%;
  min-width: 160px;
}

.card-middle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-metrics-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 30%;
}

@media (max-width: 960px) {
  .player-stat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .card-left, .card-right { width: 100%; justify-content: flex-start; }
}

/* Player Identity */
.player-col {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-portrait-container {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-glass);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

/* Team-colored ring on hero portraits */
.player-stat-card[data-team="0"] .hero-portrait-container { border-color: rgba(245, 158, 11, 0.25); }
.player-stat-card[data-team="1"] .hero-portrait-container { border-color: rgba(59, 130, 246, 0.25); }

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.account-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.abilities-row {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.ability-icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.2rem;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.ability-icon img { width: 100%; height: 100%; object-fit: cover; }

.my-player-tag {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--personal);
  background: var(--personal-dim);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lane-tag {
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* NW Rank Indicator */
.nw-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-header);
}

.nw-rank-badge.rank-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; box-shadow: 0 0 8px rgba(251, 191, 36, 0.3); }
.nw-rank-badge.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #000; }
.nw-rank-badge.rank-3 { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }
.nw-rank-badge.rank-other { background: var(--bg-tertiary); color: var(--text-muted); border: 1px solid var(--border-glass); }

/* KDA Colors */
.kda-value { font-weight: 700; letter-spacing: -0.01em; }
.kda-positive { color: var(--success); }
.kda-neutral { color: var(--text-primary); }
.kda-negative { color: var(--danger); }

.networth-highlight { font-weight: 700; color: var(--success); }

/* ============================================
   DATA BARS — Visual Comparison System
   ============================================ */
.data-bar-cell {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 0.3rem;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.data-bar-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 0.3rem;
  opacity: 0.12;
  z-index: -1;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.data-bar-cell.amber .data-bar-bg { background: var(--team-0); }
.data-bar-cell.sapphire .data-bar-bg { background: var(--team-1); }
.data-bar-cell.personal .data-bar-bg { background: var(--personal); opacity: 0.2; }

.data-bar-value {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Damage Data Bar */
.data-bar-cell.damage .data-bar-bg {
  background: #ef4444;
  opacity: 0.1;
}

/* Items Grid */
.items-row {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.item-slot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  position: relative;
  cursor: help;
  overflow: hidden;
  transition: var(--transition-fast);
}

.item-slot:hover {
  border-color: var(--accent-gold);
  transform: scale(1.2);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.item-slot.has-image { padding: 0; }
.item-slot.has-image img { width: 100%; height: 100%; object-fit: cover; }
.item-slot.empty { opacity: 0.2; }

/* ============================================
   MODAL ITEMS
   ============================================ */
.modal-item-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.modal-item-chip:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.modal-item-chip.sold { opacity: 0.4; text-decoration: line-through; }

.modal-item-img {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 0.2rem;
  object-fit: cover;
  flex-shrink: 0;
}

.modal-item-cost {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
  padding-left: 0.5rem;
}

/* ============================================
   YOUR PERFORMANCE SECTION
   ============================================ */
.my-performance-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.my-performance-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(to right, var(--personal-dim), transparent);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-left: 3px solid var(--personal);
  border-radius: var(--radius-md);
}

.my-performance-header-icon { font-size: 1.3rem; }

.my-performance-header-text h3 {
  font-size: 1rem;
  color: var(--personal);
}

.my-performance-header-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Performance Summary Stats */
.perf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.perf-summary-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: var(--transition-fast);
}

.perf-summary-stat:hover { border-color: var(--border-hover); }

.perf-summary-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.perf-summary-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-header);
  color: var(--text-primary);
}

.perf-summary-context {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}

.perf-summary-value.good { color: var(--success); }
.perf-summary-value.bad { color: var(--danger); }
.perf-summary-value.neutral { color: var(--personal); }

/* Performance Charts */
.my-performance-charts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1400px) {
  .my-performance-charts { grid-template-columns: 1fr; }
}

.performance-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.performance-panel:hover {
  border-color: rgba(6, 182, 212, 0.15);
}

.performance-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-glass);
}

.performance-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-primary);
}

.performance-chart-container {
  position: relative;
  width: 100%;
  height: 240px;
}

/* ============================================
   TRENDS VIEW
   ============================================ */
.trends-view {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  animation: panelFadeIn 0.35s ease-out;
}

.trends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trends-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trends-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trends-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trends-back-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trends-back-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.trends-chart-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-filter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border-glass);
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip img {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  object-fit: cover;
}

.filter-chip:hover { border-color: var(--personal); }

.filter-chip.inactive {
  opacity: 0.35;
  border-color: transparent;
  background: transparent;
}

.trends-chart-container {
  position: relative;
  width: 100%;
  height: 460px;
}

.trends-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 0.85rem;
}

.trends-empty-icon { font-size: 3rem; color: var(--text-muted); opacity: 0.4; }
.trends-empty h3 { color: var(--text-secondary); font-size: 1.05rem; }
.trends-empty p { color: var(--text-muted); font-size: 0.8rem; max-width: 340px; }

/* ============================================
   MATCH HISTORY
   ============================================ */
.my-matches-section { display: none; }

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clear-history-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  transition: var(--transition-fast);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-family: var(--font-sans);
}

.clear-history-btn:hover {
  color: var(--danger);
  background: var(--danger-dim);
}

.my-matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  flex: 1;
}

.match-history-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  animation: cardSlideIn 0.25s ease-out;
}

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

.match-history-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
}

.match-history-card.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.match-history-card.win { border-left: 3px solid var(--success); }
.match-history-card.loss { border-left: 3px solid var(--danger); }
.match-history-card.neutral { border-left: 3px solid var(--text-muted); }

.match-card-hero-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.35rem;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}

.match-card-hero-icon img { width: 100%; height: 100%; object-fit: cover; }

.match-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-card-id {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.match-card-result {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.match-card-result.win { color: var(--success); background: var(--success-dim); }
.match-card-result.loss { color: var(--danger); background: var(--danger-dim); }

.match-card-bottom {
  display: flex;
  gap: 0.6rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.match-card-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  line-height: 1;
}

.match-history-card:hover .match-card-remove { opacity: 0.5; }
.match-card-remove:hover { opacity: 1 !important; color: var(--danger); background: var(--danger-dim); }

.my-matches-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  line-height: 1.5;
}

/* ============================================
   TABLE RESPONSIVE
   ============================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.stats-table td {
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

/* Settings Drawer Styles */
.settings-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.settings-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 100%;
  background: linear-gradient(145deg, rgba(10, 15, 26, 0.95), rgba(6, 10, 19, 0.98));
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1101;
}

.settings-drawer-overlay.active .settings-drawer-panel {
  transform: translateX(0);
}

.settings-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-drawer-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 0.5rem;
  background: rgba(6, 10, 19, 0.5);
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-xl);
  animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0.15rem;
  border-radius: 0.25rem;
}

.modal-close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }

/* ============================================
   LOADING
   ============================================ */
.loading-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 10, 19, 0.92);
  z-index: 10;
  gap: 1rem;
  backdrop-filter: blur(6px);
  border-radius: var(--radius-xl);
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   VIEW SWITCHER TABS
   ============================================ */
.view-tabs-container {
  display: flex;
  gap: 0.4rem;
}

.view-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-tab-btn:hover { color: var(--text-secondary); background: var(--bg-tertiary); }

.view-tab-btn.active {
  color: var(--accent-gold);
  background: var(--bg-glass);
  border-color: var(--border-glass);
  border-top: 2px solid var(--accent-gold);
}

/* ============================================
   NET WORTH PLAYER CHIPS
   ============================================ */
.nw-player-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  font-weight: 500;
}

.timeline-event-card {
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.timeline-event-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
}

/* ========================================= */
/* HERO STATISTICS STYLES                    */
/* ========================================= */

.hero-stats-btn {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.hero-stats-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--accent-gold);
}
.hero-stats-btn.active {
  background: rgba(var(--accent-gold-rgb), 0.2);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.3);
}
.hero-stats-btn img {
  width: 3rem;
  height: 3rem;
  border-radius: 6px;
  object-fit: contain;
}
.hero-stats-btn span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.matchup-card {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(8, 12, 22, 0.75) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.4rem;
}
.matchup-card:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#statsLaneMatchups::-webkit-scrollbar {
  width: 4px;
}
#statsLaneMatchups::-webkit-scrollbar-track {
  background: transparent;
}
#statsLaneMatchups::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
#statsLaneMatchups::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
.matchup-hero-portrait-wrapper {
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.matchup-card:hover .matchup-hero-portrait-wrapper {
  border-color: var(--accent-gold);
}
.matchup-hero-info {
  display: flex;
  flex-direction: column;
}
.matchup-hero-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.matchup-encounters {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}
.matchup-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.matchup-ratio-bar {
  width: 45px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}
.matchup-ratio-fill {
  height: 100%;
  transition: width 0.5s ease;
}
.matchup-ratio-fill.kills {
  background: var(--success);
}
.matchup-ratio-fill.deaths {
  background: var(--danger);
}
.matchup-kda-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: monospace;
}
.matchup-dominance-wrapper {
  display: flex;
  align-items: center;
}
.matchup-dominance-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-align: center;
}
.matchup-dominance-label {
  display: none;
}

.item-winrate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  text-align: center;
  gap: 0.5rem;
}
.item-winrate-card img {
  width: 2.5rem;
  height: auto;
  border-radius: 4px;
}
.item-winrate-card .item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.item-winrate-card .item-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.item-winrate-card .item-percent {
  font-size: 1rem;
  font-weight: bold;
}

.nw-player-chip img {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  object-fit: cover;
  background: #000;
}

.nw-player-chip:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }

.nw-player-chip.active.team-amber {
  border-color: var(--team-0);
  background: rgba(245, 158, 11, 0.1);
}

.nw-player-chip.active.team-sapphire {
  border-color: var(--team-1);
  background: rgba(59, 130, 246, 0.1);
}

.nw-player-chip.inactive {
  opacity: 0.3;
  border-color: transparent;
  background: transparent;
}

/* ============================================
   MVP HIGHLIGHT
   ============================================ */
.mvp-highlight {
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15) inset;
  border-radius: 0.3rem;
  background: rgba(245, 158, 11, 0.04);
}

.mvp-icon {
  color: var(--accent-gold);
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

/* ============================================
   TIMELINE & MAP RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  #matchReplayView { flex-direction: column; }
  #killMapContainer { width: 100% !important; }
}

/* Timeline time markers */
.timeline-time-marker {
  position: absolute;
  bottom: 0;
  height: 100%;
  border-left: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.timeline-time-label {
  position: absolute;
  bottom: -18px;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Kill/death event dots - team colored */
.timeline-event-dot {
  position: absolute;
  cursor: pointer;
  transition: transform 0.15s ease;
  z-index: 2;
}

.timeline-event-dot:hover {
  transform: translateX(-50%) scale(1.6) !important;
  z-index: 10;
}

/* ============================================
   QUICK START CHIPS
   ============================================ */
.quick-start-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.chip:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden { display: none !important; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes modalSlide {
  from { transform: translateY(16px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

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

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

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

/* ============================================
   ANALYTICS SECTION GRID
   ============================================ */
.analytics-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .analytics-section { grid-template-columns: 1fr; }
}

/* ============================================
   VIEW TAB (for trends sub-tabs)
   ============================================ */
.view-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  font-family: var(--font-header);
}

.view-tab:hover { color: var(--text-secondary); }

.view-tab.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   MATCH NAVIGATION ARROWS
   ============================================ */
.match-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 44px;
  height: 80px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(13, 19, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.match-nav-arrow:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(13, 19, 32, 0.95);
  box-shadow: var(--shadow-glow-amber);
  transform: translateY(-50%) scale(1.05);
}

.match-nav-arrow:active {
  transform: translateY(-50%) scale(0.97);
}

.match-nav-arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
}

.match-nav-arrow.left { left: 12px; }
.match-nav-arrow.right { right: 12px; }

.match-nav-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.match-nav-kbd {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  font-family: var(--font-sans);
}

.match-nav-match-info {
  position: absolute;
  top: 100%;
  margin-top: 0.5rem;
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(13, 19, 32, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: var(--transition-fast);
  pointer-events: none;
}

.match-nav-arrow:hover .match-nav-match-info {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .match-nav-arrow { display: none; }
}

/* ============================================
   PERFORMANCE TAB — REVAMPED
   ============================================ */

/* Hero Identity Banner */
.perf-hero-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--personal-dim), rgba(6, 182, 212, 0.02));
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-left: 4px solid var(--personal);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.perf-hero-banner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to left, rgba(6, 182, 212, 0.04), transparent);
  pointer-events: none;
}

.perf-hero-portrait-lg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
  flex-shrink: 0;
}

.perf-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 1;
}

.perf-hero-name {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-header);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perf-hero-kda-big {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-header);
  letter-spacing: -0.02em;
}

.perf-hero-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.perf-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.perf-hero-outcome {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.perf-hero-outcome.win {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.perf-hero-outcome.loss {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Summary Stats — Enhanced Grid */
.perf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}

.perf-summary-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.perf-summary-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.perf-summary-stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s;
}

.perf-summary-stat:hover::after { opacity: 0.3; }
.perf-summary-stat.stat-good::after { background: var(--success); opacity: 0.5; }
.perf-summary-stat.stat-bad::after { background: var(--danger); opacity: 0.5; }
.perf-summary-stat.stat-neutral::after { background: var(--personal); opacity: 0.3; }

.perf-summary-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.perf-summary-value {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-header);
  color: var(--text-primary);
}

.perf-summary-context {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}

.perf-summary-value.good { color: var(--success); }
.perf-summary-value.bad { color: var(--danger); }
.perf-summary-value.neutral { color: var(--personal); }

/* Item Build Timeline */
.perf-item-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.perf-item-timeline-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.perf-item-timeline-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.perf-item-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  font-size: 0.7rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  position: relative;
}

.perf-item-chip:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.perf-item-chip img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  object-fit: cover;
  background: #000;
}

.perf-item-chip .item-time {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
}

.perf-item-chip.sold {
  opacity: 0.35;
  text-decoration: line-through;
}

.perf-item-arrow {
  color: var(--text-muted);
  font-size: 0.6rem;
  opacity: 0.3;
}

/* Enhanced Charts Grid */
.my-performance-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.my-performance-charts .performance-panel.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 1200px) {
  .my-performance-charts { grid-template-columns: 1fr; }
  .my-performance-charts .performance-panel.full-width { grid-column: auto; }
}

/* Player Comparison Radar */
.perf-radar-container {
  position: relative;
  width: 100%;
  height: 280px;
}

/* Lobby Comparison Table */
.perf-lobby-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.perf-lobby-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.perf-lobby-row:hover { background: rgba(255, 255, 255, 0.03); }

.perf-lobby-row.is-me {
  background: var(--personal-dim);
  border-left: 3px solid var(--personal);
}

.perf-lobby-rank {
  font-weight: 800;
  font-family: var(--font-header);
  width: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.perf-lobby-rank.top-1 { color: #fbbf24; }
.perf-lobby-rank.top-2 { color: #94a3b8; }
.perf-lobby-rank.top-3 { color: #b45309; }

.perf-lobby-hero-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}

.perf-lobby-name {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perf-lobby-bar-cell {
  width: 120px;
  position: relative;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.perf-lobby-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  opacity: 0.2;
}

.perf-lobby-bar-value {
  position: relative;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  padding-left: 0.35rem;
  white-space: nowrap;
}

/* ============================================
   DYNAMIC REPLAY HUD STYLES
   ============================================ */

/* Scrubber */
.timeline-scrubber-container {
  padding: 1rem 0;
}

.timeline-slider, .time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(30, 41, 59, 0.45);
  border-radius: 6px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.timeline-slider:hover, .time-slider:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.timeline-slider::-webkit-slider-thumb, .time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.75), 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

.timeline-slider::-webkit-slider-thumb:hover, .time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #ffffff;
}

.timeline-slider::-moz-range-thumb, .time-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.75), 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

.timeline-slider::-moz-range-thumb:hover, .time-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  background: #ffffff;
}

/* HUD Layout */
.dynamic-hud-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(13, 19, 32, 0.4) 0%, rgba(13, 19, 32, 0) 100%);
}

@media (max-width: 960px) {
  .dynamic-hud-layout { grid-template-columns: 1fr; }
}

/* Minimap */
.hud-minimap-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.minimap-container {
  position: relative;
  width: 300px;
  height: 300px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-glass);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.minimap-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.minimap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

.minimap-markers-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.map-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-size: cover;
  border: 2px solid;
  box-shadow: 0 0 8px rgba(0,0,0,0.8);
  transition: top 0.3s ease, left 0.3s ease;
  z-index: 10;
}

.map-marker.amber { border-color: var(--team-0); }
.map-marker.sapphire { border-color: var(--team-1); }

.map-marker.dead {
  filter: grayscale(100%);
  opacity: 0.5;
  z-index: 5;
}

/* Global Stats */
.hud-global-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.hud-stat-box {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.hud-stat-box.amber-box { border-bottom: 2px solid var(--team-0); }
.hud-stat-box.sapphire-box { border-bottom: 2px solid var(--team-1); }
.hud-stat-box.total-souls-box { border-bottom: 2px solid var(--accent-gold); }

.hud-stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.hud-stat-value {
  font-size: 1.25rem;
  font-family: var(--font-header);
  color: var(--text-primary);
}

.hud-stat-box.amber-box .hud-stat-value { color: var(--team-0); }
.hud-stat-box.sapphire-box .hud-stat-value { color: var(--team-1); }

/* Right Info Panels */
.hud-info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hud-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.hud-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hud-header-portrait {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

/* Hero Inventory Panel */
.hud-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 0.4rem;
}

.hud-inv-slot {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hud-inv-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-inv-slot.tier-1 { border: 1px solid rgba(255, 255, 255, 0.8); }
.hud-inv-slot.tier-2 { border: 1px solid #10b981; } /* Green */
.hud-inv-slot.tier-3 { border: 1px solid #3b82f6; } /* Blue */
.hud-inv-slot.tier-4 { border: 1px solid #d946ef; } /* Purple */

/* Event Feed */
.events-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 350px;
}

.hud-event-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.hud-event-feed::-webkit-scrollbar {
  width: 4px;
}
.hud-event-feed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.hud-empty-events {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 0;
}

.hud-event-item {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  border-left: 3px solid transparent;
  animation: slideIn 0.3s ease;
}

.hud-event-item.kill { border-left-color: var(--success); }
.hud-event-item.death { border-left-color: var(--danger); }

.hud-event-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-event-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
  width: 40px;
}

.hud-event-actors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.hud-actor {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-actor-img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  object-fit: cover;
}

.hud-actor-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.hud-event-icon {
  font-size: 0.8rem;
}

.hud-enemy-inventory {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-enemy-inv-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.hud-enemy-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.hud-enemy-item {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 2px;
  object-fit: cover;
}

/* ====================================================
   ESPORTS HUD & INTERACTIVE DASHBOARD STYLES
   ==================================================== */
.map-hud-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  margin-top: 1rem;
}
@media (max-width: 1200px) {
  .map-hud-layout {
    flex-direction: column;
  }
}

.map-hud-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.minimap-col {
  flex: 1.2;
  max-width: 450px;
}
.timeline-col {
  flex: 1.5;
  min-height: 480px;
}
.details-col {
  flex: 1.3;
  gap: 1.25rem;
}

.minimap-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #000b14;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 11, 20, 0.5);
}

/* Historical Comparison Progress Bars (Under Minimap) */
.comparison-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.25rem 0;
}

.comparison-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.comparison-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-bottom: 0.05rem;
}

.comparison-bar-current {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.comparison-bar-current.spm {
  border: 1px solid #22c55e; /* Green border */
}

.comparison-bar-current.dpm {
  border: 1px solid #ef4444; /* Red border */
}

.comparison-bar-historical {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.comparison-bar-fill {
  height: 100%;
  transition: width 0.15s ease-out;
  display: flex;
  align-items: center;
  position: relative;
}

.comparison-bar-fill.spm-current {
  background: #22c55e; /* Bright green fill */
}

.comparison-bar-fill.dpm-current {
  background: #ef4444; /* Bright red fill */
}

.comparison-bar-fill.historical {
  background: #3b4260; /* Dark slate blue fill as shown in mockup */
}

.comparison-bar-text {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.comparison-bar-text.current-text {
  color: #000000; /* Black text for high contrast on green/red background */
}

.comparison-bar-text.historical-text {
  color: #ffffff; /* White text on slate blue background */
  font-size: 0.65rem;
}


.hud-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.hud-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin: 0;
  font-family: var(--font-header);
}

/* Vertical Timeline */
.vertical-timeline-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}
.timeline-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  position: relative;
  scrollbar-width: thin;
}
.timeline-scroll-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2) 10%, rgba(255, 255, 255, 0.2) 90%, rgba(255, 255, 255, 0.05));
  top: 0;
  bottom: 0;
  z-index: 0;
}
.timeline-milestone {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 2px solid var(--success);
  color: var(--success);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: monospace;
  width: fit-content;
  margin: 1.25rem 0;
  text-align: center;
  box-shadow: 0 0 10px var(--success-dim);
  z-index: 2;
}
.timeline-tick-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: monospace;
  margin: 0.75rem 0;
  z-index: 1;
  position: relative;
}
.timeline-event-wrapper {
  display: flex;
  width: 100%;
  margin: 0.75rem 0;
  position: relative;
  z-index: 1;
  animation: panelFadeIn 0.3s ease-out forwards;
}
.timeline-event-wrapper.amber-team {
  justify-content: flex-start;
  padding-right: 50%;
}
.timeline-event-wrapper.sapphire-team {
  justify-content: flex-end;
  padding-left: 50%;
}
.timeline-event-card {
  background: rgba(13, 19, 32, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 95%;
  position: relative;
  transition: var(--transition-fast);
}
.timeline-event-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-hover);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}
.amber-team .timeline-event-card {
  border-color: var(--team-0-glow);
  border-left-width: 3px;
}
.sapphire-team .timeline-event-card {
  border-color: var(--team-1-glow);
  border-right-width: 3px;
}
.timeline-connector {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  z-index: -1;
}
.amber-team .timeline-connector {
  right: 0;
  transform: translateX(100%);
}
.sapphire-team .timeline-connector {
  left: 0;
  transform: translateX(-100%);
}
.timeline-hero-icon-container {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}
.timeline-hero-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid transparent;
}
.amber-team .timeline-hero-portrait { border-color: var(--team-0); }
.sapphire-team .timeline-hero-portrait { border-color: var(--team-1); }

.timeline-event-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  z-index: 2;
}
.timeline-event-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline-pill {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.timeline-nw-text {
  color: var(--accent-gold);
  font-weight: 700;
}
.timeline-kda-text {
  color: var(--text-secondary);
}

/* Items HUD Grid */
.items-hud-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.items-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin: 0;
}
.hud-time-title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.hud-time-counter {
  color: var(--accent-gold);
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
}
.items-hud-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  padding: 0.25rem 0;
}
.items-hud-slot {
  aspect-ratio: 60/42;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition-fast);
}
.items-hud-slot.has-item {
  background: #02040a;
  border-width: 1.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.items-hud-slot.has-item:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.items-hud-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.items-hud-slot.empty {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  border-style: dashed;
}

/* Skills HUD Grid */
.skills-hud-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.skills-hud-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.skills-hud-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.skills-hud-ability-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1.5px solid var(--border-glass);
  background: #02040a;
  overflow: hidden;
  flex-shrink: 0;
}
.skills-hud-ability-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.skills-hud-ticks-track {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.skills-hud-ticks-track::-webkit-scrollbar {
  display: none;
}
.skills-hud-tick {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.skills-hud-tick.active {
  background: var(--personal);
  border: 1px solid var(--personal-glow);
  color: white;
  box-shadow: 0 0 6px var(--personal-glow);
  text-shadow: 0 0 2px black;
}
.skills-hud-tick.inactive {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.15);
}

/* ====================================================
   HORIZONTAL ROSTER BAR STYLES
   ==================================================== */
.hud-roster-bar {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border-glass);
}
.hud-roster-bar::-webkit-scrollbar {
  display: none;
}

.hud-roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 6px;
  min-width: 75px;
  flex: 1;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}
.hud-roster-card:hover {
  transform: translateY(-2px);
}
.hud-roster-card.active {
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.3));
}

.hud-roster-portrait-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}

.hud-roster-portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s, transform 0.2s;
}
.hud-roster-card.active .hud-roster-portrait {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.hud-roster-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75px;
  margin-top: 2px;
}
.hud-roster-card.active .hud-roster-name {
  color: #ffffff;
  font-weight: 700;
}

.hud-roster-underline {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  margin: 2px 0;
}
.hud-roster-underline.amber {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}
.hud-roster-underline.sapphire {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

/* ============================================
   HERO STATS - PREMIUM SOULS & ACCOLADES PANELS
   ============================================ */

/* Souls Distribution Breakdown */
.souls-source-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.souls-source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.souls-source-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.souls-source-stats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.souls-source-value {
  color: var(--text-primary);
  font-weight: 700;
}

.souls-source-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.souls-source-progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-fast);
}

.souls-source-progress-container:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.souls-source-progress-fill {
  height: 100%;
  border-radius: 3px;
  width: 0; /* Animated dynamically in JS */
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Color gradients for Souls sources */
.souls-source-progress-fill.lane-creeps {
  background: linear-gradient(90deg, #d97706, var(--accent-gold));
  box-shadow: 0 0 8px var(--accent-gold-glow);
}
.souls-source-progress-fill.neutral-creeps {
  background: linear-gradient(90deg, #15803d, var(--success));
  box-shadow: 0 0 8px rgba(34, 197, 150, 0.5);
}
.souls-source-progress-fill.player-kills {
  background: linear-gradient(90deg, #b91c1c, var(--danger));
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.souls-source-progress-fill.boss {
  background: linear-gradient(90deg, #7c3aed, var(--personal));
  box-shadow: 0 0 8px var(--personal-glow);
}
.souls-source-progress-fill.denies {
  background: linear-gradient(90deg, #1d4ed8, var(--team-1));
  box-shadow: 0 0 8px var(--team-1-glow);
}


/* Accolades Accomplishment Badges Grid */
.accolade-badge-card {
  background: rgba(30, 41, 59, 0.15);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.accolade-badge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, var(--badge-glow-color, rgba(255,255,255,0.05)) 0%, transparent 70%);
  opacity: 0.35;
  z-index: 0;
  transition: var(--transition-smooth);
}

.accolade-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--badge-border-color, var(--border-hover));
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5), 0 0 15px var(--badge-glow-color, rgba(255, 255, 255, 0.05));
  background: rgba(30, 41, 59, 0.25);
}

.accolade-badge-card:hover::before {
  opacity: 0.6;
}

.accolade-badge-ring {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 2px dashed var(--badge-ring-color, var(--text-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
}

.accolade-badge-card:hover .accolade-badge-ring {
  border-style: solid;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--badge-ring-color), inset 0 2px 8px rgba(0,0,0,0.4);
}

.accolade-badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 1;
  letter-spacing: -0.01em;
}

.accolade-badge-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  z-index: 1;
  line-height: 1.3;
}

.accolade-badge-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 1;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
}

.accolade-badge-card:hover .accolade-badge-count {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* Character Facing Direction Indicator */
.map-marker-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.2s linear, top 0.2s linear;
}
.map-marker-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  object-fit: cover;
  transition: width 0.2s, height 0.2s, box-shadow 0.2s;
}
.map-marker-rotation-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.map-marker-arrow {
  position: absolute;
  width: 0;
  height: 0;
  top: -8px;
  left: calc(50% - 5px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  z-index: 3;
}
.map-marker-arrow.amber {
  border-bottom: 7px solid #f59e0b;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.9));
}
.map-marker-arrow.sapphire {
  border-bottom: 7px solid #8b5cf6;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.9));
}

/* Roster Health Bar */
/* Side Healthbar styling matching screenshot */
.hud-roster-side-health {
  position: absolute;
  width: 5px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  top: 8px;
  overflow: hidden;
  z-index: 5;
}

.hud-roster-card.team-0 .hud-roster-side-health {
  left: -6px;
  transform: rotate(-10deg);
}

.hud-roster-card.team-1 .hud-roster-side-health {
  right: -6px;
  transform: rotate(10deg);
}

.hud-roster-side-health-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: height 0.3s ease;
}

.hud-roster-side-health-fill.amber {
  background: #ffffff; /* White fill on Amber team */
}

.hud-roster-side-health-fill.sapphire {
  background: #ef4444; /* Red/coral fill on Sapphire team */
}

/* Net Worth Pill styling under portrait */
.hud-roster-nw-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 36px;
}

.hud-roster-nw-pill.amber {
  background: #f59e0b;
}

.hud-roster-nw-pill.sapphire {
  background: #3b82f6;
}

/* Esports Kill Event Highlights */
.timeline-event-wrapper.kill-emphasis-event .timeline-event-card {
  border-color: #22c55e !important;
  border-left-width: 3.5px !important;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.95), rgba(13, 19, 32, 0.95)) !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.35) !important;
}
.timeline-event-wrapper.kill-emphasis-event .timeline-connector {
  background: #22c55e !important;
  opacity: 0.8;
}
.timeline-event-badge.kill-badge {
  background: #22c55e !important;
  box-shadow: 0 0 6px #22c55e;
}

/* Minimap Death Marks */
.map-death-marker {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.map-death-skull {
  font-size: 11px;
  background: #ef4444;
  border: 1.5px solid #b91c1c;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  z-index: 2;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.map-death-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: map-ping 1.6s infinite ease-out;
  z-index: 1;
}
@keyframes map-ping {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ============================================
   PREMIUM RANK BADGES & GLOWS
   ============================================ */
.rank-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-shadow: 0 0 6px currentColor;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
}

.rank-badge-premium.compact {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

.rank-badge-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 4px currentColor);
}

.rank-badge-premium.compact .rank-badge-icon {
  width: 1rem;
  height: 1rem;
}

/* Tier Specific Rank Glows */
.rank-tier-bronze {
  color: #d97706; /* bronze-orange */
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.15);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(0, 0, 0, 0.4));
}
.rank-tier-silver {
  color: #94a3b8; /* silver */
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.15);
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(0, 0, 0, 0.4));
}
.rank-tier-gold {
  color: #fbbf24; /* gold */
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(0, 0, 0, 0.4));
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}
.rank-tier-teal {
  color: #2dd4bf; /* teal */
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.2);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(0, 0, 0, 0.4));
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
}
.rank-tier-purple {
  color: #c084fc; /* purple */
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.3);
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(0, 0, 0, 0.4));
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}
.rank-tier-divine {
  color: #f472b6; /* divine/pink */
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.4);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(0, 0, 0, 0.4));
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.7);
}

/* ============================================
   PREMIUM PLAYED HERO & FULL ITEM BUILD
   ============================================ */
.header-hero-build {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.75rem;
  margin-top: -1.25rem; /* snug layout below match summary header */
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.header-hero-build::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-build-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-build-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .hero-build-divider {
    display: none !important;
  }
  .header-hero-build {
    margin-top: 0;
  }
}

.hero-build-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.hero-build-portrait-wrapper {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--personal);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  background: var(--bg-secondary);
}

.hero-build-portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-build-level {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-primary);
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 0.05rem 0;
  border-top: 1px solid var(--border-glass);
}

.hero-build-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-build-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-build-name {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-build-divider {
  width: 1px;
  height: 3.5rem;
  background: var(--border-glass);
  flex-shrink: 0;
}

.hero-build-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.hero-build-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

/* Premium item slots */
.premium-item-slot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: help;
  flex-shrink: 0;
}

.premium-item-slot:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.premium-item-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.15rem;
}

.premium-item-slot.empty {
  border-color: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 300;
}

/* Multi-row Match History Card Layout */
.match-history-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.match-card-hero-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.match-card-hero-name {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.match-card-outcomes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1.5rem; /* space for absolute close button */
}

.match-history-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.match-card-duration {
  font-family: monospace;
  font-weight: 600;
}

.match-history-card-build {
  width: 100%;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.history-item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.history-item-slot {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.history-item-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.08rem;
}

.history-no-items {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Premium horizontal match card sections (used in both History Page and Trends Log) */
.card-left-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  width: 25%;
  min-width: 200px;
}

.card-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-middle-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.card-right-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .match-history-card, .player-stat-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
  .card-left-section {
    width: 100% !important;
  }
  .card-middle-section {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .card-right-section {
    width: 100% !important;
  }
}

/* Merged Header Roster Styling */
.header-merged-hero-build {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .dashboard-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }
  .header-merged-hero-build {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* ============================================
   PREMIUM CUSTOM HTML CHART TOOLTIP
   ============================================ */
.premium-chart-tooltip {
  background: rgba(8, 12, 22, 0.85) !important;
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.9rem 1.1rem;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.05);
  z-index: 1000;
  min-width: 240px;
  transform: translate(-50%, -105%);
}

.premium-chart-tooltip .tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.premium-chart-tooltip .tooltip-hero-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.premium-chart-tooltip .tooltip-portrait-wrapper {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-glass);
  flex-shrink: 0;
}

.premium-chart-tooltip .tooltip-portrait-wrapper.win {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.premium-chart-tooltip .tooltip-portrait-wrapper.loss {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.premium-chart-tooltip .tooltip-portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-chart-tooltip .tooltip-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.premium-chart-tooltip .tooltip-hero-name {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.premium-chart-tooltip .tooltip-match-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.premium-chart-tooltip .tooltip-result-badge {
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.premium-chart-tooltip .tooltip-result-badge.win {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.premium-chart-tooltip .tooltip-result-badge.loss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.premium-chart-tooltip .tooltip-divider {
  height: 1px;
  background: var(--border-glass);
  margin-bottom: 0.75rem;
}

.premium-chart-tooltip .tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.premium-chart-tooltip .tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.premium-chart-tooltip .tooltip-label {
  color: var(--text-secondary);
}

.premium-chart-tooltip .tooltip-value {
  font-family: monospace;
  font-weight: 700;
}

.premium-chart-tooltip .tooltip-value.highlight-souls {
  color: #10b981;
}

.premium-chart-tooltip .tooltip-value.highlight-dmg {
  color: #f59e0b;
}

.premium-chart-tooltip .tooltip-value.highlight-deaths {
  color: #ef4444;
}

.premium-chart-tooltip .tooltip-footer {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: right;
}

/* Premium Performance Dashboard Panel */
.trends-perf-dashboard-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trends-perf-dashboard-panel:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.05), var(--shadow-xl);
}

.perf-metrics-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-glass);
}

.perf-metrics-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.perf-metrics-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.perf-metrics-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-header);
  color: var(--accent-gold);
  text-shadow: 0 0 15px var(--accent-gold-glow);
  transition: text-shadow 0.3s ease;
}

.trends-perf-dashboard-panel:hover .perf-metrics-value {
  text-shadow: 0 0 25px var(--accent-gold-glow), 0 0 5px rgba(245, 158, 11, 0.5);
}

.perf-metrics-max {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.perf-metrics-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 700;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.perf-metrics-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.perf-metrics-winrate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.perf-metrics-winrate {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.perf-metrics-form {
  display: flex;
  gap: 4px;
}

.perf-metrics-form-block {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.perf-metrics-form-block:hover {
  transform: scale(1.15);
}

.perf-chart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.perf-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.perf-chart-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.perf-chart-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.perf-chart-canvas-container {
  position: relative;
  height: 110px;
  width: 100%;
}

/* Trends Sidebar & Main Layout Grid */
.trends-main-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.trends-sidebar-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trends-sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trends-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trends-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.04), var(--shadow-xl);
}

/* Top Static Esports Ticker */
.esports-ticker-static {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-wrap: nowrap;
  width: 100%;
}

.esports-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.esports-ticker-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05);
}

/* Responsive Trends Layout Grid */
@media (max-width: 1400px) {
  .trends-main-layout-grid {
    grid-template-columns: 260px 1fr 260px;
    gap: 1rem;
  }
}

@media (max-width: 1200px) {
  .trends-main-layout-grid {
    grid-template-columns: 280px 1fr;
  }
  .trends-sidebar-news {
    grid-column: span 2;
  }
}

@media (max-width: 960px) {
  .trends-main-layout-grid {
    grid-template-columns: 1fr;
  }
  .trends-sidebar-news {
    grid-column: span 1;
  }
}

/* YouTube Top Headlines Card & Video Feed Styles */
.yt-video-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yt-video-item-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
}

.yt-video-item-compact:hover {
  background: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.15);
  transform: translateX(2px);
}

.yt-dot {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.75rem;
  text-shadow: 0 0 8px var(--accent-gold-glow);
  flex-shrink: 0;
}

.yt-video-title-compact {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color 0.2s ease;
}

.yt-video-item-compact:hover .yt-video-title-compact {
  color: var(--accent-gold);
}

.yt-channel-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.yt-video-item-compact:hover .yt-channel-badge {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
}

/* =============================================
   DEADLOCK GUIDES SYSTEM STYLES
   ============================================= */
.guides-main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .guides-main-layout {
    grid-template-columns: 1fr;
  }
}

/* Featured Hero Guide Card */
.featured-guide-card {
  position: relative;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(9, 14, 23, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.06), var(--shadow-lg);
}

.featured-guide-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.12), var(--shadow-xl);
}

.guide-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.featured-hero-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px dashed var(--border-glass);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.featured-hero-portrait {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(168, 85, 247, 0.35);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.featured-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.featured-hero-name {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 0;
}

.featured-guide-title {
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0.25rem 0;
  line-height: 1.25;
}

.featured-guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.guide-stars {
  color: var(--accent-gold);
  font-weight: bold;
}

.featured-guide-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

/* Guide Build Items Styles */
.guide-items-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.item-phase-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-phase-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  display: flex;
  justify-content: space-between;
}

.item-phase-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.guide-item-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.3;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.guide-item-bubble:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
}

.guide-skills-row {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.guide-skill-bubble {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.guide-skill-bubble.active-skill {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

/* Most Popular Heroes & Write Guide CTA Sidebar */
.popular-hero-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.popular-hero-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.popular-hero-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-glass);
}

.popular-hero-portrait {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.popular-hero-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.popular-hero-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.popular-hero-guides-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.popular-hero-rating {
  font-size: 0.65rem;
  color: var(--accent-gold);
}

.popular-hero-bar-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.popular-hero-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #d97706);
  border-radius: 1px;
}

/* Write Guide CTA Card */
.write-guide-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(9, 14, 23, 0.75) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem;
}

.write-guide-btn {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
  font-weight: 800;
  font-family: var(--font-header);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.write-guide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.35);
}

/* Double column list sorting guides */
.guides-double-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .guides-double-column {
    grid-template-columns: 1fr;
  }
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guide-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 23, 0.4);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-list-item:hover {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.03);
  transform: translateX(3px);
}

.guide-list-portrait {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid var(--border-glass);
}

.guide-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.guide-list-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.guide-list-item:hover .guide-list-title {
  color: var(--accent-gold);
}

.guide-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.guide-list-meta-author {
  font-weight: 700;
  color: var(--text-secondary);
}

.guide-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.guide-list-item:hover .guide-rating-pill {
  background: rgba(245, 158, 11, 0.18);
}

/* =============================================
   INTERACTIVE GUIDE MODAL READER AND EDITOR
   ============================================= */
.guide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.guide-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.guide-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.guide-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
}

.guide-modal-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.guide-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.guide-modal-close:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.guide-modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Modal Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.btn-secondary-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-primary-modal {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
  font-weight: 800;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-modal:hover {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

/* Latest Patch Card Hover Effects */
.patch-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.patch-card:hover {
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1), var(--shadow-lg) !important;
  transform: translateY(-2px) !important;
}

/* Premium Segmented Metric Selector Grid */
.trends-metric-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trends-metric-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
}

.trends-metric-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.trends-metric-card.active {
  background: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.04);
}

/* Color thematic highlights per metric when active */
.trends-metric-card.active[data-metric="souls"] {
  background: rgba(16, 185, 129, 0.03) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 22px rgba(16, 185, 129, 0.04) !important;
}

.trends-metric-card.active[data-metric="dmg"] {
  background: rgba(245, 158, 11, 0.03) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.04) !important;
}

.trends-metric-card.active[data-metric="deaths"] {
  background: rgba(239, 68, 68, 0.03) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 4px 22px rgba(239, 68, 68, 0.04) !important;
}

.trends-metric-card-title {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.trends-metric-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-header);
  line-height: 1.2;
}

.trends-metric-card-subtitle {
  font-size: 0.625rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================
   IN-GAME STYLED ITEM CARDS FOR DEADLOCK BUILD UI
   ========================================================== */
.ingame-item-card {
  position: relative;
  width: 90px;
  min-height: 122px;
  height: auto;
  padding-bottom: 4px;
  background: rgba(18, 14, 11, 0.9);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border-top-left-radius: 4px;
}

.ingame-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

/* Category borders and glow */
.ingame-item-card.weapon {
  border: 2px solid #d46f1d;
  box-shadow: 0 0 8px rgba(212, 111, 29, 0.15);
}
.ingame-item-card.weapon:hover {
  box-shadow: 0 0 16px rgba(212, 111, 29, 0.4);
}

.ingame-item-card.vitality {
  border: 2px solid #5a8e23;
  box-shadow: 0 0 8px rgba(90, 142, 35, 0.15);
}
.ingame-item-card.vitality:hover {
  box-shadow: 0 0 16px rgba(90, 142, 35, 0.4);
}

.ingame-item-card.spirit {
  border: 2px solid #8c42eb;
  box-shadow: 0 0 8px rgba(140, 66, 235, 0.15);
}
.ingame-item-card.spirit:hover {
  box-shadow: 0 0 16px rgba(140, 66, 235, 0.4);
}

/* Item Image/Icon wrapper */
.ingame-item-card .item-image-area {
  position: relative;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.ingame-item-card .item-image-area img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.ingame-item-card:hover .item-image-area img {
  transform: scale(1.08);
}

/* Active and Tier badges on top of image */
.ingame-item-card .item-active-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #ffb834;
  font-size: 0.55rem;
  font-weight: 900;
  text-align: center;
  padding: 1px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ingame-item-card .item-tier-badge {
  position: absolute;
  top: 0;
  right: 0;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-bottom-left-radius: 4px;
  opacity: 0.85;
}
.ingame-item-card.weapon .item-tier-badge {
  background: #d46f1d;
}
.ingame-item-card.vitality .item-tier-badge {
  background: #5a8e23;
}
.ingame-item-card.spirit .item-tier-badge {
  background: #8c42eb;
}

/* Card Body (Name & Winrate) */
.ingame-item-card .item-details {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.45);
}

.ingame-item-card .item-details-name {
  color: #e2e8f0;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.ingame-item-card .item-details-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3px;
  margin-top: 2px;
}

.ingame-item-card .item-details-winrate {
  font-weight: 800;
}
.ingame-item-card .item-details-winrate.high {
  color: #10b981;
}
.ingame-item-card .item-details-winrate.low {
  color: #ef4444;
}

/* =============================================
   GUIDE CREATOR, USER AUTH & ADMIN APPROVALS
   ============================================= */
.auth-status-widget {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.auth-status-btn {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--accent-purple-border);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.7rem;
}
.auth-status-btn:hover {
  background: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.auth-tab-btn {
  transition: all 0.2s ease;
}
.auth-tab-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.auth-tab-btn.active {
  color: #fff !important;
  border-bottom-color: var(--accent-purple) !important;
  background: rgba(168, 85, 247, 0.1) !important;
}
.badge-ability-step {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 500;
}
.preview-item-chip {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
}
.admin-pending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.admin-pending-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.02);
}
.admin-pending-hero-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.admin-btn.approve {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.admin-btn.approve:hover {
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.admin-btn.reject {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.admin-btn.reject:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.badge-guide-status {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-guide-status.pending {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
}
.badge-guide-status.approved {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */
#toastContainer {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 2.5rem);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(13, 19, 32, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.15);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  transform: translateX(110%);
  opacity: 0;
  animation: toastSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.toast:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl);
}
.toast.toast-exiting {
  animation: toastSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.toast-message {
  color: var(--text-secondary);
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  margin: -2px -4px 0 0;
  border-radius: 4px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}
.toast-close svg {
  width: 16px;
  height: 16px;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: toastProgressShrink linear forwards;
}
@keyframes toastProgressShrink {
  from { width: 100%; }
  to   { width: 0%; }
}

/* Error / Danger */
.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(239, 68, 68, 0.12);
}
.toast.toast-error .toast-icon { color: var(--danger); }
.toast.toast-error .toast-title { color: #fca5a5; }
.toast.toast-error .toast-progress { background: linear-gradient(90deg, var(--danger), rgba(239, 68, 68, 0.3)); }

/* Success */
.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(34, 197, 94, 0.12);
}
.toast.toast-success .toast-icon { color: var(--success); }
.toast.toast-success .toast-title { color: #86efac; }
.toast.toast-success .toast-progress { background: linear-gradient(90deg, var(--success), rgba(34, 197, 94, 0.3)); }

/* Warning */
.toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(245, 158, 11, 0.12);
}
.toast.toast-warning .toast-icon { color: var(--accent-gold); }
.toast.toast-warning .toast-title { color: #fcd34d; }
.toast.toast-warning .toast-progress { background: linear-gradient(90deg, var(--accent-gold), rgba(245, 158, 11, 0.3)); }

/* Info */
.toast.toast-info {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(59, 130, 246, 0.12);
}
.toast.toast-info .toast-icon { color: var(--info); }
.toast.toast-info .toast-title { color: #93c5fd; }
.toast.toast-info .toast-progress { background: linear-gradient(90deg, var(--info), rgba(59, 130, 246, 0.3)); }

@media (max-width: 480px) {
  #toastContainer {
    top: 0.75rem;
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
  .toast {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
}

/* Premium Full-Width Timeline Scrubber & Events Integration */
.hud-timeline-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 0.3rem 1rem;
  margin-bottom: 0;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-title {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-gold);
}

.timeline-slider-wrapper {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}

.timeline-events-container {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 0;
  pointer-events: none;
  z-index: 8;
}

.timeline-event-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s, border-color 0.2s;
  border: 1.5px solid #ffffff;
  background-color: #0c152b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.timeline-event-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Event types colors matching the user specification & premium visuals */
.timeline-event-dot.death {
  border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.timeline-event-dot.kill {
  border-color: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.timeline-event-dot.buy {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.timeline-event-dot.upgrade {
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.timeline-event-dot:hover {
  transform: translate(-50%, -50%) scale(1.6);
  z-index: 25;
  box-shadow: 0 0 10px #ffffff;
}

/* Premium Event Tooltip */
.timeline-event-tooltip {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 30;
}

.timeline-event-dot:hover .timeline-event-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Remove vertical deadspace in Interactive Map HUD Section */
#matchMapSection {
  gap: 0.4rem !important;
}
#matchMapSection .hud-roster-bar {
  margin-bottom: 0 !important;
}
#matchMapSection .map-hud-layout {
  margin-top: 0 !important;
}

/* Hero Items Hover Tooltip */
.hero-items-tooltip {
  position: absolute;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  min-width: 180px;
  backdrop-filter: blur(10px);
  transition: opacity 0.15s ease;
}
.hero-items-tooltip-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-items-tooltip-grid {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 4px;
}
.hero-items-tooltip-slot {
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.5);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.55rem;
  color: var(--text-muted);
}
.hero-items-tooltip-slot.has-item {
  border-style: solid;
}
.hero-items-tooltip-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User Profile Layout */
.profile-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  width: 100%;
}

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

/* ============================================
   EMPHASIZED KDA STYLING (Match History & Header)
   ============================================ */
.match-history-kda {
  font-family: var(--font-header), monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.match-history-kda .kda-kills {
  color: var(--success);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

.match-history-kda .kda-deaths {
  color: var(--danger);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.match-history-kda .kda-assists {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.match-history-kda .kda-slash {
  color: var(--text-muted);
  opacity: 0.5;
  font-weight: 400;
}

.hero-build-kda-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-shrink: 0;
}

/* ============================================================================
   PROFILE TOP SECTION GRID & ADMIN PORTAL STYLING
   ============================================================================ */

/* Profile Top 2-Column Grid */
.profile-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

@media (max-width: 960px) {
  .profile-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Portal Modal Styling */
.admin-tab-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

.admin-tab-btn.active {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.admin-portal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Admin Edit Row Card styling */
.admin-edit-row {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s;
}

.admin-edit-row:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.admin-input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-input-field {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: inherit;
  flex: 1;
  min-width: 150px;
}

.admin-input-field:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
}

.admin-textarea-field {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
  width: 100%;
}

.admin-textarea-field:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
}

.admin-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.5rem;
}

.admin-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.admin-btn-primary {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn-primary:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.6);
}

/* =============================================
   VISUAL GUIDE BUILDER DRAG & DROP STYLES
   ============================================= */
.builder-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.builder-left {
  flex: 1.3;
  min-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.builder-right {
  flex: 1;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .builder-left, .builder-right {
    flex: 1;
    min-width: 100%;
  }
}

.item-drawer-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.item-drawer-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--border-glass);
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-drawer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.item-drawer-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.item-drawer-column-title {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.2rem;
  border-radius: 4px;
}

.item-drawer-column.weapon .item-drawer-column-title {
  background: rgba(212, 111, 29, 0.15);
  color: #ff9d42;
  border: 1px solid rgba(212, 111, 29, 0.25);
}

.item-drawer-column.vitality .item-drawer-column-title {
  background: rgba(90, 142, 35, 0.15);
  color: #8ee84a;
  border: 1px solid rgba(90, 142, 35, 0.25);
}

.item-drawer-column.spirit .item-drawer-column-title {
  background: rgba(140, 66, 235, 0.15);
  color: #c084fc;
  border: 1px solid rgba(140, 66, 235, 0.25);
}

.item-drawer-tier {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.item-drawer-tier-header {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}

.item-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 0.2rem;
}

.drawer-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
  cursor: grab;
  background: rgba(18, 14, 11, 0.95);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.drawer-item-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.drawer-item-icon.weapon {
  border: 1.5px solid #d46f1d;
}
.drawer-item-icon.weapon:hover {
  box-shadow: 0 0 10px rgba(212, 111, 29, 0.6);
}

.drawer-item-icon.vitality {
  border: 1.5px solid #5a8e23;
}
.drawer-item-icon.vitality:hover {
  box-shadow: 0 0 10px rgba(90, 142, 35, 0.6);
}

.drawer-item-icon.spirit {
  border: 1.5px solid #8c42eb;
}
.drawer-item-icon.spirit:hover {
  box-shadow: 0 0 10px rgba(140, 66, 235, 0.6);
}

.drawer-item-icon:active {
  cursor: grabbing;
}

/* Drop Zones */
.drop-zone {
  border: 1.5px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.drop-zone.drag-over {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
}

.drop-zone-placeholder {
  font-size: 0.65rem;
  color: var(--text-muted);
  pointer-events: none;
  width: 100%;
  text-align: center;
  font-style: italic;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.dropped-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.dropped-item-tag.weapon {
  border-left: 2.5px solid #d46f1d;
}

.dropped-item-tag.vitality {
  border-left: 2.5px solid #5a8e23;
}

.dropped-item-tag.spirit {
  border-left: 2.5px solid #8c42eb;
}

.dropped-item-tag img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.dropped-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 0.1rem;
  line-height: 1;
  transition: color 0.15s;
}

.dropped-item-remove:hover {
  color: #ef4444;
}

/* Category indicator drop zones (3 slots) */
.category-drop-zone {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.category-slot {
  width: 44px;
  height: 44px;
  border: 1.5px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}

.category-slot.drag-over {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.05);
}

.category-slot.filled {
  border-style: solid;
}

.category-slot.filled.weapon {
  border-color: #d46f1d;
}

.category-slot.filled.vitality {
  border-color: #5a8e23;
}

.category-slot.filled.spirit {
  border-color: #8c42eb;
}

.category-slot img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-slot .slot-placeholder {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
}

.category-slot .slot-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 10;
}

.category-slot .slot-remove:hover {
  background: #dc2626;
}

/* Category item visual icons in list views */
.guide-category-visual {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}
.guide-category-visual img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: contain;
  background: rgba(18, 14, 11, 0.95);
  padding: 1px;
}
.guide-category-visual img.weapon {
  border: 1px solid #d46f1d;
}
.guide-category-visual img.vitality {
  border: 1px solid #5a8e23;
}
.guide-category-visual img.spirit {
  border: 1px solid #8c42eb;
}

/* =============================================
   NEWS ARTICLES & READER MODAL STYLES
   ============================================= */
.author-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  margin-right: 0.35rem;
  object-fit: cover;
  display: inline-block;
}

#articleReaderModalOverlay {
  backdrop-filter: blur(15px);
  background: rgba(3, 5, 9, 0.75);
  align-items: center;
  justify-content: center;
}

.article-body-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75rem 0;
  border: 1px solid var(--border-glass);
}

/* Admin articles form adjustments */
.admin-article-body-textarea {
  min-height: 120px;
}




