/* =====================================================
   ZDVAL - Main Stylesheet
   Premium Matte Black + Red Theme for Valorant Team Analysis
   ===================================================== */

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  /* Primary Colors - Valorant Red */
  --primary: #ff4655;
  --primary-dark: #d93645;
  --primary-light: #ff6b78;
  --primary-glow: rgba(255, 70, 85, 0.25);
  --primary-bloom: 0 0 20px rgba(255, 70, 85, 0.3), 0 0 40px rgba(255, 70, 85, 0.15);
  
  /* Secondary Colors */
  --secondary: #2a2a2a;
  --secondary-light: #333333;
  
  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.25);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.25);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;
  
  /* Background Colors */
  --bg-dark: #1a1a1a;
  --bg-darker: #141414;
  --bg-card: #242424;
  --bg-card-hover: #2a2a2a;
  --bg-input: #2e2e2e;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(36, 36, 36, 0.85);
  --glass-bg-light: rgba(42, 42, 42, 0.7);
  --glass-bg-dark: rgba(26, 26, 26, 0.95);
  --glass-blur: 20px;
  --glass-blur-heavy: 40px;
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-light: rgba(255, 255, 255, 0.1);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  
  /* Border Colors */
  --border-color: #333333;
  --border-light: #3d3d3d;
  --border-focus: var(--primary);
  --border-glow: rgba(255, 70, 85, 0.4);
  
  /* Text Colors */
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-link: var(--primary);
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ff4655;
  --info: #3b82f6;
  
  /* Shadows & Glows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px var(--primary-glow);
  --shadow-glow-lg: 0 0 30px var(--primary-glow), 0 0 60px rgba(255, 70, 85, 0.1);
  --shadow-ambient: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
  
  /* LED Bloom Effects */
  --bloom-primary: drop-shadow(0 0 6px rgba(255, 70, 85, 0.4));
  --bloom-blue: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
  --bloom-green: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-glow: 0.3s ease-out;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Spacing */
  --sidebar-width: 200px;
  --sidebar-collapsed: 70px;
  --topbar-height: 70px;
  
  /* Z-Index */
  --z-sidebar: 100;
  --z-topbar: 110;
  --z-dropdown: 200;
  --z-modal: 10000;
  --z-toast: 10100;
  --z-overlay: 10200;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a1a;
  color: var(--text-primary);
  background-image: none;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* =====================================================
   UNIFIED HEADER
   ===================================================== */
.unified-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(18, 18, 18, 0.97) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    0 1px 0 rgba(255, 70, 85, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: var(--z-topbar);
}
.unified-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 70, 85, 0.4) 20%, rgba(255, 70, 85, 0.6) 50%, rgba(255, 70, 85, 0.4) 80%, transparent 100%);
  opacity: 0.5;
}

.unified-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
}

.unified-header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unified-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
  justify-content: flex-end;
}

/* =====================================================
   SIDEBAR PREMIUM (Icon-only)
   ===================================================== */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--topbar-height);
  bottom: 0;
  width: var(--sidebar-width);
  /* Premium matte black sidebar */
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid #2a2a2a;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: var(--z-sidebar);
  transition: width var(--transition-normal), transform var(--transition-normal);
}

/* Show text labels */
.sidebar .nav-link span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 2;
}
.sidebar .nav-link .badge {
  display: inline-flex;
}
.sidebar .user-details {
  display: flex;
}
.sidebar #userMenuBtn {
  display: none;
}

.sidebar-header {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff4655 0%, #c8102e 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 0 12px rgba(255, 70, 85, 0.3),
    0 0 25px rgba(255, 70, 85, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: logo-pulse 3s ease-in-out infinite;
  position: relative;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 70, 85, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.logo:hover .logo-icon::after {
  opacity: 1;
}

@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 70, 85, 0.3), 0 0 25px rgba(255, 70, 85, 0.15); }
  50% { box-shadow: 0 0 18px rgba(255, 70, 85, 0.4), 0 0 40px rgba(255, 70, 85, 0.2); }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-fast);
}
.logo:hover .logo-text {
  background: linear-gradient(135deg, #ff4655 0%, #ff6b7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
  width: 100%;
}

.nav-menu {
  list-style: none;
  padding: 0 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  height: 42px;
  padding: 0 0.75rem;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.25s ease, box-shadow 0.3s ease;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  text-decoration: none;
}

/* Map background inside nav link */
.nav-map-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  transition: opacity 0.3s ease;
  border-radius: 14px;
}

/* Agent icon container */
.nav-agent-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

/* When agent image is loaded, show it */
.nav-agent-icon.nav-agent-loaded {
  background-color: rgba(0, 0, 0, 0.5);
  background-size: 85%;
  background-position: center;
  background-repeat: no-repeat;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Hide FontAwesome icon when agent image loaded */
.nav-agent-icon.nav-agent-loaded i {
  display: none;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255, 70, 85, 0.08);
  border-color: rgba(255, 70, 85, 0.15);
  transform: translateX(2px);
}
.nav-link:hover .nav-map-bg {
  opacity: 0.35;
}
.nav-link:hover .nav-agent-icon.nav-agent-loaded {
  border-color: rgba(255, 70, 85, 0.4);
  transform: scale(1.1);
  box-shadow: 0 2px 10px rgba(255, 70, 85, 0.2);
}

.nav-link.active {
  color: #ff4c4c;
  background: linear-gradient(135deg, rgba(255, 76, 76, 0.12) 0%, rgba(255, 76, 76, 0.05) 100%);
  border-color: rgba(255, 76, 76, 0.3);
  box-shadow: 
    0 0 15px rgba(255, 76, 76, 0.15),
    0 0 30px rgba(255, 76, 76, 0.08);
}
.nav-link.active .nav-map-bg {
  opacity: 0.3;
}
.nav-link.active .nav-agent-icon.nav-agent-loaded {
  border-color: rgba(255, 76, 76, 0.5);
  box-shadow: 0 0 10px rgba(255, 76, 76, 0.3);
}

.nav-link.active i {
  filter: drop-shadow(0 0 8px rgba(255, 76, 76, 0.6));
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: linear-gradient(180deg, #ff4c4c, #ff6b6b);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(255, 76, 76, 0.5);
  z-index: 3;
}

.nav-link i {
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.nav-divider {
  height: 1px;
  width: calc(100% - 1.5rem);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 0.6rem auto;
}

/* Sidebar section labels */
.nav-section-label {
  padding: 0.55rem 1.2rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-section-label span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}
.nav-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}
.sidebar.collapsed .nav-section-label {
  justify-content: center;
  padding: 0.55rem 0 0.2rem;
}
.sidebar.collapsed .nav-section-label span {
  display: none;
}
.sidebar.collapsed .nav-section-label::after {
  flex: none;
  width: 24px;
  background: rgba(255,255,255,0.1);
}

/* No-team block message */
.no-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 50vh;
  gap: 0.5rem;
}
.no-team-block .no-team-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.25);
  margin-bottom: 0.5rem;
}
.no-team-block h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.no-team-block p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: 0.3rem 0 1rem;
}
.no-team-block .btn {
  margin-top: 0.5rem;
}
[data-theme="light"] .no-team-block .no-team-icon {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.25);
}
[data-theme="light"] .no-team-block h2 { color: rgba(0,0,0,0.7); }
[data-theme="light"] .no-team-block p { color: rgba(0,0,0,0.45); }

/* Dim team nav items when user has no team */
.nav-menu-no-team .nav-link {
  opacity: 0.35;
  pointer-events: auto;
}
.nav-menu-no-team .nav-link:hover {
  opacity: 0.6;
}

.nav-menu-secondary {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: opacity var(--transition-fast);
}

.badge-danger {
  background: var(--danger);
  color: white;
}

.badge-live {
  background: var(--danger);
  color: white;
  animation: pulse 2s infinite;
}

.badge-new {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary));
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  margin-left: 0.5rem;
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b35, #f7931a);
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  margin-left: 0.5rem;
  animation: glow-hot 2s ease-in-out infinite;
}

@keyframes glow-hot {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
  50% { box-shadow: 0 0 15px rgba(255, 107, 53, 0.8); }
}

.badge-success {
  background: var(--success);
  color: var(--bg-dark);
}

.badge-notification {
  background: var(--primary);
  color: white;
  position: absolute;
  top: -5px;
  right: -5px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background 0.2s ease;
  overflow: hidden;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-darker);
}

.status-dot.online {
  background: var(--success);
}

.status-dot.offline {
  background: var(--text-muted);
}

.status-dot.away {
  background: var(--warning);
}

.user-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: opacity var(--transition-fast);
}

.user-name {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-role {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
}

.user-role .plan-badge {
  font-size: 0.55rem;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
  position: relative;
}

/* Dynamic Map Background */
.page-map-bg {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.8s ease, background-image 0.8s ease;
  z-index: 0;
  pointer-events: none;
}
.page-map-bg.active {
  opacity: 0.12;
}
.page-map-overlay {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.85) 40%, rgba(26, 26, 26, 0.95) 100%);
  z-index: 0;
  pointer-events: none;
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}

/* Sidebar collapsed mode - icon only */
.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-link .badge,
.sidebar.collapsed .user-details {
  display: none;
}
.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0;
  width: 44px;
  height: 44px;
  margin: 0 auto;
}
.sidebar.collapsed .nav-menu {
  align-items: center;
}
.sidebar.collapsed .user-info {
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.sidebar.collapsed .user-info .btn-logout {
  display: none;
}
.sidebar.collapsed .nav-divider {
  width: 36px;
}
.sidebar.collapsed ~ .page-map-bg,
.sidebar.collapsed ~ .main-content .page-map-bg {
  left: var(--sidebar-collapsed);
}
.sidebar.collapsed ~ .page-map-overlay,
.sidebar.collapsed ~ .main-content .page-map-overlay {
  left: var(--sidebar-collapsed);
}

/* Top Bar */
.top-bar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  /* Matte black top bar */
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border-bottom: 1px solid #333333;
  /* Subtle bottom shadow */
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: var(--z-topbar);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-item {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Glassmorphism search */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  min-width: 300px;
  transition: all var(--transition-fast), box-shadow var(--transition-glow);
  position: relative;
  overflow: hidden;
}

.search-box:focus-within {
  border-color: rgba(255, 70, 85, 0.4);
  box-shadow: 
    0 0 0 3px var(--primary-glow),
    0 0 25px rgba(255, 70, 85, 0.15);
}

.search-box i {
  color: var(--text-muted);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  outline: none;
}

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

.search-box kbd {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.team-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  height: 42px;
}

.team-selector:hover {
  border-color: rgba(255, 70, 85, 0.3);
  background: rgba(255, 70, 85, 0.08);
  box-shadow: 0 2px 10px rgba(255, 70, 85, 0.1);
}

.team-selector i {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}
.team-selector:hover i {
  transform: translateY(1px);
}

/* Header Profile Button */
.header-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  height: 42px;
}
.header-profile:hover {
  border-color: rgba(255, 70, 85, 0.3);
  background: rgba(255, 70, 85, 0.08);
  box-shadow: 0 2px 10px rgba(255, 70, 85, 0.1);
}
.header-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 70, 85, 0.2);
  transition: border-color 0.25s ease;
}
.header-profile:hover .header-profile-avatar {
  border-color: rgba(255, 70, 85, 0.5);
}
.header-profile-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-logo {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.notification-btn {
  position: relative;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-btn:hover {
  color: #ff4655;
  background: rgba(255, 70, 85, 0.1);
  border-color: rgba(255, 70, 85, 0.3);
  box-shadow: 0 2px 10px rgba(255, 70, 85, 0.1);
}

/* Page Container */
/* Page Container */
.page-container {
  flex: 1;
  padding: 0;
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.page {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 0;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* =====================================================
   SITEWIDE PREMIUM DESIGN
   ===================================================== */

/* All headings → ZDVAL Red, premium typography */
.page h1, .page h2, .page h3 {
  color: #ff4c4c;
  text-shadow: 0 2px 10px rgba(255, 76, 76, 0.2), 0 0 20px rgba(255, 76, 76, 0.08);
}

/* Section sub-headers and card headers */
.card-header h3,
.opponents-section h3,
.analysis-section-header h3,
.panel-header h3,
.team-header h3,
.settings-card h3 {
  color: #ff4c4c;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(255, 76, 76, 0.15);
}

/* Body/paragraph text stays white */
.page p, .page span, .page div, .page label, .page td, .page th,
.page .stat-value, .page .stat-label,
.page input, .page select, .page textarea {
  color: inherit;
}

/* All FontAwesome icons → white with subtle red glow */
.card-header i, 
.opponents-section h3 i, .analysis-section-header i,
.panel-header i {
  color: #ffffff !important;
  filter: drop-shadow(0 0 3px rgba(255, 70, 85, 0.25));
}

/* Active/hover icon glow → red */
.page .active i.fas, .page .active i.far {
  filter: drop-shadow(0 0 4px rgba(255, 76, 76, 0.5)) drop-shadow(0 0 8px rgba(255, 76, 76, 0.2));
}

/* Card enhancements for premium look */
.card {
  border-color: rgba(255, 255, 255, 0.06);
}
.card:hover {
  border-color: rgba(255, 76, 76, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 76, 76, 0.08);
}

/* Card header border accent */
.card-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.page-header {
  margin-bottom: 2rem;
  position: relative;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-secondary);
}

.subtitle-with-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subtitle-with-action .page-subtitle {
  margin: 0;
}

/* =====================================================
   DASHBOARD GRID
   ===================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  position: relative;
}

.stats-row {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  /* Glassmorphism card */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast), box-shadow var(--transition-glow);
  position: relative;
  overflow: hidden;
  /* Inner shine */
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.stat-card:hover {
  border-color: var(--glass-border-light);
  transform: translateY(-4px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 70, 85, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
  /* Polycarbonate texture */
  background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.stat-icon.bg-primary {
  background-color: rgba(255, 70, 85, 0.18);
  color: var(--primary);
  box-shadow: 
    0 0 20px rgba(255, 70, 85, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.bg-primary i {
  filter: var(--bloom-primary);
}

.stat-icon.bg-success {
  background-color: rgba(0, 255, 136, 0.18);
  color: var(--success);
  box-shadow: 
    0 0 20px rgba(0, 255, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.bg-success i {
  filter: var(--bloom-green);
}

.stat-icon.bg-danger {
  background-color: rgba(255, 70, 85, 0.18);
  color: var(--danger);
  box-shadow: 
    0 0 20px rgba(255, 70, 85, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.bg-danger i {
  filter: var(--bloom-primary);
}

.stat-icon.bg-warning {
  background-color: rgba(255, 214, 0, 0.18);
  color: var(--warning);
  box-shadow: 
    0 0 20px rgba(255, 214, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon.bg-warning i {
  filter: drop-shadow(0 0 8px var(--warning)) drop-shadow(0 0 15px rgba(255, 214, 0, 0.4));
}

.stat-info {
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Cards */
.card {
  /* Glassmorphism card with depth */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  /* Ambient shadow for depth */
  box-shadow: var(--shadow-ambient);
  transition: all var(--transition-normal), box-shadow var(--transition-glow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-shine);
  pointer-events: none;
}

.card:hover {
  border-color: var(--glass-border-light);
  box-shadow: var(--shadow-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  /* Subtle metallic header */
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h3 i {
  color: var(--primary);
  filter: var(--bloom-primary);
}

.card-body {
  padding: 1.25rem;
}

.recent-activity {
  grid-column: span 8;
}

.upcoming-events {
  grid-column: span 4;
}

.announcements {
  grid-column: span 4;
}

.quick-actions {
  grid-column: span 4;
}

.recent-matches {
  grid-column: span 4;
}

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  /* Glassmorphism button */
  background: var(--glass-bg-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast), box-shadow var(--transition-glow);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.action-btn:hover {
  background: rgba(255, 70, 85, 0.1);
  border-color: rgba(255, 70, 85, 0.4);
  color: var(--primary);
  transform: translateY(-4px);
  /* LED border glow */
  box-shadow: 
    0 0 25px rgba(255, 70, 85, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.action-btn:hover i {
  filter: var(--bloom-primary);
}

.action-btn i {
  font-size: 1.25rem;
  transition: filter var(--transition-fast);
}

.action-btn span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Loading & Empty States */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-muted);
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Empty State Simple - Minimal inline style */
.empty-state-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state-simple i {
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.6;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 0.5rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.sidebar .btn-icon.btn-logout {
  color: rgba(255, 255, 255, 0.5);
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar .btn-icon.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

.btn-icon.btn-logout {
  color: var(--danger);
}

.btn-icon.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-light);
}

.btn-link {
  color: var(--text-link);
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--primary-light);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i:first-child {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.input-icon input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.input-icon input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-icon .toggle-password,
.input-icon .btn-icon.toggle-password {
  position: absolute !important;
  right: 0.75rem !important;
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0.25rem !important;
  margin: 0 !important;
  z-index: 2;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  border-radius: 0 !important;
}
.input-icon .toggle-password:hover,
.input-icon .btn-icon.toggle-password:hover {
  opacity: 1;
}

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--text-link);
}

/* =====================================================
   AUTH OVERLAY
   ===================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  transition: opacity var(--transition-normal);
  /* Subtle pattern */
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 70, 85, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 70, 85, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
}

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

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(255, 70, 85, 0.08),
    0 0 0 1px rgba(255, 70, 85, 0.06);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #ff4655, #d93645);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}

.auth-logo .logo-text {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ff4655;
  letter-spacing: 0.05em;
}

.auth-subtitle {
  color: #888888;
  font-size: 0.88rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #2e2e2e;
  border-radius: 12px;
  padding: 0.3rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #888888;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.03em;
}

.auth-tab:hover {
  color: #ff4655;
}

.auth-tab.active {
  background: #ff4655;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 70, 85, 0.3);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Auth form fields - matte black theme overrides */
.auth-overlay .form-group label {
  color: #aaaaaa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-overlay .input-icon {
  background: #2e2e2e;
  border: 1.5px solid #3d3d3d;
  border-radius: 12px;
  transition: all 0.25s ease;
}
.auth-overlay .input-icon:focus-within {
  border-color: #ff4655;
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.15);
  background: #333333;
}

.auth-overlay .input-icon i {
  color: #ff4655 !important;
  filter: none !important;
  opacity: 0.7;
}

.auth-overlay .input-icon input {
  background: transparent;
  border: none;
  color: #e8e8e8;
  font-weight: 500;
  padding-right: 2.5rem;
  box-shadow: none;
}
.auth-overlay .input-icon input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}
.auth-overlay .input-icon input::placeholder {
  color: #666666;
}

.auth-overlay .input-hint {
  color: #777777;
  font-size: 0.75rem;
}

.auth-overlay .form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.auth-overlay .form-footer label,
.auth-overlay .form-footer span {
  color: #aaaaaa;
  font-size: 0.82rem;
}
.auth-overlay .forgot-password {
  color: #ff4655;
  font-size: 0.82rem;
  font-weight: 600;
}
.auth-overlay .forgot-password:hover {
  color: #d93645;
}

.auth-overlay .btn-primary {
  background: linear-gradient(135deg, #ff4655, #d93645);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.92rem;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
  transition: all 0.25s ease;
}
.auth-overlay .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 70, 85, 0.4);
}
.auth-overlay .btn-primary i {
  color: #fff !important;
  filter: none !important;
}

.auth-overlay .btn-icon {
  color: #777777;
}
.auth-overlay .btn-icon i {
  color: #777777 !important;
  filter: none !important;
}

.auth-overlay .checkbox span {
  color: #aaaaaa;
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: var(--z-toast);
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.toast-exit {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(0, 255, 136, 0.15);
  color: var(--success);
}

.toast-error .toast-icon {
  background: rgba(255, 70, 85, 0.15);
  color: var(--danger);
}

.toast-warning .toast-icon {
  background: rgba(255, 214, 0, 0.15);
  color: var(--warning);
}

.toast-info .toast-icon {
  background: rgba(0, 212, 255, 0.15);
  color: var(--info);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.toast-close {
  color: var(--text-muted);
  padding: 0.25rem;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recent-activity,
  .recent-matches {
    grid-column: span 12;
  }
  
  .upcoming-events,
  .announcements,
  .quick-actions {
    grid-column: span 6;
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .search-box {
    display: none;
  }
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  
  .upcoming-events,
  .announcements,
  .quick-actions,
  .recent-matches {
    grid-column: span 12;
  }
  
  .top-bar-center {
    display: none;
  }
  
  .auth-container {
    margin: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .page-container {
    padding: 1rem;
  }
  
  .team-selector span {
    display: none;
  }
}

/* =====================================================
   DROPDOWN MENU
   ===================================================== */
.dropdown-menu,
.team-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--bg-card-hover);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}

.dropdown-item:hover i {
  color: var(--primary);
}

.dropdown-item.text-danger {
  color: var(--danger);
}

.dropdown-item.text-danger i {
  color: var(--danger);
}

.dropdown-item.text-danger:hover {
  background: rgba(255, 70, 85, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}

.dropdown-item-empty {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.team-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-item .team-logo {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.team-item .fa-check {
  margin-left: auto;
  color: var(--success);
}

/* ===== Premium Profile Dropdown ===== */
.profile-dropdown {
  min-width: 280px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.pdd-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(255,70,85,0.05), rgba(139,92,246,0.05));
}
.pdd-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.pdd-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}
.pdd-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-card);
}
.pdd-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pdd-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdd-email {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdd-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--plan-color);
  background: color-mix(in srgb, var(--plan-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--plan-color) 25%, transparent);
  border-radius: 5px;
  padding: 1px 7px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pdd-plan i { font-size: 0.55rem; }
.pdd-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.pdd-section {
  padding: 0.35rem 0;
}
.pdd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s;
  cursor: pointer;
}
.pdd-item:hover {
  background: rgba(255,255,255,0.04);
}
.pdd-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdd-item-icon i {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.pdd-item:hover .pdd-item-icon {
  background: rgba(255,70,85,0.1);
  border-color: rgba(255,70,85,0.2);
}
.pdd-item:hover .pdd-item-icon i {
  color: var(--primary);
}
.pdd-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pdd-item-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.pdd-item-desc {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
}
.pdd-item-arrow {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.15);
  transition: all 0.15s;
}
.pdd-item:hover .pdd-item-arrow {
  color: rgba(255,255,255,0.4);
  transform: translateX(2px);
}
.pdd-logout {
  padding: 0.6rem 1.15rem;
}
.pdd-logout .pdd-item-icon {
  background: rgba(255,70,85,0.08);
  border-color: rgba(255,70,85,0.12);
}
.pdd-logout .pdd-item-icon i {
  color: var(--primary);
}
.pdd-logout .pdd-item-label {
  color: var(--primary);
  font-weight: 600;
}
.pdd-logout:hover {
  background: rgba(255,70,85,0.06);
}

/* =====================================================
   ROLE TABS
   ===================================================== */
.role-tabs-container {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.role-tabs-container::-webkit-scrollbar {
  height: 4px;
}

.role-tabs-container::-webkit-scrollbar-track {
  background: transparent;
}

.role-tabs-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.role-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.role-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.role-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.role-tab.active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.role-tab i {
  font-size: 0.85rem;
  opacity: 0.8;
}

.role-tab.active i {
  opacity: 1;
}

/* Role Badge in Cards */
.lineup-creator,
.tactic-author {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lineup-creator i,
.tactic-author i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Lineup Card Actions */
.lineup-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.lineup-card-actions .btn-sm {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .role-tabs-container {
    padding: 0.5rem 0;
  }
  
  .role-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .role-tab span {
    display: none;
  }
  
  .role-tab i {
    font-size: 1rem;
  }
}

/* =====================================================
   VALOPLANT - 2D Map Editor
   ===================================================== */

.valoplant-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-height) - 2rem);
  gap: 0;
  background: var(--bg-darker);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Toolbar */
.valoplant-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toolbar-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.toolbar-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 120px;
}

.toolbar-select:focus {
  outline: none;
  border-color: var(--primary);
}

.toolbar-toggle {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.toggle-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--primary);
  color: white;
}

.toggle-btn i {
  font-size: 0.75rem;
}

.toolbar-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  margin: 0 0.5rem;
}

/* Tools Grid */
.tools-section .tools-grid {
  display: flex;
  gap: 0.25rem;
}

.tool-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.tool-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Color Picker */
.color-picker-row {
  display: flex;
  gap: 0.5rem;
}

.color-picker-row input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
}

.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-picker-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: var(--radius-sm);
}

/* Slider */
.toolbar-slider {
  width: 80px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  outline: none;
  margin-top: 0.5rem;
}

.toolbar-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.action-btn:active {
  transform: scale(0.95);
}

/* Editor Area */
.valoplant-editor {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Panels */
.valoplant-panel {
  width: 200px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.valoplant-panel.panel-right {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.panel-header {
  padding: 0.75rem 1rem;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-header h3 i {
  color: var(--primary);
  font-size: 0.8rem;
}

.panel-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.panel-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0;
}

/* Player Section */
.player-section {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.section-title.ally {
  color: var(--accent-blue);
}

.section-title.enemy {
  color: var(--danger);
}

.player-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  cursor: grab;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid rgba(255,255,255,0.3);
}

.player-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.player-icon:active {
  cursor: grabbing;
}

.player-icon.enemy {
  border-color: rgba(255,70,85,0.5);
}

/* Utility Section */
.utility-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.utility-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: grab;
  transition: all var(--transition-fast);
}

.utility-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.utility-icon i {
  font-size: 1rem;
}

/* Canvas Wrapper */
.valoplant-canvas-wrapper {
  flex: 1;
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}

.valoplant-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.canvas-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 26, 26, 0.9);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.canvas-control-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.canvas-control-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.zoom-level {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 50px;
  text-align: center;
}

/* Agents Grid */
.agents-search {
  margin-bottom: 1rem;
}

.agents-search input {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.agents-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.agent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: grab;
  transition: all var(--transition-fast);
  user-select: none;
}

.agent-item:active {
  cursor: grabbing;
}

.agent-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: scale(1.02);
}

.agent-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.agent-item .agent-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Agent Abilities Container */
.agent-abilities-container {
  margin-bottom: 1rem;
}

.selected-agent-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.selected-agent-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.selected-agent-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.btn-close-abilities {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-close-abilities:hover {
  color: var(--primary);
  background: var(--bg-card-hover);
}

.abilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.ability-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: grab;
  transition: all var(--transition-fast);
  position: relative;
}

.ability-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: scale(1.02);
}

.ability-item:active {
  cursor: grabbing;
}

.ability-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.ability-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  line-height: 1.2;
}

.ability-key {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-card);
  padding: 0.1rem 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
}

/* Timeline */
.valoplant-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.timeline-phases {
  display: flex;
  gap: 0.5rem;
}

.phase-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.phase-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.phase-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.phase-btn i {
  font-size: 0.75rem;
}

.timeline-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-separator {
  color: var(--border-color);
}

/* Responsive ValoPlant */
@media (max-width: 1200px) {
  .valoplant-panel {
    width: 160px;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .valoplant-container {
    height: auto;
    min-height: calc(100vh - var(--topbar-height) - 2rem);
  }
  
  .valoplant-editor {
    flex-direction: column;
  }
  
  .valoplant-panel {
    width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .valoplant-panel.panel-right {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
  }
  
  .panel-content {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .player-section,
  .utility-section {
    margin-bottom: 0;
  }
  
  .valoplant-canvas-wrapper {
    min-height: 400px;
  }
}

/* =====================================================
   TACTIC DETAIL VIEW WITH ZOOM & DRAWING
   ===================================================== */

.tactic-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Toolbar */
.tactic-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-darker);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 0.5rem;
}

.tactic-toolbar .btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  min-width: 36px;
}

.tactic-toolbar .tool-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.tactic-toolbar #zoomLevel {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.tactic-toolbar input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 2px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
}

.tactic-toolbar input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.tactic-toolbar input[type="color"]::-webkit-color-swatch {
  border-radius: 4px;
  border: none;
}

.tactic-toolbar select.form-control-sm {
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  min-width: 70px;
}

/* Image Container with Canvas */
.tactic-detail-image {
  position: relative;
  width: 100%;
  max-height: 65vh;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tactic-detail-image img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  transition: transform 0.1s ease;
  transform-origin: center center;
  user-select: none;
}

.tactic-detail-image canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: all;
  transform-origin: center center;
}

.tactic-detail-image:fullscreen {
  max-height: 100vh;
  background: #000;
}

.tactic-detail-image:fullscreen img,
.tactic-detail-image:fullscreen canvas {
  max-height: 100vh;
}

.tactic-detail-video {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.tactic-detail-video video,
.tactic-detail-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
}

.tactic-detail-description,
.tactic-detail-notes {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.tactic-detail-description h4,
.tactic-detail-notes h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tactic-detail-description p,
.tactic-detail-notes p {
  margin: 0;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.tactic-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.tactic-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tactic-detail-meta i {
  color: var(--text-muted);
}

/* =====================================================
   TEAM PAGE STYLES
   ===================================================== */
.team-info-card {
  padding: 1.5rem;
}

.team-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.team-logo-container {
  position: relative;
  flex-shrink: 0;
}

.team-logo-lg {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--border-color);
  background: var(--bg-darker);
}

.logo-edit-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
}

.team-logo-container:hover .logo-edit-btn {
  opacity: 1;
}

.team-info {
  flex: 1;
  min-width: 200px;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-tag {
  color: var(--text-muted);
  font-weight: normal;
}

.team-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.team-stats {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Members Categories Premium */
.members-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.members-category {
  position: relative;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.15) 0%, rgba(255, 70, 85, 0.05) 100%);
  border: 1px solid rgba(255, 70, 85, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ff4655;
}

.members-category[data-category="players"] .category-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.category-info {
  flex: 1;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.category-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.category-count {
  width: 32px;
  height: 32px;
  background: rgba(255, 70, 85, 0.15);
  border: 1px solid rgba(255, 70, 85, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff4655;
}

.members-category[data-category="players"] .category-count {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.category-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Premium Member Card */
.team-member-card {
  position: relative;
  background: linear-gradient(165deg, #1a1a1a 0%, #141414 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-member-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.3), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.team-member-card:hover::before {
  opacity: 1;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 70, 85, 0.08);
}

.team-member-card.is-owner {
  border-color: rgba(245, 158, 11, 0.2);
}

.team-member-card.is-owner::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), transparent 50%);
  opacity: 1;
}

.member-card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 70, 85, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.team-member-card.is-owner .member-card-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.member-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

/* Avatar Premium */
.member-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.member-avatar-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff4655, #ff6b7a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar-ring.ring-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.member-avatar-lg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #141414;
}

/* Avatar Fallback (letra inicial) */
.member-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #242424, #1a1a1a);
  border: 3px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar-fallback span {
  font-size: 2rem;
  font-weight: 700;
  color: #ff4655;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(255, 70, 85, 0.3);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4655, #d63447);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.2s;
  border: 2px solid #141414;
  box-shadow: 0 4px 12px rgba(255, 70, 85, 0.4);
}

.member-avatar-wrapper:hover .avatar-edit-btn {
  opacity: 1;
}

/* Member Info */
.member-info {
  flex: 1;
  min-width: 0;
}

.member-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-you {
  background: linear-gradient(135deg, #ff4655, #d63447);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.member-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.member-role-badge .role-icon {
  font-size: 0.9rem;
}

.badge-primary { background: rgba(255, 70, 85, 0.15); color: #ff4655; border: 1px solid rgba(255, 70, 85, 0.2); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-secondary { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.2); }

/* Member Actions */
.member-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  background: rgba(255, 70, 85, 0.15);
  border-color: rgba(255, 70, 85, 0.3);
  color: #ff4655;
}

.btn-action-edit:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: rgba(239, 68, 68, 0.6);
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Member Footer */
.member-footer {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.member-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-stat i {
  font-size: 0.75rem;
  color: rgba(255, 70, 85, 0.6);
}

/* Legacy support */
.member-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.member-details {
  flex: 1;
  min-width: 0;
}

.member-riot-id,
.member-joined {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.invite-code-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.invite-code {
  font-family: monospace;
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--accent-blue);
  letter-spacing: 2px;
}

.invite-code-display {
  text-align: center;
  margin: 1rem 0;
}

.invite-code-large {
  font-family: monospace;
  font-size: 2rem;
  padding: 1rem 2rem;
  background: var(--bg-darker);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--primary);
  letter-spacing: 4px;
  display: inline-block;
}

.invite-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* =====================================================
   SETTINGS PAGE - Premium Vertical Layout
   ===================================================== */
.settings-premium {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 76, 76, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.settings-section:hover {
  border-color: rgba(255, 76, 76, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 76, 76, 0.06);
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 76, 76, 0.08) 0%, rgba(255, 76, 76, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 76, 76, 0.1);
}

.settings-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 76, 76, 0.12);
  border: 1px solid rgba(255, 76, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-section-icon i {
  font-size: 1.1rem;
}

.settings-section-header h2 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 0.15rem;
}
.settings-section-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.settings-section-body {
  padding: 1.5rem;
}

/* ===== MAPS IN SETTINGS ===== */
.settings-maps-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.settings-maps-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: 10px;
}

.settings-map-tab {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.settings-map-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.settings-map-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(255, 107, 122, 0.15));
}

.settings-maps-actions {
  display: flex;
  gap: 0.5rem;
}

.settings-section-body .maps-grid-premium {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Profile top - avatar + name */
.settings-profile-top {
  margin-bottom: 1.5rem;
}
.settings-avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.settings-avatar-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.settings-avatar-info span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Fields grid */
.settings-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.settings-premium .form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.settings-premium .form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  transition: all 0.25s ease;
}
.settings-premium .form-input:focus {
  border-color: rgba(255, 76, 76, 0.4);
  box-shadow: 0 0 12px rgba(255, 76, 76, 0.1);
  outline: none;
}
.settings-premium .form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Divider */
.settings-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.settings-divider::before,
.settings-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 76, 76, 0.2), transparent);
}
.settings-divider::before {
  background: linear-gradient(90deg, transparent, rgba(255, 76, 76, 0.2));
}
.settings-divider span {
  padding: 0 1rem;
}

/* Actions */
.settings-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* Preferences grid */
.settings-prefs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Account grid */
.settings-account-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.settings-account-info-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-premium .account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Logout premium button */
.btn-logout-premium {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.btn-logout-premium:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ff6b6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

/* Theme selector */
.theme-selector {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem;
  border-radius: 10px;
}
.theme-btn {
  width: 38px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}
.theme-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.theme-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 70, 85, 0.3);
}

/* Fix settings input-icon alignment */
.settings-premium .input-icon {
  position: relative !important;
  display: flex;
  align-items: center;
}
.settings-premium .input-icon i:first-child {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  z-index: 1;
  font-size: 0.85rem;
}
.settings-premium .input-icon input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
}

/* =====================================================
   PREMIUM PROFILE PAGE
   ===================================================== */
.prof-page {
  max-width: 820px;
  margin: 0 auto;
}

/* --- Banner --- */
.prof-banner {
  position: relative;
  background: rgba(18,18,22,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.prof-banner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.04), transparent 60%);
  pointer-events: none;
}
.prof-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem 1.25rem;
}

/* Identity (left) */
.prof-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.prof-avatar-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.prof-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    rgba(139,92,246,0.6),
    var(--accent)
  );
  opacity: 0.5;
  transition: opacity 0.3s;
}
.prof-avatar-ring:hover::before { opacity: 0.9; }
.prof-avatar-img {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(18,18,22,1);
}
.prof-avatar-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(18,18,22,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  z-index: 2;
}
.prof-avatar-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.prof-online-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid rgba(18,18,22,1);
  z-index: 2;
}

.prof-identity-text { flex: 1; min-width: 0; }
.prof-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.prof-name-row h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.prof-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 6px;
  padding: 2px 8px;
}
.prof-plan-chip i { font-size: 0.55rem; }
.prof-email {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.15rem;
}
.prof-tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}
.prof-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}
.prof-tag i { font-size: 0.6rem; }
.prof-tag-admin {
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.15);
}

/* Banner right */
.prof-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}
.prof-stat-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}
.prof-team-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}
.prof-stat-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
}
.prof-stat-value {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.prof-social-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.prof-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.2s;
}
.prof-social-icon:hover { transform: translateY(-2px); }
.prof-social-twitch:hover { background: rgba(145,70,255,0.15); color: #9146ff; border-color: rgba(145,70,255,0.25); }
.prof-social-twitter:hover { background: rgba(29,161,242,0.15); color: #1da1f2; border-color: rgba(29,161,242,0.25); }
.prof-social-ig:hover { background: rgba(225,48,108,0.15); color: #e1306c; border-color: rgba(225,48,108,0.25); }
.prof-no-social {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  font-style: italic;
}
.prof-no-social i { margin-right: 0.25rem; }

/* Tabs */
.prof-tabs {
  display: flex;
  gap: 0;
  padding: 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.12);
}
.prof-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}
.prof-tab:hover { color: rgba(255,255,255,0.6); }
.prof-tab.active { color: var(--primary); }
.prof-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.prof-tab i { font-size: 0.7rem; }

/* Tab panels */
.prof-tab-panel { display: none; }
.prof-tab-panel.active { display: block; }

/* --- Cards --- */
.prof-card {
  background: rgba(18,18,22,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}
.prof-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.prof-card-header > i {
  width: 36px;
  height: 36px;
  background: rgba(255,70,85,0.08);
  border: 1px solid rgba(255,70,85,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.prof-card-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prof-card-header p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin: 0.1rem 0 0;
}

/* --- Form --- */
.prof-form {
  padding: 1.25rem 1.5rem 1.5rem;
}
.prof-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.prof-fields-2 {
  grid-template-columns: repeat(2, 1fr);
}
.prof-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
}
.prof-field label i {
  margin-right: 0.3rem;
}
.prof-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}
.prof-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,70,85,0.1);
  background: rgba(255,255,255,0.05);
}
.prof-input-locked {
  opacity: 0.5;
  cursor: not-allowed;
}
.prof-textarea {
  resize: vertical;
  min-height: 70px;
}
.prof-field-hint {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.3rem;
}
.prof-field-hint i { margin-right: 0.2rem; font-size: 0.55rem; }
.prof-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  font-weight: 600;
}
.prof-separator::before, .prof-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.prof-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.prof-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(255,70,85,0.25);
}
.prof-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,70,85,0.35);
}

/* --- Plan box --- */
.prof-plan-box {
  margin: 1.25rem 1.5rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 12px;
  overflow: hidden;
}
.prof-plan-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
.prof-plan-badge {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.prof-plan-details { flex: 1; }
.prof-plan-details h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
}
.prof-plan-details p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin: 0.2rem 0 0;
  line-height: 1.4;
}
.prof-btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), #c42d3a);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(255,70,85,0.2);
  flex-shrink: 0;
}
.prof-btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,70,85,0.35);
}
.prof-plan-crown {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.prof-plan-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.1);
}
.prof-plan-stat-lbl {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
}
.prof-plan-stat-val {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.prof-btn-history {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}
.prof-btn-history:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* Responsive profile */
@media (max-width: 768px) {
  .prof-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .prof-banner-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .prof-fields {
    grid-template-columns: 1fr;
  }
  .prof-fields-2 {
    grid-template-columns: 1fr 1fr;
  }
  .prof-tabs { padding: 0 1rem; }
  .prof-form { padding: 1rem; }
  .prof-plan-box { margin: 1rem; }
  .prof-plan-top { flex-wrap: wrap; }
}

/* ========== SETTINGS HERO HEADER ========== */
.stg-hero {
  position: relative;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.stg-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,70,85,0.06) 0%, rgba(139,92,246,0.06) 50%, rgba(245,158,11,0.04) 100%);
  pointer-events: none;
}
.stg-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}
.stg-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.stg-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.stg-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s;
}
.stg-avatar-wrap:hover .stg-avatar {
  border-color: var(--primary);
}
.stg-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(30,30,30,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
}
.stg-avatar-edit:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.stg-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid rgba(20,20,20,0.9);
}
.stg-hero-info {
  flex: 1;
  min-width: 0;
}
.stg-hero-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stg-hero-name-row h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stg-hero-email {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}
.stg-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.stg-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}
.stg-meta-tag i { font-size: 0.6rem; }
.stg-meta-admin {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.2);
}

/* Hero Social Badges */
.stg-hero-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.stg-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.stg-social-btn:hover { transform: translateY(-2px); }
.stg-twitch:hover { background: rgba(145,70,255,0.2); color: #9146ff; border-color: rgba(145,70,255,0.3); }
.stg-twitter:hover { background: rgba(29,161,242,0.2); color: #1da1f2; border-color: rgba(29,161,242,0.3); }
.stg-instagram:hover { background: rgba(225,48,108,0.2); color: #e1306c; border-color: rgba(225,48,108,0.3); }
.stg-no-social {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* Hero Right: Team + Plan */
.stg-hero-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.stg-hero-team {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.stg-team-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}
.stg-team-info {
  display: flex;
  flex-direction: column;
}
.stg-team-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.stg-team-role {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}
.stg-hero-plan {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stg-plan-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.stg-plan-info {
  display: flex;
  flex-direction: column;
}
.stg-plan-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
}
.stg-plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.stg-plan-max {
  color: #f59e0b;
  font-size: 1.1rem;
}

/* Hero Tabs */
.stg-hero-tabs {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}
.stg-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}
.stg-tab:hover { color: rgba(255,255,255,0.7); }
.stg-tab.active {
  color: var(--primary);
}
.stg-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.stg-tab i { font-size: 0.7rem; }

/* Tab Content */
.stg-tab-content {
  display: none;
}
.stg-tab-content.active {
  display: block;
}

/* Responsive hero */
@media (max-width: 992px) {
  .stg-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .stg-hero-right {
    border-left: none;
    padding-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    justify-content: flex-start;
  }
  .stg-hero-tabs {
    padding: 0 1rem;
    overflow-x: auto;
  }
}

@media (max-width: 576px) {
  .stg-hero-content {
    padding: 1rem;
  }
  .stg-hero-left {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .stg-hero-social {
    justify-content: center;
    width: 100%;
  }
  .stg-hero-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .stg-hero-tabs {
    padding: 0 0.5rem;
  }
  .stg-tab {
    padding: 0.65rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* ========== SETTINGS PLAN SECTION ========== */
.settings-plan-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}

.settings-plan-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.settings-plan-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
}

.settings-plan-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.5;
}

.settings-plan-details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.settings-plan-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  display: block;
}

.settings-plan-stat-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .settings-plan-current {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .settings-plan-details {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .settings-premium {
    padding: 1rem;
  }
  .settings-fields-grid {
    grid-template-columns: 1fr;
  }
  .settings-avatar-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

.profile-avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.avatar-container {
  position: relative;
}

.settings-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-fast);
  color: white;
  gap: 0.25rem;
}

.avatar-upload-overlay i {
  font-size: 1.5rem;
}

.avatar-upload-overlay span {
  font-size: 0.75rem;
}

.avatar-container:hover .avatar-upload-overlay {
  opacity: 1;
}

.form-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.form-divider span {
  padding: 0 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-darker);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

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

.preference-info {
  display: flex;
  flex-direction: column;
}

.preference-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.preference-description {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: white;
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-info {
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  font-weight: 500;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .team-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .team-stats {
    justify-content: center;
  }
  
  .team-actions {
    justify-content: center;
  }
  
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    flex-direction: column;
  }
}

/* =====================================================
   TELEMETRY PAGE STYLES
   ===================================================== */
.telemetry-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.telemetry-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.telemetry-match-card {
  background: var(--bg-darker);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}

.telemetry-match-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.match-map-preview {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.match-map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-map-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-info {
  padding: 1rem;
}

.match-result {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.match-score {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.match-stats,
.match-agent,
.match-date,
.match-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.agent-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* Replay Container */
.replay-container {
  display: grid;
  grid-template-columns: 200px 1fr 250px;
  gap: 1rem;
  height: calc(100vh - 200px);
  min-height: 600px;
}

.replay-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-y: auto;
}

.replay-sidebar h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.round-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-darker);
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
}

.round-item:hover {
  background: var(--bg-card-hover);
}

.round-item.active {
  background: var(--bg-card-hover);
  border-left-color: var(--primary);
}

.round-item.round-win {
  border-left-color: var(--success);
}

.round-item.round-loss {
  border-left-color: var(--danger);
}

.round-number {
  flex: 1;
  font-weight: 500;
}

.round-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.round-result {
  font-weight: 700;
}

.round-win .round-result { color: var(--success); }
.round-loss .round-result { color: var(--danger); }

/* Replay Main */
.replay-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.replay-canvas-container {
  position: relative;
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#replayCanvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.replay-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 1rem;
  background: rgba(0,0,0,0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-player { background: #00d4ff; }
.dot-kill { background: #00ff88; }
.dot-death { background: #ff4655; }
.dot-ability { background: #bd00ff; }

/* Replay Controls */
.replay-controls {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.timeline-container {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-container input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: var(--bg-darker);
  border-radius: 4px;
  cursor: pointer;
}

.timeline-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.timeline-events {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
}

.timeline-marker {
  position: absolute;
  width: 4px;
  height: 100%;
  border-radius: 2px;
  transform: translateX(-50%);
}

.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.time-display {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-width: 100px;
}

/* Events Panel */
.replay-events-panel {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-y: auto;
}

.replay-events-panel h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.events-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-darker);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.event-item:hover {
  background: var(--bg-card-hover);
}

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

.event-icon {
  font-size: 0.9rem;
}

.event-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .replay-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;
    height: auto;
  }
  
  .replay-sidebar {
    order: 2;
  }
  
  .replay-main {
    order: 1;
  }
  
  .replay-events-panel {
    order: 3;
    max-height: 200px;
  }
  
  .rounds-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .round-item {
    flex: 0 0 auto;
  }
}}

/* Divider Text */
.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider-text::before {
  margin-right: 1rem;
}

.divider-text::after {
  margin-left: 1rem;
}

/* Upload Modal Styles */
#uploadModal .modal-body textarea {
  font-family: monospace;
  font-size: 0.85rem;
}

/* Legend Dots */
.replay-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-player {
  background: #00d4ff;
}

.dot-kill {
  background: #00ff88;
}

.dot-death {
  background: #ff4655;
}

.dot-ability {
  background: #bd00ff;
}

/* Annotation Mode */
.annotation-mode-active {
  cursor: crosshair;
}

.btn.active {
  background: var(--accent-primary);
  color: var(--text-primary);
}

/* Empty State Actions */
.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Map Preview in Cards */
.match-map-preview {
  position: relative;
  width: 100%;
  height: 120px;
  background: var(--bg-darker);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.match-map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.match-map-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* =====================================================
   VISUAL EFFECTS (cleaned up)
   ===================================================== */

/* Tactical Grid Overlay - disabled */
.page-container {
  position: relative;
}

/* Scan Line / Data Stream / Noise - all removed */

/* Glow text for values */
.stat-value {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Enhanced Spinner with glow */
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Button Primary with enhanced LED glow */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent-blue), var(--primary));
  background-size: 200% 200%;
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-fast);
  animation: gradient-shift 3s ease infinite;
}

.btn-primary:hover::before {
  opacity: 0.6;
}

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

/* Live indicator enhanced pulse */
.badge-live {
  position: relative;
}

.badge-live::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--danger);
  border-radius: inherit;
  z-index: -1;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Page Header with tactical underline */
.page-header {
  position: relative;
  padding-bottom: 1rem;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  box-shadow: 0 0 10px var(--primary-glow);
}

.page-header h1 {
  text-shadow: none;
}

/* Toast notifications */
.toast {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: #2a2a2a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Modal with matte black theme — scoped to app.js Pattern A modals */
.app-modal-overlay > .modal {
  background: #242424;
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 70, 85, 0.06);
}

/* Auth overlay enhanced - matte black premium */
.auth-container {
  background: #242424 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 
    0 25px 80px -12px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 70, 85, 0.06),
    0 0 0 1px rgba(255, 70, 85, 0.05) !important;
}

/* Input fields with subtle glow focus */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 
    0 0 0 3px var(--primary-glow),
    0 0 20px rgba(255, 70, 85, 0.15) !important;
}

/* Team selector with holographic effect */
.team-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.team-selector:hover {
  border-color: rgba(255, 70, 85, 0.25);
  background: rgba(255, 70, 85, 0.08);
}

/* Notification button glow on badge */
.notification-btn .badge-notification {
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Activity items with subtle border glow */
.activity-item {
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.activity-item:hover {
  background: var(--glass-bg);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-container::before,
  .page-container::after,
  .main-content::before {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-container::after,
  .search-box::before,
  .dashboard-grid::before,
  .btn-primary::before,
  .badge-live::before {
    animation: none;
  }
}

/* =====================================================
   VALOPLANT FULL-SCREEN OVERRIDE
   ===================================================== */
#page-valoplant {
  position: relative !important;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 50%, #242424 100%);
  width: 100%;
  height: 100%;
  display: none;
}

#page-valoplant.active {
  display: block !important;
}

/* =====================================================
   TACTICS SIDE SECTIONS
   ===================================================== */
.side-section {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.side-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.side-section-header:hover {
  background: var(--bg-card-hover);
}

.side-section-header.attack {
  border-left: 3px solid #ff4655;
}

.side-section-header.defense {
  border-left: 3px solid #00d4ff;
}

.side-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.side-section-title i {
  font-size: 1.1rem;
}

.side-section-header.attack .side-section-title i {
  color: #ff4655;
}

.side-section-header.defense .side-section-title i {
  color: #00d4ff;
}

.side-folder-count {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-toggle {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.section-toggle.open {
  transform: rotate(180deg);
}

.side-section-content {
  border-top: 1px solid var(--border-color);
  padding: 0.5rem;
}

.side-section-content .folders-list {
  margin: 0;
}

/* Side select in modal */
.side-select-group {
  display: flex;
  gap: 0.75rem;
}

.side-select-option {
  flex: 1;
  cursor: pointer;
}

.side-select-option input {
  display: none;
}

.side-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(36, 36, 36, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.side-select-option input:checked + .side-select-btn.attack {
  border-color: #ff4655;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.3) 0%, rgba(255, 70, 85, 0.15) 100%);
  color: #ff4655;
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.35), 0 10px 26px rgba(255, 70, 85, 0.25);
}

.side-select-option input:checked + .side-select-btn.defense {
  border-color: #00d4ff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.15) 100%);
  color: #00d4ff;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 10px 26px rgba(0, 212, 255, 0.25);
}

.side-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Lineups items grid inside sections */
.lineups-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0.5rem;
}

.lineups-sections-container {
  padding: 0;
}

.lineups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.lineups-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lineups-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

#page-valoplant .valoplant-v2 {
  width: 100%;
  height: 100%;
}

/* Sidebar collapsed state */
.sidebar.collapsed ~ .main-content #page-valoplant {
  left: 0;
}

@media (max-width: 1024px) {
  #page-valoplant {
    inset: 0;
  }
}

/* =====================================================
   INDIVIDUAL STATS - Player Analysis Tab
   ===================================================== */

/* Individual Tab Content */
.individual-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.individual-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.individual-filters select {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  min-width: 160px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.individual-filters select:hover,
.individual-filters select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Player Summary Card */
.player-summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(var(--glass-blur));
}

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

.player-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-header h2 i {
  color: var(--primary);
}

.games-badge {
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition-fast);
}

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

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.acs .stat-value { color: var(--accent-blue); }
.stat-card.kda .stat-value { color: var(--accent-green); }
.stat-card.kd .stat-value { color: var(--accent-yellow); }
.stat-card.econ .stat-value { color: var(--accent-orange); }
.stat-card.fb .stat-value { color: var(--primary); }
.stat-card.plants .stat-value { color: var(--accent-green); }
.stat-card.defuses .stat-value { color: var(--accent-blue); }
.stat-card.adr .stat-value { color: var(--accent-purple); }

/* Section Title */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary);
}

/* Map Stats Grid */
.map-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.map-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.map-stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.map-stat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.map-stat-header img {
  width: 40px;
  height: 24px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.map-stat-header span:first-of-type {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.map-stat-header .games-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.map-stat-body {
  display: flex;
  padding: 0.75rem;
  gap: 1rem;
}

.map-stat-body .mini-stat {
  flex: 1;
  text-align: center;
}

.map-stat-body .mini-stat .label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.map-stat-body .mini-stat .value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* History Table */
.history-table-container {
  overflow-x: auto;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

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

.history-table th,
.history-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.history-table th {
  background: var(--bg-card);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.history-table td {
  color: var(--text-primary);
}

.history-table td.highlight {
  color: var(--accent-blue);
  font-weight: 700;
}

.history-table tr:hover td {
  background: var(--bg-card-hover);
}

.history-table .btn-icon {
  padding: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.history-table .btn-icon:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.history-table .btn-icon.danger:hover {
  color: var(--danger);
}

/* Stat Modal */
.modal-content.modal-stats {
  max-width: 700px;
}

.stats-input-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-input-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.stat-input-group input {
  padding: 0.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.stat-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Map Grid in Modal */
#statMapGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#statMapGrid .map-select-item.small {
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(36, 36, 36, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--transition-fast);
}

#statMapGrid .map-select-item.small::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 70, 85, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

#statMapGrid .map-select-item.small:hover {
  border-color: rgba(255, 70, 85, 0.5);
  box-shadow: 0 8px 20px rgba(255, 70, 85, 0.15);
  transform: translateY(-2px);
}

#statMapGrid .map-select-item.small:hover::before {
  opacity: 1;
}

#statMapGrid .map-select-item.small.selected {
  border-color: #ff4655;
  box-shadow: 0 0 0 2px rgba(255, 70, 85, 0.25), 0 12px 26px rgba(255, 70, 85, 0.2);
}

#statMapGrid .map-select-item.small img {
  width: 100%;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.25rem;
}

#statMapGrid .map-select-item.small span {
  font-size: 0.68rem;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

/* Individual empty state */
#individualContent .empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

#individualContent .empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--border-color);
}

#individualContent .empty-state p {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .individual-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .individual-filters {
    flex-direction: column;
  }
  
  .individual-filters select {
    width: 100%;
  }
}

/* =====================================================
   ANTITACTIC STYLES
   ===================================================== */

.antitactic-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}

/* Opponents List */
.opponents-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
}

.opponents-section h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opponents-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.opponent-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.opponent-card:hover {
  border-color: rgba(255, 70, 85, 0.5);
  box-shadow: 0 4px 12px rgba(255, 70, 85, 0.15);
  transform: translateY(-2px);
}

.opponent-card.selected {
  border-color: #ff4655;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.15) 0%, rgba(255, 70, 85, 0.05) 100%);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.35), 0 8px 20px rgba(255, 70, 85, 0.2);
}

.opponent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.opponent-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.opponent-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.opponent-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.opponent-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opponent-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.opponent-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.empty-opponents {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.empty-opponents i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Main Content */
.antitactic-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.select-opponent-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-muted);
}

.select-opponent-prompt i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Tabs */
.opponent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.opponent-header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.tab-content {
  min-height: 400px;
}

.opponent-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(255, 70, 85, 0.08);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.tab-btn.active i {
  color: white;
}

/* =====================================================
   RANKED PAGE STYLES
   ===================================================== */

.ranked-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.ranked-header .header-content h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ranked-header .header-content h1 i {
  color: #fbbf24;
}

.ranked-header .header-actions {
  display: flex;
  gap: 0.5rem;
}

.ranked-content {
  margin-top: 1.5rem;
}

/* Ranked Players Grid */
.ranked-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Ranked Player Card */
.ranked-player-card {
  position: relative;
  background: linear-gradient(145deg, #242424, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranked-player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 70, 85, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(255, 70, 85, 0.1);
}

.ranked-player-card.is-igl {
  border-color: rgba(251, 191, 36, 0.3);
}

.ranked-player-card.is-self {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.06), rgba(15, 23, 42, 0.95));
}

.ranked-player-card.is-self:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(139, 92, 246, 0.15);
}

.ranked-self-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #a78bfa;
  z-index: 2;
}

.ranked-avatar-ring.ring-self {
  border: 2px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.ranked-player-card.is-igl:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(251, 191, 36, 0.15);
}

/* Card Glow */
.ranked-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 70, 85, 0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.ranked-player-card:hover .ranked-card-glow {
  opacity: 1;
}

.ranked-player-card.is-igl .ranked-card-glow {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
}

.ranked-card-content {
  position: relative;
  padding: 1.5rem;
  z-index: 1;
}

/* Card Header */
.ranked-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Avatar */
.ranked-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ranked-avatar-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff4655, #d63447);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranked-avatar-ring.ring-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.ranked-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #141414;
}

.ranked-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #242424, #1a1a1a);
  border: 3px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranked-avatar-fallback span {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ff4655;
  text-transform: uppercase;
}

.ranked-player-card.is-igl .ranked-avatar-fallback span {
  color: #fbbf24;
}

/* Player Info */
.ranked-player-info {
  flex: 1;
  min-width: 0;
}

.ranked-player-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranked-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranked-role-badge.badge-success {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.1));
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.ranked-role-badge.badge-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Stats Preview */
.ranked-stats-preview {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ranked-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.ranked-stat-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 70, 85, 0.2);
}

.ranked-stat-item i {
  font-size: 1rem;
  color: #ff4655;
}

.ranked-stat-item .stat-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranked-stat-item .stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ranked-stat-item .stat-value .rank-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ranked-stat-item .stat-value .rank-text {
  font-size: 0.85rem;
}

.ranked-stat-item .stat-value.stat-pending {
  color: rgba(255, 255, 255, 0.3);
}

/* Card Actions */
.ranked-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-ranked-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-ranked-action.btn-view-profile {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.15), rgba(255, 70, 85, 0.05));
  color: #ff4655;
  border: 1px solid rgba(255, 70, 85, 0.3);
}

.btn-ranked-action.btn-view-profile:hover {
  background: linear-gradient(135deg, #ff4655, #d63447);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.4);
  transform: translateY(-2px);
}

.btn-ranked-action.btn-no-riot {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.ranked-riot-id {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
  display: block;
}

/* =====================================================
   RANKED ANALYSIS MODAL STYLES
   ===================================================== */

.modal-lg {
  max-width: 900px;
  width: 95%;
}

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

.analysis-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analysis-player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ff4655;
}

.analysis-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback-mini {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #242424, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-fallback-mini span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff4655;
}

.analysis-header-info h2 {
  margin: 0;
  font-size: 1.25rem;
}

.analysis-riot-id {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.analysis-modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* Period Tabs */
.analysis-period-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.period-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.period-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.period-tab.active {
  background: linear-gradient(135deg, #ff4655, #d63447);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}

.period-tab i {
  font-size: 0.9rem;
}

/* Stats Overview */
.analysis-stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.analysis-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s;
}

.analysis-stat-card:hover {
  border-color: rgba(255, 70, 85, 0.3);
  transform: translateY(-2px);
}

.stat-icon-wrapper {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-icon-wrapper.bg-primary {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.2), rgba(255, 70, 85, 0.1));
  color: #ff4655;
}

.stat-icon-wrapper.bg-success {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1));
  color: #4ade80;
}

.stat-icon-wrapper.bg-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: #ef4444;
}

.stat-icon-wrapper.bg-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
  color: #fbbf24;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-content .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-content .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Analysis Sections */
.analysis-section {
  margin-bottom: 2rem;
}

.analysis-section-header {
  margin-bottom: 1rem;
}

.analysis-section-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.analysis-section-header h3 i {
  color: #ff4655;
}

/* Top Agents Grid */
.top-agents-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.top-agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  position: relative;
  transition: all 0.2s;
}

.top-agent-card:hover {
  border-color: rgba(255, 70, 85, 0.3);
  transform: translateX(4px);
}

.top-agent-card.rank-1 {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
  border-color: rgba(255, 215, 0, 0.3);
}

.top-agent-card.rank-2 {
  background: linear-gradient(145deg, rgba(192, 192, 192, 0.08), rgba(192, 192, 192, 0.02));
  border-color: rgba(192, 192, 192, 0.2);
}

.top-agent-card.rank-3 {
  background: linear-gradient(145deg, rgba(205, 127, 50, 0.08), rgba(205, 127, 50, 0.02));
  border-color: rgba(205, 127, 50, 0.2);
}

.agent-rank-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4655, #d63447);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 70, 85, 0.4);
}

.rank-1 .agent-rank-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.rank-2 .agent-rank-badge {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  box-shadow: 0 4px 10px rgba(192, 192, 192, 0.4);
}

.rank-3 .agent-rank-badge {
  background: linear-gradient(135deg, #cd7f32, #b5651d);
  box-shadow: 0 4px 10px rgba(205, 127, 50, 0.4);
}

.agent-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

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

.agent-info {
  flex: 1;
  min-width: 0;
}

.agent-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.agent-role {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

.agent-stats {
  text-align: right;
  min-width: 120px;
}

.agent-stat-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4655, #ff6b7a);
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.rank-1 .stat-bar-fill {
  background: linear-gradient(90deg, #ffd700, #ffaa00);
}

.agent-stat-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Agents by Map Grid */
.agents-by-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.map-agents-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.map-agents-card:hover {
  border-color: rgba(255, 70, 85, 0.3);
  transform: translateY(-4px);
}

.map-header {
  height: 80px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15));
}

.map-name {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.map-agents-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-agent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.2s;
}

.map-agent-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.map-agent-item.primary-agent {
  background: linear-gradient(145deg, rgba(255, 70, 85, 0.15), rgba(255, 70, 85, 0.05));
  border: 1px solid rgba(255, 70, 85, 0.2);
}

.map-agent-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.map-agent-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.map-agent-count {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* Empty States */
.empty-agents {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.4);
}

.empty-agents i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .ranked-players-grid {
    grid-template-columns: 1fr;
  }
  
  .ranked-header {
    flex-direction: column;
  }
  
  .ranked-stats-preview {
    gap: 0.5rem;
  }
  
  .ranked-stat-item {
    padding: 0.5rem 0.25rem;
  }
  
  .analysis-stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .agents-by-map-grid {
    grid-template-columns: 1fr;
  }
  
  .period-tab span {
    display: none;
  }
  
  .modal-lg {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
}

/* =====================================================
   RANKED - PREMIUM STYLES
   ===================================================== */

/* Premium Refresh Button */
.btn-premium-refresh {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border: 1px solid rgba(255, 76, 76, 0.3);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-premium-refresh:hover {
  border-color: rgba(255, 76, 76, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 76, 76, 0.3);
}

.btn-premium-refresh-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.btn-premium-refresh-inner i {
  color: #ff4c4c;
  font-size: 1.1rem;
  transition: transform 0.5s ease;
}

.btn-premium-refresh:hover .btn-premium-refresh-inner i {
  transform: rotate(180deg);
}

.btn-premium-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 76, 76, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.5s ease;
  z-index: 1;
}

.btn-premium-refresh:hover .btn-premium-glow {
  width: 300px;
  height: 300px;
}

/* Fullscreen Analysis View */
.ranked-fullscreen-analysis {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width); /* Respeitar sidebar */
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #141414 0%, #1a1a1a 100%);
  z-index: 999; /* Acima de todo o conteúdo da página */
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
  isolation: isolate; /* Criar novo stacking context */
}

.ranked-fullscreen-analysis::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .ranked-fullscreen-analysis {
    left: 0; /* Mobile: tela cheia */
  }
}

.ranked-fullscreen-analysis.show {
  opacity: 1;
}

.ranked-fullscreen-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 50px;
}

/* Fullscreen Header */
.fullscreen-analysis-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 76, 76, 0.2);
  flex-shrink: 0;
  min-height: 110px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-back-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-premium:hover {
  background: rgba(255, 76, 76, 0.1);
  border-color: rgba(255, 76, 76, 0.3);
}

.btn-back-premium i {
  font-size: 1.1rem;
}

.fullscreen-player-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fullscreen-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff4c4c;
  box-shadow: 0 0 20px rgba(255, 76, 76, 0.4);
}

.fullscreen-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback-lg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4c4c, #ff6b6b);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.fullscreen-player-details h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.fullscreen-riot-id {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* Fullscreen Body */
.fullscreen-analysis-body {
  flex: 1;
  padding: 30px 40px;
  padding-bottom: 50px;
}

/* Premium Loading */
.premium-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50vh;
  gap: 20px;
}

.premium-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 76, 76, 0.2);
  border-top-color: #ff4c4c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.premium-loading-state p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* Period Dropdown */
.ranked-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.period-dropdown {
  position: relative;
}
.period-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.period-dropdown-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.period-dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.2s ease;
}
.period-dropdown.open .period-dropdown-arrow {
  transform: rotate(180deg);
}
.period-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(20,20,24,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: dropdownSlide 0.15s ease-out;
}
@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.period-dropdown.open .period-dropdown-menu {
  display: block;
}
.period-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.period-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.period-dropdown-item.active {
  background: linear-gradient(135deg, #ff4c4c, #ff6b6b);
  color: #fff;
}
.period-dropdown-item i {
  font-size: 0.85rem;
  width: 18px;
  text-align: center;
}

/* Period Tabs Premium (legacy - keep for modal) */
.period-tabs-premium {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 12px;
  width: fit-content;
}

.period-tab-premium {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.period-tab-premium:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.period-tab-premium.active {
  background: linear-gradient(135deg, #ff4c4c, #ff6b6b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 76, 76, 0.4);
}

.period-tab-premium i {
  font-size: 1rem;
}

/* Premium Stats Grid */
.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.premium-stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.premium-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 76, 76, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-stat-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-color: rgba(255, 76, 76, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.premium-stat-card:hover::before {
  opacity: 1;
}

.premium-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.premium-stat-icon.matches { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.premium-stat-icon.wins { background: linear-gradient(135deg, #10b981, #34d399); }
.premium-stat-icon.kd { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.premium-stat-icon.kd.positive { background: linear-gradient(135deg, #10b981, #34d399); }
.premium-stat-icon.kd.negative { background: linear-gradient(135deg, #ef4444, #f87171); }
.premium-stat-icon.kills { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.premium-stat-icon.deaths { background: linear-gradient(135deg, #ef4444, #f87171); }
.premium-stat-icon.assists { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

.premium-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.premium-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.premium-stat-detail {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

/* Ranked Section Tabs (horizontal bar) */
.ranked-section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ranked-section-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ranked-section-tab:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.1);
}
.ranked-section-tab.active {
  background: rgba(255,76,76,0.08);
  border-color: rgba(255,76,76,0.3);
  color: #fff;
}
.ranked-section-tab .section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,76,76,0.3), rgba(255,107,107,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.ranked-section-tab.active .section-icon {
  background: linear-gradient(135deg, #ff4c4c, #ff6b6b);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,76,76,0.3);
}

/* Section Panels */
.ranked-section-panels {
  min-height: 0;
}
.ranked-section-panel {
  animation: panelSlide 0.2s ease-out;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px;
}
@keyframes panelSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Show More Matches button */
.btn-show-more-matches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-show-more-matches:hover {
  background: rgba(255,76,76,0.08);
  border-color: rgba(255,76,76,0.2);
  color: #ff6b6b;
}
.btn-show-more-matches i {
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .ranked-section-tabs { flex-direction: column; gap: 6px; }
  .ranked-section-tab { padding: 10px 14px; font-size: 0.78rem; }
  .ranked-section-tab .section-icon { width: 28px; height: 28px; font-size: 0.7rem; }
}

/* Analysis Columns */
.analysis-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.analysis-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 25px;
  overflow: visible;
}

.premium-section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-section-header .section-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4c4c, #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.premium-section-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

/* Premium Agent Cards */
.top-agents-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-agent-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.premium-agent-card:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(5px);
}

.premium-agent-card.gold {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.premium-agent-card.silver {
  border-color: rgba(192, 192, 192, 0.3);
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), transparent);
}

.premium-agent-card.bronze {
  border-color: rgba(205, 127, 50, 0.3);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), transparent);
}

.premium-agent-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.premium-agent-card.gold .premium-agent-rank { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #1a1a1a; }
.premium-agent-card.silver .premium-agent-rank { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #1a1a1a; }
.premium-agent-card.bronze .premium-agent-rank { background: linear-gradient(135deg, #cd7f32, #daa06d); color: #1a1a1a; }

.premium-agent-avatar {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.premium-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-agent-info {
  flex: 1;
  min-width: 0;
}

.premium-agent-name {
  display: block;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 3px;
}

.premium-agent-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.premium-agent-stats {
  text-align: right;
  min-width: 100px;
}

.premium-agent-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.premium-agent-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4c4c, #ff6b6b);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.premium-agent-percentage {
  display: block;
  font-weight: 700;
  color: #ff4c4c;
  font-size: 1.1rem;
}

.premium-agent-games {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Premium Map Cards */
.agents-by-map-premium {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Hide scrollbar for agents-by-map-premium */
.agents-by-map-premium::-webkit-scrollbar {
  width: 0;
  display: none;
}

.agents-by-map-premium {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.premium-map-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.premium-map-card:hover {
  border-color: rgba(255, 76, 76, 0.3);
}

/* Premium Map Card - Compact Design */
.premium-map-card-compact {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.premium-map-card-compact:hover {
  border-color: rgba(255, 76, 76, 0.3);
  transform: translateX(5px);
}

.map-card-left {
  position: relative;
  width: 140px;
  min-width: 140px;
  min-height: 70px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.map-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.map-card-name {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.map-card-right {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(255, 76, 76, 0.05), transparent);
}

.map-top-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.top-agent-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 76, 76, 0.3);
}

.top-agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-agent-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.top-agent-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-agent-percentage {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff4c4c;
}

.top-agent-games {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

/* Multiple agents per map */
.map-card-agents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px !important;
}

.map-agent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.map-agent-item:hover {
  background: rgba(255, 76, 76, 0.1);
  border-color: rgba(255, 76, 76, 0.3);
}

.map-agent-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 76, 76, 0.2);
}

.map-agent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-agent-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}

.map-agent-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-agent-percentage {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff4c4c;
}

.map-agent-games {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Old Premium Map Card - Keep for compatibility */
.premium-map-header {
  position: relative;
  height: 150px;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 15px;
}

.premium-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

.premium-map-name {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.premium-map-agents {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-map-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.premium-map-agent.primary {
  background: rgba(255, 76, 76, 0.1);
  border: 1px solid rgba(255, 76, 76, 0.2);
}

.premium-map-agent img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.premium-map-agent-info {
  flex: 1;
}

.premium-map-agent-info .name {
  display: block;
  font-weight: 500;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.premium-map-agent-info .bar-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.premium-map-agent-info .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4c4c, #ff6b6b);
  border-radius: 2px;
}

.premium-map-agent .percentage {
  font-weight: 700;
  color: #ff4c4c;
  font-size: 0.95rem;
}

/* Premium Empty State */
.premium-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.premium-empty-state i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
}

.premium-empty-state p,
.premium-empty-state h3 {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.premium-empty-state.error i {
  color: #ef4444;
}

/* Map Agent Item with Percentage */
.map-agent-info {
  flex: 1;
  min-width: 0;
}

.map-agent-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.map-agent-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4c4c, #ff6b6b);
  border-radius: 2px;
}

.map-agent-percentage {
  font-weight: 700;
  color: #ff4c4c;
  font-size: 0.9rem;
  min-width: 45px;
  text-align: right;
}

/* Responsive Premium */
@media (max-width: 1200px) {
  .premium-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .analysis-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fullscreen-analysis-header {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .fullscreen-analysis-body {
    padding: 20px;
  }
  
  .premium-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .premium-stat-card {
    padding: 15px;
  }
  
  .premium-stat-value {
    font-size: 1.5rem;
  }
  
  .period-tabs-premium {
    width: 100%;
    justify-content: center;
  }
  
  .period-tab-premium {
    padding: 10px 16px;
    flex: 1;
    justify-content: center;
  }
  
  .period-tab-premium span {
    display: none;
  }
}

/* =====================================================
   PREMIUM LOADING STATE - FULLSCREEN CENTERED
   ===================================================== */

.fullscreen-loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #141414 100%);
  position: relative;
  overflow: hidden;
}

.fullscreen-loading-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 76, 76, 0.1) 0%, transparent 70%);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.premium-loading-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.loading-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 25px;
}

.loading-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 76, 76, 0.5);
}

.loading-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4c4c, #ff6b6b);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.loading-avatar-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid transparent;
  border-top-color: #ff4c4c;
  border-radius: 50%;
  animation: ring-spin 1.2s linear infinite;
}

@keyframes ring-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-player-name {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-riot-id {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-bottom: 30px;
}

.loading-progress-container {
  width: 250px;
  margin-bottom: 20px;
}

.loading-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 15px;
}

.loading-progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #ff4c4c, #ff6b6b, #ff4c4c);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
  0% { width: 0%; margin-left: 0%; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

.loading-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: #ff4c4c;
  border-radius: 50%;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { 
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .premium-loading-card {
    padding: 30px 25px;
    margin: 20px;
  }
  
  .loading-avatar-wrapper {
    width: 90px;
    height: 90px;
  }
  
  .loading-avatar-fallback {
    font-size: 2rem;
  }
  
  .loading-player-name {
    font-size: 1.4rem;
  }
  
  .loading-progress-container {
    width: 200px;
  }
}

/* =====================================================
   MATCHES TABLE - Premium Design
   ===================================================== */

.matches-list-section {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 25px;
}

.matches-table-container {
  overflow-x: auto;
  margin-top: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 76, 76, 0.3) transparent;
}

.matches-table-container::-webkit-scrollbar {
  height: 6px;
}

.matches-table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.matches-table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 76, 76, 0.3);
  border-radius: 3px;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 1100px;
}

.matches-table thead {
  background: rgba(255, 255, 255, 0.02);
}

.matches-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  position: relative;
  cursor: help;
}

/* Custom Tooltip for table headers */
.matches-table th[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a2a;
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 5px;
  pointer-events: none;
}

.matches-table th[title]:hover::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #ffffff;
  margin-top: -7px;
  z-index: 1001;
  pointer-events: none;
}

.matches-table th.th-result { width: 40px; }
.matches-table th.th-agent { width: 50px; }
.matches-table th.th-map { text-align: left; min-width: 80px; }
.matches-table th.th-score { width: 60px; }

.matches-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.matches-table tbody tr:hover {
  background: rgba(255, 70, 85, 0.04);
}

.matches-table tbody tr.win {
  border-left: 3px solid #10b981;
}

.matches-table tbody tr.loss {
  border-left: 3px solid #ef4444;
}

.matches-table td {
  padding: 10px 8px;
  text-align: center;
  color: var(--text-primary);
  vertical-align: middle;
}

.matches-table td.td-map {
  text-align: left;
  font-weight: 500;
}

/* Result Badge */
.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.result-badge.win {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
}

.result-badge.loss {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}

/* Agent Icon */
.agent-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Score */
.td-score {
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}

/* ACS Highlighting */
.td-acs.high {
  color: #10b981;
  font-weight: 700;
}

.td-acs.medium {
  color: #fbbf24;
  font-weight: 600;
}

/* K/D Highlighting */
.td-kd.high {
  color: #10b981;
  font-weight: 700;
}

.td-kd.medium {
  color: #fbbf24;
  font-weight: 600;
}

.td-kd.low {
  color: #ef4444;
}

/* +/- */
.td-plusminus.positive {
  color: #10b981;
  font-weight: 600;
}

.td-plusminus.negative {
  color: #ef4444;
}

/* ADR */
.td-adr.high {
  color: #10b981;
  font-weight: 600;
}

.td-adr.medium {
  color: #fbbf24;
}

/* HS% */
.td-hs.high {
  color: #10b981;
  font-weight: 600;
}

.td-hs.medium {
  color: #fbbf24;
}

/* FK/FD */
.td-fk.has-fk {
  color: #10b981;
  font-weight: 600;
}

.td-fd.has-fd {
  color: #ef4444;
  font-weight: 600;
}

/* DDΔ (Damage Delta) */
.td-dd.high {
  color: #10b981;
  font-weight: 700;
}

.td-dd.medium {
  color: #fbbf24;
}

.td-dd.negative {
  color: #ef4444;
}

/* Multi-Kills */
.td-mk.ace {
  color: #a855f7;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.td-mk.quad {
  color: #f59e0b;
  font-weight: 600;
}

/* Plants */
.td-plant.has-plant {
  color: #22d3ee;
  font-weight: 600;
}

/* Defuses */
.td-defuse.has-defuse {
  color: #f472b6;
  font-weight: 600;
}

/* Econ */
.td-econ {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* Match Details Dropdown */
.match-row {
  transition: all 0.2s ease;
}

.match-row:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.match-row.expanded {
  background: rgba(255, 76, 76, 0.1) !important;
  border-bottom: none !important;
}

.match-details-row td {
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 76, 76, 0.3);
}

.match-details-content {
  padding: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.details-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.details-section h4 {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-section h4 i {
  color: #ff4655;
}

/* Side Stats */
.side-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}

.side-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.side-stat-card.attack {
  border-left: 3px solid #ef4444;
}

.side-stat-card.defense {
  border-left: 3px solid #22c55e;
}

.side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-stat-card.attack .side-header {
  color: #ef4444;
}

.side-stat-card.defense .side-header {
  color: #22c55e;
}

.side-stats {
  display: flex;
  justify-content: space-between;
}

.side-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.side-stat-value.kd {
  color: #fbbf24;
}

.side-stat-value.fk {
  color: #22c55e;
}

.side-stat-value.fd {
  color: #ef4444;
}

.side-stat-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Pistol Rounds */
.pistol-rounds h5 {
  margin: 0 0 10px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pistol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pistol-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pistol-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.pistol-stats {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

/* Weapon Stats */
.weapon-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weapon-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.weapon-stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.weapon-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.weapon-name {
  width: 90px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.weapon-bar-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.weapon-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff4655, #ff6b6b);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.weapon-count {
  width: 24px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.weapon-percent {
  width: 40px;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.no-data {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-align: center;
  padding: 20px;
}

/* Match Details Tabs */
.match-details-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}

.match-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.match-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.match-tab.active {
  background: rgba(255, 70, 85, 0.2);
  color: #ff4655;
}

.match-tab i {
  font-size: 0.85rem;
}

.match-tab-content {
  animation: fadeIn 0.3s ease;
}

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

/* Region Stats */
.region-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.region-stats-list::-webkit-scrollbar {
  width: 4px;
}

.region-stats-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
}

.region-stats-list::-webkit-scrollbar-thumb {
  background: rgba(255, 70, 85, 0.25);
  border-radius: 2px;
}

.region-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.region-stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.region-name {
  width: 120px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.region-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.region-bar.kills {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.region-bar.deaths {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.region-count {
  min-width: 24px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* Region Side Sections */
.region-side-section {
  margin-bottom: 20px;
}

.region-side-section:last-child {
  margin-bottom: 0;
}

.region-side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.region-side-header.attack {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-left: 3px solid #ef4444;
}

.region-side-header.defense {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-left: 3px solid #22c55e;
}

.details-section.compact {
  padding: 12px;
}

.details-section.compact h4 {
  margin-bottom: 10px;
  font-size: 0.8rem;
}

/* Map Heatmap */
.map-heatmap-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.map-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.kill {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.legend-dot.death {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.map-minimap {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.8);
}

.map-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: left 0.3s ease, top 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.map-point:hover {
  transform: translate(-50%, -50%) scale(1.8);
  z-index: 20;
}

/* Tooltip customizado para map-point */
.map-point::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.map-point::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-bottom: -4px;
  z-index: 100;
}

.map-point:hover::after,
.map-point:hover::before {
  opacity: 1;
  visibility: visible;
}

.map-point.kill {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34, 197, 94, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.map-point.death {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Map Content Layout */
.map-content-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.map-section {
  flex: 1;
  min-width: 0;
}

.map-stats-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.first-stats-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.first-stats-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 600;
  color: #22c55e;
}

.first-stats-header.death {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.first-stats-header i {
  font-size: 1rem;
}

.first-stats-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.first-stats-list {
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.first-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.first-stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.first-stat-item.kill .round-badge {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.first-stat-item.death .round-badge {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.round-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
}

.region-name {
  color: #e5e7eb;
  font-size: 0.85rem;
}

/* Three Column Layout for Map */
.map-three-column-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.map-stats-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-stats-sidebar.attack-side {
  order: 1;
}

.map-section {
  flex: 1;
  order: 2;
  min-width: 0;
}

.map-stats-sidebar.defense-side {
  order: 3;
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.side-header.attack {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.side-header.defense {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

/* Headers clicáveis */
.side-header.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.side-header.clickable:hover {
  transform: scale(1.02);
  filter: brightness(1.2);
}

.side-header.attack.selected {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.6), rgba(239, 68, 68, 0.4));
  border: 2px solid #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.side-header.defense.selected {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.4));
  border: 2px solid #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.first-stats-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.first-stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 600;
  font-size: 0.85rem;
  color: #22c55e;
}

.first-stats-header.death {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.first-stats-header i {
  font-size: 0.85rem;
}

.first-stats-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.first-stats-list {
  padding: 8px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.first-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.first-stat-item.clickable {
  cursor: pointer;
}

.first-stat-item.clickable:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.first-stat-item.selected {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.first-stat-item.kill .round-badge {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.first-stat-item.death .round-badge {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.round-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

.fk-fd-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fk-fd-label {
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
}

.fk-fd-value {
  font-weight: 700;
  font-size: 1rem;
}

.fk-fd-value.positive {
  color: #22c55e;
}

.fk-fd-value.negative {
  color: #ef4444;
}

/* Map Points */
.map-point.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-point.highlight-selected {
  width: 18px;
  height: 18px;
  z-index: 50;
  animation: pulse-highlight 1.5s ease-in-out infinite;
}

@keyframes pulse-highlight {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 15px currentColor;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 25px currentColor, 0 0 40px currentColor;
  }
}

.btn-reset-map {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9ca3af;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.btn-reset-map:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

/* Map Rotation Controls */
.map-rotation-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.rotation-label {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-right: 4px;
}

.btn-rotate,
.btn-flip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9ca3af;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-rotate:hover,
.btn-flip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-rotate.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.btn-flip.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.no-data {
  text-align: center;
  color: #6b7280;
  padding: 12px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1400px) {
  .map-three-column-layout {
    flex-wrap: wrap;
  }
  
  .map-stats-sidebar {
    width: 180px;
  }
  
  .map-section {
    width: 100%;
    order: 1;
  }
  
  .map-stats-sidebar.attack-side {
    order: 2;
  }
  
  .map-stats-sidebar.defense-side {
    order: 3;
  }
}

@media (max-width: 900px) {
  .map-three-column-layout {
    flex-direction: column;
  }
  
  .map-stats-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .first-stats-card {
    flex: 1;
    min-width: 150px;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .matches-table {
    font-size: 0.8rem;
  }
  
  .matches-table th,
  .matches-table td {
    padding: 8px 5px;
  }
  
  .agent-icon-small {
    width: 28px;
    height: 28px;
  }
}

/* =====================================================
   VOD ANALYZER STYLES
   ===================================================== */

/* Upload Tabs */
.vod-upload-tabs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.vod-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.vod-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.vod-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.vod-tab i {
  margin-right: 6px;
}

/* Tab Content */
.vod-tab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}

.vod-tab-content.active {
  display: block;
}

/* Upload Area */
.vod-upload-area {
  margin-bottom: 16px;
}

.vod-upload-area label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Drop Zone */
.vod-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.vod-drop-zone:hover,
.vod-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(255, 70, 85, 0.05);
}

.vod-drop-zone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.vod-drop-zone:hover i,
.vod-drop-zone.dragover i {
  color: var(--primary);
  transform: scale(1.1);
}

.vod-drop-zone p {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.vod-drop-zone small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* File Info */
.vod-file-info {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
}

.vod-file-info i:first-child {
  font-size: 1.5rem;
  color: var(--accent-green);
}

.vod-file-info > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vod-file-info strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.vod-file-info span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Info Boxes */
.vod-info-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vod-info-box i {
  margin-top: 2px;
}

.vod-info-box.info {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.vod-info-box.warning {
  background: rgba(255, 214, 0, 0.1);
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
}

.vod-info-box.success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

/* Common Fields */
.vod-common-fields {
  padding-top: 8px;
}

.vod-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.vod-field-group.full {
  grid-template-columns: 1fr;
}

/* Time Range */
.vod-time-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.vod-time-range span {
  color: var(--text-muted);
}

/* Premium Upload Area */
.vod-upload-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.03) 0%, rgba(0, 212, 255, 0.03) 100%);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.vod-upload-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 70, 85, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.vod-upload-premium:hover,
.vod-upload-premium.dragover {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 70, 85, 0.15);
}

.vod-upload-premium:hover::before,
.vod-upload-premium.dragover::before {
  opacity: 1;
}

.vod-upload-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(255, 70, 85, 0.4);
  transition: all var(--transition-normal);
}

.vod-upload-premium:hover .vod-upload-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(255, 70, 85, 0.5);
}

.vod-upload-icon i {
  font-size: 2rem;
  color: white;
}

.vod-upload-text {
  text-align: center;
  margin-bottom: 16px;
}

.vod-upload-text h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.vod-upload-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vod-upload-formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.vod-upload-formats span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== REACTION EDITOR ===== */
.no-reactions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--text-muted);
  text-align: center;
}

.no-reactions i {
  font-size: 2rem;
  opacity: 0.3;
}

.no-reactions span {
  font-weight: 600;
  color: var(--text-secondary);
}

.no-reactions p {
  font-size: 0.8rem;
  margin: 0;
}

.reaction-branch {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.reaction-branch .reaction-branch-line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  opacity: 0.4;
  border-radius: 1px;
}

.reaction-branch.level-1 .reaction-branch-line {
  background: var(--accent-blue);
}

.reaction-branch.level-2 .reaction-branch-line {
  background: var(--accent-purple);
}

.reaction-branch-content {
  background: rgba(255, 70, 85, 0.05);
  border: 1px solid rgba(255, 70, 85, 0.15);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reaction-branch.level-1 .reaction-branch-content {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.15);
}

.reaction-branch.level-2 .reaction-branch-content {
  background: rgba(189, 0, 255, 0.05);
  border-color: rgba(189, 0, 255, 0.15);
}

.reaction-branch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reaction-branch-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  padding: 2px 8px;
  background: rgba(255, 70, 85, 0.1);
  border-radius: 4px;
}

.reaction-branch.level-1 .reaction-branch-badge {
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.1);
}

.reaction-branch.level-2 .reaction-branch-badge {
  color: var(--accent-purple);
  background: rgba(189, 0, 255, 0.1);
}

.reaction-branch-btns {
  display: flex;
  gap: 4px;
}

.btn-icon-xs {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.btn-icon-xs:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn-icon-xs.btn-danger:hover {
  background: rgba(255, 70, 85, 0.15);
  color: var(--primary);
  border-color: rgba(255, 70, 85, 0.3);
}

.reaction-condition-input {
  font-size: 0.85rem !important;
  padding: 6px 10px !important;
}

.reaction-goto-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reaction-goto-row label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

.reaction-goto-row label i {
  margin-right: 4px;
}

.reaction-goto-select {
  font-size: 0.8rem !important;
  padding: 4px 8px !important;
  flex: 1;
}

.reaction-desc-input {
  font-size: 0.8rem !important;
  padding: 6px 10px !important;
  resize: vertical;
  min-height: 40px;
}

.reaction-media-zone {
  border-radius: 6px;
  overflow: hidden;
}

.reaction-media-drop {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
  outline: none;
}

.reaction-media-drop:focus {
  border-color: var(--primary);
  background: rgba(255, 70, 85, 0.03);
}

.reaction-media-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reaction-media-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.reaction-media-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.reaction-media-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.reaction-url-input {
  font-size: 0.8rem !important;
  padding: 4px 8px !important;
}

.reaction-media-preview {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  max-height: 200px;
}

.reaction-media-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  cursor: pointer;
}

.reaction-media-preview video {
  width: 100%;
  max-height: 200px;
  border-radius: 6px;
}

.media-remove-sm {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 70, 85, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
  z-index: 2;
}

.media-remove-sm:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.sub-reactions-container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== REACTION BRANCHES PREVIEW ===== */
.reaction-branches {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 70, 85, 0.04);
  border: 1px solid rgba(255, 70, 85, 0.12);
  border-radius: 8px;
}

.reaction-branches.level-1 {
  margin-top: 8px;
  padding: 8px;
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.12);
}

.reaction-branches.level-2 {
  margin-top: 6px;
  padding: 6px;
  background: rgba(189, 0, 255, 0.04);
  border-color: rgba(189, 0, 255, 0.12);
}

.reaction-branches-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reaction-branches.level-1 .reaction-branches-label {
  color: var(--accent-blue);
}

.reaction-branches.level-2 .reaction-branches-label {
  color: var(--accent-purple);
}

.reaction-branch-item {
  position: relative;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.reaction-branch-item:last-child {
  margin-bottom: 0;
}

.reaction-branch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  flex-shrink: 0;
  padding-top: 4px;
}

.reaction-branch-item .reaction-branch-line {
  flex: 1;
  width: 2px;
  background: var(--primary);
  opacity: 0.3;
  position: static;
}

.reaction-branch-item.level-1 .reaction-branch-line {
  background: var(--accent-blue);
}

.reaction-branch-item.level-2 .reaction-branch-line {
  background: var(--accent-purple);
}

.reaction-branch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.reaction-branch-item.level-1 .reaction-branch-dot {
  background: var(--accent-blue);
}

.reaction-branch-item.level-2 .reaction-branch-dot {
  background: var(--accent-purple);
}

.reaction-branch-body {
  flex: 1;
  min-width: 0;
}

.reaction-branch-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.reaction-branch-idx {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reaction-branch-item.level-1 .reaction-branch-idx {
  background: var(--accent-blue);
  color: #000;
}

.reaction-branch-item.level-2 .reaction-branch-idx {
  background: var(--accent-purple);
}

.reaction-branch-cond {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.reaction-branch-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.reaction-branch-target {
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 500;
  padding: 2px 8px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 4px;
}

.reaction-branch-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 4px 0;
  line-height: 1.4;
}

.reaction-branch-media {
  margin-top: 6px;
  border-radius: 6px;
  overflow: hidden;
}

.reaction-branch-img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.reaction-branch-vid {
  width: 100%;
  max-height: 250px;
  border-radius: 6px;
}

/* =====================================================
   SHARED COMPONENTS - Consolidated from JS injections
   Prevents duplicate definitions across modules
   ===================================================== */

/* Modal Overlay — scoped to app.js Pattern A modals only.
   Each module (vod.js, team.js, mymatches.js) defines its own modal styles.
   Do NOT use generic .modal-overlay — it leaks into Pattern B modals. */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: modalFadeIn 0.3s ease-out;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Form Components (used by tactics, antitactic, lineups, mymatches) */
.form-control {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-input, #2e2e2e);
  border: 1px solid var(--border-color, #333333);
  border-radius: var(--radius-md, 8px);
  color: var(--text-primary, #e8e8e8);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary, #ff4655);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.15);
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-input, #2e2e2e);
  border: 1px solid var(--border-color, #333333);
  border-radius: var(--radius-md, 8px);
  color: var(--text-primary, #e8e8e8);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary, #ff4655);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.15);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary, #adb5bd);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Small spinner (used by tactics, antitactic, mymatches) */
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary, #ff4655);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ghost button variant (used by team.js, pov.js) */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color, rgba(255,255,255,0.15));
  color: var(--text-secondary, #adb5bd);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary, #fff);
}

/* Icon button for actions (used by tactics, antitactic, lineups) */
.btn-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #6c757d);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #fff);
}

.btn-icon-sm.btn-danger:hover {
  background: rgba(255, 70, 85, 0.15);
  color: var(--danger, #ff4655);
}

/* Empty state patterns */
.empty-state-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.empty-state-full i {
  font-size: 4rem;
  color: var(--primary, #ff4655);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state-full h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.empty-state-full p {
  color: var(--text-secondary, #adb5bd);
  margin-bottom: 1.5rem;
}

.empty-state-actions {
  display: flex;
  gap: 1rem;
}

/* =====================================================
   MATTE BLACK THEME GLOBAL OVERRIDES
   Matte Black + Red Premium Theme
   ===================================================== */

/* Ensure all page text is light on dark background */
.page, .page p, .page span, .page div, .page label, 
.page td, .page th, .page li,
.page .stat-value, .page .stat-label {
  color: var(--text-primary);
}

/* Cards in matte black - dark with subtle glow */
.card, .stat-card, .action-btn {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
}

.card:hover, .stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 70, 85, 0.08);
}

.card::before, .stat-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.card-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Inputs in matte black theme */
.form-control, .form-input,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="search"],
select, textarea {
  background: #2e2e2e;
  border: 1px solid #3d3d3d;
  color: #e8e8e8;
}

.form-control:focus, .form-input:focus,
input:focus, select:focus, textarea:focus {
  border-color: #ff4655;
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.15);
  background: #333333;
}

/* Buttons stay vivid */
.btn-primary, .btn-primary:hover {
  color: #ffffff;
}

/* White text on colored backgrounds stays white */
.badge, .badge-hot, .badge-success, .badge-notification,
.logo-icon, .btn-primary,
.toast-icon {
  color: white;
}

/* Dropdown in matte black */
.dropdown-menu, .team-dropdown {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dropdown-item:hover {
  background: rgba(255, 70, 85, 0.1);
}

.dropdown-divider {
  background: rgba(255, 255, 255, 0.06);
}

/* Toast in matte black */
.toast {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Modal in matte black */
.app-modal-overlay > .modal,
.modal-content {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tab/toggle styles for matte black */
.view-btn, .filter-btn {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
}

.view-btn:hover, .filter-btn:hover {
  background: rgba(255, 70, 85, 0.08);
  color: var(--text-primary);
}

.view-btn.active, .filter-btn.active {
  background: rgba(255, 70, 85, 0.12);
  color: #ff4655;
  border-color: rgba(255, 70, 85, 0.25);
}

/* Search box matte black */
.search-box {
  background: #2e2e2e;
  border: 1px solid #3d3d3d;
}

.search-box:focus-within {
  background: #333333;
  border-color: rgba(255, 70, 85, 0.4);
}

/* General text corrections */
.player-rank, .player-name, .stat-big-number,
.agent-pick-name, .ranked-agent-name,
.ranked-map-name, .map-stat-value,
.winrate-value, .kd-value {
  color: var(--text-primary);
}

/* Sidebar nav icons */
.sidebar .nav-link i {
  color: var(--text-secondary) !important;
  filter: none;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  color: #ff4655 !important;
}

/* Team selector matte black */
.team-selector {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.team-selector:hover {
  border-color: rgba(255, 70, 85, 0.25);
  background: rgba(255, 70, 85, 0.08);
}

/* Notification button */
.notification-btn:hover {
  color: #ff4655;
  background: rgba(255, 70, 85, 0.1);
  border-color: rgba(255, 70, 85, 0.25);
}

/* Sidebar toggle */
.sidebar-toggle:hover {
  background: rgba(255, 70, 85, 0.08);
}

/* Logo text gradient for matte black theme */
.logo-text {
  background: linear-gradient(135deg, #e8e8e8, #999999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar global matte black */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 70, 85, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 70, 85, 0.4);
}

/* Status dot border should match dark bg */
.status-dot {
  border-color: #1a1a1a;
}

/* =====================================================
   LIGHT THEME
   ===================================================== */
[data-theme="light"] {
  --bg-dark: #f5f5f5;
  --bg-darker: #eaeaea;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9f9;
  --bg-input: #f0f0f0;
  
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-bg-light: rgba(255, 255, 255, 0.8);
  --glass-bg-dark: rgba(245, 245, 245, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-light: rgba(0, 0, 0, 0.12);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  
  --border-color: #e0e0e0;
  --border-light: #d0d0d0;
  
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-ambient: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 15px var(--primary-glow);

  --secondary: #e8e8e8;
  --secondary-light: #d4d4d4;
}

[data-theme="light"] body {
  background: #f5f5f5;
  color: #1a1a1a;
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.97) !important;
  border-right-color: #e0e0e0 !important;
}

[data-theme="light"] .sidebar .nav-link {
  color: #555 !important;
}
[data-theme="light"] .sidebar .nav-link:hover,
[data-theme="light"] .sidebar .nav-link.active {
  color: #ff4655 !important;
}
[data-theme="light"] .sidebar .nav-link.active {
  background: rgba(255, 70, 85, 0.08) !important;
}

[data-theme="light"] .sidebar .nav-agent-icon {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .sidebar .nav-divider {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent) !important;
}
[data-theme="light"] .nav-section-label span {
  color: rgba(0,0,0,0.35);
}
[data-theme="light"] .nav-section-label::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.1), transparent);
}

[data-theme="light"] .unified-header,
[data-theme="light"] .top-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: #e0e0e0 !important;
}

[data-theme="light"] .page-map-overlay {
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.7) 0%, rgba(245, 245, 245, 0.95) 30%, #f5f5f5 100%) !important;
}

[data-theme="light"] .settings-section,
[data-theme="light"] .card,
[data-theme="light"] .stat-card {
  background: #ffffff !important;
  border-color: #e0e0e0 !important;
}

[data-theme="light"] .settings-section:hover {
  border-color: rgba(255, 70, 85, 0.25) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(255, 76, 76, 0.06) !important;
}

[data-theme="light"] .settings-section-header {
  background: linear-gradient(135deg, rgba(255, 76, 76, 0.06) 0%, rgba(255, 76, 76, 0.01) 100%) !important;
  border-bottom-color: rgba(255, 76, 76, 0.08) !important;
}

[data-theme="light"] .preference-item {
  background: #f5f5f5 !important;
}

[data-theme="light"] .settings-account-info-card {
  background: #f5f5f5 !important;
  border-color: #e0e0e0 !important;
}

[data-theme="light"] .theme-selector {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .theme-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal,
[data-theme="light"] .app-modal-overlay > .modal {
  background: #ffffff !important;
  border-color: #e0e0e0 !important;
}

[data-theme="light"] .toast {
  background: #ffffff !important;
  border-color: #e0e0e0 !important;
}

[data-theme="light"] .auth-overlay {
  background: #f5f5f5 !important;
}
[data-theme="light"] .login-container,
[data-theme="light"] .register-container {
  background: #ffffff !important;
  border-color: #e0e0e0 !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-control,
[data-theme="light"] .input-icon input {
  background: #f0f0f0 !important;
  border-color: #e0e0e0 !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .canvas-wrapper {
  background: #f5f5f5 !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f0f0f0;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 70, 85, 0.2);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 70, 85, 0.35);
}

[data-theme="light"] .status-dot {
  border-color: #ffffff;
}

[data-theme="light"] .matches-table th[title]:hover::after {
  background: #ffffff;
}

[data-theme="light"] .sidebar .sidebar-footer {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sidebar i {
  color: #666 !important;
}
[data-theme="light"] .sidebar .nav-link:hover i,
[data-theme="light"] .sidebar .nav-link.active i {
  color: #ff4655 !important;
}

[data-theme="light"] .btn-secondary {
  background: #f0f0f0;
  border-color: #e0e0e0;
  color: #1a1a1a;
}
[data-theme="light"] .btn-secondary:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
}

/* =====================================================
   RANKED INLINE ANALYSIS
   ===================================================== */

.ranked-inline-analysis {
  padding: 0;
}

.ranked-inline-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: rgba(255,255,255,0.5);
}

.ranked-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.ranked-inline-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranked-inline-title h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranked-inline-title h1 i {
  color: #ff4c4c;
}

.ranked-inline-riot-id {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.ranked-match-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: auto;
}

/* =====================================================
   RANKED MATCH CARDS (History + Team)
   ===================================================== */

.ranked-match-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranked-mymatches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card layout for ranked match history */
.rmc-layout {
  gap: 16px !important;
}

.rmc-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
}
.rmc-agent-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.1);
}
.rmc-agent-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rmc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rmc-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rmc-map {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.rmc-score {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.rmc-score.victory { color: #10b981; }
.rmc-score.defeat { color: #ef4444; }

.rmc-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}
.rmc-date i {
  margin-right: 4px;
}

.rmc-stats-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rmc-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.68rem;
}
.rmc-stat strong {
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.rmc-stat em {
  font-style: normal;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.rmc-stat em.stat-high { color: #10b981; }
.rmc-stat em.stat-med { color: #f59e0b; }
.rmc-stat em.stat-low { color: #ef4444; }
.rmc-stat.fk { border-color: rgba(16,185,129,0.2); }
.rmc-stat.fk em { color: #10b981; }
.rmc-stat.plant { border-color: rgba(245,158,11,0.2); }
.rmc-stat.plant em { color: #f59e0b; }
.rmc-stat.defuse { border-color: rgba(59,130,246,0.2); }
.rmc-stat.defuse em { color: #3b82f6; }

.rmc-kd-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  flex-shrink: 0;
}
.rmc-kd-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.rmc-kd-value.stat-high { color: #10b981; }
.rmc-kd-value.stat-med { color: #f59e0b; }
.rmc-kd-value.stat-low { color: #ef4444; }
.rmc-kd-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rank/Elo display */
.rmc-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  flex-shrink: 0;
  gap: 2px;
}
.rmc-rank-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
}
.rmc-rank-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Match details panel (below card) */
.rmc-details-panel {
  border-radius: 0 0 14px 14px;
  margin-top: -8px;
  margin-bottom: 4px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  padding: 16px 20px;
  animation: rmcDetailSlide 0.25s ease-out;
}
@keyframes rmcDetailSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Expanded card - flatten bottom corners */
.rmm-card.expanded {
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .rmc-layout { flex-wrap: wrap; gap: 10px !important; }
  .rmc-kd-big { flex-direction: row; gap: 6px; min-width: auto; }
  .rmc-date { margin-left: 0; }
  .rmc-stats-row { gap: 4px; }
  .rmc-stat { font-size: 0.62rem; padding: 2px 6px; }
}

.rmm-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  min-height: 80px;
}

.rmm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.rmm-card.victory { border-left: 4px solid #10b981; }
.rmm-card.defeat { border-left: 4px solid #ef4444; }
.rmm-card.draw { border-left: 4px solid #f59e0b; }

.rmm-card.victory:hover { box-shadow: 0 8px 30px rgba(16,185,129,0.15); }
.rmm-card.defeat:hover { box-shadow: 0 8px 30px rgba(239,68,68,0.15); }

.rmm-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  transition: opacity 0.3s;
}

.rmm-card:hover .rmm-bg { opacity: 0.2; }

.rmm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rmm-overlay.victory { background: linear-gradient(90deg, rgba(16,185,129,0.08), transparent); }
.rmm-overlay.defeat { background: linear-gradient(90deg, rgba(239,68,68,0.08), transparent); }
.rmm-overlay.draw { background: linear-gradient(90deg, rgba(245,158,11,0.08), transparent); }

.rmm-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
}

.rmm-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.rmm-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.rmm-result-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.rmm-result-badge.victory { background: rgba(16,185,129,0.2); color: #10b981; }
.rmm-result-badge.defeat { background: rgba(239,68,68,0.2); color: #ef4444; }
.rmm-result-badge.draw { background: rgba(245,158,11,0.2); color: #f59e0b; }

.rmm-result-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
}

.rmm-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rmm-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rmm-team-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.rmm-team-initial {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,76,76,0.2);
  color: #ff4c4c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.rmm-team-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.rmm-vs {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  padding: 2px 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.rmm-opponent {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.rmm-score {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-left: auto;
}

.rmm-score.victory { color: #10b981; }
.rmm-score.defeat { color: #ef4444; }
.rmm-score.draw { color: #f59e0b; }

.rmm-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.rmm-map {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rmm-map-icon {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
}

.rmm-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rmm-chip {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rmm-chip.atk { background: rgba(239,68,68,0.15); color: #ef4444; }
.rmm-chip.def { background: rgba(59,130,246,0.15); color: #3b82f6; }
.rmm-chip.pistol { background: rgba(245,158,11,0.15); color: #f59e0b; }

.rmm-vod {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,0,0,0.15);
  color: #ff4444;
  font-size: 1.2rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.rmm-vod:hover {
  background: rgba(255,0,0,0.25);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .rmm-content {
    flex-wrap: wrap;
    gap: 12px;
  }
  .rmm-score {
    margin-left: 0;
  }
  .ranked-inline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   DETAILS TAB - Combat, Multi-Kills, Damage, Precision,
   Economy, Abilities, Round-by-Round, Scoreboard
   ===================================================== */

.details-tab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-section.full-width {
  grid-column: 1 / -1;
}

/* --- Combat Summary / Detail Stats Grid --- */
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.detail-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.detail-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Multi-Kills --- */
.multi-kills-grid {
  display: flex;
  gap: 10px;
}

.multi-kill-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.4;
  transition: all 0.2s;
}

.multi-kill-card.active {
  opacity: 1;
  border-color: rgba(255,70,85,0.4);
  background: rgba(255,70,85,0.08);
}

.multi-kill-card.ace.active {
  border-color: rgba(255,215,0,0.5);
  background: rgba(255,215,0,0.1);
}

.mk-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.multi-kill-card.ace.active .mk-count {
  color: #ffd700;
}

.mk-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- Damage --- */
.damage-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.damage-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.damage-card.dealt {
  border-color: rgba(0,200,120,0.2);
}

.damage-card.received {
  border-color: rgba(255,70,85,0.2);
}

.damage-card.delta.positive {
  border-color: rgba(0,200,120,0.3);
  background: rgba(0,200,120,0.05);
}

.damage-card.delta.negative {
  border-color: rgba(255,70,85,0.3);
  background: rgba(255,70,85,0.05);
}

.damage-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.damage-card.dealt .damage-value { color: #00c878; }
.damage-card.received .damage-value { color: #ff4655; }
.damage-card.delta.positive .damage-value { color: #00c878; }
.damage-card.delta.negative .damage-value { color: #ff4655; }

.damage-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Precision --- */
.precision-container {
  padding: 4px 0;
}

.precision-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.precision-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.precision-label {
  width: 80px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.precision-bar-container {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 7px;
  overflow: hidden;
}

.precision-bar {
  height: 100%;
  border-radius: 7px;
  transition: width 0.3s ease;
}

.precision-bar.head { background: linear-gradient(90deg, #ff4655, #ff6b7a); }
.precision-bar.body { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.precision-bar.leg { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.precision-count {
  width: 30px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.precision-pct {
  width: 36px;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* --- Economy --- */
.economy-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.economy-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.economy-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fbbf24;
}

.economy-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* --- Abilities --- */
.abilities-grid {
  display: flex;
  gap: 10px;
}

.ability-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ability-key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.ability-card.c-ability .ability-key { background: rgba(16,185,129,0.2); color: #10b981; }
.ability-card.q-ability .ability-key { background: rgba(59,130,246,0.2); color: #3b82f6; }
.ability-card.e-ability .ability-key { background: rgba(168,85,247,0.2); color: #a855f7; }
.ability-card.x-ability .ability-key { background: rgba(255,70,85,0.2); color: #ff4655; }

.ability-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

/* --- Round by Round Timeline --- */
.eco-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.eco-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.eco-badge.full-buy { background: rgba(16,185,129,0.15); color: #10b981; }
.eco-badge.semi-buy { background: rgba(59,130,246,0.15); color: #3b82f6; }
.eco-badge.semi-eco { background: rgba(245,158,11,0.15); color: #f59e0b; }
.eco-badge.eco { background: rgba(255,70,85,0.15); color: #ff4655; }

.rounds-timeline {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  max-height: 500px;
  overflow-y: auto;
}

.round-row {
  display: grid;
  grid-template-columns: 50px 45px 35px 50px 80px 40px 40px 90px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  gap: 4px;
}

.round-row.header {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.round-row.round-won {
  background: rgba(0,200,120,0.03);
}

.round-row.round-lost {
  background: rgba(255,70,85,0.03);
}

.round-row:hover:not(.header) {
  background: rgba(255,255,255,0.05);
}

.rr-num {
  font-weight: 600;
  color: #fff;
}

.rr-side {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
}

.rr-side.attack { background: rgba(255,70,85,0.15); color: #ff4655; }
.rr-side.defense { background: rgba(0,200,120,0.15); color: #00c878; }

.rr-result i {
  font-size: 0.7rem;
}

.round-won .rr-result i { color: #00c878; }
.round-lost .rr-result i { color: #ff4655; }

.rr-eco {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
}

.rr-eco.full-buy { background: rgba(16,185,129,0.15); color: #10b981; }
.rr-eco.semi-buy { background: rgba(59,130,246,0.15); color: #3b82f6; }
.rr-eco.semi-eco { background: rgba(245,158,11,0.15); color: #f59e0b; }
.rr-eco.eco { background: rgba(255,70,85,0.15); color: #ff4655; }

.rr-loadout {
  font-size: 0.7rem;
  color: #fbbf24;
  text-align: right;
}

.rr-kills {
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.rr-kills.multi {
  color: #ff4655;
}

.rr-died {
  text-align: center;
  color: rgba(255,255,255,0.3);
}

.rr-died.yes {
  color: #ff4655;
}

.rr-end {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

.round-badge-pistol {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245,158,11,0.2);
  color: #f59e0b;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* --- Scoreboard --- */
.scoreboard-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-team {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.sb-team-header {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sb-team-header.ally {
  background: rgba(0,200,120,0.1);
  color: #00c878;
  border-bottom: 1px solid rgba(0,200,120,0.15);
}

.sb-team-header.enemy {
  background: rgba(255,70,85,0.1);
  color: #ff4655;
  border-bottom: 1px solid rgba(255,70,85,0.15);
}

.sb-header-row {
  display: grid;
  grid-template-columns: 1fr 50px 40px 40px 40px 50px;
  padding: 6px 12px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sb-row {
  display: grid;
  grid-template-columns: 1fr 50px 40px 40px 40px 50px;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center;
  transition: background 0.15s;
}

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

.sb-row.current-player {
  background: rgba(255,70,85,0.08);
  border-left: 3px solid #ff4655;
}

.sb-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.sb-agent-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sb-name {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-row.current-player .sb-name {
  color: #fff;
  font-weight: 600;
}

.sb-stat {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.sb-stat-header, .sb-agent-header {
  text-align: center;
}

.sb-agent-header {
  text-align: left;
}

@media (max-width: 768px) {
  .detail-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .round-row {
    grid-template-columns: 40px 38px 30px 42px 65px 35px 35px 70px;
    font-size: 0.65rem;
    padding: 5px 6px;
  }
  .sb-header-row, .sb-row {
    grid-template-columns: 1fr 40px 32px 32px 32px 42px;
    font-size: 0.7rem;
  }
  .damage-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   INDIVIDUAL ANALYSIS (ia-*) - Premium Layout
   ===================================================== */

.ia-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Section --- */
.ia-section {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
}

.ia-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ia-section-header i {
  color: #ff4655;
  font-size: 1.1rem;
}

.ia-section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ia-match-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 10px;
}

/* --- Circular Stats Row --- */
.ia-circles-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ia-circular-stat {
  position: relative;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ia-circular-stat svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 6px rgba(255,70,85,0.15));
}

.ia-circular-stat svg circle:last-child {
  transition: stroke-dashoffset 0.6s ease;
}

.ia-circular-value {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  width: 60px;
  line-height: 44px;
}

.ia-circular-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-align: center;
}

/* --- 2-col grid --- */
.ia-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* --- Card --- */
.ia-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.ia-card.compact {
  border-radius: 10px;
}

.ia-card-header {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ia-card-header i {
  color: #ff4655;
  font-size: 0.75rem;
}

.ia-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Stat Bar Row --- */
.ia-stat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ia-bar-label {
  width: 85px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.ia-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.ia-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.ia-bar-value {
  width: 55px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
}

/* --- Multi-Kill Row --- */
.ia-multi-row {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
  align-items: center;
}

.ia-mk {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  opacity: 0.35;
  transition: all 0.2s;
  min-width: 50px;
}

.ia-mk.active {
  opacity: 1;
  border-color: rgba(255,70,85,0.35);
  background: rgba(255,70,85,0.08);
}

.ia-mk.ace.active {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.08);
}

.ia-mk-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.ia-mk.ace.active .ia-mk-num { color: #ffd700; }

.ia-mk-lbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.ia-mk-total {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
}

.ia-mk-total span { 
  color: #fff; 
  font-weight: 700; 
}

/* --- Economy Totals --- */
.ia-econ-totals {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
}

.ia-econ-totals strong {
  color: #fbbf24;
}

/* --- Agent Tabs Scroll --- */
.ia-agent-tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ia-agent-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.ia-agent-tabs-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ia-agent-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.ia-agent-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

.ia-agent-tab:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.ia-agent-tab.active {
  background: rgba(255,70,85,0.1);
  border-color: rgba(255,70,85,0.35);
  color: #fff;
}

.ia-agent-tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.ia-agent-tab-name {
  font-weight: 600;
}

.ia-agent-tab-count {
  font-size: 0.6rem;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
}

.ia-agent-tab.active .ia-agent-tab-count {
  background: rgba(255,70,85,0.2);
  color: #ff4655;
}

.ia-agent-tab-pick {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
}

/* --- Agent Detail Header --- */
.ia-agent-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.ia-agent-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(255,70,85,0.3);
}

.ia-agent-header-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.ia-agent-header-info span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

.ia-agent-header-stats {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.ia-agent-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,70,85,0.08);
  border: 1px solid rgba(255,70,85,0.15);
  color: rgba(255,255,255,0.7);
}

.ia-agent-badge strong {
  color: #ff4655;
}

/* --- Agent Stats Grid --- */
.ia-agent-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ia-agent-stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.ia-as-label {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.ia-as-value {
  font-size: 1.15rem;
  font-weight: 800;
}

/* --- Comparison Arrows --- */
.ia-cmp {
  font-size: 0.55rem;
  font-weight: 700;
}

.ia-cmp.good { color: #10b981; }
.ia-cmp.bad { color: #ff4655; }
.ia-cmp.neutral { color: rgba(255,255,255,0.3); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .ia-grid-2col {
    grid-template-columns: 1fr;
  }
  .ia-agent-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ia-circles-row {
    gap: 12px;
  }
  .ia-circular-stat {
    width: 70px;
  }
  .ia-circular-stat svg {
    width: 65px;
    height: 65px;
  }
  .ia-circular-value {
    font-size: 0.9rem;
    top: 14px;
    line-height: 37px;
  }
}

@media (max-width: 600px) {
  .ia-agent-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ia-agent-header {
    flex-wrap: wrap;
  }
  .ia-agent-header-stats {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .ia-circles-row {
    gap: 8px;
  }
  .ia-circular-stat {
    width: 58px;
  }
  .ia-circular-stat svg {
    width: 55px;
    height: 55px;
  }
  .ia-circular-value {
    font-size: 0.75rem;
    top: 11px;
    line-height: 33px;
  }
}

/* =====================================================
   SCRIM ARENA — Premium Design
   ===================================================== */

/* Loading & Error */
.scrim-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 120px 20px; color: rgba(255,255,255,0.5); font-size: 0.95rem; }
.scrim-loading-spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #ff4655; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scrim-error { text-align: center; padding: 80px 20px; color: #ef4444; font-size: 1.1rem; }

/* Container */
.scrim-container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* Header */
.scrim-header { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.scrim-header-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,70,85,0.2) 0%, rgba(139,92,246,0.15) 50%, rgba(59,130,246,0.1) 100%);
  border: 1px solid rgba(255,70,85,0.15);
  border-radius: 16px;
}
.scrim-header-content {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 28px 32px;
}
.scrim-header-left { display: flex; align-items: center; gap: 16px; }
.scrim-header-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #ff4655, #c22533);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white;
  box-shadow: 0 4px 20px rgba(255,70,85,0.3);
}
.scrim-title { font-size: 1.6rem; font-weight: 800; color: white; margin: 0; letter-spacing: -0.03em; }
.scrim-subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 4px 0 0; }

/* Challenge Button */
.scrim-btn-challenge {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  background: linear-gradient(135deg, #ff4655, #c22533); color: white;
  border: none; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(255,70,85,0.3);
}
.scrim-btn-challenge:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,70,85,0.4); }
.scrim-btn-challenge.scrim-btn-sm { padding: 8px 16px; font-size: 0.8rem; width: 100%; justify-content: center; margin-top: 12px; }
.scrim-btn-challenge.scrim-btn-full { width: 100%; justify-content: center; margin-top: 16px; padding: 14px; font-size: 0.95rem; }

/* Stats Bar */
.scrim-stats-bar {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px 24px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.scrim-stat-item { text-align: center; padding: 0 20px; }
.scrim-stat-value { display: block; font-size: 1.3rem; font-weight: 800; color: white; }
.scrim-stat-label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.scrim-stat-win .scrim-stat-value { color: #10b981; }
.scrim-stat-loss .scrim-stat-value { color: #ef4444; }
.scrim-stat-pending .scrim-stat-value { color: #f59e0b; }
.scrim-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }
.scrim-streak-win { color: #10b981 !important; }
.scrim-streak-loss { color: #ef4444 !important; }

/* Tabs */
.scrim-tabs {
  display: flex; gap: 4px; background: rgba(255,255,255,0.03);
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}
.scrim-tab {
  flex: 1; padding: 10px 16px; background: transparent; border: none; border-radius: 8px;
  color: rgba(255,255,255,0.5); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.scrim-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
.scrim-tab.active { background: rgba(255,70,85,0.15); color: #ff4655; }
.scrim-tab-badge {
  background: #ff4655; color: white; font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}

/* Filters */
.scrim-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.scrim-filter {
  padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.5);
  font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.scrim-filter:hover { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.scrim-filter.active { background: rgba(255,70,85,0.15); border-color: rgba(255,70,85,0.3); color: #ff4655; }

/* Section Label */
.scrim-section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3); margin: 20px 0 12px; padding-left: 4px;
}

/* Empty State */
.scrim-empty { text-align: center; padding: 80px 20px; }
.scrim-empty-icon { font-size: 3rem; color: rgba(255,255,255,0.1); margin-bottom: 16px; }
.scrim-empty h3 { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin: 0 0 8px; }
.scrim-empty p { color: rgba(255,255,255,0.3); font-size: 0.85rem; margin: 0 0 20px; }

/* ── Scrim Row List ───────────────────────────────── */
.scrim-list { display: flex; flex-direction: column; gap: 4px; }

.scrim-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.scrim-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.scrim-row-received { border-left: 3px solid rgba(245,158,11,0.6); }
.scrim-row-won { border-left: 3px solid rgba(16,185,129,0.5); }
.scrim-row-lost { border-left: 3px solid rgba(239,68,68,0.4); }

.scrim-row-status {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700;
  color: var(--status-color); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 4px; min-width: 110px; justify-content: center;
  background: color-mix(in srgb, var(--status-color) 12%, transparent); white-space: nowrap;
}

.scrim-row-teams { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.scrim-row-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.scrim-row-team span { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrim-row-team-my span { color: #ff4655; }
.scrim-row-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,0.05); flex-shrink: 0; }
.scrim-row-vs { font-size: 0.75rem; font-weight: 800; color: rgba(255,255,255,0.25); padding: 0 4px; white-space: nowrap; }
.scrim-row-score { font-size: 0.9rem; font-weight: 900; color: rgba(255,255,255,0.7); letter-spacing: 1px; }
.scrim-row-score.win { color: #10b981; }
.scrim-row-score.loss { color: #ef4444; }

.scrim-row-meta { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.scrim-row-bo { font-weight: 700; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.scrim-row-map i { margin-right: 3px; }

.scrim-row-date { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.35); white-space: nowrap; }
.scrim-row-date i { margin-right: 3px; }

.scrim-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.scrim-row-arrow { color: rgba(255,255,255,0.15); font-size: 0.8rem; flex-shrink: 0; }

.scrim-btn-accept {
  padding: 6px 14px; border: none; border-radius: 6px;
  background: rgba(16,185,129,0.15); color: #10b981; font-weight: 700; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.scrim-btn-accept:hover { background: rgba(16,185,129,0.25); }
.scrim-btn-decline {
  padding: 6px 14px; border: none; border-radius: 6px;
  background: rgba(239,68,68,0.12); color: #ef4444; font-weight: 700; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.scrim-btn-decline:hover { background: rgba(239,68,68,0.2); }

@media (max-width: 768px) {
  .scrim-row { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .scrim-row-teams { flex: 1 1 100%; order: 1; }
  .scrim-row-status { order: 2; }
  .scrim-row-meta { order: 3; }
  .scrim-row-date { order: 4; flex: 1; }
  .scrim-row-actions { order: 5; flex: 1; justify-content: flex-end; }
  .scrim-row-arrow { order: 5; }
}

/* ── Mode Toggle (Private/Public) ────────────────── */
.scrim-mode-toggle { display: flex; gap: 4px; margin-bottom: 16px; background: rgba(255,255,255,0.04); border-radius: 8px; padding: 3px; }
.scrim-mode-btn {
  flex: 1; padding: 8px 12px; border: none; border-radius: 6px; cursor: pointer;
  background: transparent; color: rgba(255,255,255,0.4); font-weight: 700; font-size: 0.8rem;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.scrim-mode-btn.active { background: rgba(255,70,85,0.15); color: #ff4655; }
.scrim-mode-btn:hover:not(.active) { color: rgba(255,255,255,0.6); }

/* Map Pool Checkboxes */
.scrim-map-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.scrim-map-checkbox {
  display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6); font-size: 0.78rem; cursor: pointer; transition: all 0.2s;
}
.scrim-map-checkbox:has(input:checked) { background: rgba(255,70,85,0.12); border-color: rgba(255,70,85,0.3); color: #ff4655; }
.scrim-map-checkbox input { accent-color: #ff4655; width: 14px; height: 14px; }

/* Best Of Options */
.scrim-bo-options { display: flex; gap: 8px; }
.scrim-bo-checkbox {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.scrim-bo-checkbox:has(input:checked) { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #3b82f6; }
.scrim-bo-checkbox input { accent-color: #3b82f6; width: 14px; height: 14px; }

/* ── Board (Public Scrims) ───────────────────────── */
.scrim-board-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; transition: all 0.2s;
}
.scrim-board-row:hover { background: rgba(255,255,255,0.04); }
.scrim-board-my { border-left: 3px solid rgba(59,130,246,0.5); }

.scrim-board-team { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.scrim-board-team strong { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

.scrim-board-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.scrim-board-maps { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.scrim-board-maps i { color: #ff4655; margin-right: 4px; }
.scrim-board-meta { display: flex; gap: 12px; font-size: 0.72rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; }
.scrim-board-meta i { margin-right: 3px; }
.scrim-board-notes { font-size: 0.72rem; color: rgba(255,255,255,0.3); font-style: italic; }
.scrim-board-notes i { margin-right: 3px; }

.scrim-board-apps { display: flex; align-items: center; }
.scrim-board-no-apps { font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.scrim-board-app-count { font-size: 0.78rem; font-weight: 700; color: #3b82f6; }
.scrim-board-app-count i { margin-right: 4px; }

.scrim-board-applied {
  font-size: 0.75rem; font-weight: 700; color: #10b981; padding: 6px 14px;
  border-radius: 6px; background: rgba(16,185,129,0.1); white-space: nowrap;
}
.scrim-board-applied i { margin-right: 4px; }

.scrim-btn-view {
  padding: 6px 14px; border: none; border-radius: 6px;
  background: rgba(59,130,246,0.12); color: #3b82f6; font-weight: 700; font-size: 0.75rem;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.scrim-btn-view:hover { background: rgba(59,130,246,0.2); }

.scrim-btn-match {
  padding: 8px 18px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  color: #818cf8; font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  border: 1px solid rgba(139,92,246,0.2);
}
.scrim-btn-match:hover { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(139,92,246,0.25)); border-color: rgba(139,92,246,0.4); }
.scrim-btn-match i { margin-right: 5px; }

/* Application Rows */
.scrim-board-applications { margin-left: 24px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.scrim-app-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px; border-left: 2px solid rgba(139,92,246,0.4);
}
.scrim-app-team { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.scrim-app-team strong { font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.scrim-app-team-meta { display: flex; gap: 10px; font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
.scrim-app-team-meta i { margin-right: 2px; }
.scrim-app-msg { font-size: 0.72rem; color: rgba(255,255,255,0.35); font-style: italic; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scrim-app-msg i { margin-right: 3px; }
.scrim-app-actions { display: flex; gap: 6px; flex-shrink: 0; }
.scrim-app-status-accepted { font-size: 0.72rem; font-weight: 700; color: #10b981; }
.scrim-app-status-declined { font-size: 0.72rem; font-weight: 700; color: #ef4444; }

/* ── Opponents Grid ──────────────────────────────── */
.scrim-opponents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.scrim-opp-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px; transition: all 0.2s;
}
.scrim-opp-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.scrim-opp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.scrim-opp-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,0.05); }
.scrim-opp-info h3 { font-size: 1rem; font-weight: 700; color: white; margin: 0; }
.scrim-opp-tag { color: rgba(255,255,255,0.4); font-weight: 500; }
.scrim-opp-members { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.scrim-opp-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.scrim-opp-stat {
  flex: 1; text-align: center; padding: 8px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.scrim-opp-stat-val { display: block; font-size: 1.1rem; font-weight: 800; color: white; }
.scrim-opp-stat-lbl { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-top: 2px; }
.scrim-opp-avail {
  font-size: 0.72rem; color: rgba(255,255,255,0.3); padding: 8px;
  background: rgba(255,255,255,0.02); border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scrim-opp-avail i { color: rgba(255,255,255,0.2); margin-right: 6px; }

/* ── Stats Tab ───────────────────────────────────── */
.scrim-stats-container { display: grid; gap: 20px; }
.scrim-stats-overview {
  display: flex; align-items: center; gap: 40px; padding: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.scrim-stats-circle-wrap { position: relative; flex-shrink: 0; }
.scrim-stats-circle { width: 120px; height: 120px; }
.scrim-stats-circle-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.scrim-stats-circle-pct { font-size: 1.5rem; font-weight: 900; color: white; }
.scrim-stats-circle-sub { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; }

.scrim-stats-summary { display: flex; flex-direction: column; gap: 10px; }
.scrim-stats-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.scrim-stats-row strong { margin-left: auto; color: white; }
.scrim-stats-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.scrim-stats-section {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px 24px;
}
.scrim-stats-section-title {
  font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.6);
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.scrim-stats-section-title i { color: rgba(255,255,255,0.3); }
.scrim-stats-empty { color: rgba(255,255,255,0.3); font-size: 0.85rem; text-align: center; padding: 20px; }

/* Opponent rows */
.scrim-stats-opponents { display: flex; flex-direction: column; gap: 12px; }
.scrim-stats-opp-row { display: flex; align-items: center; gap: 12px; }
.scrim-stats-opp-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.05); }
.scrim-stats-opp-info { flex: 1; min-width: 0; }
.scrim-stats-opp-name { font-size: 0.85rem; font-weight: 600; color: white; display: block; margin-bottom: 4px; }
.scrim-stats-opp-tag { color: rgba(255,255,255,0.35); font-weight: 400; }
.scrim-stats-opp-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.05); display: flex; overflow: hidden; }
.scrim-stats-opp-bar-win { background: #10b981; height: 100%; }
.scrim-stats-opp-bar-loss { background: #ef4444; height: 100%; }
.scrim-stats-opp-record { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); white-space: nowrap; }

/* Map rows */
.scrim-stats-maps { display: flex; flex-direction: column; gap: 12px; }
.scrim-stats-map-row { display: flex; align-items: center; gap: 12px; }
.scrim-stats-map-thumb {
  width: 48px; height: 28px; border-radius: 6px; background-size: cover; background-position: center;
  flex-shrink: 0; background-color: rgba(255,255,255,0.05);
}
.scrim-stats-map-info { flex: 1; min-width: 0; }
.scrim-stats-map-name { font-size: 0.85rem; font-weight: 600; color: white; display: block; margin-bottom: 4px; }
.scrim-stats-map-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.05); overflow: hidden; }
.scrim-stats-map-bar-fill { height: 100%; background: linear-gradient(90deg, #10b981, #3b82f6); border-radius: 3px; transition: width 0.6s ease; }
.scrim-stats-map-record { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); white-space: nowrap; }

/* ── Modal ────────────────────────────────────────── */
.scrim-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.scrim-modal-overlay.active { opacity: 1; }

.scrim-modal {
  background: #1a1a24; border-radius: 18px; width: 90%; max-width: 680px; max-height: 90vh;
  overflow-y: auto; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transform: translateY(20px); transition: transform 0.3s;
}
.scrim-modal-overlay.active .scrim-modal { transform: translateY(0); }
.scrim-modal.scrim-modal-sm { max-width: 500px; }

.scrim-modal-header {
  position: relative; min-height: 80px; display: flex; align-items: flex-end;
  overflow: hidden;
}
.scrim-modal-header-compact { min-height: auto; padding: 20px 24px 0; background: transparent; }
.scrim-modal-map-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.2; filter: blur(2px);
}
.scrim-modal-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, #1a1a24);
}
.scrim-modal-header-content {
  position: relative; z-index: 1; width: 100%; display: flex;
  align-items: center; justify-content: space-between; padding: 20px 24px;
}
.scrim-modal-header-content h2 {
  font-size: 1.15rem; font-weight: 700; color: white; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.scrim-modal-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem;
  font-weight: 700; color: var(--status-color); text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--status-color) 15%, transparent);
}
.scrim-modal-close {
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.scrim-modal-close:hover { background: rgba(255,255,255,0.15); color: white; }

.scrim-modal-body { padding: 20px 24px 24px; }

/* Versus inside modal */
.scrim-modal-versus {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 20px 0; margin-bottom: 20px;
}
.scrim-modal-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scrim-modal-team-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,0.05); }
.scrim-modal-team-name { font-size: 0.9rem; font-weight: 700; color: white; }
.scrim-modal-team-tag { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.scrim-modal-vs-center { }
.scrim-modal-vs-text { font-size: 1.2rem; font-weight: 900; color: rgba(255,255,255,0.15); }
.scrim-modal-score { font-size: 2rem; font-weight: 900; color: white; letter-spacing: 4px; }

/* Info grid */
.scrim-modal-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.scrim-modal-info-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem; color: rgba(255,255,255,0.6);
}
.scrim-modal-info-item i { color: rgba(255,255,255,0.25); width: 16px; text-align: center; }

.scrim-modal-notes {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.85rem;
  background: rgba(255,255,255,0.03); border-left: 3px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}
.scrim-modal-notes i { margin-right: 8px; }
.scrim-modal-notes-decline { border-left-color: #ef4444; }

/* Modal actions */
.scrim-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.scrim-btn-cancel, .scrim-btn-reschedule, .scrim-btn-complete {
  padding: 10px 16px; border: none; border-radius: 8px; font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.scrim-btn-cancel { background: rgba(239,68,68,0.12); color: #ef4444; }
.scrim-btn-cancel:hover { background: rgba(239,68,68,0.2); }
.scrim-btn-complete { background: rgba(16,185,129,0.15); color: #10b981; }
.scrim-btn-complete:hover { background: rgba(16,185,129,0.25); }
.scrim-btn-reschedule { background: rgba(59,130,246,0.12); color: #3b82f6; }
.scrim-btn-reschedule:hover { background: rgba(59,130,246,0.2); }

/* ── Chat ─────────────────────────────────────────── */
.scrim-modal-chat {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px;
}
.scrim-modal-chat-title {
  font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.5);
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.scrim-modal-chat-messages {
  max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 12px; padding-right: 4px;
}
.scrim-modal-chat-messages::-webkit-scrollbar { width: 4px; }
.scrim-modal-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.scrim-chat-empty { text-align: center; color: rgba(255,255,255,0.2); font-size: 0.8rem; padding: 20px 0; }

.scrim-chat-msg { display: flex; align-items: flex-start; gap: 8px; }
.scrim-chat-msg-mine { flex-direction: row-reverse; }
.scrim-chat-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.scrim-chat-bubble {
  max-width: 80%; padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
}
.scrim-chat-msg-mine .scrim-chat-bubble { background: rgba(255,70,85,0.1); border-color: rgba(255,70,85,0.15); }
.scrim-chat-name { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.5); display: block; margin-bottom: 2px; }
.scrim-chat-team-tag { color: rgba(255,255,255,0.25); font-weight: 400; }
.scrim-chat-bubble p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.4; }
.scrim-chat-time { font-size: 0.6rem; color: rgba(255,255,255,0.2); display: block; text-align: right; margin-top: 4px; }

.scrim-modal-chat-input {
  display: flex; gap: 8px;
}
.scrim-modal-chat-input input {
  flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: white; font-size: 0.85rem;
  outline: none; transition: border-color 0.2s;
}
.scrim-modal-chat-input input:focus { border-color: rgba(255,70,85,0.4); }
.scrim-modal-chat-input input::placeholder { color: rgba(255,255,255,0.2); }
.scrim-modal-chat-input button {
  width: 40px; height: 40px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #ff4655, #c22533); color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.scrim-modal-chat-input button:hover { transform: scale(1.05); }

/* ── Form Inputs (New Challenge modal) ────────────── */
.scrim-form-group { margin-bottom: 14px; }
.scrim-form-group label {
  display: block; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.scrim-form-group label i { margin-right: 4px; color: rgba(255,255,255,0.25); }
.scrim-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.scrim-input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: white; font-size: 0.85rem;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.scrim-input:focus { border-color: rgba(255,70,85,0.4); }
.scrim-input option { background: #1a1a24; color: white; }
.scrim-textarea { resize: vertical; min-height: 50px; font-family: inherit; }

/* ── Complete modal ───────────────────────────────── */
.scrim-complete-versus { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0; }
.scrim-complete-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scrim-complete-team span { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.7); }
.scrim-score-input {
  width: 72px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 900; color: white;
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 12px;
  outline: none; transition: border-color 0.2s;
}
.scrim-score-input:focus { border-color: #ff4655; }
.scrim-complete-x { font-size: 1.8rem; font-weight: 900; color: rgba(255,255,255,0.15); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .scrim-container { padding: 16px; }
  .scrim-header-content { padding: 20px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .scrim-btn-challenge { width: 100%; justify-content: center; }
  .scrim-stats-bar { gap: 0; padding: 12px 8px; }
  .scrim-stat-item { padding: 0 10px; }
  .scrim-stat-value { font-size: 1rem; }
  .scrim-stat-divider { height: 24px; }
  .scrim-grid { grid-template-columns: 1fr; }
  .scrim-opponents-grid { grid-template-columns: 1fr; }
  .scrim-modal { width: 95%; border-radius: 14px; }
  .scrim-modal-versus { gap: 12px; }
  .scrim-modal-info { grid-template-columns: 1fr 1fr; }
  .scrim-stats-overview { flex-direction: column; gap: 20px; padding: 20px; }
  .scrim-form-row { grid-template-columns: 1fr; }
  .scrim-tabs { flex-direction: column; }
}
@media (max-width: 420px) {
  .scrim-stat-item { padding: 0 6px; }
  .scrim-stat-value { font-size: 0.9rem; }
  .scrim-stat-label { font-size: 0.6rem; }
  .scrim-card-versus { gap: 8px; }
  .scrim-card-team-logo { width: 36px; height: 36px; }
}
