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

:root {
  --fx-bg: #090a0f;
  --fx-bg-alt: #0f1118;
  --fx-card: rgba(17, 20, 30, 0.75);
  --fx-card-hover: rgba(24, 28, 42, 0.9);
  --fx-card-border: rgba(255, 122, 0, 0.18);
  --fx-card-border-hover: rgba(255, 122, 0, 0.5);
  --fx-primary: #ff7a00;
  --fx-primary-rgb: 255, 122, 0;
  --fx-primary-light: #ffa149;
  --fx-gold: #f59e0b;
  --fx-gold-rgb: 245, 158, 11;
  --fx-purple: #8b5cf6;
  --fx-text: #f8fafc;
  --fx-text-muted: #94a3b8;
  --fx-online: #10b981;
  --fx-offline: #ef4444;
  --fx-glow: 0 0 25px rgba(255, 122, 0, 0.3);
  --fx-glow-gold: 0 0 25px rgba(245, 158, 11, 0.35);
  --fx-radius: 16px;
  --fx-radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--fx-bg);
  color: var(--fx-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 122, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
}

.fx-ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.25;
}
.fx-glow-1 { top: -100px; left: 10%; background: #ff7a00; }
.fx-glow-2 { top: 40%; right: -150px; background: #8b5cf6; }

.fx-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, .fx-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.fx-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

.fx-badge-series {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fx-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.15);
}

.fx-badge-series .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--fx-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--fx-primary);
  animation: fx-pulse 2s infinite;
}

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

.fx-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, #ffaa5b 70%, #ff7a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(255, 122, 0, 0.2);
}

.fx-hero p.subtitle {
  font-size: 1.15rem;
  color: var(--fx-text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.fx-nav-tabs {
  display: inline-flex;
  gap: 0.6rem;
  background: rgba(15, 17, 24, 0.85);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  margin-bottom: 2.5rem;
}

.fx-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fx-text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}

.fx-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.fx-nav-tab.active {
  background: linear-gradient(135deg, #ff7a00, #ff952c);
  color: #0b0c10;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}

.fx-server-card {
  background: var(--fx-card);
  border: 1px solid var(--fx-card-border);
  border-radius: var(--fx-radius);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.fx-server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff7a00, #f59e0b, #8b5cf6, #ff7a00);
  background-size: 300% 100%;
  animation: fx-gradient-shift 8s ease infinite;
}

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

.fx-server-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fx-server-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.fx-server-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #ff7a00, #f59e0b);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.35);
}

.fx-server-title h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fx-server-title p {
  color: var(--fx-text-muted);
  font-size: 0.9rem;
}

.fx-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--fx-online);
}

.fx-status-indicator.offline {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--fx-offline);
}

.fx-status-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: fx-pulse 1.8s infinite;
}

.fx-ip-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.fx-ip-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fx-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(10, 11, 16, 0.7);
  border: 1px solid rgba(255, 122, 0, 0.3);
  border-radius: var(--fx-radius-sm);
  padding: 0.85rem 1.25rem;
  transition: all 0.25s ease;
}

.fx-ip-box:hover {
  border-color: var(--fx-primary);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.2);
}

.fx-ip-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  user-select: all;
  letter-spacing: 0.02em;
}

.fx-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff7a00, #ff952c);
  color: #0b0c10;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fx-btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.45);
}

.fx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.fx-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--fx-radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fx-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.fx-stat-label {
  font-size: 0.8rem;
  color: var(--fx-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fx-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.fx-stat-sub {
  font-size: 0.8rem;
  color: var(--fx-primary-light);
}

.fx-live-players {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fx-live-players h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fx-players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fx-player-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s ease;
}

.fx-player-chip:hover {
  border-color: var(--fx-primary);
  background: rgba(255, 122, 0, 0.1);
}

.fx-player-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  image-rendering: pixelated;
}

.fx-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.fx-section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
}

.fx-section-header p {
  color: var(--fx-text-muted);
  font-size: 0.95rem;
}

.fx-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fx-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fx-text-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fx-filter-btn:hover, .fx-filter-btn.active {
  color: #fff;
  border-color: var(--fx-primary);
  background: rgba(255, 122, 0, 0.15);
}

.fx-streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.fx-streamer-card {
  background: var(--fx-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fx-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.fx-streamer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 122, 0, 0.15);
}

.fx-streamer-avatar-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.fx-streamer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #181b26;
  border: 2px solid rgba(255, 122, 0, 0.4);
  image-rendering: pixelated;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.fx-streamer-role {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.fx-role-streamer { background: rgba(145, 70, 255, 0.18); color: #b78aff; border: 1px solid rgba(145, 70, 255, 0.35); }
.fx-role-vip { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.fx-role-staff { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.fx-role-player { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }

.fx-streamer-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.fx-streamer-ign {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--fx-text-muted);
  margin-bottom: 1.25rem;
}

.fx-streamer-actions {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-top: auto;
}

.fx-btn-social {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--fx-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.fx-btn-channel {
  background: rgba(145, 70, 255, 0.2);
  color: #c49eff;
  border: 1px solid rgba(145, 70, 255, 0.4);
}
.fx-btn-channel:hover {
  background: #9146ff;
  color: #fff;
}

.fx-btn-invite {
  background: rgba(255, 122, 0, 0.15);
  color: var(--fx-primary-light);
  border: 1px solid rgba(255, 122, 0, 0.35);
}
.fx-btn-invite:hover {
  background: var(--fx-primary);
  color: #0b0c10;
}

.fx-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #181a24;
  border: 1px solid var(--fx-primary);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: var(--fx-radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--fx-glow);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fx-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .fx-server-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .fx-ip-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .fx-btn-copy {
    width: 100%;
    justify-content: center;
  }
}

/* Edit Modal */
.fx-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.fx-modal-card {
  width: 100%;
  max-width: 520px;
  background: #12141f;
  border: 1px solid rgba(255, 122, 0, 0.3);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 122, 0, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fx-modal-overlay.active .fx-modal-card {
  transform: translateY(0);
}

.fx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fx-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fx-modal-close {
  background: none;
  border: none;
  color: var(--fx-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
}
.fx-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.fx-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.fx-role-betatester {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}


/* Top Navigation with Auth */
.fx-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 17, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.fx-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fx-auth-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fx-btn-google-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fx-btn-google-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 122, 0, 0.5);
}

.fx-admin-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.25), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(255, 122, 0, 0.5);
  color: var(--fx-primary-light);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.2);
  transition: all 0.2s ease;
}

.fx-admin-btn-nav:hover {
  background: var(--fx-primary);
  color: #0b0c10;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 122, 0, 0.4);
}

/* User Pill */
.fx-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #fff;
}
.fx-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 0, 0.5);
}

/* Status Badges on Streamer Cards */
.fx-streamer-card.is-eliminated {
  opacity: 0.65;
  filter: grayscale(0.5);
  border-color: rgba(239, 68, 68, 0.3);
}

.fx-streamer-card.is-eliminated:hover {
  opacity: 1;
  filter: grayscale(0);
  border-color: rgba(239, 68, 68, 0.7);
}

.fx-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
  margin-bottom: 0.4rem;
}

.fx-badge-live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: fx-pulse 1.4s infinite;
}

.fx-badge-eliminated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.fx-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* Quick Series Stat Bar */
.fx-series-stats-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.fx-series-stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.fx-series-stat-pill strong {
  color: #fff;
  font-weight: 800;
}

/* Server Control Buttons inside Admin */
.fx-server-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fx-btn-start {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fx-btn-start:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }

.fx-btn-restart {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fx-btn-restart:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }

.fx-btn-stop {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fx-btn-stop:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }


/* Status Badge Row & Badges */
.fx-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.85rem;
  gap: 0.4rem;
}

.fx-badge-offline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-streamer-card.is-live {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
}

.fx-streamer-card.is-live .fx-streamer-avatar {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.45);
}


/* =============================================================
   FOXSAFIO PREMIUM UI/UX OVERHAUL (Anti-Deform System)
   ============================================================= */

/* DASHBOARD DE ESTADÍSTICAS RÁPIDAS */
.fx-stats-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.1rem 1.8rem;
  max-width: 860px;
  margin: 2.2rem auto 3rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fx-stat-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.fx-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fx-stat-icon-wrap.stat-total {
  background: rgba(255, 122, 0, 0.15);
  border: 1px solid rgba(255, 122, 0, 0.35);
}

.fx-stat-icon-wrap.stat-live {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.fx-stat-icon-wrap.stat-active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.fx-stat-icon-wrap.stat-eliminated {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.fx-stat-info {
  display: flex;
  flex-direction: column;
}

.fx-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.fx-stat-num.stat-live-num { color: #f87171; }
.fx-stat-num.stat-active-num { color: #34d399; }
.fx-stat-num.stat-eliminated-num { color: #94a3b8; }

.fx-stat-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fx-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .fx-stats-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
  }
  .fx-stat-divider {
    display: none;
  }
}

/* =============================================================
   TARJETAS PROFESIONALES (FX-CARD-PRO) - NUNCA SE DEFORMAN
   ============================================================= */
.fx-streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.fx-card-pro {
  background: linear-gradient(180deg, rgba(21, 25, 40, 0.85) 0%, rgba(13, 16, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
}

.fx-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.5), transparent);
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.fx-card-pro:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 122, 0, 0.2);
}

.fx-card-pro:hover::before {
  opacity: 1;
}

/* Estados Especiales */
.fx-card-pro.is-live {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.35);
}

.fx-card-pro.is-live::before {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
  opacity: 1;
}

.fx-card-pro.is-eliminated {
  opacity: 0.72;
  filter: grayscale(0.55);
  border-color: rgba(148, 163, 184, 0.2);
}

.fx-card-pro.is-eliminated:hover {
  opacity: 1;
  filter: grayscale(0.1);
  border-color: rgba(239, 68, 68, 0.6);
}

/* BANNER DE ESTADOS */
.fx-card-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  min-height: 48px;
  gap: 0.4rem;
}

.fx-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.fx-badge-status.alive {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.fx-badge-status.elim {
  background: rgba(100, 116, 139, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.badge-dot.gray { background: #94a3b8; }

.fx-badge-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.fx-badge-stream.live {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: fx-pulse 1.3s infinite;
}

.fx-badge-stream.twitch {
  background: rgba(145, 70, 255, 0.15);
  border: 1px solid rgba(145, 70, 255, 0.4);
  color: #c49eff;
}

.fx-badge-stream.youtube {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: #ff6b6b;
}

.fx-badge-stream.kick {
  background: rgba(83, 252, 24, 0.15);
  border: 1px solid rgba(83, 252, 24, 0.4);
  color: #53fc18;
}

.fx-badge-stream.offline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fx-text-muted);
}

.fx-badge-stream.series {
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.25);
  color: var(--fx-primary-light);
}

/* AVATAR */
.fx-card-avatar-row {
  display: flex;
  justify-content: center;
  padding: 1.25rem 0 0.85rem;
}

.fx-card-avatar-box {
  position: relative;
  width: 82px;
  height: 82px;
}

.fx-card-avatar-img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: #10121d;
  border: 2px solid rgba(255, 122, 0, 0.45);
  image-rendering: pixelated;
  padding: 4px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.is-live .fx-card-avatar-img {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.is-eliminated .fx-card-avatar-img {
  border-color: rgba(148, 163, 184, 0.4);
}

.fx-avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.25) 0%, transparent 70%);
  z-index: 1;
}

/* METADATOS */
.fx-card-meta {
  padding: 0 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fx-card-role-wrap {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.fx-role-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.fx-role-pill.role-staff {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.fx-role-pill.role-beta {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.fx-role-pill.role-player {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fx-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-card-ign {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--fx-primary-light);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FOOTER & BOTONES (Siempre idénticos y en la parte inferior) */
.fx-card-footer {
  margin-top: auto;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.fx-btn-action {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fx-btn-action.btn-live {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.45);
}
.fx-btn-action.btn-live:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.65);
}

.live-dot-btn {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: fx-pulse 1s infinite;
}

.fx-btn-action.btn-channel {
  background: rgba(145, 70, 255, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(145, 70, 255, 0.35);
}
.fx-btn-action.btn-channel:hover {
  background: #9146ff;
  color: #fff;
  border-color: #9146ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
}

.fx-btn-action.btn-disabled {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fx-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: not-allowed;
  opacity: 0.6;
}

.fx-btn-action.btn-invite {
  background: rgba(255, 122, 0, 0.12);
  color: var(--fx-primary-light);
  border: 1px solid rgba(255, 122, 0, 0.3);
}
.fx-btn-action.btn-invite:hover {
  background: var(--fx-primary);
  color: #0b0c10;
  border-color: var(--fx-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}

/* BARRA SUPERIOR (TOP-BAR) REFINADA */
.fx-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem auto 2.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(15, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  max-width: 1100px;
}

@media (max-width: 640px) {
  .fx-top-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.85rem;
    gap: 0.75rem;
  }
}


/* =============================================================
   BLOQUEO DE GEOMETRÍA DEL NAVBAR (NO SUBE, NO BAJA, MISMO TAMAÑO)
   ============================================================= */
.fx-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1100px !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 1.5rem auto 2.5rem !important;
  padding: 0 1.25rem !important;
  background: rgba(15, 18, 30, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.fx-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.fx-nav-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: 999px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--fx-text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.fx-nav-tab:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.fx-nav-tab.active {
  background: linear-gradient(135deg, #ff7a00, #ff952c) !important;
  color: #0b0c10 !important;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4) !important;
}

.fx-admin-btn-nav.active {
  background: #ff7a00 !important;
  color: #0b0c10 !important;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4) !important;
}

@media (max-width: 768px) {
  .fx-top-bar {
    height: auto !important;
    min-height: 52px !important;
    border-radius: 18px !important;
    padding: 0.5rem 0.85rem !important;
    gap: 0.6rem !important;
  }
  .fx-nav-tab {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.78rem !important;
  }
}


/* Modern clean indicators (No Emojis) */
.fx-dot-live-nav {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
  animation: fx-pulse 1.3s infinite;
}

.fx-stat-icon-wrap svg {
  display: block;
}

.badge-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.fx-btn-action svg {
  display: inline-block;
  vertical-align: middle;
}
