/* ==========================================================================
   WARBORN REFORGER - OFFICIAL WARBORN.ES DESIGN SYSTEM & THEME
   ========================================================================== */

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

:root {
  /* Warborn.es Obsidian & Dark Surfaces */
  --bg-core: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --border-subtle: #262626;
  --border-active: #22c55e;
  
  /* Warborn Tactical Emerald Accent (Oficial warborn.es) */
  --color-primary: #22c55e;
  --color-primary-glow: rgba(34, 197, 94, 0.35);
  --color-primary-subtle: rgba(34, 197, 94, 0.12);
  --color-green: #22c55e;
  --color-green-glow: rgba(34, 197, 94, 0.35);
  
  /* Legacy alias mappings to ensure 100% brand consistency */
  --color-amber: #22c55e;
  --color-amber-glow: rgba(34, 197, 94, 0.35);
  --color-amber-subtle: rgba(34, 197, 94, 0.12);

  --color-warning: #f59e0b;
  --color-warning-glow: rgba(245, 158, 11, 0.25);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.25);
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.25);
  
  /* Typography Colors */
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  /* Font Family Stack (Warborn Official) */
  --font-heading: "Orbitron", "Rajdhani", sans-serif;
  --font-tactical: "Rajdhani", sans-serif;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-core);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.12), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Tactical Scanline Overlay */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(10, 10, 10, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(34, 197, 94, 0.015), rgba(0, 0, 0, 0), rgba(34, 197, 94, 0.015));
  z-index: 999;
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  opacity: 0.5;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: calc(10px + var(--safe-top)) calc(16px + var(--safe-right)) 10px calc(16px + var(--safe-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse-live 2s infinite;
}

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

.brand-sub {
  font-size: 10px;
  font-family: var(--font-tactical);
  color: var(--color-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.header-op-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 20, 28, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}

.header-op-avatar {
  font-size: 14px;
}

.header-op-nick {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.header-logout-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@media (max-width: 480px) {
  .header-logout-btn .logout-text {
    display: none;
  }
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.icon-btn:hover, .icon-btn:active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 10px var(--color-primary-subtle);
}

/* Install PWA Prompt Banner */
.install-banner {
  background: linear-gradient(90deg, #141414, #18181b);
  border: 1px solid var(--color-primary);
  margin: 12px 16px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.15);
  animation: slide-in 0.3s ease;
}

.install-text {
  font-size: 12px;
  line-height: 1.3;
}

.install-text strong {
  color: var(--color-primary);
  display: block;
  font-family: var(--font-tactical);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.install-btn {
  background: var(--color-primary);
  color: #050505;
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-tactical);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.install-btn:active {
  transform: scale(0.96);
}

.install-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.install-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* Offline Banner */
.offline-banner {
  background: linear-gradient(90deg, #1c140a, #271c0d);
  border: 1px solid var(--color-warning);
  margin: 12px 16px 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.15);
  animation: slide-in 0.3s ease;
}

.offline-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offline-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.offline-text {
  font-size: 11px;
  line-height: 1.3;
}

.offline-text strong {
  color: var(--color-warning);
  display: block;
  font-family: var(--font-tactical);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.offline-text span {
  color: var(--text-muted);
}

.offline-retry-btn {
  background: var(--color-warning);
  color: #050505;
  font-weight: 700;
  font-size: 10px;
  font-family: var(--font-tactical);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.1s, opacity 0.2s;
}

.offline-retry-btn:active {
  transform: scale(0.96);
}

/* Update Available Toast */
.update-toast {
  position: fixed;
  bottom: calc(75px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(14, 20, 28, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1050;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--color-primary-glow);
  animation: slide-in 0.3s ease;
}

.update-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.update-toast-text {
  font-size: 11px;
  line-height: 1.3;
}

.update-toast-text strong {
  color: var(--color-primary);
  display: block;
  font-family: var(--font-tactical);
  letter-spacing: 0.5px;
}

.update-toast-text span {
  color: var(--text-muted);
}

.update-toast-btn {
  background: var(--color-primary);
  color: #050505;
  font-weight: 700;
  font-size: 11px;
  font-family: var(--font-tactical);
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px var(--color-primary-glow);
  transition: transform 0.1s;
}

.update-toast-btn:active {
  transform: scale(0.96);
}

/* iOS Install Modal Steps */
.ios-install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}

.ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-tactical);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ios-step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.4;
}

.ios-step-info strong {
  color: var(--text-main);
  font-family: var(--font-tactical);
  letter-spacing: 0.5px;
}

.ios-step-info span {
  color: var(--text-muted);
  font-size: 11px;
}

/* PWA Install Card in Profile */
.pwa-install-card {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(14, 20, 28, 0.95), rgba(10, 10, 10, 0.95));
}

/* Standalone Mode Enhancements */
@media (display-mode: standalone) {
  body {
    overscroll-behavior-y: none;
  }
  .install-banner {
    display: none !important;
  }
}

body.is-standalone .install-banner {
  display: none !important;
}

/* Main Container */
.app-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px calc(16px + var(--safe-right)) calc(84px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

/* Section Tab View Controls */
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-content.active {
  display: block;
}

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

/* Tactical Cards (Warborn.es Theme) */
.tactical-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tactical-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 197, 94, 0.12);
}

/* Subtle Glowing Emerald Top Line (Warborn Identity) */
.tactical-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.6), transparent);
  pointer-events: none;
}

/* Tactical Corner Bracket */
.tactical-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-top: 2px solid var(--color-primary);
  border-left: 2px solid var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-green, .badge-amber {
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Server Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.stat-box {
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.stat-box:hover {
  border-color: rgba(34, 197, 94, 0.3);
}

.stat-label {
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Progress bar for slots */
.slots-progress-container {
  margin: 10px 0 16px 0;
}

.slots-bar-bg {
  height: 8px;
  background: #1c1c1c;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.slots-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 4px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px var(--color-primary-glow);
}

/* Tactical Military Buttons (Warborn.es Style) */
.btn-tactical {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--font-tactical);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: #050505;
  box-shadow: 0 0 16px var(--color-primary-glow);
}

/* Shining military sweep reflection effect */
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: #2ee26c;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.55);
}

.btn-primary:active {
  transform: scale(0.98);
  background: #16a34a;
}

.btn-secondary {
  background: #18181b;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover, .btn-secondary:active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #202024;
  box-shadow: 0 0 12px var(--color-primary-subtle);
}

.btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* Search and Filters */
.search-box {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px 12px 42px;
  color: #fff;
  font-family: var(--font-tactical);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-tactical);
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: rgba(34, 197, 94, 0.35);
  color: #fff;
}

.chip.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-subtle);
}

/* Mod Card Specifics */
.mod-card {
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.mod-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--color-primary-subtle);
}

.mod-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
  margin: 8px 0;
}

.mod-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Tactical Map Visualizer */
.map-canvas-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: radial-gradient(circle at center, #182230 0%, #0c1118 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.map-grid-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 35px 35px;
  background-image: 
    linear-gradient(to right, rgba(6, 182, 212, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.08) 1px, transparent 1px);
}

.map-poi {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.map-poi:hover, .map-poi.active {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 10;
}

.map-poi.base { background: var(--color-primary); box-shadow: 0 0 12px var(--color-primary); }
.map-poi.disputed { background: var(--color-warning); box-shadow: 0 0 12px var(--color-warning); }
.map-poi.hostile { background: var(--color-red); box-shadow: 0 0 12px var(--color-red); }

.poi-tooltip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

/* Radio Player Widget */
.radio-widget {
  background: linear-gradient(135deg, #141414, #0d0d0d);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(34, 197, 94, 0.08);
}

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

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.eq-bar {
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  height: 4px;
  box-shadow: 0 0 6px var(--color-primary-glow);
  transition: height 0.1s;
}

.radio-playing .eq-bar:nth-child(1) { animation: eq-anim 0.6s infinite alternate ease-in-out; }
.radio-playing .eq-bar:nth-child(2) { animation: eq-anim 0.4s infinite alternate ease-in-out 0.1s; }
.radio-playing .eq-bar:nth-child(3) { animation: eq-anim 0.7s infinite alternate ease-in-out 0.2s; }
.radio-playing .eq-bar:nth-child(4) { animation: eq-anim 0.5s infinite alternate ease-in-out 0.3s; }

@keyframes eq-anim {
  from { height: 4px; }
  to { height: 20px; }
}

/* Community Rules Accordion */
.rule-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

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

.rule-title {
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.rule-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Bottom Navigation Bar (Warborn.es Style) */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  padding: 8px var(--safe-right) calc(8px + var(--safe-bottom)) var(--safe-left);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 4px;
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  flex: 1;
  min-width: 0;
}

.nav-item .nav-icon {
  font-size: 18px;
  margin-bottom: 3px;
  transition: transform 0.2s;
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--color-primary));
}

/* Toast Alerts */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #111111;
  border: 1px solid var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-tactical);
  font-size: 12px;
  letter-spacing: 0.5px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 15px var(--color-primary-subtle);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9), 0 0 25px rgba(34, 197, 94, 0.15);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

/* Additions for Interactive Fullscreen Tactical Pan/Zoom Map */
.map-viewport {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 380px;
  max-height: 75vh;
  background: #06080b;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.map-viewport:active {
  cursor: grabbing;
}

.map-viewport.fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  background: #06080b;
}

.map-transform-layer {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.05s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tactical-svg-map {
  width: 100%;
  height: 100%;
  min-width: 600px;
  min-height: 600px;
  pointer-events: none;
}

.tactical-svg-map image {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.grid-hidden .tactical-grid-overlay {
  display: none !important;
}

/* Map HUD Controls */
.map-hud-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
}

.hud-btn {
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-family: var(--font-tactical);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.hud-btn:hover, .hud-btn:active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #050505;
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.hud-btn-fs {
  width: auto;
  padding: 0 10px;
  font-size: 11px;
  gap: 4px;
}

.map-status-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--color-primary);
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Leaflet integration styles */
#leafletMapContainer {
  background: #06080b;
}

.leaflet-container {
  background: #06080b !important;
  font-family: var(--font-tactical);
  outline: none;
}

.leaflet-tactical-grid-label {
  background: transparent;
  border: none;
}

.close-fs-btn {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid #ef4444;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-tactical);
  font-size: 12px;
  font-weight: 700;
  z-index: 10000;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.8);
}

.map-viewport.fullscreen .close-fs-btn {
  display: block;
}

/* ==========================================================================
   WARBORN SOCIAL CLIPS & REELS (TIKTOK / INSTAGRAM TACTICAL HUD)
   ========================================================================== */

/* Operator Profile Bar */
.operator-profile-bar {
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.operator-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-avatar {
  width: 42px;
  height: 42px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 10px var(--color-primary-glow);
  flex-shrink: 0;
}

.operator-details {
  display: flex;
  flex-direction: column;
}

.operator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.operator-name {
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.operator-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
}

.operator-role {
  font-size: 11px;
  color: var(--color-primary);
  font-family: var(--font-tactical);
  font-weight: 600;
  margin-top: 2px;
}

/* Social Feed Cards */
.social-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(34, 197, 94, 0.1);
}

.feed-card-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-author-avatar {
  width: 36px;
  height: 36px;
  background: #18181b;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.feed-author-meta {
  display: flex;
  flex-direction: column;
}

.feed-author-name {
  font-family: var(--font-tactical);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.feed-author-role {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-tactical);
}

.feed-post-time {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-tactical);
}

/* Feed Caption & Hashtags */
.feed-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.feed-caption .hashtag {
  color: var(--color-cyan);
  font-weight: 600;
  cursor: pointer;
}

/* Feed Media Container */
.feed-media-container {
  width: 100%;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 520px;
}

.feed-media-container video {
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: contain;
  background: #000;
}

.feed-media-container img {
  width: 100%;
  max-height: 480px;
  display: block;
  object-fit: cover;
}

.feed-media-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-tap-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-tap-overlay.show {
  opacity: 1;
}

.video-play-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,0,0,0.65);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 0 16px var(--color-primary-glow);
}

/* Feed Interactions Bar */
.feed-interactions-bar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feed-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-tactical);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.feed-action-btn:hover {
  color: #fff;
}

.feed-action-btn.liked {
  color: #ef4444;
}

.feed-action-btn.liked .action-icon {
  animation: like-pop 0.35s ease;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.feed-map-badge {
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--color-primary);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Comments Drawer / Section */
.feed-comments-section {
  background: rgba(14, 14, 14, 0.85);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 14px;
  display: none;
}

.feed-comments-section.open {
  display: block;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.comment-item {
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.comment-avatar {
  font-size: 16px;
  width: 26px;
  height: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: 6px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.comment-author {
  font-family: var(--font-tactical);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 11px;
}

.comment-time {
  color: var(--text-dim);
  font-size: 10px;
}

.comment-text {
  color: var(--text-main);
  line-height: 1.4;
}

.comment-composer {
  display: flex;
  gap: 8px;
}

.comment-input {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.comment-submit-btn {
  background: var(--color-primary);
  color: #050505;
  border: none;
  padding: 0 14px;
  border-radius: 6px;
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-submit-btn:hover {
  background: #2ee26c;
}

/* Avatar Picker Grid */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.avatar-option {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-option:hover, .avatar-option.active {
  border-color: var(--color-primary);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 12px var(--color-primary-glow);
  transform: scale(1.05);
}

/* File Dropzone */
.file-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(16, 16, 16, 0.7);
  transition: all 0.2s;
}

.file-dropzone:hover {
  border-color: var(--color-primary);
  background: rgba(34, 197, 94, 0.06);
}

.dropzone-preview-container {
  position: relative;
  width: 100%;
  max-height: 200px;
  border-radius: 6px;
  overflow: hidden;
}

.dropzone-preview-container video, .dropzone-preview-container img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.dropzone-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.85);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   WARBORN LEADERBOARD & COMBAT STATS (TOP 10 OPERADORES)
   ========================================================================== */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-tactical);
  font-size: 12px;
}

.leaderboard-table th {
  padding: 8px 6px;
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.leaderboard-table td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.leaderboard-table tr:hover td {
  background: rgba(34, 197, 94, 0.05);
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

.rank-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rank-silver {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #000;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

.rank-bronze {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fff;
  box-shadow: 0 0 10px rgba(180, 83, 9, 0.5);
}

.rank-default {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.op-row-name {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.op-row-uid {
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MARCADOR COMPLETO DE PARTIDA (ESTILO BATTLEFIELD)
   ========================================================================== */

.match-scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .match-scoreboard-grid {
    grid-template-columns: 1fr;
  }
}

.scoreboard-team {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.scoreboard-team-header {
  padding: 8px 10px;
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scoreboard-team-header.blufor {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.scoreboard-team-header.opfor {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.scoreboard-team-header.neutral {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.scoreboard-col-headers {
  display: grid;
  grid-template-columns: 22px 1fr 34px 34px 38px 46px;
  padding: 4px 8px;
  font-family: var(--font-tactical);
  font-size: 9px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 2px;
}

.scoreboard-player-row {
  display: grid;
  grid-template-columns: 22px 1fr 34px 34px 38px 46px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
  cursor: pointer;
}

.scoreboard-player-row:last-child {
  border-bottom: none;
}

.scoreboard-player-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.scoreboard-player-row.is-me {
  background: rgba(34, 197, 94, 0.1);
  border-left: 2px solid var(--color-primary);
}

.scoreboard-player-row.is-me .sb-name {
  color: var(--color-primary);
}

.sb-rank {
  color: var(--text-dim);
  font-size: 10px;
  text-align: center;
}

.sb-name {
  color: #e2e8f0;
  font-weight: 700;
  font-family: var(--font-tactical);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sb-bando-badge {
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  line-height: 1.2;
}

.sb-bando-badge.blufor {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.sb-bando-badge.opfor {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.sb-bando-badge.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.sb-weapon-tag {
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-left: 2px;
  opacity: 0.8;
  flex-shrink: 0;
}

.sb-kills {
  text-align: right;
  color: var(--color-primary);
  font-weight: 700;
}

.sb-deaths {
  text-align: right;
  color: var(--color-red);
}

.sb-kd {
  text-align: right;
  color: var(--color-cyan);
  font-size: 10px;
}

.sb-pts {
  text-align: right;
  color: var(--color-amber);
  font-size: 10px;
}

.scoreboard-no-data {
  padding: 14px 10px;
  text-align: center;
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
}

.personal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-align: center;
}

.stat-metric-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.stat-metric-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   BATTLEFIELD 3 BATTLELOG STYLE - OPERATOR DOSSIER & DOG TAGS
   ========================================================================== */

/* Dossier Card Container */
.bf3-dossier-card {
  background: linear-gradient(180deg, rgba(20, 24, 30, 0.95) 0%, rgba(10, 12, 16, 0.98) 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.bf3-dossier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-amber), var(--color-primary), transparent);
}

/* Dog Tag (Chapa Militar Metálica BF3) */
.bf3-dogtag-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.bf3-dogtag {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, #374151 0%, #1f2937 40%, #111827 70%, #374151 100%);
  border: 2px solid #6b7280;
  border-radius: 16px;
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 2px 4px rgba(255,255,255,0.25), inset 0 -2px 4px rgba(0,0,0,0.8);
  color: #e5e7eb;
}

/* Agujero de la cadena militar */
.bf3-dogtag-hole {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #0b0f15;
  border: 2px solid #4b5563;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
}

.bf3-dogtag-content {
  padding-left: 20px;
}

.bf3-dogtag-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.bf3-dogtag-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #9ca3af;
  text-transform: uppercase;
}

.bf3-dogtag-clantag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-amber);
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.bf3-dogtag-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #f3f4f6;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.2), -1px -1px 0 rgba(0,0,0,0.9);
  line-height: 1.2;
}

.bf3-dogtag-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9ca3af;
}

.bf3-dogtag-meta span {
  display: block;
}

.bf3-dogtag-meta strong {
  color: #f3f4f6;
  font-weight: 700;
}

/* Rango e Insignia Militar */
.bf3-rank-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 20, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.bf3-rank-badge {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.bf3-rank-info {
  flex: 1;
}

.bf3-rank-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.bf3-rank-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.5px;
}

.bf3-rank-level {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.bf3-xp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.bf3-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Conmutador de Vista (Partida Actual vs. Global) */
.bf3-view-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.bf3-switch-btn {
  flex: 1;
  background: rgba(20, 24, 30, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.bf3-switch-btn.active {
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--color-amber);
  color: #fff;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.25);
}

/* Métricas de Combate Estilo BF3 */
.bf3-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .bf3-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bf3-metric-card {
  background: rgba(15, 20, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bf3-metric-card.highlight {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.05);
}

.bf3-metric-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.bf3-metric-val.amber { color: var(--color-amber); }
.bf3-metric-val.green { color: var(--color-primary); }
.bf3-metric-val.cyan { color: var(--color-cyan); }
.bf3-metric-val.red { color: var(--color-red); }

.bf3-metric-lbl {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.bf3-metric-sub {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 2px;
  font-family: var(--font-tactical);
}

/* Armamento Favorito (Top Weapons BF3) */
.bf3-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-amber);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.bf3-weapon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 20, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.bf3-weapon-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bf3-weapon-icon {
  font-size: 18px;
}

.bf3-weapon-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.bf3-weapon-cat {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-tactical);
}

.bf3-weapon-stats {
  text-align: right;
  font-family: var(--font-mono);
}

.bf3-weapon-kills {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
}

.bf3-service-stars {
  font-size: 10px;
  color: #f59e0b;
  margin-top: 2px;
}

/* Clases / Kits de Combate */
.bf3-classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.bf3-class-card {
  background: rgba(15, 20, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
}

.bf3-class-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bf3-class-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bf3-class-score {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-amber);
}

.bf3-class-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bf3-class-fill {
  height: 100%;
  background: var(--color-amber);
  border-radius: 2px;
}

/* Vitrina de Dog Tags */
.bf3-dogtags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.bf3-dogtag-mini {
  background: rgba(20, 24, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.bf3-dogtag-mini.unlocked {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.bf3-dogtag-mini.locked {
  opacity: 0.45;
  filter: grayscale(0.8);
}

.bf3-dogtag-mini-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.bf3-dogtag-mini-name {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.bf3-dogtag-mini-rarity {
  font-size: 9px;
  color: var(--color-amber);
  margin-top: 2px;
}

/* Responsive Bottom Nav for 7 items */
@media (max-width: 480px) {
  .bottom-nav {
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px)) 2px;
    gap: 2px;
  }
  .nav-item {
    padding: 4px 2px;
    min-width: 0;
  }
  .nav-item .nav-icon {
    font-size: 17px;
  }
  .nav-item span:not(.nav-icon) {
    font-size: 8.5px;
    letter-spacing: -0.2px;
  }
}

/* Badge de Verificación Oficial Serverse */
.bf3-verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 78, 59, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.bf3-verified-badge .verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #10b981;
  color: #064e3b;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.bf3-verified-badge .platform-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   SPLASH SCREEN - WARBORN TACTICAL CINEMATIC & OPERATOR CLEARANCE GATE
   ========================================================================== */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #05070a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Ambient Background Layers */
.splash-ambient-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, transparent 70%),
    linear-gradient(rgba(5, 7, 10, 0.85), rgba(5, 7, 10, 0.95)),
    url("assets/serhiivka_sat.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: contrast(120%) brightness(80%);
  pointer-events: none;
  z-index: 1;
}

.splash-crt-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}

/* Radar Sweep Effect */
.splash-radar-sweep {
  position: absolute;
  width: 700px;
  height: 700px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.12);
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    transparent 280deg,
    rgba(34, 197, 94, 0.15) 360deg
  );
  animation: splashRadarRotate 6s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

@keyframes splashRadarRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Tactical Corner HUD Brackets */
.splash-hud-corner {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(34, 197, 94, 0.75);
  letter-spacing: 0.15em;
  padding: 8px 12px;
}

.splash-hud-corner .hud-sub {
  font-size: 8.5px;
  color: var(--text-dim);
}

.splash-corner-tl {
  top: 16px;
  left: 16px;
  border-top: 2px solid rgba(34, 197, 94, 0.5);
  border-left: 2px solid rgba(34, 197, 94, 0.5);
}

.splash-corner-tr {
  top: 16px;
  right: 16px;
  text-align: right;
  border-top: 2px solid rgba(34, 197, 94, 0.5);
  border-right: 2px solid rgba(34, 197, 94, 0.5);
}

.splash-corner-bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 2px solid rgba(34, 197, 94, 0.5);
  border-left: 2px solid rgba(34, 197, 94, 0.5);
}

.splash-corner-br {
  bottom: 16px;
  right: 16px;
  text-align: right;
  border-bottom: 2px solid rgba(34, 197, 94, 0.5);
  border-right: 2px solid rgba(34, 197, 94, 0.5);
}

.hud-dot.live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: hudDotPulse 1.2s infinite;
  margin-right: 4px;
}

@keyframes hudDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* Center Content Wrap */
.splash-center-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 540px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FASE 1: INTRO & TELEMETRÍA */
.splash-intro-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: splashFadeIn 0.6s ease forwards;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo-container {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-radar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 197, 94, 0.35);
  animation: splashRingSpin 20s linear infinite;
}

.splash-radar-ring-inner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

@keyframes splashRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.splash-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.6));
  animation: splashLogoPulse 2.5s ease-in-out infinite;
}

@keyframes splashLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.4)); transform: scale(1); }
  50%       { filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.85)); transform: scale(1.03); }
}

.splash-title-block {
  text-align: center;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #fff;
  text-shadow: 0 0 24px rgba(34, 197, 94, 0.5), 0 0 60px rgba(34, 197, 94, 0.2);
  margin: 0;
  line-height: 1.1;
}

.splash-sub {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  margin-top: 6px;
  text-transform: uppercase;
}

/* Progress Bar */
.splash-progress-container {
  width: 100%;
  max-width: 360px;
  margin-top: 4px;
}

.splash-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #22c55e, #4ade80);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.85);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.splash-status-text {
  color: var(--color-primary);
  letter-spacing: 0.1em;
  min-height: 15px;
}

.splash-pct {
  color: #fff;
  font-weight: 700;
}

/* Telemetry Console */
.splash-terminal-console {
  width: 100%;
  max-width: 440px;
  background: rgba(8, 12, 16, 0.85);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(34, 197, 94, 0.04);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(14, 20, 28, 0.9);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.amber { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.terminal-logs {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-log-line {
  color: #94a3b8;
  word-break: break-all;
  animation: termLineFade 0.2s ease forwards;
}

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

.terminal-log-line.ok {
  color: #4ade80;
}
.terminal-log-line.warn {
  color: #fbbf24;
}
.terminal-log-line.info {
  color: #38bdf8;
}

/* Skip Button */
.btn-skip-cinematic {
  margin-top: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 9px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.btn-skip-cinematic:hover {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   FASE 2: OPERATOR CLEARANCE GATE (VINCULACIÓN OBLIGATORIA)
   ========================================================================== */

.splash-gate-view {
  width: 100%;
  animation: gateCardSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gateCardSlide {
  from { opacity: 0; transform: scale(0.95) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.gate-card {
  width: 100%;
  background: rgba(10, 14, 20, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 24px 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(16px);
  position: relative;
}

.gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #22c55e, transparent);
}

.gate-header {
  text-align: center;
  margin-bottom: 20px;
}

.gate-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.gate-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 0 0 8px 0;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.gate-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 440px;
}

.gate-form .form-group {
  margin-bottom: 14px;
}

.req-star {
  color: #ef4444;
  font-weight: bold;
}

.gate-input {
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.gate-input:focus {
  border-color: var(--color-primary);
  background: rgba(10, 16, 24, 0.95);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
  outline: none;
}

.gate-help-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  letter-spacing: 0.05em;
}

.gate-help-btn:hover {
  color: #7dd3fc;
}

/* Help Box */
.gate-help-box {
  background: rgba(14, 24, 38, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  animation: termLineFade 0.25s ease forwards;
}

.gate-help-title {
  font-family: var(--font-heading);
  font-size: 11px;
  color: #38bdf8;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.gate-help-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.gate-help-steps li {
  margin-bottom: 3px;
}

.gate-help-steps strong {
  color: #fff;
}

.gate-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .gate-row-2col {
    grid-template-columns: 1fr;
  }
}

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

.gate-avatar-item {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gate-avatar-item:hover {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
  transform: scale(1.05);
}

.gate-avatar-item.active {
  border-color: var(--color-primary);
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.gate-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-align: center;
  animation: termLineFade 0.2s ease forwards;
}

.gate-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 13px;
  letter-spacing: 0.15em;
  margin-top: 6px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.gate-footer-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.05em;
}

@media (max-width: 540px) {
  .splash-hud-corner {
    display: none;
  }
  .gate-card {
    padding: 18px 14px;
  }
}

.gate-admin-bypass-wrap {
  margin-top: 14px;
  text-align: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

.gate-admin-bypass-btn {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--color-amber);
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-admin-bypass-btn:hover {
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--color-amber);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

.gate-admin-bypass-box {
  margin-top: 10px;
  background: rgba(14, 20, 28, 0.85);
  padding: 12px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 6px;
  text-align: left;
}

.gate-admin-bypass-title {
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--color-amber);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.gate-admin-bypass-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.gate-admin-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   WARBORN REFORGER - SISTEMA DE MEDALLAS, TROFEOS Y CONDECORACIONES MILITARES
   ========================================================================== */

/* --- Top 3 Medallas Destacadas en el Dossier --- */
.bf3-featured-medals-wrap {
  margin-top: 14px;
  background: rgba(15, 18, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.bf3-featured-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bf3-featured-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bf3-featured-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.bf3-featured-medals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bf3-featured-slot {
  background: rgba(20, 26, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bf3-featured-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.bf3-featured-slot.empty {
  border-style: dashed;
  opacity: 0.4;
  cursor: default;
}

.bf3-featured-slot.empty:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.bf3-featured-name {
  font-family: var(--font-tactical);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 6px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bf3-featured-rarity {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* --- Sección Principal de Medallas y Condecoraciones --- */
.bf3-achievements-container {
  margin-top: 16px;
  background: rgba(13, 16, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.bf3-achievements-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.bf3-ach-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.bf3-ach-title-block {
  display: flex;
  flex-direction: column;
}

.bf3-ach-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf3-ach-subtitle {
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Top 3 Condecoraciones Destacadas */
.bf3-featured-medals-wrap {
  background: linear-gradient(135deg, rgba(20, 26, 36, 0.9), rgba(12, 16, 24, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.05);
}

.bf3-featured-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bf3-featured-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-amber);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bf3-featured-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.bf3-featured-medals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bf3-featured-slot {
  background: rgba(14, 18, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bf3-featured-slot:hover {
  border-color: var(--color-amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.bf3-featured-slot.empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
  cursor: default;
  opacity: 0.6;
}

.bf3-featured-name {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 6px;
  line-height: 1.2;
}

.bf3-featured-rarity {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Barra de Resumen de Progreso */
.bf3-ach-summary-bar {
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.bf3-ach-summary-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bf3-ach-total-count {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bf3-ach-total-count span {
  color: var(--color-primary);
  font-size: 16px;
}

.bf3-ach-pct-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.bf3-ach-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bf3-ach-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf3-ach-rarity-counts {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.bf3-ach-rarity-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.bf3-ach-rarity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Filtros por Categoría de Condecoraciones */
.bf3-ach-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.bf3-ach-filter-chips::-webkit-scrollbar {
  height: 4px;
}

.bf3-ach-filter-chips::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.ach-chip {
  background: rgba(20, 24, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ach-chip:hover {
  background: rgba(30, 38, 50, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ach-chip.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.ach-chip .ach-count-badge {
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  color: var(--text-dim);
}

.ach-chip.active .ach-count-badge {
  background: rgba(34, 197, 94, 0.3);
  color: #fff;
}

/* Grid de Tarjetas de Condecoraciones */
.bf3-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.ach-card {
  background: rgba(18, 22, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ach-card:hover {
  transform: translateY(-2px);
  background: rgba(24, 30, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Estados de Desbloqueo */
.ach-card.unlocked {
  background: linear-gradient(135deg, rgba(18, 28, 24, 0.9), rgba(14, 20, 26, 0.95));
  border-color: rgba(34, 197, 94, 0.45);
  border-left: 3px solid #22c55e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(34, 197, 94, 0.06);
}

.ach-card.unlocked:hover {
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.25), inset 0 0 20px rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

.ach-card.locked {
  opacity: 0.72;
  background: rgba(14, 16, 22, 0.65);
  border-color: rgba(255, 255, 255, 0.05);
}

.ach-card.locked .wb-badge {
  filter: grayscale(0.85) brightness(0.65);
}

/* Tarjeta Secreta Bloqueada */
.ach-card.secret-locked {
  background: repeating-linear-gradient(
    -45deg,
    rgba(15, 18, 24, 0.8),
    rgba(15, 18, 24, 0.8) 10px,
    rgba(22, 26, 36, 0.8) 10px,
    rgba(22, 26, 36, 0.8) 20px
  );
  border-color: rgba(100, 116, 139, 0.3);
}

.ach-card.secret-locked .ach-name {
  color: #94a3b8;
  letter-spacing: 0.1em;
}

.ach-card.secret-locked .ach-desc {
  color: #64748b;
  font-style: italic;
  font-family: var(--font-mono);
}

/* Tarjeta Negativa (Disciplina / TKs) */
.ach-card.negative {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(30, 15, 15, 0.6);
}

.ach-card.negative.unlocked {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.ach-card.negative .ach-progress-fill {
  background: linear-gradient(90deg, #991b1b, #ef4444);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.ach-badge-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
}

/* ==========================================================================
   MEDALLAS Y CONDECORACIONES TÁCTICAS (SVG MILITAR)
   ========================================================================== */
.tactical-badge-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

.tactical-badge-wrap.badge-size-sm { width: 36px; height: 50px; }
.tactical-badge-wrap.badge-size-md { width: 50px; height: 68px; }
.tactical-badge-wrap.badge-size-lg { width: 72px; height: 96px; }

.tactical-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Cinta Militar Superior (Ribbon) */
.badge-ribbon {
  width: 26px;
  height: 18px;
  background: linear-gradient(180deg, var(--badge-m1, #374151), var(--badge-m2, #1f2937));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.badge-size-sm .badge-ribbon { width: 18px; height: 12px; }
.badge-size-lg .badge-ribbon { width: 36px; height: 24px; }

.badge-ribbon-stripe {
  width: 35%;
  height: 100%;
  background: var(--badge-accent, #9ca3af);
  opacity: 0.85;
  box-shadow: 0 0 6px var(--badge-glow, rgba(156, 163, 175, 0.4));
}

/* Medallón Metálico */
.badge-medallion {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 35% 35%, #2d3748, #0f172a);
  border: 2px solid var(--badge-accent, #64748b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 12px var(--badge-glow, transparent);
  margin-top: -2px;
  transition: all 0.2s ease;
}

.badge-size-sm .badge-medallion { width: 30px; height: 30px; border-width: 1.5px; }
.badge-size-lg .badge-medallion { width: 64px; height: 64px; border-width: 2.5px; }

.badge-metal-bevel {
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.badge-icon-svg {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--badge-accent, #fff);
  z-index: 1;
}

.badge-size-sm .badge-icon-svg { width: 15px; height: 15px; }
.badge-size-lg .badge-icon-svg { width: 32px; height: 32px; }

.badge-icon-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Estrellas de Tier */
.badge-tier-stars {
  position: absolute;
  bottom: -4px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--badge-accent, #fff);
  border-radius: 8px;
  padding: 0 4px;
  font-size: 8px;
  color: var(--badge-accent, #fbbf24);
  line-height: 1;
  letter-spacing: -1px;
}

/* Estados */
.tactical-badge-wrap.badge-locked {
  filter: grayscale(0.85) brightness(0.65);
  opacity: 0.6;
}

.tactical-badge-wrap.badge-unlocked {
  filter: drop-shadow(0 0 8px var(--badge-glow, rgba(34, 197, 94, 0.4)));
}

.tactical-badge-wrap.badge-unlocked .badge-medallion {
  border-color: var(--badge-accent, #22c55e);
}

.ach-info-col {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ach-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.ach-name {
  font-family: var(--font-tactical);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ach-tier-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.ach-rarity-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ach-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ach-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: 4px;
}

.ach-status-label {
  font-weight: 700;
}

.ach-status-label.unlocked {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ach-status-label.locked {
  color: var(--text-dim);
}

.ach-status-label.negative {
  color: var(--color-red);
}

.ach-progress-numbers {
  color: var(--text-muted);
  font-size: 9.5px;
}

.ach-card-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.ach-card-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   MODAL DE DETALLE DE CONDECORACIÓN MILITAR
   ========================================================================== */
.ach-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.ach-modal-card {
  background: linear-gradient(135deg, #11151c, #0d1016);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.1);
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ach-modal-overlay.active .ach-modal-card {
  transform: scale(1);
}

.ach-modal-banner {
  height: 6px;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.ach-modal-content {
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ach-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ach-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ach-modal-badge-stage {
  margin: 10px 0 16px;
  position: relative;
}

.ach-modal-badge-stage .wb-badge {
  width: 72px;
  height: 72px;
}

.ach-modal-badge-stage .wb-badge svg {
  width: 38px;
  height: 38px;
}

.ach-modal-meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.ach-modal-cat-tag {
  font-family: var(--font-tactical);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.ach-modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ach-modal-stars {
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.ach-modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 380px;
}

.ach-modal-conditions-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.ach-modal-cond-title {
  font-family: var(--font-tactical);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ach-modal-cond-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ach-modal-cond-item:last-child {
  border-bottom: none;
}

.ach-modal-cond-left {
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ach-modal-cond-right {
  font-weight: 700;
}

.ach-modal-cond-right.ok {
  color: var(--color-primary);
}

.ach-modal-cond-right.pending {
  color: var(--color-warning);
}

.ach-modal-status-banner {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-tactical);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ach-modal-status-banner.unlocked {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--color-primary);
}

.ach-modal-status-banner.locked {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.ach-modal-status-banner.negative {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--color-red);
}

/* Responsividad para móviles */
@media (max-width: 600px) {
  .bf3-featured-medals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .bf3-featured-slot {
    padding: 8px 4px;
  }
  .bf3-featured-name {
    font-size: 10.5px;
  }
  .bf3-ach-grid {
    grid-template-columns: 1fr;
  }
  .ach-card {
    padding: 10px;
    gap: 10px;
  }
  .ach-desc {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   TOOLBAR DE BÚSQUEDA Y FILTRADO RÁPIDO DE MEDALLAS
   ========================================================================== */
.bf3-ach-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.bf3-ach-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.bf3-ach-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.6;
  pointer-events: none;
}

.bf3-ach-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 8px 12px 8px 30px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  outline: none;
  transition: all 0.2s ease;
}

.bf3-ach-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.ach-chip.filter-toggle {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-dim);
}

.ach-chip.filter-toggle.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

/* ==========================================================================
   BOTONES DE ACCIONES EN DOSSIER (COMPARTIR Y COMPARAR)
   ========================================================================== */
.bf3-dossier-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bf3-dossier-actions .btn-tactical {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   MODAL DE COMPARACIÓN TÁCTICA 1 VS 1 (VERSUS)
   ========================================================================== */
.compare-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  animation: modalFadeIn 0.2s ease-out;
}

.compare-modal-overlay.active {
  display: flex;
}

.compare-modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: #090d14;
  border: 1px solid var(--border-tactical);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 24px rgba(34, 197, 94, 0.12);
  display: flex;
  flex-direction: column;
}

.compare-header {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.compare-close-btn:hover {
  color: #ef4444;
}

.compare-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-selector-row {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-selector-row label {
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

.compare-select-input {
  flex: 1;
  background: #0b111e;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 7px 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
}

.compare-opponents-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.compare-opponent-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.compare-opponent-card.dominant {
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.compare-op-avatar {
  font-size: 32px;
  margin-bottom: 6px;
}

.compare-op-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.compare-op-rank {
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--color-primary);
  margin-top: 2px;
}

.compare-vs-badge {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.compare-stats-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 6px;
  align-items: center;
}

.compare-val-col {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.compare-val-col.left {
  text-align: right;
}

.compare-val-col.right {
  text-align: left;
}

.compare-val-col.winner {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.compare-val-col.loser {
  color: #64748b;
}

.compare-stat-label {
  font-family: var(--font-tactical);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-verdict-banner {
  padding: 12px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  text-align: center;
  font-family: var(--font-tactical);
  font-size: 12.5px;
  color: #fff;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .compare-opponents-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
  }
  .compare-opponent-card {
    padding: 8px;
  }
  .compare-op-name {
    font-size: 13px;
  }
  .compare-vs-badge {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ============================================================
   SECCIÓN MULTIMEDIA Y HUB COMUNITARIO (TWITCH, YOUTUBE, DISCORD)
   ============================================================ */

/* Badges y botones de redes en el header */
.header-social-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.header-social-btn.discord:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: #5865F2;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
  transform: translateY(-1px);
}

.header-social-btn.twitch:hover {
  background: rgba(145, 70, 255, 0.25);
  border-color: #9146ff;
  box-shadow: 0 0 12px rgba(145, 70, 255, 0.45);
  transform: translateY(-1px);
}

.header-social-btn.youtube:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* Tarjetas rápidas en Tab Servidor */
.media-quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15, 20, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.media-quick-card:hover {
  transform: translateY(-2px);
}

.media-quick-card.twitch:hover {
  border-color: rgba(145, 70, 255, 0.6);
  background: rgba(145, 70, 255, 0.12);
  box-shadow: 0 0 16px rgba(145, 70, 255, 0.25);
}

.media-quick-card.youtube:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.media-quick-card.discord:hover {
  border-color: rgba(88, 101, 242, 0.6);
  background: rgba(88, 101, 242, 0.12);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.25);
}

.media-quick-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.media-quick-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.media-quick-sub {
  font-family: var(--font-tactical);
  font-size: 10px;
  color: var(--text-dim);
}

/* Tarjetas principales de la pestaña Comunidad */
.media-hub-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.twitch-hub-card {
  border-color: rgba(145, 70, 255, 0.4);
  background: linear-gradient(135deg, rgba(20, 14, 30, 0.95) 0%, rgba(12, 14, 20, 0.95) 100%);
}

.twitch-hub-card:hover {
  box-shadow: 0 0 24px rgba(145, 70, 255, 0.2);
}

.youtube-hub-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(28, 12, 12, 0.95) 0%, rgba(12, 14, 20, 0.95) 100%);
}

.youtube-hub-card:hover {
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.18);
}

.discord-hub-card {
  border-color: rgba(88, 101, 242, 0.4);
  background: linear-gradient(135deg, rgba(16, 20, 36, 0.95) 0%, rgba(12, 14, 20, 0.95) 100%);
}

.discord-hub-card:hover {
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.22);
}

.badge-purple {
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.5);
  color: #c084fc;
}

/* Contenedores de reproducción de vídeo / stream (16:9) */
.media-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.media-player-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.media-placeholder-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.media-placeholder-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
}

.placeholder-big-icon {
  font-size: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.placeholder-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.placeholder-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.media-iframe-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.media-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Modo Teatro para streams */
.media-hub-card.theater-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  margin: 0;
  padding: 20px;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-hub-card.theater-mode .media-player-wrapper {
  max-height: calc(100vh - 120px);
  max-width: calc((100vh - 120px) * (16 / 9));
  margin: 0 auto;
}

/* Botón para compartir ficha militar / Dog Tag */
.btn-share-dossier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-share-dossier:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.55);
}

/* Buscador y filtros de condecoraciones */
.bf3-ach-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.bf3-ach-search-input {
  flex: 1;
  font-size: 12px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-tactical);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bf3-ach-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  outline: none;
}

.ach-chip.only-unlocked {
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.ach-chip.only-unlocked.active {
  background: rgba(34, 197, 94, 0.25);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

/* ============================================================
   ADMIN CLIP MODERATION STYLES
   ============================================================ */
.admin-clips-list {
  scrollbar-width: thin;
  scrollbar-color: var(--color-amber) rgba(15, 23, 42, 0.5);
}

.admin-clip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
  transition: all 0.2s ease;
}

.admin-clip-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.admin-clip-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

.admin-clip-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.admin-clip-meta {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-clip-delete-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-clip-delete-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.feed-action-btn.admin-delete-btn {
  margin-left: auto;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

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


