/* ==========================================================================
   JOC Development — Design System
   Token concept: "system console" — a small dev team's status readout.
   Palette:  Void (bg) / Panel (surface) / Seam (border) /
             Signal Blue (primary) / Uptime Green (accent) / Fog (text) / Static (muted)
   Type:     IBM Plex Sans (display + body) / IBM Plex Mono (labels, status, meta)
   ========================================================================== */

:root {
  /* Color tokens */
  --void: #0b0e14;
  --panel: #12161f;
  --panel-2: #171c27;
  --seam: #232838;
  --seam-soft: #1b202c;
  --signal: #6c8eff;
  --signal-dim: #4a63b8;
  --uptime: #4ce0b3;
  --amber: #e0a94c;
  --fog: #e7eaf2;
  --static: #8791a8;
  --static-dim: #5b6478;
  --danger: #e0664c;

  /* Type */
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(108, 142, 255, 0.10), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(76, 224, 179, 0.06), transparent 35%);
  color: var(--fog);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--fog);
}

h1 { font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--uptime);
  box-shadow: 0 0 0 3px rgba(76, 224, 179, 0.18);
}

.lede {
  color: var(--static);
  font-size: 1.08rem;
  max-width: 54ch;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--seam) 20%, var(--seam) 80%, transparent);
  border: none;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--signal);
  color: #05070c;
}
.btn-primary:hover {
  background: #83a0ff;
  box-shadow: 0 0 0 4px rgba(108, 142, 255, 0.16);
}

.btn-ghost {
  background: transparent;
  border-color: var(--seam);
  color: var(--fog);
}
.btn-ghost:hover {
  border-color: var(--signal-dim);
  background: rgba(108, 142, 255, 0.06);
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--seam-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--fog);
}
.brand svg { width: 26px; height: 26px; }
.brand .brand-sub {
  color: var(--static);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--static);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--fog); background: rgba(255,255,255,0.03); }
.nav-links a.active { color: var(--fog); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-search-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--seam);
  background: transparent;
  color: var(--static);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-search-btn:hover { color: var(--fog); border-color: var(--signal-dim); background: rgba(255,255,255,0.03); }

.mobile-search-link {
  padding: 13px 4px;
  border-bottom: 1px solid var(--seam-soft);
  color: var(--fog);
  font-size: 0.98rem;
  text-align: left;
  background: transparent;
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--seam);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--fog);
}

.mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--seam-soft);
  background: var(--void);
}
.mobile-panel a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--seam-soft);
  color: var(--fog);
  font-size: 0.98rem;
}
.mobile-panel .btn { margin-top: 14px; width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost, .nav-search-btn { display: none; }
  .nav-toggle { display: inline-flex; }
  body.menu-open .mobile-panel { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(64px, 11vw, 132px) clamp(40px, 6vw, 72px);
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Status strip (signature element) ---------- */
.status-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: clamp(28px, 5vw, 44px);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--seam);
  border-radius: 100px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--static);
}
.status-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--uptime);
  box-shadow: 0 0 0 0 rgba(76, 224, 179, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
.status-chip .dot.amber { background: var(--amber); box-shadow: 0 0 0 0 rgba(224, 169, 76, 0.5); animation: pulse-amber 2.4s ease-out infinite; }
.status-chip b { color: var(--fog); font-weight: 500; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 224, 179, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(76, 224, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 224, 179, 0); }
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(224, 169, 76, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(224, 169, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 169, 76, 0); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--signal-dim);
  background: var(--panel-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(108, 142, 255, 0.10);
  border: 1px solid rgba(108, 142, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal);
  margin-bottom: 18px;
}

.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--static); font-size: 0.92rem; margin: 0; }

/* ---------- Badges / tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--seam);
  color: var(--static);
  background: var(--panel-2);
}
.badge-signal { color: var(--signal); border-color: rgba(108,142,255,0.35); background: rgba(108,142,255,0.08); }
.badge-uptime { color: var(--uptime); border-color: rgba(76,224,179,0.35); background: rgba(76,224,179,0.08); }
.badge-amber { color: var(--amber); border-color: rgba(224,169,76,0.35); background: rgba(224,169,76,0.08); }
.badge-danger { color: var(--danger); border-color: rgba(224,102,76,0.35); background: rgba(224,102,76,0.08); }

/* ---------- Project cards ---------- */
.project-card {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-3px); border-color: var(--signal-dim); }

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--seam);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 600;
}

.project-card h3 { font-size: 1.15rem; }
.project-card .project-desc { color: var(--static); font-size: 0.93rem; flex-grow: 1; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.project-links { display: flex; gap: 14px; margin-top: 4px; }
.project-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--signal);
  border-bottom: 1px solid rgba(108,142,255,0.3);
  padding-bottom: 1px;
}
.project-links a:hover { border-color: var(--signal); }

/* ---------- Team cards (Discord-inspired) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--signal-dim); }

.team-banner {
  height: 64px;
  background:
    linear-gradient(120deg, rgba(108,142,255,0.28), rgba(76,224,179,0.14)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 10px);
}

/* Contributors get a quieter banner + avatar accent than core team,
   without a separate visual language — same card, lower emphasis. */
.team-card.tier-contributor .team-banner {
  background:
    linear-gradient(120deg, rgba(224,169,76,0.22), rgba(108,142,255,0.08)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 10px);
}
.team-card.tier-contributor .team-avatar { color: var(--amber); }

.team-group-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--static);
  margin: clamp(36px, 5vw, 52px) 0 20px;
}
.team-group-label:first-child { margin-top: 0; }

/* Stronger separator for major section breaks (e.g. before Communities) */
.divider-strong {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal-dim) 15%, var(--signal-dim) 85%, transparent);
  opacity: 0.5;
  border: none;
  margin: 0;
}

/* Clickable cards (open the profile/detail modal) */
.team-card.is-clickable,
.project-card.is-clickable {
  cursor: pointer;
}
.team-card.is-clickable:hover,
.team-card.is-clickable:focus-visible {
  transform: translateY(-6px);
  border-color: var(--signal);
  box-shadow: 0 0 0 1px rgba(108, 142, 255, 0.25), 0 16px 40px -12px rgba(108, 142, 255, 0.35);
}
.project-card.is-clickable:hover,
.project-card.is-clickable:focus-visible {
  transform: translateY(-5px);
  border-color: var(--signal);
  box-shadow: 0 0 0 1px rgba(108, 142, 255, 0.2), 0 14px 34px -14px rgba(108, 142, 255, 0.3);
}

/* ---------- Profile / detail modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1040px;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
@media (max-width: 800px) {
  .modal-grid { grid-template-columns: 1fr; overflow-y: auto; }
}

.modal-left {
  border-right: 1px solid var(--seam);
  overflow-y: auto;
}
@media (max-width: 800px) {
  .modal-left { border-right: none; border-bottom: 1px solid var(--seam); }
}

.modal-right {
  padding: 40px 46px;
  overflow-y: auto;
}
@media (max-width: 800px) {
  .modal-right { padding: 32px 28px; }
}

.modal-toolbar {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  color: var(--static);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--fog); border-color: var(--signal-dim); }

.modal-copy {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  color: var(--static);
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.modal-copy:hover { color: var(--fog); border-color: var(--signal-dim); }
.modal-copy.is-copied { color: var(--uptime); border-color: var(--uptime-dim, var(--uptime)); background: rgba(76,224,179,0.1); }
.modal-copy.is-hidden { display: none; }
@media (max-width: 560px) {
  .modal-copy-label { display: none; }
  .modal-copy { padding: 0 10px; }
}

.modal-navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  color: var(--static);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal-navbtn:hover { color: var(--fog); border-color: var(--signal-dim); }
.modal-prev { left: -21px; }
.modal-next { right: -21px; }
.modal-navbtn.is-hidden { display: none; }
@media (max-width: 900px) {
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
  .modal-navbtn { width: 36px; height: 36px; background: rgba(18,22,31,0.9); }
}
@media (max-width: 800px) {
  .modal-navbtn { display: none !important; }
}

.modal-banner {
  height: 120px;
  background:
    linear-gradient(120deg, rgba(108,142,255,0.32), rgba(76,224,179,0.16)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 10px);
}
.modal-body { padding: 0 30px 34px; margin-top: -54px; }

.modal-avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 5px solid var(--panel);
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--signal);
  position: relative;
  overflow: hidden;
}
.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.modal-avatar.square { border-radius: 22px; }
.modal-avatar.square img { border-radius: 18px; }
.modal-avatar .status-dot { width: 20px; height: 20px; }

.modal-name { margin-top: 18px; font-size: 1.55rem; }
.modal-username { font-family: var(--font-mono); font-size: 0.92rem; color: var(--static); margin-top: 4px; }
.modal-role { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--signal); text-transform: uppercase; }
.modal-desc { margin-top: 18px; font-size: 0.96rem; color: var(--static); line-height: 1.65; }
.modal-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.modal-links { display: flex; gap: 12px; margin-top: 24px; }

.modal-right-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--static);
  margin-bottom: 20px;
}
.modal-right-body p {
  color: var(--fog);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
}
.modal-right-body p:last-child { margin-bottom: 0; }
.modal-subheading {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 26px 0 14px;
}
.modal-subheading:first-child { margin-top: 0; }
.modal-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.modal-list li {
  color: var(--fog);
  font-size: 0.96rem;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--uptime);
}

.team-body { padding: 0 22px 24px; margin-top: -34px; }

.team-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 4px solid var(--panel);
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--signal);
  position: relative;
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.status-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--uptime);
  border: 3px solid var(--panel);
}

.team-name { margin-top: 14px; font-size: 1.08rem; }
.team-username {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--static);
  margin-top: 2px;
}
.team-role {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--signal);
  text-transform: uppercase;
}
.team-desc {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--static);
}
.team-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.team-links { display: flex; gap: 10px; margin-top: 16px; }
.team-links a {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--seam);
  display: flex; align-items: center; justify-content: center;
  color: var(--static);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.team-links a:hover { color: var(--signal); border-color: var(--signal-dim); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--static);
}
.field input, .field textarea, .field select {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--fog);
  font-family: var(--font-display);
  font-size: 0.95rem;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--static-dim); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal-dim); }

.form-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.form-status.success {
  color: var(--uptime);
  background: rgba(76, 224, 179, 0.08);
  border-color: rgba(76, 224, 179, 0.3);
}
.form-status.error {
  color: var(--danger);
  background: rgba(224, 102, 76, 0.08);
  border-color: rgba(224, 102, 76, 0.3);
}

.note-box {
  border: 1px dashed var(--seam);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--static);
  background: var(--panel);
}
.note-box b { color: var(--amber); }

/* ---------- Contact tiles ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-tile {
  padding: 24px;
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.contact-tile .card-icon { margin-bottom: 14px; }
.contact-tile .value {
  font-family: var(--font-mono);
  color: var(--fog);
  font-size: 0.95rem;
  margin-top: 6px;
  word-break: break-word;
}

/* ---------- Legal pages ---------- */
.legal-body h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--seam-soft);
}
.legal-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body p, .legal-body li { color: var(--static); font-size: 0.95rem; }
.legal-body li { margin-bottom: 6px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--static);
  margin-top: 10px;
}
.placeholder {
  color: var(--amber);
  background: rgba(224, 169, 76, 0.08);
  border: 1px solid rgba(224, 169, 76, 0.3);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
  background:
    radial-gradient(circle at 15% 20%, rgba(108,142,255,0.10), transparent 55%),
    var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 460px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--seam-soft);
  padding-block: 48px 32px;
  margin-top: clamp(60px, 8vw, 100px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--static); font-size: 0.88rem; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--static);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--static);
  font-size: 0.9rem;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--fog); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--seam-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--static-dim);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--seam);
  display: flex; align-items: center; justify-content: center;
  color: var(--static);
}
.footer-socials a:hover { color: var(--signal); border-color: var(--signal-dim); }

/* ---------- Site search (command palette) ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 24px 24px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }

.search-panel {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-10px);
  transition: transform 0.25s var(--ease);
}
.search-overlay.is-open .search-panel { transform: translateY(0); }

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--seam);
  flex-shrink: 0;
}
.search-input-row svg { color: var(--static-dim); flex-shrink: 0; }
.search-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fog);
  font-family: var(--font-display);
  font-size: 0.98rem;
}
.search-input-row input::placeholder { color: var(--static-dim); }
.search-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--static-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.search-close:hover { color: var(--fog); }

.search-results {
  overflow-y: auto;
  padding: 8px;
}
.search-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--static-dim);
  padding: 10px 12px 4px;
}
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--fog);
}
.search-result:hover, .search-result.is-active { background: rgba(108,142,255,0.1); }
.search-result-title { font-size: 0.92rem; }
.search-result-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--static-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.search-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--static-dim);
  font-size: 0.9rem;
}
.search-hint {
  padding: 12px 16px;
  border-top: 1px solid var(--seam);
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--static-dim);
  flex-shrink: 0;
}
.search-hint kbd {
  background: var(--panel-2);
  border: 1px solid var(--seam);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding-block: clamp(52px, 8vw, 84px) clamp(20px, 4vw, 32px);
}
.page-header .eyebrow { margin-bottom: 14px; }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-header .lede { margin-top: 14px; }

/* ---------- Utility ---------- */
.mt-lg { margin-top: clamp(40px, 6vw, 64px); }
.center { text-align: center; margin-inline: auto; }
.text-center { text-align: center; }

/* ---------- Status page: live monitor card ---------- */
.status-live-card {
  border: 1px solid var(--seam);
  border-radius: 18px;
  background: var(--panel);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.status-live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.status-live-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-live-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--static-dim);
  flex-shrink: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.status-live-dot.is-online { background: var(--uptime); box-shadow: 0 0 14px rgba(76,224,179,0.55); animation: pulse 2.2s ease-in-out infinite; }
.status-live-dot.is-offline { background: var(--danger); box-shadow: 0 0 14px rgba(224,102,76,0.55); }
.status-live-dot.is-warning { background: var(--amber); box-shadow: 0 0 14px rgba(224,169,76,0.55); animation: pulse-amber 1.6s ease-in-out infinite; }
.status-live-dot.is-unknown { background: var(--static-dim); }
.status-live-name { font-family: var(--font-mono); font-size: 0.82rem; color: var(--static); text-transform: uppercase; letter-spacing: 0.04em; }
.status-live-headline { font-size: 1.3rem; font-weight: 700; margin-top: 2px; }
.status-live-meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--static-dim); text-align: right; }

.status-uptime-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.status-uptime-cell {
  border: 1px solid var(--seam);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: var(--panel-2);
}
.status-uptime-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--fog); }
.status-uptime-label { font-size: 0.76rem; color: var(--static-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.status-detail-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--static);
  border-top: 1px solid var(--seam);
  padding-top: 16px;
}

.status-service-card {
  border: 1px solid var(--seam);
  border-radius: 16px;
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-service-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-service-name { font-weight: 600; }
.status-service-desc { font-size: 0.88rem; color: var(--static); }

@media (max-width: 640px) {
  .status-uptime-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .status-uptime-value { font-size: 1.15rem; }
  .status-live-meta { text-align: left; }
}

/* ---------- Discord live widget ---------- */
.discord-widget {
  margin-top: 18px;
  min-height: 44px;
}
.discord-widget-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--static);
}
.discord-widget-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--uptime);
  box-shadow: 0 0 8px rgba(76,224,179,0.6);
  animation: pulse 2.2s ease-in-out infinite;
}
.discord-widget-avatars {
  display: flex;
  margin-top: 10px;
}
.discord-avatar {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: visible;
  margin-left: -8px;
  border: 2px solid var(--panel);
  background: var(--panel-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--static);
}
.discord-avatar:first-child { margin-left: 0; }
.discord-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.discord-avatar-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--static-dim);
}
.discord-avatar-dot.status-online { background: var(--uptime); }
.discord-avatar-dot.status-idle { background: var(--amber); }
.discord-avatar-dot.status-dnd { background: var(--danger); }
.discord-avatar-more {
  font-size: 11px;
  color: var(--static);
  background: var(--panel-2);
}
.discord-widget.is-unavailable { display: none; }

/* ---------- Dashboard ---------- */
.dash-card {
  border: 1px solid var(--seam);
  border-radius: 16px;
  background: var(--panel);
  padding: clamp(24px, 3.5vw, 34px);
  margin-bottom: 28px;
}
.dash-card h3 { margin-bottom: 4px; }
.dash-card .lede { margin-bottom: 20px; }

.dash-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.dash-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--seam);
}
.dash-user-name { font-weight: 600; }
.dash-user-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-toggle-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  color: var(--static);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.status-toggle-btn:hover { color: var(--fog); }
.status-toggle-btn.is-active { border-color: var(--signal-dim); color: var(--fog); background: rgba(108,142,255,0.08); }
.status-toggle-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-toggle-dot.online { background: var(--uptime); }
.status-toggle-dot.offline { background: var(--static-dim); }
.status-toggle-dot.dnd { background: var(--danger); }
.status-toggle-dot.away { background: var(--amber); }

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dash-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--static-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--seam);
}
.dash-table td {
  padding: 12px;
  border-bottom: 1px solid var(--seam);
  vertical-align: middle;
  color: var(--static);
}
.dash-table select { background: var(--panel-2); border: 1px solid var(--seam); border-radius: 8px; padding: 6px 10px; color: var(--fog); font-family: var(--font-mono); font-size: 0.78rem; }

.dash-post-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--seam);
}
.dash-post-item:last-child { border-bottom: none; }
.dash-post-title { font-weight: 600; }
.dash-post-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--static-dim); margin-top: 2px; }
.dash-post-actions { display: flex; gap: 8px; flex-shrink: 0; }
.dash-post-actions .btn { padding: 6px 12px; font-size: 0.78rem; }

.dash-locked {
  text-align: center;
  padding: 60px 20px;
}
.dash-locked p { max-width: 46ch; margin: 12px auto 0; }

.dash-error-banner {
  border: 1px solid rgba(224,102,76,0.4);
  background: rgba(224,102,76,0.08);
  color: var(--danger);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

/* ---------- Updates page (public devlog/changelog/news) ---------- */
.update-item {
  border: 1px solid var(--seam);
  border-radius: 14px;
  background: var(--panel);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.update-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.update-type-badge { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--seam); }
.update-type-badge.devlog { color: var(--signal); border-color: rgba(108,142,255,0.35); }
.update-type-badge.changelog { color: var(--uptime); border-color: rgba(76,224,179,0.35); }
.update-type-badge.news { color: var(--amber); border-color: rgba(224,169,76,0.35); }
.update-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--static-dim); }
.update-author { font-family: var(--font-mono); font-size: 0.76rem; color: var(--static-dim); }
.update-body p { margin-top: 8px; }

.update-filter .btn.is-active {
  background: rgba(108,142,255,0.1);
  border-color: var(--signal-dim);
  color: var(--fog);
}

/* ---------- Status-dot variants (self-set via dashboard) ---------- */
.status-dot.is-away { background: var(--amber); }
.status-dot.is-dnd { background: var(--danger); }
.status-dot.is-offline { background: var(--static-dim); }

/* ---------- Gallery ---------- */
.gallery-top-tabs, .gallery-sub-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gallery-top-tabs .btn.is-active,
.gallery-sub-tabs .btn.is-active {
  background: rgba(108,142,255,0.1);
  border-color: var(--signal-dim);
  color: var(--fog);
}
.gallery-sub-tabs { margin-bottom: 28px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  cursor: pointer;
}
.gallery-tile img, .gallery-tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s var(--ease);
}
.gallery-tile:hover img, .gallery-tile:hover video { transform: scale(1.04); }
.gallery-tile-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.gallery-lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(5,7,12,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease);
  z-index: 200;
}
.gallery-lightbox.is-open { opacity: 1; pointer-events: auto; }
.gallery-lightbox-inner {
  background: var(--panel);
  border: 1px solid var(--seam);
  border-radius: 16px;
  max-width: 1400px;
  width: 100%;
  max-height: 94vh;
  padding: 24px;
  position: relative;
  /* Deliberately no overflow set here — nav buttons sit just outside
     this box (negative left/right) and must never get clipped.
     Only .gallery-lightbox-scroll below scrolls if content is tall. */
}
.gallery-lightbox-scroll {
  max-height: calc(94vh - 48px);
  overflow-y: auto;
}
.gallery-lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  color: var(--static);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.gallery-lightbox-media img, .gallery-lightbox-media video {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}
.gallery-comments { margin-top: 22px; border-top: 1px solid var(--seam); padding-top: 18px; }
.gallery-comment { padding: 10px 0; border-bottom: 1px solid var(--seam); }
.gallery-comment:last-child { border-bottom: none; }
.gallery-comment-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--static-dim); }
.gallery-comment-text { font-size: 0.9rem; color: var(--fog); margin-top: 4px; }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ---------- Chaos Meter (homepage, purely decorative) ---------- */
.chaos-meter {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--seam);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.chaos-meter-label { color: var(--static-dim); }
.chaos-meter-value { color: var(--amber); font-weight: 700; }
.chaos-meter-tag { color: var(--static); }
.chaos-meter-tag::before { content: "· "; color: var(--static-dim); }

/* ---------- Discord widget: voice channels ---------- */
.discord-widget-voice { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.discord-voice-channel {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--static);
  flex-wrap: wrap;
}
.discord-voice-name { font-weight: 600; color: var(--fog); }
.discord-voice-members { color: var(--static-dim); font-family: var(--font-mono); font-size: 0.76rem; }

.update-permalink {
  margin-left: auto;
  color: var(--static-dim);
  text-decoration: none;
  font-size: 0.85rem;
}
.update-permalink:hover { color: var(--signal); }

/* ---------- Polls ---------- */
.poll-options { display: flex; flex-direction: column; gap: 10px; }
.poll-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--seam);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--fog);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.poll-option:hover:not(:disabled) { border-color: var(--signal-dim); }
.poll-option:disabled { cursor: default; opacity: 0.85; }
.poll-option.is-selected { border-color: var(--uptime); }
.poll-option-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.poll-option-pct { font-family: var(--font-mono); color: var(--static-dim); }
.poll-option-bar { height: 6px; background: var(--void); border-radius: 999px; overflow: hidden; }
.poll-option-fill { height: 100%; background: linear-gradient(90deg, var(--signal), var(--uptime)); transition: width 0.4s var(--ease); }

/* ---------- Gallery lightbox: prev/next navigation ---------- */
.gallery-lightbox-title {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fog);
  margin-bottom: 12px;
  padding-right: 40px; /* keep clear of the close button */
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--seam);
  background: var(--panel-2);
  color: var(--static);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.gallery-lightbox-nav:hover {
  color: var(--fog);
  border-color: var(--signal-dim);
  background: rgba(108,142,255,0.12);
  transform: translateY(-50%) scale(1.08);
}
.gallery-lightbox-prev { left: -23px; }
.gallery-lightbox-next { right: -23px; }
.gallery-lightbox-nav.is-hidden { display: none; }
@media (max-width: 780px) {
  .gallery-lightbox-prev { left: 8px; }
  .gallery-lightbox-next { right: 8px; }
  .gallery-lightbox-nav { width: 38px; height: 38px; background: rgba(18,22,31,0.92); }
}
.gallery-lightbox-counter {
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--static-dim);
}

/* ---------- Custom video player (gallery lightbox) ---------- */
.joc-player {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.joc-player-video {
  width: 100%;
  max-height: 85vh;
  display: block;
  cursor: pointer;
}
.joc-player-overlay-play {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  border: none;
  color: #fff;
  cursor: pointer;
}
.joc-player-overlay-play svg {
  width: 64px; height: 64px;
  padding: 18px;
  background: rgba(11,14,20,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.joc-player-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.joc-player.is-active .joc-player-controls {
  opacity: 1;
  transform: translateY(0);
}
.joc-player-controls:hover {
  opacity: 1;
  transform: translateY(0);
}
.joc-player-btn {
  background: none;
  border: none;
  color: #fff;
  opacity: 0.9;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s var(--ease);
}
.joc-player-btn:hover { opacity: 1; }
.joc-player-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  min-width: 32px;
}
.joc-player-progress {
  position: relative;
  flex: 1;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.joc-player-progress::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}
.joc-player-progress-fill {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 999px;
  width: 0%;
  background: linear-gradient(90deg, var(--signal), var(--uptime));
}
.joc-player-progress-handle {
  position: absolute;
  left: 0%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
}
.joc-player-volume {
  width: 64px;
  accent-color: var(--signal);
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .joc-player-volume { display: none; }
  .joc-player-time { font-size: 0.64rem; min-width: 26px; }
}

/* ---------- Compact status-live-card variant (bot grid) ---------- */
.status-live-card--compact {
  padding: 20px 22px;
  gap: 0;
}
.status-live-card--compact .status-live-headline {
  font-size: 1.05rem;
  margin-top: 1px;
}
.status-live-card--compact .status-live-name {
  font-size: 0.7rem;
}
.status-live-card--compact .status-live-dot {
  width: 11px; height: 11px;
}
@media (max-width: 900px) {
  #bot-status-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  #bot-status-grid { grid-template-columns: 1fr !important; }
}
