/* =========================================================================
   LEGENDS · sidebar "Neon rail" (model A)
   server card · icon tiles · glowing active page · gold BUY VIP · user card
   Uses --lg-blue / --lg-blue-rgb, so seasonal skins (Halloween…) recolor it.
   Remove the <link> to legends-sidebar.css in layouts/zem.blade.php to go back.
   ========================================================================= */

/* neon edge: blue -> pink */
.lg-sidebar::after {
  content: ""; position: absolute; top: 0 !important; bottom: 0 !important; right: -1px; width: 2px !important;
  background: linear-gradient(180deg, transparent, var(--lg-blue) 28%, #ff2d6f 72%, transparent) !important;
  box-shadow: 0 0 14px rgba(var(--lg-blue-rgb), .7) !important; pointer-events: none;
}

/* ---------- live server card ---------- */
.lg-srv {
  position: relative; display: block; flex: 0 0 auto; margin: 14px 14px 4px; padding: 11px 12px 12px 14px;
  text-decoration: none !important; color: #fff !important;
  border: 1px solid rgba(var(--lg-blue-rgb), .35);
  background: linear-gradient(135deg, rgba(var(--lg-blue-rgb), .16), rgba(0, 0, 0, .25));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .2s, border-color .2s;
}
.lg-srv:hover { background: linear-gradient(135deg, rgba(var(--lg-blue-rgb), .28), rgba(0, 0, 0, .2)); border-color: rgba(var(--lg-blue-rgb), .6); }
.lg-srv__name { display: block; font: 800 12.5px Orbitron, sans-serif; letter-spacing: 1.5px; }
.lg-srv__meta { display: block; margin-top: 2px; font: 600 12.5px Rajdhani, sans-serif; color: rgba(var(--lg-blue-rgb), .95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 54px; }
.lg-srv__live { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; font: 700 9.5px Orbitron, sans-serif; letter-spacing: 1px; color: #00ff91; }
.lg-srv__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: lgSrvPulse 1.6s infinite; }
@keyframes lgSrvPulse { 50% { opacity: .35; } }
.lg-srv__bar { display: block; height: 5px; margin-top: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lg-srv__bar i { display: block; height: 100%; background: linear-gradient(90deg, #00ff91, var(--lg-blue)); box-shadow: 0 0 10px #00ff91; transition: width .8s ease; }
.lg-srv.is-off .lg-srv__live { color: #ff496b; }
.lg-srv.is-off .lg-srv__live::before { animation: none; }
.lg-srv.is-off .lg-srv__bar i { background: #ff496b; box-shadow: none; }

/* ---------- groups ---------- */
.lg-sidebar .lg-nav .lg-nav__group {
  display: flex; align-items: center; gap: 8px; padding: 16px 4px 7px !important;
  font: 800 9.5px Orbitron, sans-serif !important; letter-spacing: 3px !important; color: rgba(var(--lg-blue-rgb), .6) !important;
}
.lg-sidebar .lg-nav .lg-nav__group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--lg-blue-rgb), .4), transparent); }
.lg-sidebar .lg-nav .lg-nav__group--admin { color: rgba(255, 45, 111, .8) !important; }
.lg-sidebar .lg-nav .lg-nav__group--admin::after { background: linear-gradient(90deg, rgba(255, 45, 111, .45), transparent); }

/* ---------- items ---------- */
.lg-sidebar .lg-nav .lg-nav__item {
  gap: 12px; padding: 7px 8px !important; margin: 2px 0; border-radius: 0 !important;
  font: 700 13.5px Rajdhani, sans-serif !important; letter-spacing: 1.4px !important; text-transform: uppercase; color: #9fb2c1 !important;
}
.lg-nav__ic {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px;
  color: rgba(var(--lg-blue-rgb), .95); border: 1px solid rgba(var(--lg-blue-rgb), .22); background: rgba(var(--lg-blue-rgb), .06);
  clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
  transition: background .15s, color .15s, box-shadow .15s;
}
.lg-nav__ic .fa { width: auto !important; font-size: 13px !important; color: inherit !important; }
.lg-sidebar .lg-nav .lg-nav__item:hover { background: rgba(var(--lg-blue-rgb), .07) !important; color: #fff !important; }
.lg-sidebar .lg-nav .lg-nav__item:hover .lg-nav__ic { background: rgba(var(--lg-blue-rgb), .18); }
.lg-sidebar .lg-nav .lg-nav__item.is-active {
  color: #fff !important; background: linear-gradient(90deg, rgba(var(--lg-blue-rgb), .26), rgba(var(--lg-blue-rgb), 0)) !important;
  text-shadow: 0 0 12px rgba(var(--lg-blue-rgb), .8);
}
.lg-sidebar .lg-nav .lg-nav__item.is-active::before {
  content: ""; position: absolute; left: -12px !important; top: 6px !important; bottom: 6px !important; width: 3px !important; border-radius: 0 !important;
  background: var(--lg-blue) !important; box-shadow: 0 0 12px var(--lg-blue) !important;
}
.lg-sidebar .lg-nav .lg-nav__item.is-active .lg-nav__ic { background: var(--lg-blue); color: #00121c; border-color: var(--lg-blue); box-shadow: 0 0 16px rgba(var(--lg-blue-rgb), .7); }

/* gold BUY VIP */
.lg-sidebar .lg-nav .lg-nav__item--vip { color: #ffd56a !important; }
.lg-sidebar .lg-nav .lg-nav__item--vip .lg-nav__ic { color: #ffc93c; border-color: rgba(255, 201, 60, .5); background: rgba(255, 201, 60, .1); }
.lg-sidebar .lg-nav .lg-nav__item--vip:hover .lg-nav__ic, .lg-sidebar .lg-nav .lg-nav__item--vip.is-active .lg-nav__ic { background: #ffc93c; color: #1a1200; border-color: #ffc93c; box-shadow: 0 0 16px rgba(255, 201, 60, .6); }
.lg-sidebar .lg-nav .lg-nav__item--vip.is-active::before { background: #ffc93c !important; box-shadow: 0 0 12px #ffc93c !important; }

/* online count + badges */
.lg-nav__count {
  margin-left: auto; min-width: 26px; padding: 2px 7px; text-align: center;
  font: 800 10px/14px Orbitron, sans-serif; color: #1a1200; background: #ffc93c; box-shadow: 0 0 10px rgba(255, 201, 60, .6);
}
.lg-sidebar .lg-nav__badge { border-radius: 0 !important; font: 800 10px Orbitron, sans-serif !important; background: #ff2d6f !important; box-shadow: 0 0 10px #ff2d6f !important; margin-left: auto !important; }

/* admin sub-menu: small icons, neon thread */
.lg-sidebar .lg-nav__sub { margin: 2px 0 8px 22px !important; padding-left: 12px !important; border-left: 1px solid rgba(255, 45, 111, .3) !important; }
.lg-sidebar .lg-nav .lg-nav__subitem {
  display: flex !important; align-items: center; gap: 9px; padding: 6px 8px !important; border-radius: 0 !important;
  font: 700 12.5px Rajdhani, sans-serif !important; letter-spacing: 1.2px !important; text-transform: uppercase; color: #8796a3 !important;
}
.lg-sidebar .lg-nav .lg-nav__subitem > .fa { width: 14px; font-size: 11.5px; text-align: center; color: rgba(255, 45, 111, .65); }
.lg-sidebar .lg-nav .lg-nav__subitem:hover { color: #fff !important; background: rgba(255, 45, 111, .07) !important; }
.lg-sidebar .lg-nav .lg-nav__subitem.is-active { color: #fff !important; background: linear-gradient(90deg, rgba(255, 45, 111, .22), transparent) !important; }
.lg-sidebar .lg-nav .lg-nav__subitem.is-active > .fa { color: #ff2d6f; }

/* ---------- user card ---------- */
.lg-me { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 10px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .35); }
.lg-me__av { flex: 0 0 auto; width: 40px; height: 40px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--lg-blue), #ff2d6f); }
.lg-me__av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0a1520; display: block; }
.lg-me__txt { min-width: 0; flex: 1; text-decoration: none !important; }
.lg-me__txt b { display: block; font: 800 12.5px Orbitron, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-me__role { font: 700 11.5px Rajdhani, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #8fd8ff; }
.lg-me__role--2 { color: #ff4d7d; } .lg-me__role--1 { color: #ffc93c; }
.lg-me__out { margin: 0; }
.lg-me__out button { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .08); background: transparent; color: #7f93a3; transition: color .15s, border-color .15s; }
.lg-me__out button:hover { color: #ff496b; border-color: rgba(255, 73, 107, .5); }

@media (prefers-reduced-motion: reduce) { .lg-srv__live::before { animation: none; } }
