:root {
  --red: #d62828;
  --map-note-bg: rgba(255, 255, 255, 0.85);
  --docs-text: #6b7280;
  --login-panel-bg: rgba(255, 255, 255, 0.92);
  --login-panel-border: rgba(0, 0, 0, 0.08);
  --login-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04) 40%, rgba(0, 0, 0, 0.02));
  --login-hero-sheen: radial-gradient(600px 400px at 50% 45%, rgba(0, 0, 0, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04) 40%, rgba(0, 0, 0, 0.1));
  --login-panel-text: #121212;
  --login-panel-muted: rgba(17, 17, 17, 0.6);

  /* THEME TOKENS */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #555555;
  --border: #e5e5e5;
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #161a22;
  --text: #f2f3f5;
  --muted: #b2b7c2;
  --border: #2a3040;
  --map-note-bg: rgba(22, 26, 34, 0.85);
  --docs-text: #9ca3af;
  --login-panel-bg: rgba(10, 12, 16, 0.9);
  --login-panel-border: rgba(255, 255, 255, 0.08);
  --login-hero-overlay: linear-gradient(180deg, rgba(10, 12, 16, 0.5), rgba(10, 12, 16, 0.32) 40%, rgba(10, 12, 16, 0.22));
  --login-hero-sheen: radial-gradient(600px 400px at 50% 45%, rgba(0, 0, 0, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.24));
  --login-panel-text: #f5f5f5;
  --login-panel-muted: rgba(245, 245, 245, 0.72);
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

button {
  font-family: Avenir;
}

body {
  font-family: Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.nav-wrap {
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-announcement {
  display: none;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 0.2rem 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav-announcement.show {
  display: block;
}

body.map-page .nav-announcement {
  position: static;
  margin: 0;
}

body.map-page.nav-hidden .nav-announcement {
  display: none !important;
}

body.map-page.announcement-active {
  --map-announce-offset: 34px;
}


.announcement-controls {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* NAV BAR */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* LEFT */
.nav-left {
  justify-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: none;
  color: var(--text);
  font-weight: 900;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  line-height: 1;
}

/* CENTER */
.nav-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
  justify-self: center;
}

.nav-center a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-center a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

/* RIGHT */
.nav-right {
  display: flex;
  justify-self: end;
  gap: 0.75rem;
}

/* SOCIAL ICON BUTTONS */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);

  transition: all 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.theme-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.theme-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.theme-btn .theme-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-btn:hover {
  transform: translateY(-1px);
}

.settings-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.settings-btn{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.settings-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.settings-btn:hover{
  transform: translateY(-1px);
}

.settings-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 230px;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  z-index: 200;
  box-sizing: border-box;
}

.settings-menu *{
  box-sizing: border-box;
}

.settings-menu.open{
  display: grid;
  gap: 0.6rem;
}

.settings-menu .cta-btn{
  margin-top: 0;
  width: 100%;
  text-align: center;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-menu .theme-btn{
  width: 100%;
  height: 40px;
  justify-content: center;
  gap: 0.5rem;
}

.cta-btn.admin-btn{
  background: #2fbf71;
  border: 1px solid #2fbf71;
}

.cta-btn.admin-btn:hover{
  box-shadow: 0 6px 18px rgba(47, 191, 113, 0.35);
}

.cta-btn.logout-btn{
  background: #d62828;
  border: 1px solid #d62828;
}

.cta-btn.logout-btn:hover{
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.35);
}

.server-card,
.staff-card,
.carousel-btn {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.staff-card p {
  color: var(--muted) !important;
}

.carousel-btn {
  color: var(--text) !important;
}

.staff-carousel-wrap {
  background: transparent !important;
}

.footer { color: var(--muted); }

/* Showcase header row */
.showcase-head {
  display: flex;
  text-align: center;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.showcase-head .cta-btn {
  margin-top: 0;
  line-height: 1;
}

/* Carousel */
.shot-carousel {
  margin-top: 1.25rem;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.shot-track {
  display: flex;
  transition: transform 0.45s ease;
}

.shot-slide {
  min-width: 100%;
  height: clamp(320px, 45vw, 520px);
  position: relative;
  background-size: cover;
  background-position: center;
}

.shot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

.shot-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  color: #fff;
  z-index: 1;
}

.shot-caption h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.shot-caption .shot-pill {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.shot-caption .shot-builders {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.shot-caption .shot-builders code {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  z-index: 2;
}

.shot-arrow.left { left: 12px; }
.shot-arrow.right { right: 12px; }

.shot-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.shot-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;
}

.shot-dot.active {
  background: #fff;
}

/* All screenshots page */
.showcase-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.shot-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1000px) {
  .shot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

.shot-card .shot-card-body {
  padding: 0.9rem 1rem;
  text-align: center;
}

.shot-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.shot-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.shot-card .shot-card-body {
  padding: 0.9rem 1rem;
}

.shot-card .shot-place {
  font-weight: 800;
  margin: 0;
}

.shot-builders {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.shot-builders code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  background: rgba(214, 40, 40, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  color: var(--text);
}

.shot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(214, 40, 40, 0.12);
  color: var(--text);
}

.shot-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.shot-caption .shot-title {
  justify-content: flex-start;
}

.shot-card .shot-path {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile: hide arrows, use swipe */
@media (max-width: 650px) {
  .shot-arrow { display: none; }
}

/* ===== Become a Builder Page ===== */
.builder-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.visit-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.login-page {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  min-height: 100vh;
  display: block;
}

body.login-body {
  background:
    radial-gradient(1400px 400px at 20% -20px, rgba(214, 40, 40, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(17, 17, 17, 0.08), rgba(255, 255, 255, 0.02)),
    var(--bg);
  min-height: 100vh;
  overflow: hidden;
}

body.admin-body {
  background:
    radial-gradient(1400px 400px at 20% -20px, rgba(214, 40, 40, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(17, 17, 17, 0.08), rgba(255, 255, 255, 0.02)),
    url("assets/hero.jpg"),
    var(--bg);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background-image:
    var(--login-hero-overlay),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(6px);
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--login-hero-sheen);
  pointer-events: none;
}

.login-panel {
  position: relative;
  z-index: 1;
  transform: translateY(-6vh);
}

.login-panel {
  width: min(420px, 86vw);
  padding: 2.75rem 2.75rem;
  background: var(--login-panel-bg);
  border: 1px solid var(--login-panel-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--login-panel-text);
  display: grid;
  gap: 0.9rem;
  align-content: center;
  text-align: center;
  justify-items: center;
}

.login-panel h2 {
  margin: 0;
  font-size: 1.8rem;
}

.login-panel .section-text {
  color: var(--login-panel-muted);
  margin: 0 0 0.35rem;
  max-width: 28ch;
}

.login-panel .docs-note {
  color: var(--login-panel-muted);
}

.login-logo img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.login-panel .cta-btn {
  width: min(320px, 100%);
  justify-content: center;
}

@media (max-width: 900px) {
  .login-hero {
    padding: 4rem 1.5rem;
  }

  .login-panel {
    background: rgba(17, 17, 17, 0.92);
  }
}

.docs-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.docs-panels {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.docs-page .section-text {
  text-align: left;
  line-height: 1.75;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.5rem;
  color: var(--docs-text);
}

.docs-hero .section-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.docs-panel ul {
  line-height: 1.7;
}

.docs-hero {
  margin-bottom: 2.5rem;
}

.docs-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.docs-card .section-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.docs-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.docs-form input {
  min-width: 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.docs-form input:focus {
  outline: 2px solid rgba(214, 40, 40, 0.4);
  border-color: rgba(214, 40, 40, 0.4);
}

.docs-form textarea {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
}

.docs-form textarea:focus {
  outline: 2px solid rgba(214, 40, 40, 0.4);
  border-color: rgba(214, 40, 40, 0.4);
}

.docs-error {
  margin: 0.75rem 0 0;
  color: var(--red);
  font-weight: 600;
  min-height: 1.2em;
}

.docs-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-welcome {
  text-align: left;
  width: 100%;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--surface);
}

.admin-avatar-lg {
  width: 56px;
  height: 56px;
  border-width: 3px;
}

.admin-hero-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
}

.settings-profile {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0 0.65rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.settings-avatar {
  width: 44px;
  height: 44px;
  border-width: 2px;
}

.settings-name {
  font-weight: 600;
  font-size: 0.9rem;
}


.admin-gate {
  text-align: center;
}

.admin-gate .cta-btn {
  margin-top: 0.75rem;
}

.admin-welcome-card {
  text-align: center;
}

.admin-welcome-card h2 {
  margin: 0 0 0.35rem;
}

.admin-list-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.admin-search{
  min-width: 220px;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.admin-list-card .section-text{
  margin-bottom: 0;
}

.admin-preview{
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  align-items: center;
}

.admin-preview img{
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-progress{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-progress progress{
  width: 100%;
  height: 8px;
  accent-color: var(--red);
}

.admin-list-card{
  margin-top: 2rem;
}

.admin-list{
  display: grid;
  gap: 1rem;
}

.admin-item{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-item img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-item-body{
  display: grid;
  gap: 0.5rem;
}

.admin-item-body input{
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.admin-item-actions{
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-announcement-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-announcement-card {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.admin-modal-card .admin-announcement-card {
  margin: 0 auto;
  max-width: 640px;
}

.admin-announcement-form {
  align-items: center;
}

.admin-announcement-form textarea {
  max-width: 640px;
  margin: 0 auto;
}

.admin-announcement-actions {
  justify-content: center;
}

.admin-item .cta-btn{
  margin-top: 0;
}

@media (max-width: 720px) {
  .admin-item{
    grid-template-columns: 1fr;
  }
}


.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
}

.docs-sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 0.5rem;
}

.docs-sidebar a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.docs-nav-group {
  display: grid;
  gap: 0.35rem;
}

.docs-nav-sub {
  display: grid;
  gap: 0.25rem;
  padding-left: 0.5rem;
  margin-top: -0.1rem;
}

.docs-nav-sub a {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
}

.docs-nav-sub a:hover {
  color: var(--text);
}

.docs-sidebar a:hover {
  border-color: var(--border);
  background: rgba(214, 40, 40, 0.08);
}

.docs-panels {
  display: grid;
  gap: 1.25rem;
}

.docs-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--surface);
}

.docs-panel h2 {
  margin: 0 0 0.75rem;
}

.docs-panel h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
}

.docs-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.docs-spacer {
  height: 1rem;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}

.visit-hero {
  margin-bottom: 2.5rem;
}

.visit-info {
  margin-bottom: 2.5rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.visit-media {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(214, 40, 40, 0.16), rgba(17, 17, 17, 0.05)),
    var(--surface);
  min-height: 260px;
  overflow: hidden;
}

.visit-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.visit-details {
  display: grid;
  gap: 1.5rem;
}

.visit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.visit-card h2 {
  margin: 0 0 0.75rem;
  text-align: left;
}

.visit-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.visit-list li {
  margin: 0.6rem 0;
  line-height: 1.6;
}

.visit-version {
  list-style: none;
}

.visit-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.visit-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.08);
}

.status-dot.online {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.6);
}

.status-dot.offline {
  border-color: rgba(214, 40, 40, 0.65);
  background: rgba(214, 40, 40, 0.75);
}

.status-dot.neutral {
  border-color: rgba(148, 163, 184, 0.8);
  background: rgba(148, 163, 184, 0.7);
}

.copy-ip-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.copy-ip-btn:hover {
  border-color: var(--red);
  background: rgba(214, 40, 40, 0.08);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

.builder-hero {
  text-align: center;
  margin: 0 auto;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(1200px 200px at 50% -40px, rgba(214, 40, 40, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(214, 40, 40, 0.08), rgba(17, 17, 17, 0.02));
}

.builder-hero h1 {
  margin-bottom: 0.5rem;
  text-align: center;
  margin: 0 auto;
}

.builder-apply {
  margin-bottom: 2.5rem;
  text-align: center;
  margin: 0 auto;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.builder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.builder-card h2 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 0.75rem;
}

.team-dropdown {
  margin: 0 auto 1rem;
  max-width: 360px;
  text-align: center;
}

.team-dropdown summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  text-align: center;
}

.team-dropdown summary::-webkit-details-marker {
  display: none;
}

.team-dropdown summary::after {
  content: "▾";
  margin-left: 0.5rem;
  color: var(--muted);
  float: none;
}

.team-dropdown[open] summary::after {
  content: "▴";
}

.team-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: left;
}

.team-list li {
  margin: 0;
}

.builder-logos {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.builder-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px dashed var(--border);
  padding: 0.4rem;
  background: rgba(214, 40, 40, 0.05);
}

.steps {
  padding-left: 1.1rem;
  margin: 0;
}

.steps li {
  margin: 0.65rem 0;
  line-height: 1.6;
}

.builder-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(214, 40, 40, 0.08);
}

.builder-help {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Mobile */
@media (max-width: 900px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

/* Showcase tiles (button reset) */
.shot{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.shot img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transform: scale(1.01);
  transition: transform 0.25s ease;
}
.shot:hover img{ transform: scale(1.04); }

.shot-cap{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Fullscreen lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
html.lightbox-open .lightbox{ display:block; }

.lightbox { display: none; }
.lightbox.open { display: block; }

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}

.lightbox-panel{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox-figure{
  margin: 0;
  max-width: min(1400px, 96vw);
  max-height: 88vh;
  width: 100%;
  display: grid;
  gap: 0.75rem;
  overflow: visible;
  position: relative;
}
.lightbox-frame{
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.lightbox-frame.swap{
  animation: lightboxSwap 260ms ease;
}
.lightbox-img{
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  cursor: zoom-in;
  display: block;
}
.lightbox-img.zoomed{
  transform: scale(var(--zoom, 1.6));
  cursor: zoom-out;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

@keyframes lightboxSwap {
  0% { opacity: 0.2; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.lightbox-cap{
  color: #fff;
  text-align: center;
  font-weight: 600;
  opacity: 0.92;
}

.lightbox-close{
  position: absolute;
  top: -50px;
  right: -50px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 34px;
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.lightbox-nav.prev{ left: -75px; }
.lightbox-nav.next{ right: -75px; }
.lightbox-nav:disabled{ opacity: 0.35; cursor: default; }


/* SECTIONS */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.flag-icon {
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.25em;
  vertical-align: -0.12em;
}

.section-text {
  max-width: 700px;
  color: var(--muted);
  text-align: center;
  margin: 0 auto;
}

.cta-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
  text-align: center;
}

.cta-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.cta-row .cta-section {
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-row .server-card {
  width: 100%;
  max-width: 520px;
}

@media (max-width: 900px) {
  .cta-row {
    grid-template-columns: 1fr;
  }
}

.server-card {
  margin-top: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;

  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.server-ip {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--text);
}

.cta-btn {
  margin-top: 1rem;
  display: inline-block;

  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;

  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn.discord-btn {
  background: #5865f2;
  border: 1px solid #5865f2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.cta-btn.discord-btn:hover {
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
}

.cta-btn.discord-btn .discord-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.server-card .cta-btn {
  min-width: 140px;
  height: 44px;
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.25);
}

/* HERO SECTION */
.hero {
  position: relative;

  min-height: 75vh;
  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
  overflow: hidden;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 260px at 50% 0%, rgba(214, 40, 40, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

/* Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem 2.25rem;
  border-radius: 22px;
  background: rgba(12, 12, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.hero-content h1 span {
  color: var(--red);
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  color: #f1f1f1;
}

.hero-logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  animation: hero-bob 2.2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-scroll span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-scroll:hover {
  color: var(--red);
  border-color: var(--red);
}

@keyframes hero-bob {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
  100% { transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll {
    animation: none;
  }
}

/*about*/ 
#about {
  text-align: center;
}

#about .section-text {
  margin-left: auto;
  margin-right: auto;
}

/* DISCORD */
.discord-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* STAFF */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.staff-card h4 {
  margin: 0.25rem 0 0.2rem;
}

.staff-card p {
  margin: 0.25rem 0;
}

.staff-card img {
  width: 90px;
  height: 90px;
  border-radius: 0;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 3px;
}

.staff-discord {
  margin: 0.35rem 0 0.5rem;
}

.staff-discord code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(214, 40, 40, 0.08);
  color: var(--text);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* STAFF CAROUSEL */
.staff-carousel-wrap {
  position: relative;
  margin-top: 1.5rem;
}

.staff-carousel {
  display: flex;
  gap: 1.25rem;

  overflow-x: auto;
  padding: 0.5rem 2.75rem 1rem;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.staff-carousel::-webkit-scrollbar {
  display: none;
}

.staff-card {
  scroll-snap-align: center;

  min-width: 260px;
  max-width: 260px;

  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
}

.staff-card img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 3px;
}

/* Carousel arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  user-select: none;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.map-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  --map-nav-handle-height: 16px;
}

/* Keep nav on top */
.map-page .nav-wrap {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  overflow: visible;
  padding-bottom: 0;
}

body.map-page.nav-hidden .nav-wrap {
  padding-bottom: var(--map-nav-handle-height);
}

.map-page .nav-clip {
  overflow: visible;
  max-height: 140px;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.3s ease,
              transform 0.3s ease;
  will-change: max-height, opacity, transform;
}

body.map-page.nav-hidden .nav-clip {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  overflow: hidden;
}

.map-page .map-nav-toggle {
  position: absolute;
  left: 50%;
  bottom: calc(-10px - var(--map-announce-offset, 0px));
  transform: translateX(-50%);
  width: 34px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--bg);
  color: var(--red);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.map-page .map-nav-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

body.map-page.nav-hidden .map-nav-toggle svg {
  transform: rotate(180deg);
}

.map-page .map-nav-toggle:hover {
  background: var(--red);
  color: #fff;
}

.map-full {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
}

.map-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
}

.map-note {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--map-note-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  pointer-events: none;
}

html, body {
  height: 100%;
}

/* Map page */
body.map-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.map-page .map-full {
  flex: 1;
  min-height: 0;
  display: flex;
}

body.map-page .map-full iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Coming Soon Page */
.coming-page {
  background: var(--bg);
  color: var(--text);
}

.coming {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

.coming-card {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
}

.coming-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.coming-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.coming-card p {
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 55ch;
}

.coming-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button, input, textarea, select {
  font-family: inherit;
}


/* hide arrows on small screens */
@media (max-width: 600px) {
  .carousel-btn {
    display: none;
  }
  .staff-carousel {
    padding: 0.5rem 1rem 1rem;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-delay-1 { animation-delay: 0.15s; }
.fade-delay-2 { animation-delay: 0.30s; }
.fade-delay-3 { animation-delay: 0.45s; }
.admin-page {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-hero-panel {
  width: min(560px, 90vw);
  margin: 2rem auto;
  animation: admin-card-fade 0.45s ease both;
  transform: translateY(-3vh);
}

.admin-modal-card .admin-hero-panel {
  width: 100%;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
}

.admin-card {
  width: min(520px, 92vw);
  background: var(--login-panel-bg);
  border: 1px solid var(--login-panel-border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 2.4rem 2.6rem;
  display: grid;
  gap: 1.5rem;
  text-align: center;
  justify-items: center;
  box-sizing: border-box;
}

.admin-card .section-text {
  color: var(--login-panel-muted);
  margin: 0.35rem 0 0;
}

.admin-card-header {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

@keyframes admin-card-fade {
  from {
    opacity: 0;
    transform: translateY(-1vh) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(-3vh) scale(1);
  }
}

.admin-actions {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.admin-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  box-sizing: border-box;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-actions .cta-btn.admin-action {
  min-height: 44px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
}

.admin-actions .cta-btn {
  margin-top: 0;
}

.admin-actions .cta-btn:hover {
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.35);
}

.admin-actions .cta-btn.ghost,
.admin-actions .cta-btn.ghost:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.admin-action.is-disabled,
.admin-actions .cta-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  background: #777;
  border-color: #777;
  color: #f2f2f2;
}

.staff-manager-card {
  width: min(1000px, 94vw);
  text-align: left;
  margin: 0 auto;
}

.staff-manager-card .admin-card-header {
  text-align: center;
}

.staff-form {
  width: 100%;
  display: grid;
  gap: 0.8rem;
}

.staff-form select {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.staff-form select:focus {
  outline: 2px solid rgba(214, 40, 40, 0.4);
  border-color: rgba(214, 40, 40, 0.4);
}

.staff-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.staff-checkbox.inline {
  justify-content: flex-start;
}

.staff-list {
  width: 100%;
  display: grid;
  gap: 1rem;
  max-height: none;
}

.staff-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: var(--surface);
  display: grid;
  gap: 0.8rem;
}

.staff-item-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.staff-item-grid input,
.staff-item-grid select {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}

.staff-item-grid input[readonly] {
  opacity: 0.75;
}

@media (max-width: 900px) {
  .staff-item-grid {
    grid-template-columns: 1fr;
  }
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.admin-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s;
}

.admin-modal-card {
  width: min(1100px, 96vw);
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.staff-manager-card {
  max-height: none;
}

.admin-modal.show .admin-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-modal-close {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 720px) {
  .admin-card {
    padding: 2rem 1.6rem;
  }
}

/* STATUS PAGE */
.status-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.status-hero {
  margin-top: 1.5rem;
}

.status-panel {
  display: grid;
  gap: 1.5rem;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.status-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.status-pill {
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg);
}

.status-pill.online {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
  color: #1f7a3b;
}

.status-pill.offline {
  border-color: rgba(214, 40, 40, 0.6);
  background: rgba(214, 40, 40, 0.1);
  color: var(--red);
}

.status-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.status-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.status-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  background: var(--surface);
}

.status-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-item p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.status-item-wide {
  grid-column: span 2;
}

.status-motd {
  white-space: pre-line;
  font-weight: 500;
}

@media (max-width: 800px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-item-wide {
    grid-column: span 1;
  }
}
