:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg-2: #0d0f14;
  --surface: rgba(18, 21, 28, 0.88);
  --surface-2: rgba(25, 29, 38, 0.92);
  --surface-3: rgba(35, 40, 51, 0.78);
  --text: #f5f2ea;
  --muted: #a7a7a0;
  --faint: #70747c;
  --line: rgba(245, 242, 234, 0.11);
  --line-strong: rgba(245, 242, 234, 0.2);
  --accent: #d8874a;
  --accent-2: #f0b66d;
  --green: #7bd89a;
  --blue: #7aa4d8;
  --amber: #e8a84f;
  --red: #ef7373;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(3, 7, 18, 0.42);
  --shadow-soft: 0 16px 48px rgba(3, 7, 18, 0.28);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-sans: "Geist", "Satoshi", "Plus Jakarta Sans", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(216, 135, 74, 0.14), transparent 330px),
    linear-gradient(125deg, rgba(122, 164, 216, 0.1), transparent 440px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 78px 78px, 78px 78px, auto;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

a {
  color: var(--text);
  text-decoration: none;
  transition:
    color 420ms var(--ease),
    border-color 420ms var(--ease),
    background-color 420ms var(--ease),
    transform 420ms var(--ease);
}

a:hover {
  color: #ffffff;
}

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

button {
  letter-spacing: 0;
}

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

::selection {
  background: rgba(216, 135, 74, 0.32);
  color: #ffffff;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 80;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transition: transform 420ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 11, 15, 0.78);
  box-shadow: 0 18px 70px rgba(3, 7, 18, 0.36);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    linear-gradient(135deg, var(--accent), #9f542d);
  color: #fff8ef;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(216, 135, 74, 0.28);
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-text strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nav a,
.nav-user {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-user {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav a:hover,
.nav a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.nav .button {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 500ms var(--ease),
    opacity 500ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 86px;
}

.unified-page {
  min-width: 0;
}

.site-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  gap: 34px;
  align-items: stretch;
  min-height: 640px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.98), rgba(8, 9, 12, 0.7) 45%, rgba(8, 9, 12, 0.12)),
    url("hero-network.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: calc(var(--radius) - 1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px 0 30px 6px;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 0 10px;
  border: 1px solid rgba(216, 135, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(216, 135, 74, 0.1);
  color: #f2c79f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy h1,
.hero-centered h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 72px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy h1 span,
.hero-centered h1 span {
  display: block;
}

.hero-copy p,
.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-actions,
.toolbar,
.inline-form,
.search-form,
.panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 34px;
}

.hero-metrics div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-metrics strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  display: grid;
  align-items: end;
  min-width: 0;
}

.hero-art {
  position: absolute;
  inset: -34px -34px -34px auto;
  z-index: -1;
  width: 118%;
  height: calc(100% + 68px);
  object-fit: cover;
  object-position: center right;
  opacity: 0.58;
}

.network-console {
  width: min(470px, 100%);
  margin: auto 0 8px auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 9, 13, 0.58);
  box-shadow: var(--shadow-soft);
}

.network-console-inner {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(14, 17, 23, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.console-top strong {
  color: var(--text);
}

.console-top small,
.console-stat span,
.console-endpoint span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.signal {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(123, 216, 154, 0.25);
  border-radius: var(--radius);
  color: #b8f7ca;
  background: rgba(123, 216, 154, 0.1);
  font-size: 12px;
  font-weight: 800;
}

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

.console-stat {
  min-width: 0;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.console-stat strong {
  display: block;
  margin-top: 20px;
  color: var(--text);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.console-stat.hot {
  border-color: rgba(216, 135, 74, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(216, 135, 74, 0.2);
}

.console-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255, 255, 255, 0.055) 30px),
    rgba(255, 255, 255, 0.035);
}

.console-chart span {
  display: block;
  min-height: 22px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent-2), rgba(216, 135, 74, 0.32));
}

.console-chart .bar-42 {
  height: 42%;
}

.console-chart .bar-63 {
  height: 63%;
}

.console-chart .bar-48 {
  height: 48%;
}

.console-chart .bar-82 {
  height: 82%;
}

.console-chart .bar-71 {
  height: 71%;
}

.console-chart .bar-92 {
  height: 92%;
}

.console-chart .bar-66 {
  height: 66%;
}

.console-chart .bar-78 {
  height: 78%;
}

.console-endpoint {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(123, 216, 154, 0.16);
  border-radius: var(--radius);
  background: rgba(123, 216, 154, 0.075);
}

.console-endpoint code {
  color: #d9ffd9;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.command-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.command-panel > div,
.feature-card,
.panel,
.plan-card,
.stat,
.admin-card,
.admin-toolbar-card,
.admin-kpi,
.admin-account {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.command-panel > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 18px;
}

.command-panel span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.command-panel strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.95fr;
  gap: 16px;
  margin-top: 20px;
}

.feature-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(216, 135, 74, 0.85), transparent);
  opacity: 0.72;
}

.feature-card span {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.feature-card h2 {
  margin: 34px 0 11px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.22;
}

.feature-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-head,
.app-head {
  margin: 58px 0 20px;
}

.section-head.split,
.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head.centered,
.app-head.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-head h1,
.section-head h2,
.app-head h1,
.admin-top h1 {
  margin: 0;
  color: var(--text);
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-head p:not(.eyebrow),
.app-head p:not(.eyebrow) {
  max-width: 45rem;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(216, 135, 74, 0.68);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, var(--accent), #a75b32);
  box-shadow: 0 15px 36px rgba(216, 135, 74, 0.19);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 520ms var(--ease),
    border-color 520ms var(--ease),
    background-color 520ms var(--ease),
    box-shadow 520ms var(--ease),
    color 520ms var(--ease);
}

.button:hover {
  border-color: rgba(240, 182, 109, 0.88);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(216, 135, 74, 0.26);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.058);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button.danger {
  border-color: rgba(239, 115, 115, 0.58);
  background: rgba(239, 115, 115, 0.14);
  box-shadow: none;
  color: #ffd0d0;
}

.button.danger:hover {
  border-color: rgba(239, 115, 115, 0.82);
  background: rgba(239, 115, 115, 0.2);
}

.button.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.button-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  line-height: 1;
  transition: transform 520ms var(--ease);
}

.button:hover .button-icon {
  transform: translateX(2px);
}

.panel {
  margin-bottom: 18px;
  padding: 24px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel h1,
.panel h2,
.plan-card h3 {
  margin: 0 0 14px;
  color: var(--text);
}

.panel h2 {
  font-size: 22px;
  line-height: 1.2;
}

.narrow,
.auth-panel {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 520px);
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 174px);
}

.auth-copy {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.95), rgba(8, 9, 12, 0.38)),
    url("hero-network.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.auth-copy h1 {
  max-width: 600px;
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
}

.auth-copy p {
  max-width: 500px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-panel {
  align-self: center;
  width: 100%;
  padding: 28px;
}

.auth-panel h1 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.1;
}

.auth-note {
  margin: 18px 0 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 372px;
  overflow: hidden;
  padding: 24px;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 34%);
  opacity: 0.72;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card.featured {
  border-color: rgba(216, 135, 74, 0.38);
  background:
    linear-gradient(180deg, rgba(216, 135, 74, 0.18), rgba(255, 255, 255, 0.03)),
    var(--surface);
}

.plan-card h3 {
  font-size: 23px;
  line-height: 1.2;
}

.plan-card p {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.price {
  color: var(--text);
  font-size: 39px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-card form,
.plan-card > .button {
  margin-top: auto;
}

.landing-plans {
  margin-bottom: 30px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.meta-list.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meta-list div,
.admin-plan-strip div,
.admin-plan-summary {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.meta-list dt {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.meta-list dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat {
  min-height: 140px;
  padding: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 31px;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: 15px;
}

.grid-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-field {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  outline: none;
  transition:
    border-color 420ms var(--ease),
    background-color 420ms var(--ease),
    box-shadow 420ms var(--ease),
    transform 420ms var(--ease);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

select option {
  background: #12151c;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(245, 242, 234, 0.18);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 135, 74, 0.72);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 3px rgba(216, 135, 74, 0.13);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(240, 182, 109, 0.9);
  outline-offset: 3px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkline input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}

.api-key,
.api-doc code,
.admin-log,
.mini-code,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.api-key,
.api-doc code {
  display: block;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(123, 216, 154, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(123, 216, 154, 0.055), transparent),
    rgba(0, 0, 0, 0.42);
  color: #d9ffd9;
  overflow-x: auto;
}

.api-doc p {
  margin: 16px 0 7px;
  color: var(--muted);
  font-weight: 800;
}

.api-panel {
  position: relative;
  overflow: hidden;
}

.api-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 216, 154, 0.72));
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
}

.flash.success {
  border-color: rgba(123, 216, 154, 0.32);
  background: rgba(123, 216, 154, 0.1);
}

.flash.warning {
  border-color: rgba(232, 168, 79, 0.34);
  background: rgba(232, 168, 79, 0.1);
}

.flash.danger {
  border-color: rgba(239, 115, 115, 0.34);
  background: rgba(239, 115, 115, 0.1);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-tabs a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.admin-tabs a.active {
  border-color: rgba(216, 135, 74, 0.5);
  color: var(--text);
  font-weight: 800;
}

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

.settings-actions {
  grid-column: 1 / -1;
}

.table {
  display: grid;
  gap: 0;
}

.table-head,
.table-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.table-head {
  min-height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
}

.table-row {
  min-height: 54px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.table-row > span,
.table-head > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cols-5 {
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 1.1fr;
}

.cols-6 {
  grid-template-columns: 1.5fr 1fr 1fr 0.7fr 0.7fr 1fr;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.badge.paid,
.badge.active {
  border-color: rgba(123, 216, 154, 0.22);
  background: rgba(123, 216, 154, 0.12);
  color: #bdf8cc;
}

.badge.pending {
  border-color: rgba(232, 168, 79, 0.24);
  background: rgba(232, 168, 79, 0.13);
  color: #ffd89a;
}

.badge.failed {
  border-color: rgba(239, 115, 115, 0.24);
  background: rgba(239, 115, 115, 0.13);
  color: #ffc9c9;
}

.compact-row,
.user-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.compact-row {
  grid-template-columns: 1.3fr 1fr 0.7fr 0.7fr;
}

.user-row {
  grid-template-columns: 1.5fr 1.2fr 1.5fr auto;
}

.user-row input {
  max-width: 90px;
}

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

.right-form,
.plan-actions {
  margin-top: 12px;
  text-align: right;
}

.plan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.plan-list {
  display: grid;
  gap: 16px;
}

.admin-body {
  display: block;
}

.admin-shell {
  min-width: 0;
  padding: 0;
}

.admin-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(216, 135, 74, 0.14), rgba(255, 255, 255, 0.04) 44%, rgba(123, 216, 154, 0.06)),
    var(--surface);
  box-shadow: var(--shadow);
}

.admin-top p {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-top h1 {
  font-size: 42px;
}

.admin-account {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 150px;
  padding: 12px 14px;
}

.admin-account span {
  font-weight: 850;
}

.admin-account strong {
  color: var(--muted);
  font-size: 12px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-kpi-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-kpi {
  min-height: 142px;
  padding: 20px;
}

.admin-kpi.primary {
  border-color: rgba(216, 135, 74, 0.38);
  background:
    linear-gradient(180deg, rgba(216, 135, 74, 0.18), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.admin-kpi span,
.admin-kpi small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-kpi strong {
  display: block;
  margin: 12px 0 7px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.admin-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card,
.admin-toolbar-card {
  padding: 22px;
  margin-bottom: 16px;
}

.admin-card.span-2 {
  grid-column: span 2;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card-head h2 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.admin-card-head p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.admin-big-number {
  display: block;
  color: var(--text);
  font-size: 48px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-plan-strip div,
.admin-plan-summary {
  display: grid;
  gap: 5px;
}

.admin-plan-strip span,
.admin-plan-strip small,
.admin-plan-summary span,
.admin-plan-summary small,
.admin-list-row span,
.admin-table-row small,
.admin-table-row span {
  color: var(--muted);
  font-size: 13px;
}

.admin-list {
  display: grid;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.admin-list-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.align-right {
  text-align: right;
  justify-items: end;
}

.admin-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.admin-filter input {
  max-width: 360px;
}

.admin-filter select {
  max-width: 170px;
}

.admin-grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-grid-form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-span-2 {
  grid-column: span 2;
}

.admin-mini-form {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-mini-form textarea {
  min-height: 118px;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions.end {
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-table {
  display: grid;
  gap: 0;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.admin-table-head {
  min-height: 39px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
}

.admin-table-row {
  min-height: 60px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}

.admin-table-row > div,
.admin-table-row > form {
  min-width: 0;
}

.admin-table-row > div:first-child,
.admin-table-row > form,
.admin-table-row > div {
  display: grid;
  gap: 4px;
}

.users-table .admin-table-head,
.users-table .admin-table-row {
  grid-template-columns: minmax(190px, 1.15fr) minmax(160px, 0.88fr) minmax(220px, 1.1fr) minmax(180px, 0.9fr) minmax(120px, 0.62fr);
}

.orders-table .admin-table-head,
.orders-table .admin-table-row {
  grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 1fr) minmax(130px, 0.9fr) 92px 92px minmax(150px, 1fr) 120px;
}

.proxies-table .admin-table-head,
.proxies-table .admin-table-row {
  grid-template-columns: 54px minmax(160px, 1.4fr) 90px minmax(140px, 1fr) minmax(140px, 1fr) 140px;
}

.mini-code {
  display: block;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #d7dbe7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-bulk-bar select {
  max-width: 190px;
}

.check-only {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.check-only input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}

.admin-log {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 15px;
  border: 1px solid rgba(123, 216, 154, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  color: #d9ffd9;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.task-console {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 1.02fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 14, 19, 0.86);
  box-shadow: var(--shadow);
}

.task-console-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.task-console-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.task-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.task-follow input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

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

.task-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.03);
}

.task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-card-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.task-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.task-card-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.task-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.task-card-meta strong {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.task-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.task-log-panel {
  grid-column: 2;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
}

.task-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-log-head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.task-log-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.badge.live {
  border-color: rgba(123, 216, 154, 0.24);
  background: rgba(123, 216, 154, 0.12);
  color: var(--green);
}

.task-log {
  max-height: 190px;
  margin: 0;
  overflow: auto;
  padding: 12px 12px 14px;
  border: 1px solid rgba(123, 216, 154, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.58);
  color: #d9ffd9;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  scroll-behavior: smooth;
}

.task-card[data-task-state="queued"] .task-progress-bar {
  background: linear-gradient(90deg, var(--amber), var(--accent));
}

.task-card[data-task-state="running"] .task-progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.task-card[data-task-state="success"] .task-progress-bar {
  background: linear-gradient(90deg, var(--green), #a6e6b9);
}

.task-card[data-task-state="failed"] .task-progress-bar {
  background: linear-gradient(90deg, var(--red), #f0a5a5);
}

.task-card[data-task-state="skipped"] .task-progress-bar {
  background: linear-gradient(90deg, var(--faint), #9ca3af);
}

.task-card[data-task-stale="true"] .task-progress-bar {
  background-size: 180% 100%;
  animation: task-shimmer 1.8s linear infinite;
}

@keyframes task-shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 180% 0;
  }
}

.task-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.task-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 320ms var(--ease), background-color 320ms var(--ease);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
}

.admin-empty {
  padding: 34px 10px;
  color: var(--muted);
  text-align: center;
}

.admin-plan-editor-list,
.admin-settings-layout {
  display: grid;
  gap: 16px;
}

.admin-plan-editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.admin-copy-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-copy-list code {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  overflow-wrap: anywhere;
}

.admin-sticky-actions {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 14, 19, 0.82);
  box-shadow: 0 14px 44px rgba(3, 7, 18, 0.34);
  backdrop-filter: blur(12px);
}

.payment-panel {
  margin-top: 90px;
  text-align: center;
}

.payment-panel form {
  margin-top: 18px;
}

.reveal-candidate {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(28px);
  transition:
    opacity 850ms var(--ease) var(--reveal-delay, 0ms),
    filter 850ms var(--ease) var(--reveal-delay, 0ms),
    transform 850ms var(--ease) var(--reveal-delay, 0ms);
}

.reveal-candidate.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-candidate {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-copy h1,
  .hero-centered h1 {
    font-size: 58px;
  }

  .site-hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 330px;
  }

  .network-console {
    margin-left: 0;
  }

  .admin-kpi-grid,
  .admin-kpi-grid.compact,
  .admin-board,
  .admin-action-grid,
  .task-grid,
  .admin-plan-strip,
  .admin-plan-editor,
  .admin-grid-form,
  .admin-grid-form.two,
  .grid-form,
  .grid-2,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-card.span-2,
  .admin-span-2,
  .wide-field,
  .settings-actions {
    grid-column: auto;
  }

  .users-table .admin-table-head,
  .users-table .admin-table-row,
  .orders-table .admin-table-head,
  .orders-table .admin-table-row,
  .proxies-table .admin-table-head,
  .proxies-table .admin-table-row {
    grid-template-columns: 1fr;
  }

  .admin-table-head,
  .table-head {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    top: 10px;
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .has-js .nav-toggle {
    display: grid;
    margin-left: auto;
  }

  .has-js .nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 620ms var(--ease),
      opacity 420ms var(--ease);
  }

  .has-js .nav.is-open {
    max-height: 580px;
    opacity: 1;
    padding-top: 10px;
  }

  .nav a,
  .nav-user {
    width: 100%;
    justify-content: flex-start;
  }

  .page {
    width: calc(100% - 24px);
    margin-top: 22px;
    margin-bottom: 64px;
  }

  .site-hero {
    min-height: auto;
    padding: 26px 18px;
    background-position: center right;
  }

  .hero-copy {
    padding: 8px 0 0;
  }

  .hero-copy h1,
  .hero-centered h1,
  .admin-top h1,
  .section-head h1,
  .section-head h2,
  .app-head h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  .hero-copy p,
  .lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .command-panel,
  .feature-grid,
  .plans-grid,
  .stats-grid,
  .hero-metrics,
  .meta-list,
  .meta-list.wide {
    grid-template-columns: 1fr;
  }

  .section-head.split,
  .app-head,
  .admin-top,
  .task-console-head,
  .task-card-head,
  .admin-toolbar-card,
  .admin-card-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions,
  .inline-form,
  .toolbar,
  .search-form,
  .plan-actions,
  .empty-state,
  .admin-filter,
  .admin-actions,
  .admin-bulk-bar {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .button,
  .admin-filter input,
  .admin-filter select,
  .admin-bulk-bar select {
    max-width: none;
  }

  .button.full,
  .hero-actions .button,
  .admin-actions .button,
  .admin-filter .button {
    width: 100%;
  }

  .task-console {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

  .task-console-head,
  .task-log-panel {
    grid-column: auto;
  }

  .task-log {
    max-height: 180px;
  }

  .panel,
  .admin-card,
  .admin-toolbar-card,
  .admin-top,
  .plan-card,
  .feature-card,
  .stat {
    padding: 18px;
  }

  .auth-copy {
    min-height: 360px;
    padding: 24px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .hero-centered h1,
  .admin-top h1,
  .section-head h1,
  .section-head h2,
  .app-head h1 {
    font-size: 31px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .console-grid,
  .console-chart {
    grid-template-columns: 1fr;
  }

  .console-chart {
    display: none;
  }

  .network-console-inner {
    padding: 14px;
  }

  .price {
    font-size: 34px;
  }

  .admin-pagination {
    justify-content: flex-start;
  }

  .admin-list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .align-right {
    text-align: left;
    justify-items: start;
  }
}
