:root {
  --bg-dark: #061327;
  --bg-darker: #040d1d;
  --primary: #f0b63a;
  --primary-hover: #ffcb5b;
  --text: #ffffff;
  --muted: #b6c3d1;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html, body {
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(6, 19, 39, 0.78), rgba(4, 13, 29, 0.96)),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80&w=1920&auto=format&fit=crop") center/cover no-repeat fixed;
}

body {
  position: relative;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 196, 71, 0.08), transparent 25%),
    radial-gradient(circle at 80% 25%, rgba(88, 101, 242, 0.12), transparent 25%),
    linear-gradient(to bottom, rgba(7, 20, 38, 0.2), rgba(4, 10, 22, 0.88));
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 18, 38, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}

.logo {
  font-size: 1.12rem;
  font-weight: 800;
  color: #eef4ff;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo i {
  color: #f4f7ff;
  font-size: 1.35rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d4dcea;
  font-size: 0.95rem;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  min-height: 46px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255,255,255,0.06);
}

.nav-links a.nav-login {
  background: rgba(240, 182, 58, 0.12);
  border: 1px solid rgba(240, 182, 58, 0.28);
  color: #ffe3a0;
}

.nav-links a.nav-login:hover {
  background: rgba(240, 182, 58, 0.22);
  color: #fff1cc;
}

.staff-page {
  padding-top: 48px;
  padding-bottom: 80px;
}

.staff-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px;
  border-radius: 28px;
  margin-bottom: 28px;
}

.staff-hero-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255,255,255,0.08);
  color: var(--primary);
  flex-shrink: 0;
}

.staff-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 10px;
}

.staff-hero p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.staff-card {
  border: 0;
  cursor: pointer;
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  transition: 0.25s ease;
  color: #fff;
}

.staff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.staff-head-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.staff-head {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.staff-role {
  color: var(--muted);
  font-size: 0.95rem;
}

.staff-live-status {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.staff-live-status.online {
  background: rgba(34, 197, 94, 0.14);
  color: #b7f7c7;
}

.staff-live-status.offline {
  background: rgba(239, 68, 68, 0.14);
  color: #ffc1c1;
}

.staff-empty {
  grid-column: 1 / -1;
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
}

.staff-empty i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.staff-empty h2 {
  margin-bottom: 10px;
}

.staff-empty p {
  color: var(--muted);
  line-height: 1.8;
}

.staff-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.staff-modal.show {
  opacity: 1;
  visibility: visible;
}

.staff-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.staff-modal-content {
  position: relative;
  width: min(760px, calc(100% - 24px));
  margin: 7vh auto 0;
  border-radius: 30px;
  padding: 28px;
  z-index: 1;
}

.staff-modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.staff-modal-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
}

.staff-modal-headbox {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
}

.staff-modal-headbox img {
  width: 140px;
  height: 140px;
  image-rendering: pixelated;
  border-radius: 20px;
}

.staff-modal-info h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.staff-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
}

.staff-badge-status.online {
  background: rgba(34, 197, 94, 0.14);
  color: #b7f7c7;
}

.staff-badge-status.offline {
  background: rgba(239, 68, 68, 0.14);
  color: #ffc1c1;
}

.staff-info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.staff-info-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

.staff-info-item .label {
  color: var(--muted);
  font-weight: 700;
}

.staff-about-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
}

.staff-about-box h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.staff-about-box p {
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1000px) {
  .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
  }

  .logo {
    flex: 1;
    justify-content: flex-start;
    text-align: left;
    width: auto;
    font-size: 1.15rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    animation: fadeDown 0.25s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    font-size: 1.05rem;
    border-radius: 22px;
    background: rgba(34, 53, 87, 0.45);
    border: 1px solid rgba(255,255,255,0.04);
  }

  .staff-hero {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-modal-content {
    margin-top: 4vh;
    padding: 22px 18px;
  }

  .staff-modal-layout {
    grid-template-columns: 1fr;
  }

  .staff-modal-headbox {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(94%, 1200px);
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card {
    padding: 22px 16px;
  }

  .staff-head {
    width: 88px;
    height: 88px;
  }

  .staff-modal-info h2 {
    font-size: 1.6rem;
  }

  .staff-info-item {
    flex-direction: column;
    gap: 6px;
  }
}

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