:root {
  --bg: #0a0a0a;
  --surface: #121212;
  --surface-hover: #161616;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --accent: #6c63ff;
  --border: #2a2a2a;
  --success: #00b894;
  --error: #ff4d4d;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  gap: 1.5rem;
}

/* ─── NEW: Logo Neon Pulse Animation ─── */
@keyframes neonPulse {
  0%, 100% { 
    filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.7)) drop-shadow(0 0 30px rgba(108, 99, 255, 0.3));
  }
  50% { 
    filter: drop-shadow(0 0 16px rgba(108, 99, 255, 0.9)) drop-shadow(0 0 45px rgba(108, 99, 255, 0.35));
  }
}

#team-logo img {
  max-width: 150px; 
  animation: neonPulse 3s ease-in-out infinite;
}

/* Hover state stays sharp & smooth */
#team-logo img:hover {
  filter: drop-shadow(0 0 18px rgba(108, 99, 255, 0.9)) drop-shadow(0 0 45px rgba(108, 99, 255, 0.35));
  transform: scale(1.06);
}

/* ─── LOGO & HEADER ALIGNMENT ────────────── */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px; /* Matches your sidebar width */
  padding-top: 1rem;
  margin-bottom: 0.5rem;
}

#team-logo-side img {
  max-width: 64px;       /* Shrink to fit comfortably in sidebar */
  height: auto;
  animation: neonPulse 3s ease-in-out infinite;
}

.logo:hover img {
  transform: scale(1.05); /* Subtle hover lift */
}

/* Smooth vertical flow between logo & first nav link */
.sidebar a:first-child {
  margin-top: -0.2rem;
}


h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}

.input-group { margin-bottom: 1.5rem; text-align: center; }
label { 
  display: block; 
  font-size: 0.85rem; 
  color: var(--text-secondary); 
  margin-bottom: 0.5rem; 
  letter-spacing: 0.5px; 
  text-transform: uppercase;
}

input[type="password"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}
input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
  background: #161616;
}

input[type="password"]::placeholder { color: var(--text-secondary); opacity: 0.7; }

button {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #6c63ff, #4b0082);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
button:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4); 
}

.message {
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-align: center;
  background: rgba(255, 77, 77, 0.08);
  color: var(--error);
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.footer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 🔹 DASHBOARD LAYOUT --> */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-primary);
}

/* ──────────────────────────────────────────────
   🌿 SIDEBAR NAVIGATION (Matches your HTML exactly)
   ────────────────────────────────────────────── */
.sidebar {
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    min-height: calc(100vh - 64px); /* Remove header-height if you don't have a fixed top bar */
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    background-color: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Hover: subtle lift + shift */
.sidebar a:hover {
    background-color: var(--surface-hover);
    color: var(--text-primary);
    transform: translateX(6px);
}

/* Active: gradient accent + glow */
.sidebar a.active {
    background-color: linear-gradient(135deg, #6c63ff, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.35);
}

/* Prevent emoji + text misalignment */
.sidebar a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* Optional: If you add explicit icon spans later, this scales them smoothly */
.sidebar a .icon { 
  font-size: 1.2rem; min-width: 24px; text-align: center; transition: transform 0.2s ease; 
}
.sidebar a:hover .icon, .sidebar a.active .icon { transform: scale(1.08); }

.icon { font-size: 1.4rem; min-width: 24px; text-align: center; }

.content-area {
  padding: 2rem;
  overflow-y: auto;
  background: var(--bg);
}

.content-area h2 { margin-bottom: 1.5rem; color: var(--text-primary); font-size: 1.6rem; }
.content-area p { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; max-width: 80%; }

.quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}
.card h3 { margin-bottom: 0.4rem; color: var(--text-primary); font-size: 1.15rem; }
.card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; }

/* 🔹 RESPONSIVE --> */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; order: -1; width: 100%; }
}

/* 🔹 LOGIN ERROR OVERLAY --> */
.login-error body { opacity: 0.85; background-color: rgba(255,77,77,0.04); }

/* ─── RESET & BASE ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: #0a0a0a; color: #ffffff; min-height: 100vh; overflow-x: hidden; }

/* ─── DASHBOARD LAYOUT ─── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background-color: #0a0a0a; color: #fff; }

/* ─── SIDEBAR ─── */
.sidebar a {
  color: #888888; text-decoration: none; padding: 1rem 1.25rem; border-radius: 8px; font-size: 0.95rem; transition: all 0.2s ease; display: flex; align-items: center; gap: 0.75rem;
}
.sidebar a:hover, .sidebar a.active { color: #fff; background: #141414; }

/* ─── MAIN CONTENT ─── */
.content-area { padding: 2rem; overflow-y: auto; min-height: calc(100vh - 260px); }
.content-area h2 { margin-bottom: 1.5rem; font-size: 1.8rem; letter-spacing: -0.5px; }

/* ─── MAP CARDS GRID ─── */
.map-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.map-card {
  background: #121212; border: 1px solid #2a2a2a; border-radius: 14px; padding: 0.75rem; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
}
.map-card:hover { transform: translateY(-2px); border-color: #6c63ff; box-shadow: 0 4px 16px rgba(108,99,255,0.3); }

/* FOCUSED STATE (Expands to full width when clicked) --> */
.map-card.active { grid-column: span 1; border-color: #6c63ff !important; background: #1a1a1a; box-shadow: 0 4px 25px rgba(108,99,255,0.3); }

/* COMPACT STATE FOR NON-ACTIVE MAPS --> */
.map-card:not(.active) { transform: scale(0.92); opacity: 0.65; }
.map-card:not(.active) span { font-size: 0.85rem; color: #888888; text-align: center; width: auto; }

.map-card img { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 10px; transition: transform 0.3s ease; object-fit: cover; margin-bottom: 0.5rem; }
.map-card:hover img, .map-card.active img { transform: scale(1.04); }

/* ─── POI GRID & CARDS ─── */
.poi-grid { 
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; padding: 1rem; background: #121212; border-radius: 14px; max-height: calc(100vh - 350px); overflow-y: auto;
}
.hidden { display: none !important; }

.poi-card {
  background: transparent; border: none; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.5rem;
}
.poi-card:hover { transform: translateY(-3px); box-shadow: inset 0 4px 16px rgba(108,99,255,0.15); }
.poi-card img { width: 85%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.poi-card span { font-size: 0.85rem; color: #888888; text-align: center; word-break: break-all; flex-shrink: 0; }

/* ─── FOCUSED POI VIEW OVERLAY ─── */
.info-panel { 
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 1.5rem;
  width: 90%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.focused-img-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.focused-img-wrap img {
  width: 100%;
  height: auto; /* Lets image scale naturally without clipping */
  display: block;
}

.info-panel h3 { 
  font-size: 1.4rem; 
  margin-bottom: 0.25rem; 
  color: #fff; 
  text-align: left;
}

.loot-path {
  color: #888888;
  line-height: 1.7;
  font-size: 0.95rem;
  white-space: pre-wrap;
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  min-height: 60px;
}

.btn-close {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888888;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-close:hover {
  background: #1a1a1a;
  border-color: #6c63ff;
  color: #fff;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .info-panel { max-width: 95%; padding: 1.2rem; }
  .focused-img-wrap img { height: auto; }
}

/* ─── HIDDEN STATE & OVERLAY BEHAVIOR ─── */
.hidden { display: none !important; }

.info-panel { 
  position: relative; z-index: 10;
  background: var(--surface); border: 1px solid #2a2a2a; border-radius: 16px; padding: 1.5rem; width: 90%; max-width: 800px; 
  margin: 0 auto 2rem auto; box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.focused-img-wrap { 
  width: 100%; max-width: 580px; margin: 0 auto 1rem; border-radius: 12px; overflow: hidden; background: #0a0a0a; }

.focused-img-wrap img { 
  width: 100%; height: auto; display: block; /* Removes rigid aspect-ratio clipping */ 
}

.info-panel h3 { font-size: 1.4rem; margin-bottom: 0.25rem; color: #fff; text-align: left; }
.loot-path { color: #888888; line-height: 1.7; font-size: 0.95rem; white-space: pre-wrap; background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 8px; border: 1px solid #2a2a2a; min-height: 60px; }

.btn-close { 
  width: 100%; padding: 0.75rem; margin-top: 1rem; background: transparent; border: 1px solid #2a2a2a; color: #888888; border-radius: 8px; font-family: inherit; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease;
}
.btn-close:hover { background: #1a1a1a; border-color: #6c63ff; color: #fff; }

@media (max-width: 768px) { 
  .info-panel { max-width: 95%; padding: 1.2rem; }
}

.focused-img-wrap img { height: auto; display: block; margin-bottom: 1rem; border-radius: 8px; }
.info-panel { z-index: 10; max-height: calc(100vh - 250px); overflow-y: auto; padding-top: 1.5rem; }

/* ─── LOOT PATHS LAYOUT & STYLES ─── */
.map-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.map-card {
  background: #121212; border: 1px solid #2a2a2a; border-radius: 14px; padding: 0.75rem; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
}
.map-card:hover { transform: translateY(-2px); border-color: #6c63ff; box-shadow: 0 4px 16px rgba(108,99,255,0.3); }

/* FOCUSED STATE */
.map-card.active { grid-column: span 1; border-color: #6c63ff !important; background: #1a1a1a; box-shadow: 0 4px 25px rgba(108,99,255,0.3); }
.map-card:not(.active) { transform: scale(0.92); opacity: 0.65; }

.map-card img { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 10px; transition: transform 0.3s ease; object-fit: cover; margin-bottom: 0.5rem; }
.map-card:hover img, .map-card.active img { transform: scale(1.04); }

/* POI GRID */
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; padding: 1rem; background: #121212; border-radius: 14px; max-height: calc(100vh - 350px); overflow-y: auto; }
.hidden { display: none !important; }

.poi-card {
  background: transparent; border: none; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.5rem;
}
.poi-card:hover { transform: translateY(-3px); box-shadow: inset 0 4px 16px rgba(108,99,255,0.15); }
.poi-card img { width: 85%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem; }
.poi-card span { font-size: 0.85rem; color: #888888; text-align: center; word-break: break-all; flex-shrink: 0; }

/* INFO PANEL */
.info-panel { 
  background: var(--surface); border: 1px solid #2a2a2a; border-radius: 16px; padding: 1.5rem; width: 90%; max-width: 800px; margin: 0 auto 2rem auto; box-shadow: 0 12px 40px rgba(0,0,0,0.6); z-index: 10; position: relative;
}

.focused-img-wrap img { width: 100%; height: auto; display: block; margin-bottom: 0.5rem; border-radius: 8px; }

.info-panel h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: #fff; text-align: left; }
.loot-path { color: #888888; line-height: 1.7; font-size: 0.95rem; white-space: pre-wrap; background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 8px; border: 1px solid #2a2a2a; min-height: 60px; }

.btn-close {
  width: 100%; padding: 0.75rem; margin-top: 1rem; background: transparent; border: 1px solid #2a2a2a; color: #888888; border-radius: 8px; font-family: inherit; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease;
}
.btn-close:hover { background: #1a1a1a; border-color: #6c63ff; color: #fff; }

@media (max-width: 768px) { 
  .info-panel { max-width: 95%; padding: 1.2rem; }
  .focused-img-wrap img { height: auto; }
}

/* ─── IMAGE FOCUS OVERLAY ─── */
.focused-img-wrap { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 0.5rem; }

.focused-img-wrap.image-focused { 
  width: calc(100% - 540px); max-width: 78%;
  max-height: calc(100vh - 300px);
  transform-origin: center; transition: all 0.3s ease; z-index: 50;
}

.focused-img-wrap.image-focused img { 
  width: 100%; height: auto; object-fit: cover; 
  transform: scale(1.08); transition: transform 0.4s ease; 
}

/* Dark backdrop when focused */
.focused-img-wrap.image-focused::after {
  content: ''; position: absolute; inset: -3px; border-radius: 16px; 
  background: rgba(255,255,255,0.85); pointer-events: none; z-index: 49;
}

/* Keep panel text readable when focused */
.focused-img-wrap.image-focused h3 { 
  position: absolute; top: 60%; left: 1rem; right: 1rem; 
  background: rgba(10,10,10,0.85); color: #fff; padding: 0.75rem 1rem; border-radius: 8px; z-index: 10; text-align: center; font-size: 1rem;
}

.focused-img-wrap.image-focused .loot-path { 
  position: absolute; bottom: 60%; left: 1rem; right: 1rem; 
  background: rgba(10,10,10,0.85); color: #ccc; padding: 0.75rem 1rem; border-radius: 8px; z-index: 10; text-align: center; font-size: 0.9rem; white-space: pre-wrap;
}

@media (max-width: 768px) {
  .focused-img-wrap.image-focused { max-height: 85vh; width: calc(100% - 40px); padding: 0.5rem; }
  .focused-img-wrap.image-focused h3, 
  .focused-img-wrap.image-focused .loot-path { position: static; transform: none; bottom: 0.75rem; left: 1rem; right: 1rem; max-height: auto; width: 100%; text-align: center; padding: 0.5rem; }
}
/* ─── FOCUSED IMAGE OVERLAY STATE ─── */
.focused-img-wrap { position: relative; overflow: hidden; border-radius: 12px; }

.focused-img-wrap.image-focused { 
  width: calc(100% - 64px); max-width: 85vw; 
  max-height: calc(100vh - 320px); 
  transform-origin: center; transition: all 0.4s ease; z-index: 20;
}

.focused-img-wrap.image-focused img { 
  width: 100%; height: auto !important; object-fit: cover; 
  transition: transform 0.3s ease, filter 0.3s ease; 
}

/* Dark overlay when focused */
.focused-img-wrap.image-focused::after {
  content: ''; position: absolute; inset: -4px; border-radius: 16px; 
  background: rgba(255,255,255,0.8); pointer-events: none; z-index: 19;
}

/* Keep label & path visible when focused */
.info-panel.image-focused h3 { position: absolute; top: 1rem; left: 1rem; color: #fff; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); font-size: 1rem; z-index: 20; }
.info-panel.image-focused .loot-path { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; background: rgba(15,15,15,0.85); color: #e0e0e0; padding: 0.6rem; border-radius: 6px; font-size: 0.9rem; white-space: pre-wrap; overflow-y: auto; z-index: 20; }
.info-panel.image-focused img { margin-bottom: 1rem; }

@media (max-width: 768px) {
  .focused-img-wrap.image-focused { max-height: calc(100vh - 150px); width: calc(100% - 32px); padding: 0.5rem; }
  .info-panel.image-focused h3, 
  .info-panel.image-focused .loot-path { position: static; margin-top: auto; text-align: center; }
}
/* Google Images-style image focus overlay */
.focus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;

  /* Fade-in animation */
  transition: opacity 0.2s ease;
}

.focus-overlay.active {
  opacity: 1;
}

.focus-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  z-index: 10;
}

.focus-close:hover {
  background: rgba(255, 255, 255, 1);
}

.focus-overlay img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.focus-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  max-width: 80vw;
}
/* Google Images-style image focus overlay */
.focus-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.88); display: none;
  align-items: center; justify-content: center; overflow: hidden;
}
.focus-overlay.active {
  display: flex; opacity: 1; transition: opacity 0.15s ease-in-out;
}
.focus-overlay img {
  max-width: 94vw; max-height: 85vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); cursor: pointer;
}
.focus-close {
  position: absolute; top: 20px; right: 32px;
  background: rgba(255,255,255,.95); border: none; width: 46px; height: 46px;
  font-size: 28px; cursor: pointer; border-radius: 50%; color: #1e293b; z-index: 10;
}
.focus-close:hover { background: #fff; transform: scale(1.05); }
/* Focus Overlay (unchanged) */
.focus-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.88); display: none;
  align-items: center; justify-content: center; overflow: hidden;
}
.focus-overlay.active {
  display: flex; opacity: 1; transition: opacity 0.15s ease-in-out;
}
.focus-overlay img {
  max-width: 94vw; max-height: 85vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); cursor: pointer;
}
.focus-close {
  position: absolute; top: 20px; right: 32px;
  background: rgba(255,255,255,.95); border: none; width: 46px; height: 46px;
  font-size: 28px; cursor: pointer; border-radius: 50%; color: #1e293b; z-index: 10;
}
.focus-close:hover { background: #fff; transform: scale(1.05); }

/* 🔹 NEW: Focus Trigger Button */
.focus-trigger-btn {
  position: absolute; bottom: -6px; right: 8px;
  background: rgba(30, 41, 59, 0.7); color: #e2e8f0; border: none;
  width: 36px; height: 36px; font-size: 16px; cursor: pointer;
  border-radius: 6px; display:flex; align-items:center; justify-content:center;
  transition: background 0.2s, transform 0.15s; z-index: 5;
}
.focus-trigger-btn:hover { background: rgba(96, 165, 250, 0.8); transform: scale(1.05); }
/* =========================================
   SOCIALS PAGE STYLES (Isolated)
   ========================================== */

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.15);
}

/* ── Socials Player Avatar (Image-Optimized) ── */
.player-avatar {
  width: 72px; 
  height: 72px; 
  border-radius: 50%; 
  background-color: #1a1a1a; /* Fallback if image fails to load */
  object-fit: cover; 
  margin: 0 auto 1rem;
}


.player-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.player-class {
  display: inline-block;
  background: rgba(108, 99, 255, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ── Social Stats Items (Updated) ── */
.social-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer; /* Makes it clickable */
  transition: all 0.2s ease-in-out;
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateY(-2px); /* Subtle lift on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Nested styling remains the same for labels and values */
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--accent); }


.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.online { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.offline { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .socials-grid { grid-template-columns: 1fr; }
  .player-card { padding: 1.25rem; }
  .stats-grid { gap: 0.5rem; }
}

/* Utility */
.hidden { display: none !important; }
/* ── New: Dashboard Menu Layout ── */
.dashboard-menu {
    display: flex; flex-direction: column; align-items: center; min-height: 100vh;
}

.menu-header { width: 95%; max-width: 64rem; }
.menu-header .brand-icon { font-size: 2rem; margin-right: 0.75rem; vertical-align: middle; }

.dashboard-nav {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    justify-content: center; width: 95%; max-width: 64rem; margin-bottom: 2rem;
}

.dashboard-nav a {
    font-weight: 600; color: #888888; text-decoration: none; padding: 0.6rem 1.25rem;
    border-radius: 12px; transition: all 0.2s ease; font-size: 0.95rem;
}

.dashboard-nav a:hover, .dashboard-nav a.active {
    color: #fff; background: rgba(108, 99, 255, 0.15); box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}

.menu-divider {
    width: 95%; max-width: 64rem; height: 1px; background: #2a2a2a; margin-bottom: 2rem;
}

.dashboard-section { width: 95%; max-width: 64rem; text-align: center; }

.quick-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; width: 95%; max-width: 64rem; }

/* ── Mobile menu toggle (top-right) ── */
.menu-toggle {
    position: fixed; top: 1.25rem; right: 1.25rem; z-index: 100;
    background: transparent; border: none; color: #fff; font-size: 1.8rem; cursor: pointer;
}

.mobile-menu {
    position: fixed; inset: -6px; background: rgba(10,10,10,0.97); z-index: 200;
    padding: 5rem 1.5rem 3rem; width: calc(100% - 12px); max-width: 48rem;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
}

.mobile-menu.active { transform: translateX(0); }

.mobile-nav-links { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; margin-top: 2rem; }

@media (min-width: 640px) {
    .menu-toggle { display: none; }
}

/* ──────────────────────────────────────────────
   🎯 DASHBOARD MENU GRID (2x3 Layout)
   ────────────────────────────────────────────── */
.menu-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive 2-col layout */
    gap: 1rem;
    max-width: 64rem;
    width: 100%;
}

.nav-btn {
    padding: 1.25rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
    transform: translateY(-2px);
}
/* ─── GUN DATA SECTION STYLES ────────────── */
.controls-bar {
  display: flex; gap: 12px; margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap;
  background: var(--surface); padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border);
}

.controls-bar input {
  flex: 1; min-width: 200px; padding: 10px 14px; background: #161616; 
  border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary);
  font-family: inherit; font-size: 0.95rem; outline: none; transition: all 0.2s ease;
}

.controls-bar input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* ─── STATS TABLE (Dark Theme Optimized) ── */
.stats-table {
  width: 100%; border-collapse: collapse; background: var(--surface); 
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.stats-table thead th {
  padding: 14px 16px; text-align: left; font-weight: 600; color: var(--text-secondary);
  border-bottom: 2px solid var(--border); background: #1a1a1a; white-space: nowrap; position: sticky; top: 0;
}

.stats-table tbody tr { transition: background-color 0.15s ease; border-bottom: 1px solid var(--border); }
.stats-table tbody tr:hover { background: #222222; }

.stats-table td { padding: 12px 16px; font-size: 0.95rem; color: var(--text-primary); }
.stats-table tbody tr:last-child td { border-bottom: none; }

/* ─── MAG BADGE & STATS ─────────────────── */
.mag-badge {
  display: inline-block; padding: 4px 8px; background: rgba(108, 99, 255, 0.12);
  color: var(--accent); border-radius: 6px; font-weight: 600; font-size: 13px; letter-spacing: 0.3px;
}

.stats-table td.dps-cell { text-align: right; color: var(--success); font-family: monospace; }

/* ─── EMPTY STATE & UTILS ───────────────── */
.empty-state {
  padding: 48px 20px; text-align: center; color: var(--text-secondary); 
  background: #161616; border-radius: 14px; border: 1px dashed var(--border); margin-top: 1.5rem;
}

.hidden { display: none !important; }

/* ─── RESPONSIVE TWEAKS ─────────────────── */
@media (max-width: 768px) {
  .controls-bar { flex-direction: column; align-items: stretch; }
  .btn-filter { width: 100%; text-align: center; padding: 12px; }
  
  .stats-table { font-size: 0.9rem; overflow-x: auto; border-radius: 8px; max-height: calc(100vh - 180px); }
  .mag-badge { padding: 3px 6px; font-size: 12px; }
}

@media (max-width: 480px) {
  .controls-bar input { margin-bottom: 8px; width: 100%; }
  .stats-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* ─── GUN DATA LAYOUT (Scoped & Fixed) ────── */
.gun-sidebar {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: 260px; height: calc(100vh - 80px); /* Change 80px if you have a fixed header/footer */
  background-color: var(--surface); border-right: 1px solid var(--border);
  padding-top: 1rem; overflow-y: auto;
}

.gun-content {
  position: relative;
  margin-left: 50px; /* 260px sidebar + 15px gap */
  padding-right: 2rem;
  min-height: calc(100vh - 80px);
  overflow-y: auto;
  box-sizing: border-box;
}

.stats-table {
  width: 100%; margin-bottom: 1rem;
  background: var(--surface); border-radius: 12px; border: 1px solid var(--border);
  overflow-x: auto;
}

.stats-table thead th {
  position: sticky; top: 0; z-index: 2; padding: 12px 16px; font-weight: 600; color: var(--text-secondary);
  background: #1a1a1a; border-bottom: 2px solid var(--border); white-space: nowrap;
}

.stats-table tbody tr { transition: background-color 0.15s ease; border-bottom: 1px solid var(--border); }
.stats-table tbody tr:hover { background: #222222; }
.stats-table td { padding: 10px 16px; font-size: 0.9rem; color: var(--text-primary); }

.mag-badge {
  display: inline-block; padding: 4px 8px; background: rgba(108, 99, 255, 0.12);
  color: var(--accent); border-radius: 6px; font-weight: 600; font-size: 13px; letter-spacing: 0.3px;
}

.stats-table td.dps-cell { text-align: right; color: var(--success); font-family: monospace; }

/* ─── RESPONSIVE FALLBACK (Stacks on mobile) ── */
@media (max-width: 768px) {
  .gun-sidebar { width: 240px; height: auto; min-height: 320px; border-bottom: 1px solid var(--border); }
  .gun-content { margin-left: 0 !important; padding-right: 0.5rem; margin-top: calc(320px + 1.5rem); max-width: 98%; overflow-x: auto; min-height: 400px; }
}

/* ─── HIDDEN STATE ────────────────────── */
.hidden { display: none !important; }

#team-logo-side img {
  max-width: 80px; 
  animation: neonPulse 3s ease-in-out infinite;
}

/* Hover state stays sharp & smooth */
#team-logo-side img:hover {
  filter: drop-shadow(0 0 18px rgba(108, 99, 255, 0.9)) drop-shadow(0 0 45px rgba(108, 99, 255, 0.35));
  transform: scale(1.06);
}