/* ============================================================
   BUILDING ZONE ADMIN - same design system as building-zone-site
   Warm palette, Unbounded + Golos Text + JetBrains Mono, terminal
   Mobile-first single page for Telegram Mini App
   ============================================================ */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --c1: #fdab72;
  --c2: #fe8e68;
  --c3: #ff6b4a;
  --dark: #0d0704;
  --dark2: #160c07;
  --dark3: #1e1109;
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(253, 171, 114, 0.14);
  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Golos Text', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --page-gutter: clamp(16px, 2vw, 32px);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
h1, h2, h3, h4, p, blockquote, figure {
  margin: 0;
}
/* guard: author display rules must never override hidden */
[hidden] {
  display: none !important;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
html, body, #root {
  width: 100%;
  margin: 0;
  padding: 0;
}
#root {
  min-height: 100vh;
}
body {
  font-family: var(--font-b);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: var(--c2);
  color: var(--dark);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c1), var(--c2));
  border-radius: 99px;
  border: 2px solid var(--dark);
}

/* grain over everything - same as site */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- preloader - same as site ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.done {
  transform: translateY(-101%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 0.9s;
}
.preloader.done .pre-cube {
  animation: none;
}
.pre-cube {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  animation: preSpin 1.6s cubic-bezier(0.68, -0.4, 0.27, 1.4) infinite;
  box-shadow: 0 10px 40px rgba(254, 142, 104, 0.45);
}
@keyframes preSpin {
  0% { transform: rotate(0deg) scale(1); border-radius: 8px; }
  50% { transform: rotate(180deg) scale(0.72); border-radius: 50%; }
  100% { transform: rotate(360deg) scale(1); border-radius: 8px; }
}
.pre-logo {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--c1);
}
.pre-bar {
  width: min(300px, 64vw);
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pre-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  transition: width 0.18s ease-out;
}
.pre-count {
  font-family: var(--font-m);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2em;
}

/* ---------- progress + nav - same as site ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 1200;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  box-shadow: 0 0 14px rgba(253, 171, 114, 0.6);
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  min-height: 68px;
  padding: 10px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(13, 7, 4, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav-logo {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-admin {
  color: var(--c1);
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover {
  color: var(--c1);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.net-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(253, 171, 114, 0.05);
}
.net-mini .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #febc2e;
}
.net-mini.on .dot {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.net-mini.bad .dot {
  background: #ff5f57;
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 24px rgba(253, 171, 114, 0.3);
  max-width: 180px;
}
.nav-user img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- denied ---------- */
.denied-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px var(--page-gutter) 60px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(253, 171, 114, 0.12), transparent 55%),
    var(--dark);
}
.denied-card {
  text-align: center;
  max-width: 520px;
  padding: 40px 30px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.denied-id {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--c1);
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 22px 0 14px;
}
.denied-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 26px;
}
.denied-id.debug {
  font-size: 11px;
  text-align: left;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 140px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- hero - same as site, compact for admin ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px var(--page-gutter) 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(253, 171, 114, 0.14), transparent 52%),
    radial-gradient(ellipse at 74% 82%, rgba(255, 107, 74, 0.1), transparent 55%),
    radial-gradient(ellipse at 50% 55%, rgba(254, 142, 104, 0.06), transparent 65%),
    var(--dark);
}
.hero-admin {
  min-height: 92vh;
  min-height: 92svh;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253, 171, 114, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 171, 114, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, black 25%, transparent 78%);
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(253, 171, 114, 0.1);
  border-radius: 50%;
  animation: orbitSpin 36s linear infinite;
}
.orbit.o1 {
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
}
.orbit.o2 {
  width: 860px;
  height: 860px;
  margin: -430px 0 0 -430px;
  animation-duration: 52s;
  animation-direction: reverse;
  border-color: rgba(254, 142, 104, 0.07);
}
.orbit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--c1);
  box-shadow: 0 0 18px var(--c1), 0 0 40px var(--c2);
}
.orbit.o2::after {
  background: var(--c2);
  box-shadow: 0 0 18px var(--c2);
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.hero-side {
  position: absolute;
  z-index: 3;
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(253, 171, 114, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-side.left {
  left: 34px;
  top: 50%;
  transform: rotate(180deg) translateY(50%);
  writing-mode: vertical-rl;
}
.hero-side.right {
  right: 34px;
  top: 50%;
  writing-mode: vertical-rl;
}
.hero-side::before {
  content: '';
  width: 1px;
  height: 56px;
  background: linear-gradient(rgba(253, 171, 114, 0.5), transparent);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 99px;
  background: rgba(253, 171, 114, 0.07);
  border: 1px solid rgba(253, 171, 114, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 30px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  50% { box-shadow: 0 0 0 11px rgba(74, 222, 128, 0); }
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 9.4vw, 6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--c1) 45%, var(--c2) 72%, var(--c3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 44px rgba(253, 171, 114, 0.28));
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 580px;
  margin: 0 auto 38px;
}
.hero-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* buttons - same as site */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: box-shadow 0.35s, background 0.35s, border-color 0.35s, transform 0.1s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  color: #fff;
  background: transparent;
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(from var(--angle), var(--c1), var(--c2), var(--c3), var(--c1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: angleSpin 3.6s linear infinite;
  pointer-events: none;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(253, 171, 114, 0.16), rgba(254, 142, 104, 0.05));
  transition: background 0.35s;
}
.btn-primary:hover {
  box-shadow: 0 18px 48px rgba(253, 171, 114, 0.35), 0 0 70px rgba(254, 142, 104, 0.18);
}
.btn-primary:hover::after {
  background: linear-gradient(135deg, rgba(253, 171, 114, 0.3), rgba(254, 142, 104, 0.14));
}
@keyframes angleSpin {
  to { --angle: 360deg; }
}
.btn-secondary {
  color: var(--c1);
  border: 2px solid rgba(253, 171, 114, 0.3);
  box-shadow: inset 0 0 20px rgba(253, 171, 114, 0.05);
}
.btn-secondary:hover {
  border-color: var(--c1);
  box-shadow: inset 0 0 30px rgba(253, 171, 114, 0.14), 0 0 42px rgba(253, 171, 114, 0.28);
}
.btn-mini {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.btn-mini.ghost {
  background: rgba(253, 171, 114, 0.08);
  color: var(--c1);
  border: 1px solid rgba(253, 171, 114, 0.3);
}
.btn-mini.danger {
  background: rgba(255, 95, 87, 0.12);
  color: #ff9d9d;
  border: 1px solid rgba(255, 95, 87, 0.4);
}
.btn.full {
  width: 100%;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- marquee - same as site ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(253, 171, 114, 0.025);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(253, 171, 114, 0.55);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: var(--c2);
  font-size: 11px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections - same as site ---------- */
section {
  position: relative;
  width: 100%;
  padding: 90px var(--page-gutter);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.sec-head {
  text-align: center;
  margin-bottom: 54px;
}
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-m);
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 18px;
}
.sec-tag::before,
.sec-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c1));
}
.sec-tag::after {
  background: linear-gradient(90deg, var(--c1), transparent);
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(135deg, #fff 15%, var(--c1) 55%, var(--c2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  color: rgba(255, 255, 255, 0.55);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ---------- about + stats - same as site ---------- */
.about {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.about-lead {
  font-size: 1.12rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
}
.about-text p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.about-text strong {
  color: var(--c1);
  font-weight: 700;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.stat {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, background 0.4s;
}
.stat:hover {
  transform: translateY(-5px);
  border-color: rgba(253, 171, 114, 0.35);
  background: rgba(253, 171, 114, 0.04);
}
.stat-num {
  font-family: var(--font-d);
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c1), var(--c3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat-label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.about-visual {
  position: relative;
  min-width: 0;
  width: 100%;
}
.about-photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  height: clamp(320px, 40vw, 560px);
  background: #000;
  border: 1px solid rgba(253, 171, 114, 0.2);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(13, 7, 4, 0.55), transparent 45%);
}
.about-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 99px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 7, 4, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- terminal - same as site ---------- */
.connect {
  background:
    radial-gradient(ellipse at 26% 74%, rgba(254, 142, 104, 0.08), transparent 50%),
    var(--dark);
}
.term {
  width: 100%;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0503;
  border: 1px solid rgba(253, 171, 114, 0.18);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.55), 0 0 90px rgba(253, 171, 114, 0.06);
}
.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(253, 171, 114, 0.14);
  background: rgba(255, 255, 255, 0.02);
}
.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #febc2e; }
.t-dot.g { background: #28c840; }
.term-title {
  margin-left: 12px;
  font-family: var(--font-m);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}
.term-body {
  padding: 22px 30px 26px;
  font-family: var(--font-m);
  font-size: 14.5px;
}
.t-prompt {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  overflow-x: auto;
  white-space: nowrap;
}
.t-prompt .u { color: #4ade80; }
.t-prompt .c { color: var(--c1); }
.t-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(253, 171, 114, 0.13);
}
.t-val {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.t-k {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}
.t-k::before {
  content: '> ';
  color: var(--c2);
}
.t-v {
  color: var(--c1);
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.t-copy {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 13px;
  border-radius: 8px;
  color: var(--c1);
  background: rgba(253, 171, 114, 0.08);
  border: 1px solid rgba(253, 171, 114, 0.3);
  transition: all 0.3s;
}
.t-copy:hover {
  background: var(--c1);
  color: var(--dark);
  box-shadow: 0 6px 20px rgba(253, 171, 114, 0.4);
}
.t-copy.ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}
.term-cursor {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.4);
}
.blink {
  color: var(--c1);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.t-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.t-note {
  font-family: var(--font-b);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 14px;
}
.t-feed {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.t-feed div {
  border-left: 2px solid rgba(253, 171, 114, 0.35);
  padding-left: 10px;
  word-break: break-word;
}
.t-feed .ok-line {
  color: #4ade80;
  border-left-color: #4ade80;
}

/* ---------- features bg + f-cards - same as site ---------- */
.features {
  background:
    radial-gradient(ellipse at 82% 24%, rgba(254, 142, 104, 0.06), transparent 50%),
    var(--dark);
}
.gallery {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(253, 171, 114, 0.05), transparent 60%),
    var(--dark2);
}
.f-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s;
}
.f-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.f-card:hover::after {
  transform: scaleX(1);
}
.f-card:hover {
  border-color: rgba(253, 171, 114, 0.32);
  background: rgba(253, 171, 114, 0.03);
}
.f-num {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(253, 171, 114, 0.45);
  margin-bottom: 18px;
  display: block;
}
.f-card h3 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* ---------- admin panels, table, forms ---------- */
.panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  padding: 26px;
}
.panel-head {
  margin-bottom: 18px;
}
.panel-title {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.search input,
.field input,
.field textarea,
.field select {
  width: 100%;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(253, 171, 114, 0.12);
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 13px;
  text-align: left;
}
.field span {
  font-family: var(--font-m);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--font-b);
}
.field select option {
  background: var(--dark2);
}
.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-family: var(--font-m);
  color: rgba(253, 171, 114, 0.6);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(253, 171, 114, 0.04);
}
.table tr:last-child td {
  border-bottom: 0;
}
.td-muted {
  color: rgba(255, 255, 255, 0.45);
}
.nick {
  font-weight: 700;
}
.nick small {
  display: block;
  font-family: var(--font-m);
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill.online {
  background: rgba(74, 222, 128, 0.1);
  color: #7ded9f;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.pill.offline {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.pill.banned {
  background: rgba(255, 95, 87, 0.1);
  color: #ff9d9d;
  border: 1px solid rgba(255, 95, 87, 0.35);
}
.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.report {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(253, 171, 114, 0.15);
}
.report:last-child {
  border-bottom: 0;
}
.rep-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.bc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bc-count {
  font-family: var(--font-m);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.bc-preview {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(253, 171, 114, 0.4);
  background: rgba(253, 171, 114, 0.04);
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
}
.logs {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
}
.logs div {
  font-family: var(--font-m);
  font-size: 12.5px;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  word-break: break-word;
}
.logs b {
  color: var(--c1);
}
.log-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11.5px;
  margin-top: 3px;
}

/* ---------- footer - same as site ---------- */
footer {
  width: 100%;
  padding: 52px var(--page-gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--dark);
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}
.f-logo {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.f-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 20px;
}
.f-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.3s, text-shadow 0.3s;
}
.f-links a:hover {
  color: var(--c1);
  text-shadow: 0 0 16px rgba(253, 171, 114, 0.7);
}
.f-ip {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
}
.bottom-pad {
  height: 10px;
}

/* ---------- bottom nav (mobile, warm style) ---------- */
.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(13, 7, 4, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.btab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 2px;
  border-radius: 10px;
}
.btab i {
  font-style: normal;
  font-size: 17px;
  color: var(--c1);
}

/* ---------- reveal - same as site ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mod-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .orbit {
    display: none;
  }
  .hero-side {
    display: none;
  }
}
@media (max-width: 640px) {
  section {
    padding: 64px var(--page-gutter);
  }
  .hero-admin {
    min-height: 82vh;
    min-height: 82svh;
    padding: 110px var(--page-gutter) 70px;
  }
  .term-body {
    padding: 18px 18px 22px;
    font-size: 13px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-num {
    font-size: 1.5rem;
  }
  .net-mini span {
    display: none;
  }
  .net-mini {
    padding: 8px 10px;
  }
  #topTabs {
    display: none;
  }
  .bottomnav {
    display: grid;
  }
  .bottom-pad {
    height: 84px;
  }
  .nav-user {
    max-width: 130px;
    font-size: 12px;
  }
  .btn {
    padding: 14px 22px;
    font-size: 13.5px;
  }
}

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

/* ---------- spec pages: statusbar, chat, bans, modals ---------- */
.role-pill {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.role-pill.owner {
  background: linear-gradient(135deg, #ffd76a, var(--c3));
}
.offline-banner {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #ffd9d9;
  background: rgba(60, 12, 8, 0.94);
  border-bottom: 1px solid rgba(255, 95, 87, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.sb-item {
  flex: 1 1 100px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.sb-item b {
  font-family: var(--font-d);
  font-size: 15px;
  color: var(--c1);
}
.sb-item b.mock-t {
  color: #ffd76a;
}
.auto-note {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}
.nick-btn {
  font-weight: 700;
  color: var(--c1);
  text-align: left;
  padding: 0;
}
.nick-btn small {
  display: block;
  font-family: var(--font-m);
  font-weight: 400;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.act-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.act-row .btn-mini {
  padding: 6px 10px;
  font-size: 11px;
}
.chat-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.chat-filters select {
  flex: 0 0 150px;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 11px 12px;
  font-family: var(--font-b);
  font-size: 13px;
  outline: none;
}
.chat-filters input {
  flex: 1;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 11px 12px;
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px 4px 0;
  margin-bottom: 14px;
}
.msg {
  font-size: 13.5px;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  word-break: break-word;
}
.msg .m-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.msg .m-nick {
  font-weight: 700;
  color: var(--c1);
}
.msg .m-time {
  font-family: var(--font-m);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.msg .m-text {
  color: rgba(255, 255, 255, 0.85);
}
.msg.t-join, .msg.t-quit {
  border-style: dashed;
  color: rgba(255, 255, 255, 0.55);
}
.msg.t-join .m-nick, .msg.t-quit .m-nick {
  color: #7ded9f;
}
.msg.t-death {
  border-color: rgba(255, 95, 87, 0.35);
}
.msg.t-death .m-nick {
  color: #ff9d9d;
}
.msg.t-admin {
  border-color: rgba(253, 171, 114, 0.4);
  background: rgba(253, 171, 114, 0.06);
}
.chat-send {
  display: flex;
  gap: 10px;
}
.chat-send input {
  flex: 1;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 12px 14px;
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.chat-send input:focus {
  border-color: var(--c1);
}
.bans-list {
  display: grid;
  gap: 10px;
}
.ban-card {
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ban-card b {
  font-size: 15px;
}
.ban-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
.ban-kind {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-left: 8px;
  background: rgba(255, 95, 87, 0.12);
  color: #ff9d9d;
  border: 1px solid rgba(255, 95, 87, 0.35);
}
/* modals */
.modal-ov {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(6, 3, 2, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 14px 30px;
  overflow-y: auto;
}
.modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--dark2);
  border: 1px solid rgba(253, 171, 114, 0.3);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-card.small {
  max-width: 400px;
}
.modal-card h3 {
  font-family: var(--font-d);
  font-size: 17px;
  word-break: break-word;
}
.modal-card h4 {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 171, 114, 0.7);
  margin: 18px 0 10px;
}
.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.pm-grid div {
  font-size: 12.5px;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  word-break: break-all;
}
.pm-grid span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.pm-chat {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 12.5px;
}
.pm-chat div {
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  word-break: break-word;
}
.pm-chat b {
  color: var(--c1);
}
.pm-chat .log-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}
.bl-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.bl-form input {
  width: 54px;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: 10px 8px;
  font-family: var(--font-m);
  font-size: 13px;
  outline: none;
}
.bl-form select {
  flex: 1;
  background: #0a0503;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: 10px;
  font-size: 12px;
  outline: none;
  min-width: 0;
}
.cf-nick {
  font-size: 16px;
  font-weight: 700;
  color: var(--c1);
  margin-top: 8px;
  word-break: break-word;
}
@media (max-width: 640px) {
  .chat-filters {
    flex-direction: column;
  }
  .chat-filters select {
    flex: none;
  }
  .pm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .role-pill {
    display: none;
  }
}
