:root {
  --bg: #000;
  --bg-2: #050505;
  --panel: rgba(12, 14, 19, 0.9);
  --panel-2: rgba(18, 22, 30, 0.94);
  --metal: #151923;
  --line: rgba(0, 247, 255, 0.2);
  --line-hot: rgba(0, 247, 255, 0.72);
  --text: #f3fbff;
  --muted: #8998a8;
  --cyan: #00f7ff;
  --green: #20ff9a;
  --amber: #ffbf3d;
  --magenta: #ff3df2;
  --red: #ff4164;
  --blue: #2493ff;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

pre {
  margin: 0;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.machine-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.68;
  background-image:
    linear-gradient(rgba(0, 247, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 247, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(0, 247, 255, 0.1), transparent 34%);
  background-size: 44px 44px, 44px 44px, 100% 720px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  animation: gridDrift 18s linear infinite;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  animation: scanline 9s linear infinite;
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(34px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  animation: dropIn 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 285px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #020204;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.45), inset 0 -5px 0 rgba(0, 0, 0, 0.22);
  animation: glowPulse 4.8s ease-in-out infinite;
}

.brand-text {
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-text b {
  color: #dbe7f1;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: #9ca9b7;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 27px 0;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.nav-actions,
.hero-actions,
.centered-actions,
.brand-line,
.skill-tabs,
.tool-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
  box-shadow: 0 0 24px rgba(0, 247, 255, 0.16);
}

.btn.charge {
  border-color: rgba(0, 247, 255, 0.78);
  color: #020204;
  background: linear-gradient(135deg, var(--cyan), #25b9ff);
  font-weight: 900;
  box-shadow: 0 0 28px rgba(0, 247, 255, 0.32);
}

.btn.ghost {
  color: #d8e7f4;
}

.user-avatar-link {
  width: 46px;
  height: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 247, 255, 0.72);
  border-radius: 50%;
  font-size: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #eefcff 0 18%, #6df7ff 19% 30%, #127dff 58%, #061225 100%);
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.42), inset 0 0 14px rgba(255, 255, 255, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.user-avatar-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 34px rgba(0, 247, 255, 0.46), inset 0 0 14px rgba(255, 255, 255, 0.36);
}

.user-avatar-link::before {
  content: "";
  width: 24px;
  height: 30px;
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 9px, #ffe4c7 0 8px, transparent 8.5px),
    linear-gradient(90deg, transparent 0 4px, #061225 4px 20px, transparent 20px),
    radial-gradient(ellipse at 50% 29px, #0bd7ff 0 13px, transparent 13.5px);
  border-radius: 15px 15px 10px 10px;
}

.user-avatar-link span {
  width: 14px;
  height: 5px;
  position: absolute;
  left: 50%;
  top: 17px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #07111f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.user-avatar-link::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  right: 2px;
  bottom: 3px;
  border-radius: 50%;
  background: #38ff9f;
  box-shadow: 0 0 12px rgba(56, 255, 159, 0.78);
}

.user-menu {
  position: relative;
  display: inline-flex;
}

.user-menu .user-avatar-link {
  border: 0;
  padding: 0;
}

.user-popover {
  width: 278px;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 30;
  display: none;
  padding: 26px 14px 16px;
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 8px;
  color: #101827;
  background: #eff6ff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 30px rgba(0, 247, 255, 0.16);
}

.user-menu.open .user-popover {
  display: grid;
  gap: 10px;
}

.user-popover-avatar {
  width: 44px;
  height: 44px;
  justify-self: center;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  font-size: 0;
  background: radial-gradient(circle at 50% 30%, #eefcff 0 18%, #8de7ff 19% 30%, #1688d8 58%, #e2f5ff 100%);
  box-shadow: 0 0 18px rgba(0, 174, 255, 0.32);
}

.user-popover-avatar::before {
  content: "";
  width: 24px;
  height: 30px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 9px, #ffe4c7 0 8px, transparent 8.5px),
    linear-gradient(90deg, transparent 0 4px, #07111f 4px 20px, transparent 20px),
    radial-gradient(ellipse at 50% 29px, #049fd1 0 13px, transparent 13.5px);
  border-radius: 15px 15px 10px 10px;
}

.user-popover-avatar span {
  width: 14px;
  height: 5px;
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #07111f;
}

.user-popover > strong {
  justify-self: center;
  margin: 4px 0 12px;
  color: #111827;
  font-size: 17px;
}

.quota-card,
.user-menu-item {
  background: #ffffff;
}

.quota-card {
  padding: 12px;
}

.quota-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111827;
  font-size: 14px;
}

.quota-card em {
  color: #8b95a5;
  font-style: normal;
}

.quota-card i {
  height: 6px;
  display: block;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1677ff var(--quota), #e5e7eb var(--quota));
}

.user-menu-item {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0 12px;
  color: #111827;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-menu-item:hover {
  color: #0369a1;
  background: #e8f3ff;
}

.user-menu-item span {
  color: #111827;
}

.user-menu-item.danger {
  color: #111827;
}

.btn.large {
  min-height: 46px;
  padding: 0 22px;
}

.hero,
.page-hero,
.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 82px 0 54px;
  text-align: center;
}

.hero > *,
.page-hero > * {
  animation: fadeUp 0.42s ease both;
}

.hero > *:nth-child(2),
.page-hero > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero > *:nth-child(3),
.page-hero > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero > *:nth-child(4),
.page-hero > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-world {
  overflow: hidden;
}

.hero-world > :not(.world-map) {
  position: relative;
  z-index: 1;
}

.world-map {
  position: absolute;
  top: 68px;
  left: 50%;
  width: min(1120px, 96vw);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.74;
  filter: drop-shadow(0 0 32px rgba(0, 247, 255, 0.28));
  animation: mapFloat 9s ease-in-out infinite;
}

.world-map::selection {
  background: transparent;
}

.map-land path {
  fill: url(#map-dots);
  stroke: rgba(0, 247, 255, 0.18);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.world-map circle,
.world-map pattern circle {
  fill: rgba(0, 247, 255, 0.52);
}

.map-routes path {
  fill: none;
  stroke: url("#route-glow");
  stroke-width: 1.6;
  stroke-dasharray: 9 15;
  stroke-linecap: round;
  opacity: 0.48;
  animation: routeDash 5.8s linear infinite;
}

.map-routes path:nth-child(2) {
  animation-duration: 7.2s;
  opacity: 0.32;
}

.map-routes path:nth-child(3) {
  animation-duration: 4.8s;
  opacity: 0.28;
}

.map-nodes circle {
  fill: var(--cyan);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
  transform-origin: center;
  animation: mapPulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(0, 247, 255, 0.85));
}

.map-nodes circle:nth-child(2) {
  animation-delay: 0.4s;
}

.map-nodes circle:nth-child(3) {
  animation-delay: 0.8s;
}

.map-nodes circle:nth-child(4) {
  animation-delay: 1.2s;
}

.map-nodes circle:nth-child(5) {
  animation-delay: 1.6s;
}

.map-scan {
  fill: rgba(0, 247, 255, 0.1);
  filter: blur(18px);
  opacity: 0.85;
  animation: mapScan 6.4s ease-in-out infinite;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0 0 18px;
  padding: 0 13px;
  border: 1px solid rgba(0, 247, 255, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0, 247, 255, 0.5);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
}

.hero h1,
.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 28px rgba(0, 247, 255, 0.28), 3px 3px 0 rgba(255, 61, 242, 0.18);
  line-break: anywhere;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  color: var(--cyan);
}

.hero-lead,
.page-hero p,
.muted,
.section-title p,
.feature-card p,
.loop-grid p,
.tool-card p,
.skill-card p,
.terminal-panel p,
.faq-list p {
  color: var(--muted);
}

.hero-lead {
  max-width: 860px;
  margin: 22px auto 0;
  font-size: 17px;
}

body[data-page="home"] .hero-lead {
  max-width: none;
  white-space: nowrap;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 8px 14px;
  border: 1px solid rgba(0, 247, 255, 0.26);
  border-radius: 999px;
  color: #b8cadb;
  background: rgba(0, 247, 255, 0.055);
  box-shadow: 0 0 24px rgba(0, 247, 255, 0.1);
  font-size: 15px;
  font-weight: 800;
}

.hero-offer strong {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 247, 255, 0.52);
}

.page-hero {
  padding: 84px 0 56px;
  text-align: center;
}

body[data-page="skills"] .page-hero {
  padding: 58px 0 42px;
}

body[data-page="skills"] .page-hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.08;
  color: #f4f8fb;
  text-shadow: 0 0 16px rgba(0, 247, 255, 0.16), 2px 2px 0 rgba(255, 61, 242, 0.1);
}

body[data-page="skills"] .page-hero h1 span {
  color: #e8f6ff;
}

body[data-page="skills"] .page-hero h1 span:last-child {
  color: var(--cyan);
}

body[data-page="skills"] .page-hero p {
  max-width: 720px;
  margin-top: 16px;
  color: #95a7b6;
}

.page-hero.compact {
  padding-bottom: 34px;
}

.page-hero p {
  max-width: 850px;
  margin: 18px auto 0;
}

.section {
  padding: 72px 0;
}

.section-title {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-title.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2,
.split h2,
.guide-layout h2,
.cli-section h2,
.cta-band h2 {
  font-size: clamp(30px, 3.6vw, 46px);
}

body[data-page="guide"] .guide-step .section-title h2 {
  max-width: none;
  font-size: clamp(30px, 3vw, 42px);
  white-space: nowrap;
}

.feature-grid,
.loop-grid,
.tool-grid,
.skill-grid,
.how-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.terminal-panel,
.loop-grid article,
.tool-card,
.skill-card,
.how-panel,
.how-grid article,
.code-panel,
.notice-box,
.faq-list details,
.command-rack,
.tool-client {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 26%),
    linear-gradient(180deg, rgba(21, 25, 35, 0.95), rgba(6, 8, 13, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.feature-card::before,
.terminal-panel::before,
.loop-grid article::before,
.tool-card::before,
.skill-card::before,
.code-panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.62;
  transform: translateX(-35%);
  animation: borderSweep 5.8s ease-in-out infinite;
}

.feature-card:hover,
.terminal-panel:hover,
.loop-grid article:hover,
.tool-card:hover,
.skill-card:hover,
.how-grid article:hover,
.code-panel:hover,
.notice-box:hover,
.faq-list details:hover,
.command-rack:hover,
.tool-client:hover,
.console-card:hover,
.admin-hero:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 247, 255, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72), 0 0 28px rgba(0, 247, 255, 0.08);
}

.feature-card {
  min-height: 194px;
  padding: 24px;
}

.auto-install-section {
  padding-top: 20px;
  padding-bottom: 62px;
}

.auto-install-card {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(0, 247, 255, 0.22);
  border-radius: 14px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(0, 247, 255, 0.08), transparent 18%, rgba(255, 122, 24, 0.08) 100%),
    linear-gradient(180deg, rgba(13, 17, 28, 0.98), rgba(5, 7, 12, 0.98));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 28px 88px rgba(0, 0, 0, 0.76), 0 0 42px rgba(0, 247, 255, 0.12);
}

.auto-install-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.18), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  opacity: 0.36;
  transform: translateX(-50%);
  animation: scanAcross 8s linear infinite;
}

.terminal-top,
.install-tabs,
.prompt-copy,
.prompt-line,
.install-support {
  position: relative;
  z-index: 1;
}

.terminal-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.terminal-top strong {
  color: #9db3c8;
  font-weight: 700;
}

.terminal-top strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #24ff7a;
  box-shadow: 0 0 14px rgba(36, 255, 122, 0.85);
}

.window-dots {
  display: inline-flex;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.install-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.install-tabs button,
.install-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 18px;
  color: #9eb2c7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 15px;
  font-weight: 800;
}

.install-tabs button.active,
.install-tabs a.active {
  color: #fff;
  border-color: rgba(0, 247, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(0, 247, 255, 0.08);
}

.install-tabs b {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  color: #120700;
  background: #ff7a18;
  font-size: 11px;
  line-height: 1;
}

.prompt-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  min-width: 0;
}

.prompt-copy > div {
  min-width: 0;
}

.prompt-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.7vw, 34px);
}

.prompt-copy p {
  color: var(--muted);
}

.prompt-line {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  color: #e6f4ff;
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.65;
}

.prompt-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prompt-line b {
  min-width: 0;
  color: var(--cyan);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.install-support {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #dff9ff;
  text-align: center;
}

.support-label,
.support-chip,
.support-more {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.support-label {
  border: 1px solid rgba(0, 247, 255, 0.38);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 247, 255, 0.14);
}

.support-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 11px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(0, 247, 255, 0.04);
}

.support-more {
  color: #9fb5c8;
  font-weight: 700;
}

.card-icon {
  color: var(--cyan);
  font-size: 22px;
}

.feature-card h3 {
  margin-top: 15px;
}

.accent-amber { border-color: rgba(255, 191, 61, 0.34); }
.accent-green { border-color: rgba(32, 255, 154, 0.34); }
.accent-cyan { border-color: rgba(0, 247, 255, 0.34); }
.accent-purple { border-color: rgba(255, 61, 242, 0.34); }

.trust-section {
  padding-top: 84px;
}

.trust-section .section-title {
  max-width: 930px;
}

.mobile-break {
  display: none;
}

.trust-compare {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 42px;
}

.truth-panel {
  position: relative;
  min-height: 430px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 28%),
    linear-gradient(180deg, rgba(18, 22, 30, 0.96), rgba(4, 5, 9, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), var(--shadow);
  overflow: hidden;
}

.truth-panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.7;
  transform: translateX(-35%);
  animation: borderSweep 5.8s ease-in-out infinite;
}

.truth-panel-risk {
  border-color: rgba(255, 191, 61, 0.28);
}

.truth-panel-good {
  border-color: rgba(0, 247, 255, 0.32);
}

.truth-panel-head,
.agent-row,
.tool-call,
.risk-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.truth-panel-head {
  min-height: 46px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.truth-panel-head span {
  color: #aebed0;
  font-size: 13px;
  font-weight: 900;
}

.truth-panel-head b {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.truth-panel-risk .truth-panel-head b {
  color: var(--amber);
  background: rgba(255, 191, 61, 0.08);
}

.truth-panel-good .truth-panel-head b {
  color: var(--green);
  background: rgba(32, 255, 154, 0.08);
}

.chat-shell {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, 0.9), rgba(3, 4, 8, 0.94));
}

.agent-row {
  justify-content: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #020204;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(0, 247, 255, 0.25);
}

.muted-avatar {
  color: #e8edf4;
  background: linear-gradient(135deg, #596272, #222936);
  box-shadow: none;
}

.agent-row strong {
  display: block;
  color: #f6fbff;
  font-size: 15px;
}

.agent-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.prompt-bubble {
  width: fit-content;
  max-width: 92%;
  margin: 16px 0 16px auto;
  padding: 10px 14px;
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 10px;
  color: #dff9ff;
  background: rgba(0, 247, 255, 0.075);
  font-size: 13px;
}

.answer-box {
  max-height: 206px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 191, 61, 0.18);
  border-radius: 10px;
  background: rgba(255, 191, 61, 0.035);
}

.answer-box h3 {
  margin-bottom: 10px;
  color: #f6fbff;
  font-size: 14px;
}

.answer-box p,
.answer-box li {
  color: #b4c1ce;
  font-size: 13px;
}

.answer-box ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.tool-call {
  min-height: 46px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid rgba(32, 255, 154, 0.22);
  border-radius: 10px;
  background: rgba(32, 255, 154, 0.06);
}

.tool-call strong {
  color: #f4fff9;
  font-size: 13px;
}

.tool-call span {
  border: 1px solid rgba(32, 255, 154, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0, 247, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 247, 255, 0.035);
}

.risk-grid div {
  min-height: 32px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.risk-grid span {
  color: #a8b9ca;
  font-size: 12px;
}

.risk-grid strong {
  color: #f6fbff;
  font-size: 13px;
}

.compare-arrow {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 247, 255, 0.38);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  box-shadow: 0 0 26px rgba(0, 247, 255, 0.18);
  font-size: 26px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.compare-panel {
  display: grid;
  gap: 14px;
}

.terminal-panel {
  padding: 22px;
}

.terminal-panel.danger {
  border-color: rgba(255, 65, 100, 0.3);
}

.terminal-panel.success {
  border-color: rgba(32, 255, 154, 0.36);
}

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

.loop-grid article {
  min-height: 190px;
  padding: 20px;
}

.loop-grid b,
.how-grid b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #020204;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 247, 255, 0.35);
}

.cta-band {
  margin-bottom: 56px;
  padding: 54px 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 61, 242, 0.1), transparent 25%, rgba(0, 247, 255, 0.12)),
    #040509;
}

.cta-band p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.command-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  padding: 1px;
  background: rgba(0, 247, 255, 0.2);
  text-align: left;
}

.command-rack div {
  padding: 18px;
  background: rgba(4, 5, 9, 0.96);
}

.command-rack b,
.command-rack span {
  display: block;
}

.command-rack b {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.command-rack span {
  margin-top: 6px;
  color: var(--muted);
}

.tool-toolbar,
.skill-tabs {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.upcoming-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 191, 0, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 191, 0, 0.12), rgba(255, 0, 204, 0.08) 38%, rgba(0, 247, 255, 0.06)),
    rgba(8, 8, 11, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 28px rgba(255, 191, 0, 0.08);
}

.upcoming-note span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upcoming-note p {
  margin: 0;
  color: #bfd5e6;
}

.sticky-tools {
  position: sticky;
  top: 76px;
  z-index: 5;
  padding: 14px 0;
  background: rgba(2, 2, 4, 0.9);
  backdrop-filter: blur(16px);
}

.filter-btn,
.skill-filter,
.client-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0 14px;
  color: #b7c5d1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover,
.skill-filter.active,
.skill-filter:hover,
.client-tab.active,
.client-tab:hover {
  color: #020204;
  border-color: var(--line-hot);
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 247, 255, 0.25);
}

.tool-summary {
  margin-bottom: 18px;
  color: var(--muted);
}

.tool-summary span {
  color: var(--cyan);
  font-weight: 900;
}

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

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

.tool-card,
.skill-card {
  min-height: 210px;
  padding: 20px;
  overflow: hidden;
}

.tool-card h3,
.skill-card h3 {
  margin-top: 10px;
}

.tool-card code,
.skill-card code {
  display: block;
  margin-top: 10px;
  color: #d7f7ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.category,
.skill-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(0, 247, 255, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.skill-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.skill-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 191, 0, 0.34);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 191, 0, 0.08);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tool-card-footer,
.skill-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: #667786;
  font-size: 12px;
}

.tool-card-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.tool-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.tool-action.debug {
  color: #021012;
  border-color: rgba(0, 247, 255, 0.7);
  background: linear-gradient(135deg, var(--cyan), #1ad4ff);
  box-shadow: 0 0 18px rgba(0, 247, 255, 0.22);
}

.tool-action.output {
  color: #dcecff;
  border-color: rgba(36, 147, 255, 0.5);
  background: rgba(36, 147, 255, 0.12);
}

.tool-action.debug::before {
  content: "⚡";
  color: #021012;
}

.tool-action.output::before {
  content: "▣";
  color: var(--blue);
}

.tool-action:hover {
  transform: translateY(-1px);
}

body[data-page="tools"] *,
body[data-page="tools"] *::before,
body[data-page="tools"] *::after {
  animation: none !important;
  transition: none !important;
}

body[data-page="tools"] .site-shell::after {
  display: none;
}

body[data-page="tools"] .motion-item,
body[data-page="tools"] .page-hero > * {
  opacity: 1 !important;
  transform: none !important;
}

body[data-page="tools"] .btn:hover,
body[data-page="tools"] .nav-links a:hover,
body[data-page="tools"] .command-rack:hover,
body[data-page="tools"] .tool-card:hover,
body[data-page="tools"] .tool-action:hover {
  transform: none;
}

body[data-page="tools"] .tool-card::before,
body[data-page="tools"] .command-rack::before,
body[data-page="tools"] .code-panel::before {
  animation: none !important;
}

body[data-page="skills"] *,
body[data-page="skills"] *::before,
body[data-page="skills"] *::after {
  animation: none !important;
  transition: none !important;
}

body[data-page="skills"] .site-shell::after {
  display: none;
}

body[data-page="skills"] .motion-item,
body[data-page="skills"] .page-hero > * {
  opacity: 1 !important;
  transform: none !important;
}

body[data-page="skills"] .btn:hover,
body[data-page="skills"] .nav-links a:hover,
body[data-page="skills"] .how-grid article:hover,
body[data-page="skills"] .how-panel:hover,
body[data-page="skills"] .skill-card:hover,
body[data-page="skills"] .cta-band:hover {
  transform: none;
}

body[data-page="skills"] .skill-card::before,
body[data-page="skills"] .how-grid article::before,
body[data-page="skills"] .how-panel::before,
body[data-page="skills"] .code-panel::before {
  animation: none !important;
}

.debug-layout {
  width: min(1290px, calc(100% - 48px));
  margin: 22px auto 70px;
}

.debug-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #7f94aa;
  font-size: 13px;
}

.debug-breadcrumb a {
  color: #8bb9ff;
}

.debug-breadcrumb strong {
  color: #f3fbff;
}

.debug-hero,
.debug-panel,
.request-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(18, 24, 36, 0.94), rgba(8, 10, 16, 0.96));
  box-shadow: var(--shadow);
}

.debug-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
}

.debug-hero h1 {
  font-size: 24px;
}

.debug-hero code {
  display: block;
  margin-top: 6px;
  color: #8bb9ff;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.debug-hero p {
  margin: 22px 0 0;
  color: #bdd3e8;
}

.debug-hero strong {
  color: var(--cyan);
  white-space: nowrap;
}

.debug-tabs {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.debug-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 12px;
  color: #9fb2c5;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.debug-tab.active,
.debug-tab:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.debug-tab::before {
  margin-right: 6px;
  color: currentColor;
}

.debug-tab[data-debug-tab="run"]::before {
  content: "⚡";
}

.debug-tab[data-debug-tab="output"]::before {
  content: "▣";
}

.debug-panel {
  display: none;
  margin-top: 16px;
  padding: 20px;
}

.debug-panel.active {
  display: block;
}

.debug-panel-head h2 {
  font-size: 24px;
  overflow-wrap: anywhere;
}

.debug-panel-head h2 span {
  color: var(--cyan);
}

.debug-panel-head p {
  margin: 6px 0 0;
  color: #8398ae;
}

.request-card {
  margin-top: 28px;
  padding: 22px 18px;
}

.request-card h3 {
  margin-bottom: 20px;
  font-size: 15px;
}

.request-card label {
  display: block;
  margin-bottom: 10px;
  color: #e9f5ff;
  font-weight: 900;
}

.debug-input-row {
  width: min(590px, 100%);
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #050719;
}

.debug-input-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: #f3fbff;
  background: transparent;
  font: inherit;
}

.debug-input-row button {
  width: 38px;
  height: 38px;
  border: 0;
  color: #74859a;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.debug-help {
  margin: 8px 0 0;
  color: #7187a0;
  font-size: 13px;
}

.debug-prompt {
  width: min(590px, 100%);
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #9eb6cc;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}

.debug-run-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.debug-run-row span {
  color: #8da0b4;
}

.debug-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-top: 24px;
}

.debug-output-grid pre,
.debug-output-grid pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.debug-output-grid pre {
  overflow-x: hidden;
}

.debug-result-card {
  padding: 20px;
  border: 1px solid rgba(0, 247, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 247, 255, 0.045);
}

.debug-result-card ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #bdd3e8;
}

.debug-result-card li {
  padding-left: 16px;
  border-left: 2px solid var(--cyan);
}

.debug-result-card strong {
  color: var(--cyan);
}

.auth-layout {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: 42px;
  align-items: center;
  margin: 0 auto;
  padding: 38px 0;
}

.auth-copy h1 {
  font-size: clamp(46px, 6vw, 78px);
}

.auth-copy h1 span {
  color: var(--cyan);
}

.auth-copy p {
  max-width: 680px;
  color: #9fb0c2;
}

.auth-flow {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.auth-flow article,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.94), rgba(7, 9, 15, 0.96));
}

.auth-flow article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.auth-flow b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #020204;
  background: var(--cyan);
}

.auth-card {
  padding: 22px;
  box-shadow: var(--shadow);
  opacity: 1;
  transform: none;
}

.auth-card.motion-item {
  opacity: 1;
  transform: none;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #a9b9c8;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.auth-tab.active {
  color: #020204;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 247, 255, 0.24);
}

.auth-form {
  display: none;
  gap: 16px;
  margin-top: 22px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #e6f2ff;
  font-weight: 900;
}

.auth-form input,
.sms-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  color: #f3fbff;
  background: #050719;
  outline: none;
}

.sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.sms-row button {
  min-height: 42px;
  border: 1px solid rgba(0, 247, 255, 0.32);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
}

.auth-note {
  margin: 0;
  color: #8799aa;
  font-size: 13px;
}

.motion-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.48s ease, transform 0.48s ease;
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="auth"] .motion-item,
body[data-page="user"] .motion-item,
body[data-page="admin"] .motion-item,
body[data-page="tool-debug"] .motion-item {
  opacity: 1;
  transform: none;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0.25;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 50% 0;
  }
  to {
    background-position: 44px 44px, -44px 44px, 50% 0;
  }
}

@keyframes scanline {
  from {
    transform: translateY(-16px);
  }
  to {
    transform: translateY(16px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(0, 247, 255, 0.36), inset 0 -5px 0 rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 0 42px rgba(0, 247, 255, 0.58), inset 0 -5px 0 rgba(0, 0, 0, 0.22);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes mapFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(8px) scale(1.012);
  }
}

@keyframes routeDash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -96;
  }
}

@keyframes mapPulse {
  0%,
  100% {
    r: 4.2;
    opacity: 0.65;
  }
  50% {
    r: 8;
    opacity: 1;
  }
}

@keyframes mapScan {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 0.78;
  }
  100% {
    transform: translateX(1480px);
    opacity: 0;
  }
}

@keyframes borderSweep {
  0%,
  100% {
    transform: translateX(-45%);
    opacity: 0.38;
  }
  50% {
    transform: translateX(45%);
    opacity: 0.82;
  }
}

@keyframes scanAcross {
  from {
    transform: translateX(-55%);
  }
  to {
    transform: translateX(55%);
  }
}

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

  .motion-item {
    opacity: 1;
    transform: none;
  }
}

.how-panel {
  padding: 26px;
}

.how-panel h2 {
  margin-bottom: 20px;
}

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

.how-grid article {
  padding: 20px;
}

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

.brand-line {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.brand-line span {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 191, 61, 0.32);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 191, 61, 0.08);
  font-size: 12px;
}

.guide-hero {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-page="guide"] .guide-hero h1 {
  max-width: none;
  font-size: clamp(42px, 4.7vw, 64px);
  line-break: auto;
  white-space: nowrap;
}

.guide-hero-line {
  max-width: none;
  white-space: nowrap;
  font-size: 16px;
}

.back-link {
  position: absolute;
  left: 0;
  top: 22px;
  color: #92a8bd;
  font-size: 14px;
}

.guide-step {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-warning {
  margin: 24px 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 191, 61, 0.44);
  border-radius: 22px;
  color: #ffe7a8;
  background:
    linear-gradient(90deg, rgba(255, 191, 61, 0.1), transparent),
    rgba(255, 191, 61, 0.045);
}

.guide-warning strong {
  display: block;
  margin-bottom: 8px;
}

.guide-warning p {
  margin: 0;
}

.guide-config-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
  align-items: start;
}

.guide-copy-card,
.client-guide-grid article,
.ready-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 247, 255, 0.08), transparent 32%),
    rgba(12, 15, 23, 0.94);
  box-shadow: var(--shadow);
}

.guide-copy-card {
  padding: 22px;
}

.guide-copy-card h3 {
  margin-bottom: 12px;
}

.guide-copy-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.guide-copy-card li + li {
  margin-top: 10px;
}

.guide-copy-card a,
.guide-copy-card code {
  color: var(--cyan);
}

.guide-code pre {
  max-height: 620px;
}

.client-guide-grid,
.ready-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.client-guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.client-guide-grid article,
.ready-grid article {
  padding: 18px;
}

.client-guide-grid b,
.ready-grid strong {
  color: var(--cyan);
}

.client-guide-grid p,
.ready-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.ai-guide-tabs {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 22px;
  padding: 14px;
  border: 1px solid rgba(0, 247, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(0, 247, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(3, 5, 9, 0.76);
  box-shadow: inset 0 0 30px rgba(0, 247, 255, 0.04);
}

.ai-guide-tabs::before {
  content: "点击切换接入工具";
  position: absolute;
  right: 14px;
  top: -24px;
  color: rgba(0, 247, 255, 0.78);
  font-size: 12px;
  font-family: var(--mono);
}

.ai-guide-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: #c4d7ec;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ai-guide-tab::after {
  content: "↗";
  margin-left: 7px;
  color: rgba(0, 247, 255, 0.72);
  font-size: 12px;
  opacity: 0.82;
}

.ai-guide-tab:hover,
.ai-guide-tab.active {
  color: #021013;
  border-color: rgba(0, 247, 255, 0.85);
  background: linear-gradient(135deg, var(--cyan), #24b9ff);
  box-shadow: 0 0 24px rgba(0, 247, 255, 0.26);
  transform: translateY(-2px);
}

.ai-guide-tab:hover::after,
.ai-guide-tab.active::after {
  color: #021013;
}

.ai-guide-panels {
  display: grid;
}

.ai-guide-panel {
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(18, 24, 36, 0.92);
  box-shadow: var(--shadow);
}

.ai-guide-panel.active {
  display: block;
}

.ai-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ai-panel-head > div {
  min-width: 0;
}

.ai-panel-head h3 {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  font-size: 20px;
}

.ai-panel-head h3 em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(0, 247, 255, 0.36);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  font-size: 12px;
  font-style: normal;
}

.ai-panel-head p {
  margin: 10px 0 0 50px;
  color: #a8bfd8;
}

.ai-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #020204;
  background: linear-gradient(135deg, #fff, var(--cyan));
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 247, 255, 0.32);
}

.ai-panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
}

.ai-steps h4,
.ai-proof h4 {
  margin: 0 0 12px;
  color: #91a7bd;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.ai-steps ol {
  margin: 0;
  padding-left: 22px;
  color: #f3fbff;
  font-weight: 800;
}

.ai-steps li + li {
  margin-top: 12px;
}

.ai-steps code,
.ai-proof code {
  color: var(--cyan);
}

.ai-proof pre {
  margin-bottom: 18px;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(0, 247, 255, 0.16);
  border-radius: 14px;
  color: #dbefff;
  background: #030614;
  font-size: 13px;
}

.interface-preview {
  min-height: 250px;
  margin-top: 18px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 12px;
  border: 1px solid rgba(0, 247, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0, 247, 255, 0.06), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px),
    #121212;
}

.interface-preview span {
  display: block;
  padding: 14px;
  border-radius: 10px;
  color: #cde4f7;
  background: rgba(255, 255, 255, 0.06);
}

.interface-preview b {
  justify-self: end;
  color: var(--green);
}

.activation-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(32, 255, 154, 0.36);
  border-radius: 16px;
  background: rgba(0, 247, 255, 0.065);
}

.activation-card h3 {
  color: #f3fbff;
}

.activation-card p {
  color: #a8bfd8;
}

.activation-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-layout,
.cli-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.notice-box {
  margin-top: 22px;
  padding: 18px;
  color: var(--amber);
  border-color: rgba(255, 191, 61, 0.34);
}

.code-panel {
  overflow: hidden;
  background: #05060a;
}

.code-panel-head {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-panel-head span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.code-panel-head button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  color: #020204;
  background: var(--cyan);
  cursor: pointer;
}

.code-panel pre {
  padding: 24px;
  overflow-x: auto;
  color: #dcefff;
  font-size: 14px;
}

.console-code pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.console-code,
.code-panel pre {
  scrollbar-color: rgba(0, 247, 255, 0.38) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.console-code::-webkit-scrollbar,
.code-panel pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.console-code::-webkit-scrollbar-track,
.code-panel pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.console-code::-webkit-scrollbar-thumb,
.code-panel pre::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.38);
  border-radius: 999px;
}

.copy-status {
  min-height: 22px;
  margin: 0;
  padding: 0 24px 18px;
  color: var(--green);
  font-size: 13px;
}

.tool-client {
  display: grid;
  grid-template-columns: 190px 1fr 1fr;
  gap: 16px;
  padding: 18px;
}

.tool-client aside {
  display: grid;
  gap: 10px;
  align-content: start;
}

.terminal-panel ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: #f3fbff;
  font-weight: 900;
}

.dashboard-shell {
  background: #000;
}

.console-layout {
  width: min(1360px, calc(100% - 48px));
  margin: 24px auto 52px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.console-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.94), rgba(8, 10, 16, 0.94));
  box-shadow: var(--shadow);
}

.console-sidebar a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: #91a2b7;
  font-size: 14px;
}

.console-sidebar a:hover,
.console-sidebar a.active {
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.console-main {
  min-width: 0;
}

.console-card,
.admin-hero {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.96), rgba(10, 13, 22, 0.98));
  box-shadow: var(--shadow);
}

.console-card {
  padding: 22px;
}

.console-card.compact {
  padding: 20px;
}

.console-head,
.section-row,
.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.console-head h1,
.admin-hero h1 {
  font-size: clamp(26px, 3vw, 34px);
}

.console-head p,
.admin-hero p,
.subtle {
  margin: 8px 0 0;
  color: #94a8bd;
}

.mini-link {
  color: var(--cyan);
  font-size: 14px;
}

.status-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 800;
}

.status-banner.success {
  color: #d9fff8;
  border: 1px solid rgba(32, 255, 154, 0.35);
  background: rgba(0, 247, 255, 0.09);
}

.status-banner.warn {
  color: #ffe7a8;
  border: 1px solid rgba(255, 191, 61, 0.45);
  background: rgba(255, 191, 61, 0.08);
}

.status-banner a {
  float: right;
  color: var(--cyan);
}

.verification-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 24px;
  color: var(--text);
  border: 1px solid rgba(0, 247, 255, 0.35);
  border-radius: 16px;
  background: #0b111b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 36px rgba(0, 247, 255, 0.12);
}

.verification-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.verification-dialog form {
  display: grid;
  gap: 16px;
}

.verification-dialog label {
  display: grid;
  gap: 7px;
  color: #dce9f5;
  font-weight: 800;
}

.verification-dialog input {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid rgba(126, 161, 195, 0.25);
  border-radius: 10px;
  outline: none;
  background: #050914;
}

.verification-dialog input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.12);
}

.verification-dialog .form-help,
.verification-dialog .form-message {
  margin: 0;
  color: #91a6ba;
  font-size: 13px;
}

.verification-dialog .form-message {
  min-height: 22px;
  color: var(--cyan);
}

.icon-button {
  width: 34px;
  height: 34px;
  color: #b5c5d5;
  border: 1px solid rgba(126, 161, 195, 0.28);
  border-radius: 8px;
  background: #111a27;
  cursor: pointer;
}

.console-section {
  margin-top: 30px;
}

.credit-grid,
.package-grid,
.billing-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

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

.credit-tile,
.package-card,
.billing-grid article,
.payment-reserve {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 247, 255, 0.07), transparent 32%),
    rgba(7, 10, 18, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.credit-tile,
.package-card,
.billing-grid article {
  padding: 18px;
}

.credit-tile span,
.package-card b,
.billing-grid span {
  display: block;
  color: #9db1c4;
}

.credit-tile strong,
.package-card strong,
.billing-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--cyan);
  font-size: 28px;
  line-height: 1;
}

.credit-tile small,
.package-card p,
.billing-grid small,
.payment-reserve p {
  margin: 0;
  color: var(--muted);
}

.credit-tile.hot,
.package-card.featured,
.package-card.selected {
  border-color: rgba(0, 247, 255, 0.56);
  box-shadow: 0 0 28px rgba(0, 247, 255, 0.12), inset 0 0 0 1px rgba(0, 247, 255, 0.08);
}

.package-card button {
  margin-top: 16px;
}

.recharge-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 247, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 36, 0.96), rgba(5, 7, 12, 0.98));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), var(--shadow);
}

.recharge-card h3 {
  margin: 0 0 14px;
  color: #f3fbff;
  font-size: 16px;
}

.recharge-card h3 + .pay-method,
.custom-amount + h3 {
  margin-top: 26px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.amount-grid button {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f3fbff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #070a12;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
}

.amount-grid button:hover,
.amount-grid button.active,
.pay-method button.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 247, 255, 0.18), inset 0 0 0 1px rgba(0, 247, 255, 0.12);
}

.custom-amount {
  width: min(300px, 100%);
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #050719;
}

.custom-amount input {
  min-width: 0;
  border: 0;
  padding: 0 12px;
  color: #f3fbff;
  background: transparent;
  outline: none;
}

.custom-amount span {
  padding: 0 12px;
  color: #d7e5ef;
}

.pay-method {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pay-method button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 247, 255, 0.38);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--cyan);
  background: rgba(0, 247, 255, 0.08);
  cursor: pointer;
  font-weight: 800;
}

.pay-method span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 950;
}

.pay-summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.pay-summary span,
.pay-summary em {
  color: #d7e5ef;
  font-style: normal;
}

.pay-summary strong {
  color: var(--red);
  font-size: 18px;
}

.pay-summary b {
  font-size: 28px;
}

.pay-summary small {
  margin-left: 12px;
  color: var(--muted);
}

.recharge-card > .btn.charge {
  min-width: 200px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #1677ff);
  color: #020204;
}

.compact-reserve {
  margin-top: 24px;
  box-shadow: none;
}

.payment-reserve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border-color: rgba(255, 191, 61, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 191, 61, 0.1), rgba(255, 61, 242, 0.06), rgba(0, 247, 255, 0.06)),
    rgba(7, 10, 18, 0.94);
}

.payment-reserve b {
  display: block;
  color: var(--amber);
}

.payment-reserve .btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.channel-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 191, 61, 0.38);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 191, 61, 0.09);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.section-row h2,
.console-section h2 {
  font-size: 18px;
}

.section-row button,
.row-actions button,
.cli-list button,
.table-list em,
.review-list button,
.log-list b,
.server-grid em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 10px;
  color: #dbe9f5;
  background: rgba(255, 255, 255, 0.045);
  line-height: 1;
  white-space: nowrap;
}

.key-row {
  margin-top: 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border: 1px solid var(--line-hot);
  border-radius: 10px;
  background: rgba(0, 247, 255, 0.055);
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 6px;
  color: #020204;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.key-row code,
.cli-list code {
  color: #dff8ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #788ca3;
  font-size: 12px;
}

.console-code {
  margin-top: 14px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 18px;
}

.cli-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.cli-list div {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 68px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #070a12;
}

.cli-list button {
  position: absolute;
  right: 14px;
  top: 14px;
}

.admin-layout {
  grid-template-columns: 224px minmax(0, 1fr);
}

.admin-hero {
  padding: 24px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.admin-metrics article {
  padding: 18px;
  border: 1px solid rgba(0, 247, 255, 0.18);
  border-radius: 16px;
  background: rgba(0, 247, 255, 0.045);
}

.admin-metrics span,
.admin-metrics small {
  display: block;
  color: #8fa3b8;
}

.admin-metrics strong {
  display: block;
  margin: 8px 0;
  color: var(--cyan);
  font-size: 32px;
  line-height: 1;
}

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

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

.table-list,
.review-list,
.log-list,
.server-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.table-list div,
.log-list div,
.server-grid div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.table-list span,
.log-list span,
.server-grid span,
.review-list p {
  color: var(--muted);
}

.table-list em,
.server-grid em {
  color: var(--green);
  font-style: normal;
}

.review-list article {
  padding: 14px;
  border: 1px solid rgba(255, 191, 61, 0.22);
  border-radius: 12px;
  background: rgba(255, 191, 61, 0.055);
}

.review-list article div {
  display: flex;
  gap: 8px;
}

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

.server-grid div {
  grid-template-columns: 1fr;
}

.log-list div {
  grid-template-columns: 90px 1fr 60px 70px;
}

.log-list code {
  color: var(--cyan);
}

body[data-page="admin"] {
  background: #f5f8fc;
  color: #152033;
}

body[data-page="admin"].admin-auth-pending .site-shell {
  visibility: hidden;
}

.admin-empty {
  color: #91a4bb;
  padding: 28px 16px;
  text-align: center;
}

#admin-notice.error {
  color: #ff7d8b;
}

body[data-page="admin"] .site-shell,
body[data-page="admin"] .dashboard-shell {
  background:
    linear-gradient(180deg, #ffffff 0, #f5f8fc 360px),
    #f5f8fc;
}

body[data-page="admin"] .machine-bg,
body[data-page="admin"] .site-shell::after {
  display: none;
}

body[data-page="admin"] .topbar {
  border-bottom-color: #dfe7f1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(26, 39, 64, 0.08);
}

body[data-page="admin"] .brand-text,
body[data-page="admin"] .brand-text b,
body[data-page="admin"] .nav-links {
  color: #1f2d42;
}

body[data-page="admin"] .nav-links a:hover,
body[data-page="admin"] .nav-links a.active {
  color: #007d88;
}

body[data-page="admin"] .btn.ghost {
  color: #24324a;
  border-color: #cfd9e6;
  background: #fff;
}

body[data-page="admin"] .console-sidebar {
  border-color: #dce5ef;
  background: #fff;
  box-shadow: 0 16px 44px rgba(34, 52, 84, 0.09);
}

body[data-page="admin"] .console-sidebar a {
  color: #526277;
}

body[data-page="admin"] .console-sidebar a:hover,
body[data-page="admin"] .console-sidebar a.active {
  color: #007d88;
  background: #e9fbfd;
  box-shadow: inset 3px 0 0 #00b8c8;
}

body[data-page="admin"] .console-card,
body[data-page="admin"] .admin-hero,
body[data-page="admin"] .admin-metrics article,
body[data-page="admin"] .credit-tile,
body[data-page="admin"] .package-card,
body[data-page="admin"] .billing-grid article,
body[data-page="admin"] .payment-reserve {
  border-color: #dce5ef;
  background: #fff;
  box-shadow: 0 14px 38px rgba(34, 52, 84, 0.08);
}

body[data-page="admin"] .console-card,
body[data-page="admin"] .admin-hero {
  border-radius: 18px;
}

body[data-page="admin"] .chip {
  color: #007d88;
  border-color: rgba(0, 184, 200, 0.34);
  background: #e9fbfd;
  text-shadow: none;
}

body[data-page="admin"] .admin-hero p,
body[data-page="admin"] .console-head p,
body[data-page="admin"] .admin-page-title p,
body[data-page="admin"] .subtle,
body[data-page="admin"] .table-list span,
body[data-page="admin"] .log-list span,
body[data-page="admin"] .server-grid span,
body[data-page="admin"] .review-list p,
body[data-page="admin"] .admin-metrics span,
body[data-page="admin"] .admin-metrics small,
body[data-page="admin"] .billing-grid small,
body[data-page="admin"] .payment-reserve p {
  color: #65758a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="admin"] .admin-metrics article {
  background: #f8fbff;
}

body[data-page="admin"] .admin-metrics strong,
body[data-page="admin"] .billing-grid strong,
body[data-page="admin"] .credit-tile strong,
body[data-page="admin"] .package-card strong,
body[data-page="admin"] .mini-link,
body[data-page="admin"] .log-list code {
  color: #008a96;
}

body[data-page="admin"] .table-list div,
body[data-page="admin"] .log-list div,
body[data-page="admin"] .server-grid div,
body[data-page="admin"] .review-list article,
body[data-page="admin"] .cli-list div {
  border-color: #dce5ef;
  background: #f8fbff;
}

body[data-page="admin"] .section-row button,
body[data-page="admin"] .row-actions button,
body[data-page="admin"] .review-list button,
body[data-page="admin"] .log-list b,
body[data-page="admin"] .server-grid em,
body[data-page="admin"] .table-list em {
  color: #24324a;
  border-color: #cfd9e6;
  background: #fff;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 0.7fr)) auto;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #f8fbff;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 0 12px;
  color: #1f2d42;
  background: #fff;
  outline: none;
}

.admin-filter-bar button {
  min-height: 40px;
}

.admin-data-table {
  overflow: auto;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
}

.admin-data-table table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.admin-data-table th,
.admin-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}

.admin-data-table th {
  color: #516176;
  background: #f8fbff;
  font-size: 13px;
  white-space: nowrap;
}

.admin-data-table td {
  color: #223047;
  font-size: 14px;
}

.admin-data-table tbody tr:hover {
  background: #f4fbfc;
}

.admin-data-table code {
  color: #007d88;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.admin-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-status.ok {
  color: #007a53;
  background: #dffbf0;
}

.admin-status.warn {
  color: #9b6400;
  background: #fff2cf;
}

.admin-status.danger {
  color: #b42318;
  background: #ffe4e2;
}

.admin-status.info {
  color: #006f8d;
  background: #dff7ff;
}

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

.admin-page-title h1 {
  font-size: clamp(28px, 3vw, 38px);
}

.admin-page-title p {
  margin: 8px 0 0;
  color: #65758a;
}

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

.admin-detail-grid article {
  padding: 16px;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #f8fbff;
}

.admin-detail-grid span,
.admin-detail-grid small {
  display: block;
  color: #65758a;
}

.admin-detail-grid strong {
  display: block;
  margin: 6px 0;
  color: #008a96;
  font-size: 24px;
}

@media (max-width: 1100px) {
  .topbar {
    padding: 0 22px;
  }

  .brand {
    min-width: 220px;
  }

  .brand-text b,
  .nav-actions .ghost {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }

  .loop-grid,
  .tool-grid,
  .tool-grid.dense,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-client {
    grid-template-columns: 1fr;
  }

  .ai-panel-body {
    grid-template-columns: 1fr;
  }

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

  .console-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .trust-compare {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    font-size: 17px;
    white-space: normal;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .hero-actions,
  .centered-actions,
  .activation-card div {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .centered-actions .btn,
  .activation-card .btn {
    width: 100%;
  }

  .hero-offer {
    display: flex;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 8px 0;
  }

  .hero,
  .page-hero,
  .section {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: 0;
    padding: 68px 0 48px;
  }

  .world-map {
    top: 104px;
    width: 760px;
    max-width: none;
    opacity: 0.62;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.18;
  }

  body[data-page="home"] .hero-lead {
    max-width: 100%;
    white-space: normal;
  }

  body[data-page="tools"] .page-hero h1 {
    font-size: clamp(28px, 7.4vw, 34px);
  }

  body[data-page="guide"] .guide-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 36px);
    white-space: normal;
  }

  .guide-hero-line {
    white-space: normal;
    font-size: 15px;
  }

  body[data-page="guide"] .guide-step .section-title h2 {
    white-space: normal;
    font-size: clamp(25px, 6.6vw, 32px);
  }

  .trust-section {
    padding-top: 58px;
  }

  .auto-install-section {
    width: calc(100% - 36px);
    padding-top: 6px;
    padding-bottom: 48px;
  }

  .auto-install-card {
    padding: 14px;
  }

  .terminal-top {
    grid-template-columns: auto 1fr;
  }

  .terminal-top strong {
    grid-column: 1 / -1;
  }

  .install-tabs,
  .prompt-copy {
    align-items: stretch;
    flex-direction: column;
  }

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

  .install-tabs button {
    justify-content: flex-start;
    text-align: left;
  }

  .prompt-copy {
    display: flex;
    min-width: 0;
  }

  .prompt-copy .btn {
    width: 100%;
  }

  .prompt-copy h2 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.24;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .prompt-line {
    align-items: flex-start;
    font-size: 14px;
    padding-right: 18px;
  }

  .install-support {
    padding: 0 8px;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .trust-section h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .mobile-break {
    display: block;
  }

  .trust-compare {
    margin-top: 26px;
  }

  .truth-panel {
    min-height: 0;
    padding: 16px;
  }

  .truth-panel-head,
  .tool-call,
  .risk-grid div {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-hero p,
  .upcoming-note p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .upcoming-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-grid.two,
  .split,
  .loop-grid,
  .tool-grid,
  .tool-grid.dense,
  .how-grid,
  .skill-grid,
  .credit-grid,
  .package-grid,
  .billing-grid,
  .guide-layout,
  .guide-config-grid,
  .client-guide-grid,
  .ready-grid,
  .cli-section,
  .command-rack {
    grid-template-columns: 1fr;
  }

  .back-link {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
  }

  .sticky-tools {
    top: 110px;
  }

  .console-layout {
    width: min(100% - 24px, 1360px);
    margin-top: 16px;
  }

  .debug-layout {
    width: min(100% - 24px, 1290px);
  }

  .console-sidebar,
  .admin-metrics,
  .admin-grid,
  .server-grid {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .pay-summary {
    min-height: auto;
    flex-wrap: wrap;
    padding: 14px;
  }

  .pay-summary small {
    width: 100%;
    margin-left: 0;
  }

  .admin-page-title {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page-title .btn,
  .admin-filter-bar .btn {
    width: 100%;
  }

  .admin-grid .wide {
    grid-column: span 1;
  }

  .console-head,
  .section-row,
  .admin-hero,
  .key-row,
  .payment-reserve,
  .debug-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .debug-output-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .auth-copy h1 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 1.05;
  }

  .auth-copy p {
    max-width: 100%;
  }

  .sms-row {
    grid-template-columns: 1fr;
  }

  .debug-panel-head h2 {
    font-size: 22px;
    line-height: 1.24;
  }

  .debug-panel-head h2 span {
    display: block;
  }

  .status-banner a {
    float: none;
    display: block;
    margin-top: 8px;
  }

  .table-list div,
  .log-list div {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .tool-card,
  .skill-card {
    min-height: 0;
  }

  .ai-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-panel-head p {
    margin-left: 0;
  }

  .ai-guide-tabs {
    gap: 10px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px;
  }

  .ai-guide-tabs::before {
    display: none;
  }

  .ai-guide-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
  }
}
