:root {
  --bg-dark: #060606;
  --bg-darker: #000000;
  --panel: #121212;
  --panel-2: #191919;
  --panel-border: #2c2c2c;
  --green: #cfcfcf;
  --green-bright: #ffffff;
  --green-glow: rgba(255, 255, 255, 0.18);
  --text: #f2f2f2;
  --text-dim: #9a9a9a;
  --gold: #cfcfcf;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  scroll-behavior: smooth;
  padding-top: 96px;
}
body.gate-active {
  overflow: hidden;
}

h1, h2, h3, .logo, .btn-primary, .price-tag {
  font-family: var(--font-pixel);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--green-bright); color: #000; }

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FIXED TOP CORNER BAR (IP top-left, Login + Discord top-right) — sits
   transparently over the hero background, like a HUD.
   pointer-events: none on the bar itself so its transparent area never
   blocks clicks on whatever is underneath (e.g. the navbar links); only
   the actual widgets re-enable pointer-events below. */
.top-corner-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
  flex-wrap: wrap;
  pointer-events: none;
}

/* NAVBAR (scrolls away normally — only the top-corner-bar stays pinned) */
.navbar {
  position: relative;
  z-index: 50;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-size: 14px;
  color: var(--green-bright);
  letter-spacing: 0.5px;
}
.logo span { color: var(--text-dim); }
.navbar nav ul {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.navbar nav a,
.nav-staff-btn {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding-bottom: 4px;
}
.navbar nav a::after,
.nav-staff-btn::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--green-bright);
  transition: right 0.25s ease;
}
.navbar nav a:hover,
.nav-staff-btn:hover { color: var(--text); }
.navbar nav a:hover::after,
.nav-staff-btn:hover::after { right: 0; }

/* HERO — plain black backdrop with the wordmark, no image/mountains */
.hero {
  position: relative;
  min-height: clamp(220px, 30vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 40px;
  background: var(--bg-dark);
}
.hero-wordmark {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.5px;
  color: #fff;
}
.hero-wordmark .uhc { font-weight: 800; }
.hero-wordmark .practice { font-weight: 800; color: #fff; }

/* BUY WHITELIST SHORTCUT CARD (below hero) */
.shop-cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.shop-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--panel-2);
  transform: translateY(-2px);
}
.cart-icon {
  width: 52px;
  height: 52px;
  color: var(--text);
}
.shop-card span {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--green-bright);
  letter-spacing: 1px;
}

/* IP / LOGIN / DISCORD WIDGETS */
.ip-widget,
.discord-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  pointer-events: auto;
}
.ip-widget:hover,
.discord-widget:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.ip-widget .icon,
.discord-widget .icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--text);
}

.widget-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.widget-text.right { align-items: flex-end; text-align: right; }

.widget-main {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.widget-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.login-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-head {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  image-rendering: pixelated;
  display: block;
  pointer-events: none;
}

/* LOGIN — plain text, no box/pill */
.login-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: none;
  border: none;
  color: var(--text);
  padding: 6px 4px;
  max-width: 180px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s, opacity 0.2s;
}
.login-btn:hover {
  color: var(--green-bright);
  opacity: 0.85;
}
.login-btn.logged-in {
  color: var(--green-bright);
}

/* Staff-only "Payments" panel trigger, shown next to the login button
   once logged in with the staff password */
/* MODALS (login gate + purchase result) — fade in and slide smoothly
   down into place instead of popping in instantly */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.hidden { display: none; }
.modal-overlay.open { opacity: 1; }

.modal-box {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 36px 30px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(-28px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.purchase-box { max-width: 420px; }
.modal-box h3 {
  font-family: var(--font-pixel);
  color: var(--green-bright);
  font-size: 17px;
  margin-bottom: 12px;
}
.modal-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 22px;
}
.modal-input {
  width: 100%;
  background: var(--bg-darker);
  border: 1.5px solid var(--panel-border);
  color: var(--text);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 9px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.modal-input:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.modal-submit { width: 100%; }

.logout-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.logout-link:hover { color: #ff6b6b; }

/* Member / Staff tab switcher */
.login-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-darker);
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  padding: 4px;
  margin-bottom: 20px;
}
.login-tab {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 9px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.login-tab.active {
  background: var(--green-bright);
  color: #000;
}

.modal-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.login-error {
  color: #ff6b6b;
  font-size: 13px;
  margin: -10px 0 16px;
  text-align: left;
}
.login-error.hidden { display: none; }

/* STAFF PAYMENTS PANEL */
/* Payments / Staff Users are big dashboard-style panels, not small popups */
.staff-box {
  max-width: min(880px, 94vw);
  width: 100%;
  text-align: left;
  padding: 40px 40px 36px;
}
.staff-box h3 { text-align: center; margin-bottom: 20px; font-size: 20px; }
.staff-box .modal-input { margin-bottom: 16px; }
.staff-table-wrap {
  max-height: 55vh;
  overflow-y: auto;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.staff-table th {
  position: sticky;
  top: 0;
  text-align: left;
  background: var(--panel-2);
  color: var(--text-dim);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
}
.staff-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text);
}
.staff-table tr:last-child td { border-bottom: none; }
.staff-table code {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  color: var(--green-bright);
}
.staff-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 24px 14px;
}

/* Staff Users add-row + remove button */
.staff-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.staff-add-row .modal-input { margin-bottom: 0; }
.staff-add-row .btn-primary {
  padding: 0 20px;
  font-size: 11px;
  white-space: nowrap;
}
.staff-remove-btn {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  float: right;
  transition: color 0.2s, border-color 0.2s;
}
.staff-remove-btn:hover {
  color: #ff6b6b;
  border-color: #ff6b6b;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-overlay.gate-mode .modal-close { display: none; }

/* COPY WIDGETS (whitelist key) */
.ip-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ip-copy code {
  font-family: 'Consolas', monospace;
  font-size: 18px;
  color: var(--green-bright);
  background: var(--bg-darker);
  border: 1px solid var(--panel-border);
  padding: 10px 14px;
  border-radius: 8px;
}
.ip-copy button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background: var(--green-bright);
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.ip-copy button:hover { background: #d6d6d6; }
.ip-copy button:active { transform: scale(0.96); }

/* PRIMARY BUTTON */
.btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff, #d4d4d4);
  color: #000;
  padding: 17px 30px;
  border-radius: 10px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #8a8a8a;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 7px 0 #8a8a8a;
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #8a8a8a;
}

/* SECTIONS */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}
section h2 {
  text-align: center;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
section h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green-bright);
  margin: 18px auto 0;
  border-radius: 2px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 44px;
  font-size: 15px;
}

/* ABOUT CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 28px;
  margin-top: 48px;
  justify-content: center;
}
.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 34px 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 20px;
}
.card h3 {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.card p { color: var(--text-dim); font-size: 15px; }

/* WHITELIST / PRICE CARD */
.price-card {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 44px 32px 34px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.price-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-bright);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.price-tag {
  font-size: 42px;
  color: #fff;
  margin-bottom: 24px;
}
.price-features {
  text-align: left;
  margin: 0 auto 30px;
  max-width: 260px;
  color: var(--text-dim);
  font-size: 15px;
}
.price-features li { margin-bottom: 12px; }
.price-card .btn-primary { width: 100%; }
.demo-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
}

/* WHITELIST KEY (shown inside the purchase-success modal) */
.key-copy { justify-content: center; margin: 16px 0 22px; flex-wrap: wrap; }
.key-copy code {
  font-size: 15px;
  letter-spacing: 1px;
}
.steps {
  text-align: left;
  color: var(--text-dim);
  font-size: 14px;
  padding-left: 20px;
  max-width: 340px;
  margin: 0 auto;
}
.steps li { margin-bottom: 8px; }
.steps a { color: var(--green-bright); font-weight: 600; }

/* FAQ */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open,
.faq-item:hover { border-color: rgba(255, 255, 255, 0.3); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { color: var(--green-bright); }
.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: transform 0.25s;
}
.faq-item.open .faq-question::after { transform: rotate(135deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-dim);
  font-size: 15px;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 0 22px 22px; }

/* SUPPORT */
.support {
  text-align: center;
}
.support p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 30px;
}
.discord-btn {
  background: linear-gradient(180deg, #3a3a3a, #232323);
  color: #fff;
  box-shadow: 0 4px 0 #111;
}
.discord-btn:hover {
  box-shadow: 0 7px 0 #111;
  filter: brightness(1.15);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 34px 20px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--panel-border);
}

@media (max-width: 600px) {
  .nav-inner { flex-direction: column; }
  .top-corner-bar { padding: 12px 16px; }
  .widget-main { font-size: 12px; }
  section { padding: 70px 20px; }
  body { padding-top: 160px; }
}
