/* ============================================================
   FivePoint DOJ — Stylesheet v5
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Very subtle blue-tinted dark — nearly black but not pure */
  --bg: #0D1018;
  --surface: #10141E;
  --surface-2: #151A27;
  --card: #191E2D;
  --card-hover: #1E2438;
  --border: rgba(120, 140, 200, 0.09);
  --border-h: rgba(120, 140, 200, 0.16);

  /* Accent — used sparingly */
  --accent: #4D8EF7;
  --accent-bg: rgba(77, 142, 247, 0.08);
  --accent-bdr: rgba(77, 142, 247, 0.22);

  /* Text */
  --text: #EDF0FA;
  --text-2: #B0B9D4;
  --text-3: #5E6785;

  /* Diverse palette */
  --green: #34D399;
  --green-bg: rgba(52, 211, 153, .1);
  --green-bdr: rgba(52, 211, 153, .22);
  --red: #F87171;
  --red-bg: rgba(248, 113, 113, .1);
  --red-bdr: rgba(248, 113, 113, .22);
  --amber: #FBBF24;
  --amber-bg: rgba(251, 191, 36, .1);
  --amber-bdr: rgba(251, 191, 36, .22);
  --purple: #A78BFA;
  --purple-bg: rgba(167, 139, 250, .1);
  --purple-bdr: rgba(167, 139, 250, .22);
  --cyan: #22D3EE;
  --cyan-bg: rgba(34, 211, 238, .1);
  --cyan-bdr: rgba(34, 211, 238, .22);
  --rose: #FB7185;
  --rose-bg: rgba(251, 113, 133, .1);
  --teal: #2DD4BF;
  --teal-bg: rgba(45, 212, 191, .1);

  --nav-h: 60px;
  --r: 8px;
  --r-lg: 12px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.2;
}

/* Scrollbar — subtle blue */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(77, 142, 247, .3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(77, 142, 247, .55);
}

/* ── Page Transition ──────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Navbar ───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  background: rgba(13, 16, 24, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.nav-logo img {
  height: 28px;
  object-fit: contain;
}

.nav-logo-main {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.01em;
}

.nav-logo-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  padding: 2px 6px;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: var(--r);
  transition: color .12s, background .12s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.nav-link.active {
  color: var(--text);
  background: var(--accent-bg);
}

.btn-discord-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(88, 101, 242, .14);
  color: #9da8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--r);
  border: 1px solid rgba(88, 101, 242, .22);
  transition: background .12s;
  margin-left: 6px;
}

.btn-discord-nav:hover {
  background: rgba(88, 101, 242, .26);
  color: #c5caff;
}

.auth-nav-mount {
  margin-left: 6px;
  position: relative;
}

.btn-login-nav,
.auth-profile {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .12s, background .12s, border-color .12s;
}

.btn-login-nav:hover,
.auth-profile:hover {
  transform: translateY(-1px);
  background: #6BA2FF;
}

.btn-login-nav.is-disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  background: var(--surface-2);
  color: var(--text-2);
}

.auth-menu {
  position: relative;
}

.auth-profile {
  background: rgba(77, 142, 247, .12);
  border-color: rgba(77, 142, 247, .3);
  color: var(--text);
  max-width: 190px;
}

.auth-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 106px;
}

.auth-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  background: var(--card);
  border: 1px solid var(--border-h);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .34);
  padding: 10px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .14s, transform .14s;
}

.auth-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-dropdown-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.auth-dropdown-user strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.auth-dropdown-user span:not(.auth-avatar) {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}

.auth-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  padding: 9px 10px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  transition: background .12s, color .12s;
}

.auth-dropdown-btn:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 26px;
  padding: 2px 0;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all .22s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 16, 24, .98);
  backdrop-filter: blur(20px);
  z-index: 499;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

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

.mobile-menu-inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mob-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 11px 14px;
  border-radius: var(--r);
  transition: color .12s, background .12s;
}

.mob-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.mob-link i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.mob-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.mob-discord:hover {
  color: #9da8f0;
  background: rgba(88, 101, 242, .08);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r);
  border: none;
  transition: opacity .12s;
}

.btn-primary:hover {
  opacity: .85;
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: background .12s, color .12s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
}

/* ── Layout ───────────────────────────────────────── */
.section {
  padding: 72px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-sm {
  max-width: 840px;
  margin: 0 auto;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 3vw, 36px);
  color: var(--text);
  letter-spacing: -.01em;
}

.section-sub {
  font-size: 14px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
}

/* ── Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .06s
}

.d2 {
  transition-delay: .12s
}

.d3 {
  transition-delay: .18s
}

.d4 {
  transition-delay: .24s
}

/* ── Page Hero ────────────────────────────────────── */
.page-hero {
  padding: 44px 24px 36px;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(20px, 2.8vw, 30px);
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.page-hero p {
  font-size: 13px;
  color: var(--text-2);
}

.page-hero.faq-hero .page-hero-inner {
  max-width: 840px;
}

@keyframes obIn {
  from {
    opacity: 0;
    transform: scale(.96) translateY(10px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

.step {
  display: none;
  animation: stepIn .22s ease;
}

.step.active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(8px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.accent {
  color: var(--accent);
}

.step-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  cursor: pointer;
  transition: all .18s;
}

.dot.active {
  background: var(--accent);
  width: 14px;
  border-radius: 3px;
}

/* ============================================================
   HOME — HERO with background image
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 24px 80px;
  position: relative;
  overflow: hidden;
}

/* ── Drop your image into assets/hero-bg.jpg ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: var(--bg);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13, 16, 24, .97) 0%, rgba(13, 16, 24, .88) 42%, rgba(13, 16, 24, .50) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 60px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-inner-single {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Stats */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: rgba(25, 30, 45, .88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: background .12s, border-color .12s;
}

.stat-card:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.stat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-3);
}

/* Discord widget */
.discord-widget {
  background: rgba(25, 30, 45, .88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(88, 101, 242, .2);
  border-radius: var(--r-lg);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: background .12s;
}

.discord-widget:hover {
  background: var(--card-hover);
}

.discord-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(88, 101, 242, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #7289da;
  flex-shrink: 0;
}

.discord-info {
  flex: 1;
}

.discord-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.discord-info p {
  font-size: 11px;
  color: var(--text-3);
}

.btn-discord-sm {
  background: #5865F2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .12s;
  text-decoration: none;
  display: inline-block;
}

.btn-discord-sm:hover {
  background: #4752c4;
  color: #fff;
}

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  transition: background .12s, border-color .12s;
}

.about-card:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.about-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.about-card p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Req list */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background .12s;
}

.req-item:hover {
  background: var(--card-hover);
}

.req-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 20px;
  padding-top: 1px;
}

.req-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================================
   RULES — Rich diverse layout
   ============================================================ */
.rules-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}

.rules-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 14px);
}

.rules-sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  max-height: calc(100svh - var(--nav-h) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.rules-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 10px 4px;
}

.rules-nav-label--sub {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.rule-nav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 9px 10px;
  border-radius: 7px;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.rule-nav-btn i {
  width: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
}

.rule-nav-btn:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.rule-nav-btn.active {
  background: var(--accent-bg);
  color: var(--text);
}

.rule-nav-btn.active i {
  color: var(--accent);
}

.rules-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  min-height: 500px;
}

.rule-section {
  display: none;
  animation: fadeUp .22s ease;
}

.rule-section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Rule section header — no duplicate label */
.rule-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.rule-sec-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.rule-sec-head h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -.01em;
}

.rule-sec-head p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 540px;
}

/* ── Building blocks for diverse rule layouts ── */

/* Standard numbered rule row */
.rule-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}

.rule-row {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .12s;
  align-items: flex-start;
}

.rule-row:hover {
  border-color: var(--border-h);
}

.rule-row-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  min-width: 22px;
  padding-top: 2px;
  font-family: var(--mono);
}

.rule-row-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.rule-row-content p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* 2-column compact grid */
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.rule-tile {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.rule-tile h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rule-tile h4 i {
  font-size: 11px;
}

.rule-tile p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Callout / alert blocks */
.rule-callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r);
  margin-bottom: 16px;
  align-items: flex-start;
}

.rule-callout.warning {
  background: rgba(251, 191, 36, .07);
  border: 1px solid rgba(251, 191, 36, .2);
}

.rule-callout.danger {
  background: rgba(248, 113, 113, .07);
  border: 1px solid rgba(248, 113, 113, .2);
}

.rule-callout.info {
  background: rgba(77, 142, 247, .07);
  border: 1px solid rgba(77, 142, 247, .2);
}

.rule-callout.success {
  background: rgba(52, 211, 153, .07);
  border: 1px solid rgba(52, 211, 153, .2);
}

.rule-callout-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rule-callout.warning .rule-callout-icon {
  color: var(--amber);
}

.rule-callout.danger .rule-callout-icon {
  color: var(--red);
}

.rule-callout.info .rule-callout-icon {
  color: var(--accent);
}

.rule-callout.success .rule-callout-icon {
  color: var(--green);
}

.rule-callout h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.rule-callout p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Force continuum / escalation ladder */
.rule-ladder {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ladder-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}

.ladder-step:last-child {
  border-bottom: none;
}

.ladder-step:hover {
  background: var(--bg);
}

.ladder-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.ladder-label strong {
  font-size: 13px;
  color: var(--text);
}

.ladder-label span {
  font-size: 12px;
  color: var(--text-2);
  margin-left: 6px;
}

.ladder-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
}

/* Prose block */
.rule-prose {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 18px;
}

.rule-prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Sub-divider */
.rule-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.rule-divider span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.rule-divider::before,
.rule-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Highlight stat row */
.rule-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.rule-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  text-align: center;
}

.rule-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.rule-stat-lbl {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: .04em;
}

.leo-access-panel {
  margin-top: 14px;
  padding: 10px;
  background: rgba(77, 142, 247, .07);
  border: 1px solid rgba(77, 142, 247, .2);
  border-radius: var(--r);
}

.leo-access-panel.is-complete {
  background: rgba(52, 211, 153, .08);
  border-color: rgba(52, 211, 153, .24);
}

.leo-access-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.leo-access-panel p {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.leo-claim-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  transition: transform .12s, background .12s, opacity .12s;
}

.leo-claim-btn span {
  display: block;
  width: 100%;
}

.leo-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #6BA2FF;
}

.leo-claim-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.leo-claim-btn.is-link {
  margin-top: 10px;
}

.leo-timer {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.leo-timer span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.leo-timer small {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
}

.leo-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(5, 8, 15, .78);
  backdrop-filter: blur(14px);
}

.leo-modal-panel {
  position: relative;
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--border-h);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
  animation: fadeUp .18s ease;
}

.leo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  color: var(--text-2);
  background: rgba(255, 255, 255, .05);
}

.leo-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
}

.leo-modal-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
}

.leo-modal-panel h3 {
  color: var(--text);
  font-size: 22px;
  margin-bottom: 8px;
}

.leo-modal-panel p,
.leo-agreement-copy {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.75;
}

.leo-agreement-copy {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.leo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ============================================================
   STAFF — Gradient rank cards
   ============================================================ */
.staff-section {
  margin-bottom: 44px;
}

.staff-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.staff-rank-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.staff-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Count pill immediately next to title */
.staff-count-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}

/* Push socials etc to right */
.staff-head-spacer {
  flex: 1;
}

.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}

.staff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background .12s, border-color .12s;
  position: relative;
  overflow: hidden;
}

.staff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--top-bar, transparent);
}

.staff-card:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.staff-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  overflow: hidden;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-avatar-ph {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-3);
}

.staff-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.staff-card-role {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 11px;
}

/* Gradient badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* ============================================================
   FAQ — Diverse category colors
   ============================================================ */
.faq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.faq-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.faq-cat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .12s;
}

.faq-item.open {
  border-color: var(--border-h);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-icon {
  font-size: 12px;
  color: var(--text-3);
  transition: transform .22s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.4, 0, .2, 1);
  padding: 0 16px;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 14px;
}

.faq-answer p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================================
   GALLERY — neutral filter buttons
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}

.filter-btn i {
  font-size: 11px;
}

.filter-btn:hover {
  background: var(--card-hover);
  color: var(--text);
  border-color: var(--border-h);
}

.filter-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}

/* Per-category active state — bright and clear */
.filter-btn[data-filter="LEO"].active {
  color: #489dff;
  border-color: #489dff;
  background: rgba(147, 197, 253, .12);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, .2);
}

.filter-btn[data-filter="EMS"].active {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-bg);
  box-shadow: 0 0 0 1px var(--green-bdr);
}

.filter-btn[data-filter="Fire"].active {
  color: var(--rose);
  border-color: var(--rose);
  background: rgba(251, 113, 133, .12);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, .25);
}

.filter-btn[data-filter="DOT"].active {
  color: var(--amber);
  border-color: var(--amber);
  background: var(--amber-bg);
  box-shadow: 0 0 0 1px var(--amber-bdr);
}

.filter-btn[data-filter="Civilian"].active {
  color: #C084FC;
  border-color: #C084FC;
  background: rgba(192, 132, 252, .12);
  box-shadow: 0 0 0 1px rgba(192, 132, 252, .2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.gallery-item:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.03);
}

.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
}

.gallery-ph i {
  font-size: 24px;
}

.gallery-ph span {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-meta {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-meta-l h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.gallery-meta-l p {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.gallery-cat-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  backdrop-filter: blur(14px);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
  animation: fadeIn .16s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 17px;
  color: var(--text-3);
  cursor: pointer;
  transition: color .12s;
  z-index: 1;
}

.lightbox-close:hover {
  color: var(--text);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--card-hover);
  color: var(--text);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-content img {
  max-height: 78vh;
  max-width: 90vw;
  border-radius: var(--r);
  object-fit: contain;
}

.lightbox-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background .12s, border-color .12s;
}

.product-card:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
}

.product-img-ph i {
  font-size: 28px;
}

.product-img-ph span {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.product-sep {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.product-gl-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.product-gl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.product-gl-list li {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  gap: 8px;
}

.product-gl-list li::before {
  content: '—';
  color: var(--text-3);
  flex-shrink: 0;
  font-size: 11px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.btn-kofi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: background .12s, color .12s;
  text-decoration: none;
}

.btn-kofi:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
}

/* ============================================================
   CONTROLS — clean, no left borders
   ============================================================ */
.ctrl-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.ctrl-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 15px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .12s, border-color .12s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ctrl-tab i {
  font-size: 12px;
}

.ctrl-tab:hover {
  color: var(--text);
}

.ctrl-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ctrl-tab.active i {
  color: var(--accent);
}

.ctrl-panel {
  display: none;
}

.ctrl-panel.active {
  display: block;
  animation: fadeUp .22s ease;
}

.ctrl-cat {
  margin-bottom: 32px;
}

/* Clean category heading — no left border */
.ctrl-cat-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-cat-title i {
  color: var(--text-3);
  font-size: 11px;
}

.ctrl-table {
  width: 100%;
  border-collapse: collapse;
}

.ctrl-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ctrl-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(120, 140, 200, .05);
  font-size: 13px;
  color: var(--text-2);
}

.ctrl-table tr:hover td {
  background: rgba(255, 255, 255, .02);
}

.ctrl-table tr:last-child td {
  border-bottom: none;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 2px solid rgba(0, 0, 0, .3);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--text);
  white-space: nowrap;
}

.cmd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--accent-bdr);
}

.info-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 8px;
}

.info-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.info-block p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.info-block ul {
  padding-left: 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-block li {
  font-size: 13px;
  color: var(--text-2);
}

/* ============================================================
   APPLICATIONS
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .12s, border-color .12s;
}

.app-card:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent);
}

.app-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.app-card>p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-open {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.status-closed {
  background: var(--red);
}

.status-label {
  font-size: 12px;
  font-weight: 600;
}

.app-reqs-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

.req-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.req-tag {
  font-size: 11px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ============================================================
   FOOTER — no redundant names
   ============================================================ */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.7fr;
  gap: 48px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.footer-logo-row img {
  height: 26px;
  object-fit: contain;
}

.footer-logo-row span {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  transition: background .12s;
}

.social-btn.discord {
  background: rgba(88, 101, 242, .12);
  color: #9da8f0;
  border-color: rgba(88, 101, 242, .22);
}

.social-btn.discord:hover {
  background: rgba(88, 101, 242, .22);
  color: #c5caff;
}

.social-btn.kofi {
  background: rgba(255, 255, 255, .05);
  color: var(--text-2);
}

.social-btn.kofi:hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h5 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  transition: color .12s;
}

.footer-col a i {
  font-size: 11px;
  color: var(--text-3);
  width: 14px;
  text-align: center;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-col a:hover i {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
}

/* ============================================================
   REQUIREMENTS SECTION — lighter background
   ============================================================ */
.requirements-section {
  background: var(--surface-2);
}

.requirements-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ============================================================
   APPLICATIONS — banner image + sticky button
   ============================================================ */
.app-banner-wrap {
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background .12s, border-color .12s;
}

.app-card:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
}

.app-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.app-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-reqs-wrap {
  flex: 1;
}

.app-btn-wrap {
  margin-top: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-desc {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-right {
    order: -1;
  }

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

  .rules-sidebar {
    position: static;
  }

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

  .requirements-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }

  .section {
    padding: 52px 16px;
  }

  .page-hero {
    padding: 32px 16px 26px;
  }

  .hero {
    padding-bottom: 52px;
  }

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

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

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

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

  .rules-content {
    padding: 18px 16px;
  }

  .ctrl-tabs {
    overflow-x: auto;
  }

  .requirements-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .hero-inner {
    margin: 0 auto;
  }

  .leo-modal-panel {
    padding: 22px;
  }

  .leo-modal-actions {
    flex-direction: column-reverse;
  }

  .leo-modal-actions .btn-primary,
  .leo-modal-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .staff-cards {
    grid-template-columns: 1fr 1fr;
  }
}
/* ============================================================
   NEW RULES STYLES — Phonetic Grid, Code Table, etc.
   ============================================================ */

/* Phonetic Alphabet Grid */
.rule-phonetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.phonetic-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color .12s;
}

.phonetic-item:hover {
  border-color: var(--border-h);
}

.phonetic-letter {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
  min-width: 16px;
}

.phonetic-word {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.2;
}

/* Code Table */
.rule-code-table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.rule-code-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.rule-code-table thead tr {
  background: var(--surface-2);
}

.rule-code-table th {
  padding: 9px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.rule-code-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.rule-code-table tr:last-child td {
  border-bottom: none;
}

.rule-code-table tr:hover td {
  background: var(--surface-2);
}

.code-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid var(--amber-bdr);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ============================================================
   NEW STAFF V2 STYLES
   ============================================================ */

/* Overview bar */
.staff-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.staff-overview-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  flex-shrink: 0;
  white-space: nowrap;
}

.staff-rank-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.staff-rank-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color .12s;
}

.staff-rank-stat:hover {
  border-color: var(--stat-color, var(--border-h));
}

.staff-rank-stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--stat-color, #fff) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--stat-color, var(--text-2));
  flex-shrink: 0;
}

.staff-rank-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--stat-color, var(--text));
  line-height: 1;
}

.staff-rank-stat-lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

/* Filter buttons */
.staff-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.staff-filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
  font-family: var(--font);
}

.staff-filter-btn:hover {
  border-color: var(--filter-color, var(--border-h));
  color: var(--filter-color, var(--text));
}

.staff-filter-btn.active {
  background: var(--filter-color, var(--accent));
  border-color: var(--filter-color, var(--accent));
  color: #fff;
}

/* Staff rank filter active states — match rank colors from data.js */
.filter-btn[data-filter="Owner"].active {
  color: #F59E0B;
  border-color: #F59E0B;
  background: rgba(245,158,11,.13);
  box-shadow: 0 0 0 1px rgba(245,158,11,.22);
}
.filter-btn[data-filter="Manager"].active {
  color: #3B82F6;
  border-color: #3B82F6;
  background: rgba(59,130,246,.13);
  box-shadow: 0 0 0 1px rgba(59,130,246,.22);
}
.filter-btn[data-filter="Developer"].active {
  color: #EF4444;
  border-color: #EF4444;
  background: rgba(239,68,68,.13);
  box-shadow: 0 0 0 1px rgba(239,68,68,.22);
}
.filter-btn[data-filter="Administrator"].active {
  color: #A855F7;
  border-color: #A855F7;
  background: rgba(168,85,247,.13);
  box-shadow: 0 0 0 1px rgba(168,85,247,.22);
}
.filter-btn[data-filter="Staff"].active {
  color: #1d879f;
  border-color: #1d879f;
  background: rgba(29,135,159,.13);
  box-shadow: 0 0 0 1px rgba(29,135,159,.22);
}

/* Staff grid v2 */
.staff-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding-bottom: 8px;
}

/* Staff card v2 */
.staff-card-v2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  cursor: default;
}

.staff-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rank-color, var(--accent));
  opacity: .85;
}

.staff-card-v2-glow {
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rank-color, var(--accent)) 20%, transparent), transparent 70%);
  pointer-events: none;
  opacity: .6;
  transition: opacity .15s;
}

.staff-card-v2:hover {
  border-color: color-mix(in srgb, var(--rank-color, var(--border-h)) 40%, var(--border-h));
  transform: translateY(-2px);
}

.staff-card-v2:hover .staff-card-v2-glow {
  opacity: 1;
}

.staff-card-v2-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.staff-avatar-v2 {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--rank-color, var(--border)) 40%, var(--border));
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}

.staff-avatar-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card-v2-meta {
  flex: 1;
  min-width: 0;
}

.staff-card-v2-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.staff-card-v2-role {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid;
}

.staff-card-v2-body {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.staff-card-bio {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 8px;
}

.staff-card-quote {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .staff-grid-v2 {
    grid-template-columns: 1fr;
  }
  .staff-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .staff-overview-label {
    width: 100%;
  }
  .staff-rank-stats {
    gap: 8px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .staff-rank-stat {
    width: 100%;
  }
}
