:root {
  --bg: #070a11;
  --bg-soft: #0b111c;
  --panel: rgba(15, 23, 38, 0.72);
  --panel-solid: #0f1726;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e9effa;
  --muted: #93a1b8;
  --faint: #64748b;
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 8% -8%, rgba(56, 189, 248, 0.12), transparent 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(139, 92, 246, 0.14), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
  background-clip: content-box;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.hidden {
  display: none !important;
}

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

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

.small {
  font-size: 12px;
}

.truncate {
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

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

.gradient-text {
  background: linear-gradient(120deg, #7dd3fc, #a78bfa 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.42);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, #4cc3fb, #9469f7);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.4);
  color: #fda4af;
}

.btn.danger:hover {
  background: rgba(251, 113, 133, 0.2);
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn.link {
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
}

.btn.link:hover {
  background: transparent;
  color: #7dd3fc;
  transform: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: all 0.16s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

/* 表单 */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field .hint {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.5;
}

.input,
.select,
textarea.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.7);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input::placeholder,
textarea.input::placeholder {
  color: #566175;
}

.input:focus,
.select:focus,
textarea.input:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
  background: rgba(8, 13, 22, 0.95);
}

textarea.input {
  min-height: 90px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.select option {
  background: #0f1726;
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.switch-label span {
  display: block;
  font-size: 12px;
  color: var(--faint);
}

.switch-row input[type="checkbox"] {
  width: 42px;
  height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-error {
  display: none;
  padding: 10px 13px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
  font-size: 13px;
}

.form-error.show {
  display: block;
}

/* 标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.badge.success {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.badge.danger {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.24);
}

.badge.warning {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.24);
}

.badge.muted {
  color: #a6b4c8;
  background: rgba(148, 163, 184, 0.09);
  border-color: rgba(148, 163, 184, 0.2);
}

.badge.accent {
  color: #93c5fd;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

/* 卡片 */
.card {
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.8), rgba(11, 17, 28, 0.75));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
}

.card-body {
  padding: 18px 22px 22px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 10, 17, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(139, 92, 246, 0.36));
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.18), 0 0 20px rgba(139, 92, 246, 0.15);
  font-size: 13px;
  font-weight: 800;
  color: #dbeafe;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 落地页 */
.landing-body {
  overflow-x: hidden;
}

.hero {
  position: relative;
  padding: 88px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(56, 189, 248, 0.07);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: var(--faint);
  font-size: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.9;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, 0.22), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}

.terminal {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 38, 0.95), rgba(8, 13, 22, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: #cbd5e1;
  overflow-x: auto;
}

.terminal-body .cmd {
  color: #7dd3fc;
}

.terminal-body .key {
  color: #c4b5fd;
}

.terminal-body .str {
  color: #86efac;
}

.terminal-body .comment {
  color: #55657c;
}

.terminal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-kicker {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

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

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 29, 48, 0.62), rgba(11, 17, 28, 0.5));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.26);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-card h3 {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
}

.feature-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.price-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.price-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(19, 29, 48, 0.7), rgba(10, 16, 28, 0.62));
}

.price-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 65%);
  pointer-events: none;
}

.price-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-id {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.price-row strong {
  color: var(--text);
  font-weight: 600;
  font-family: var(--mono);
}

.price-desc {
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
  min-height: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 23, 38, 0.5);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(125, 211, 252, 0.3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
}

.step-card h3 {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
}

.step-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.step-card code {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: #93c5fd;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.26);
  background: linear-gradient(125deg, rgba(37, 99, 235, 0.16), rgba(139, 92, 246, 0.18) 55%, rgba(56, 189, 248, 0.1));
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  font-size: 28px;
  font-weight: 800;
}

.cta-band p {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
}

.cta-band .hero-actions {
  position: relative;
  justify-content: center;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--faint);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

/* 认证页面 */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-shell {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(11, 17, 28, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.auth-aside {
  position: relative;
  padding: 46px 40px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(600px 380px at 10% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(500px 420px at 100% 100%, rgba(139, 92, 246, 0.2), transparent 62%),
    rgba(9, 14, 24, 0.86);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  pointer-events: none;
}

.auth-aside > * {
  position: relative;
}

.auth-aside h1 {
  margin-top: 26px;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-aside p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-point i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.auth-aside-foot {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.7;
}

.auth-panel {
  padding: 44px 40px;
  background: rgba(10, 15, 25, 0.55);
}

.auth-panel h2 {
  font-size: 22px;
  font-weight: 700;
}

.auth-panel .auth-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  padding: 4px;
  margin: 24px 0 22px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.tab-btn {
  flex: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.16s ease;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-footer {
  margin-top: 22px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.auth-footer a {
  color: var(--muted);
}

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

/* 通用应用布局 */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 242px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.82);
  backdrop-filter: blur(18px);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 20px;
  font-weight: 700;
  font-size: 16px;
}

.side-section-label {
  padding: 8px 10px 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #526077;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: all 0.16s ease;
}

.nav-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  flex: none;
  transition: background 0.16s ease;
}

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

.nav-item.active {
  color: #e0f2fe;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.08));
  border-color: rgba(56, 189, 248, 0.2);
}

.nav-item.active::before {
  background: #38bdf8;
  box-shadow: 0 0 9px rgba(56, 189, 248, 0.7);
}

.side-user {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
}

.side-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(139, 92, 246, 0.38));
  border: 1px solid rgba(125, 211, 252, 0.28);
  font-size: 13px;
  font-weight: 700;
  color: #e0f2fe;
  flex: none;
}

.side-user-meta {
  min-width: 0;
  flex: 1;
}

.side-user-meta strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-meta span {
  display: block;
  font-size: 11px;
  color: var(--faint);
}

.side-logout {
  margin-top: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  transition: all 0.16s ease;
}

.side-logout:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.page-main {
  width: 100%;
  margin-left: 242px;
  padding: 26px 30px 48px;
}

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

.page-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-subtitle {
  margin-top: 5px;
  color: var(--faint);
  font-size: 12.5px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.announcement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 11px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
  font-size: 13px;
}

.announcement::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  margin-top: 7px;
  flex: none;
}

.content-panel {
  display: none;
}

.content-panel.active {
  display: block;
  animation: panel-in 0.35s ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 统计卡 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 29, 48, 0.74), rgba(11, 17, 28, 0.62));
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.11), transparent 68%);
}

.stat-card.accent {
  border-color: rgba(56, 189, 248, 0.26);
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(139, 92, 246, 0.18), transparent 62%),
    linear-gradient(160deg, rgba(21, 34, 56, 0.82), rgba(11, 17, 28, 0.7));
}

.stat-label {
  font-size: 12px;
  color: var(--faint);
}

.stat-value {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value.balance {
  background: linear-gradient(120deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 30px;
}

.stat-meta {
  margin-top: 5px;
  font-size: 11px;
  color: var(--faint);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* 图表 */
.chart-box {
  height: 170px;
  padding-top: 8px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
}

.bar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bar-track {
  flex: 1;
  display: flex;
  align-items: flex-end;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.035), rgba(148, 163, 184, 0.01));
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7dd3fc, #6366f1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
  animation: bar-in 0.5s ease both;
}

.bar-fill.zero {
  background: rgba(148, 163, 184, 0.08);
  box-shadow: none;
}

@keyframes bar-in {
  from { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.3; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.bar-label {
  display: block;
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* 快速接入 */
.quickstart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qs-label {
  font-size: 11px;
  color: var(--faint);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
}

.copy-field code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  color: #bae6fd;
}

.qs-actions {
  display: flex;
  gap: 9px;
  margin-top: 4px;
}

.qs-note {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.35);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 640px;
}

.table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--muted);
  vertical-align: middle;
}

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

.table tbody tr {
  transition: background 0.14s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table td.strong,
.table td .strong {
  color: var(--text);
  font-weight: 600;
}

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

.table td.cost {
  font-family: var(--mono);
  color: #bae6fd;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.key-code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #bae6fd;
  white-space: nowrap;
}

.empty {
  padding: 38px 18px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.empty.small {
  padding: 22px 12px;
  font-size: 12px;
}

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

.avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: #bae6fd;
  flex: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--faint);
}

.pager-info {
  margin-right: auto;
}

/* 工具栏 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.search-input {
  width: 220px;
}

.filter-select {
  width: 130px;
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(540px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #121b2b, #0b111c);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal.modal-wide {
  width: min(720px, 100%);
}

.modal.modal-sm {
  width: min(420px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 27, 43, 0.96);
  backdrop-filter: blur(8px);
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px 22px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.4);
}

.confirm-text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* 提示 */
#toast-box {
  position: fixed;
  z-index: 200;
  top: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  max-width: 360px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 38, 0.96);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(52, 211, 153, 0.4);
}

.toast.error {
  border-color: rgba(251, 113, 133, 0.42);
  color: #fecdd3;
}

.toast.info {
  border-color: rgba(56, 189, 248, 0.4);
}

/* 教程 */
.tutorial-body {
  padding-bottom: 60px;
}

.tutorial-hero {
  padding: 54px 0 36px;
}

.tutorial-hero h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tutorial-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.endpoint-card {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 38, 0.62);
}

.endpoint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.endpoint-item .qs-label {
  margin-bottom: 7px;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
}

.tutorial-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 38, 0.55);
}

.tool-tab {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  transition: all 0.16s ease;
}

.tool-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tool-tab.active {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

.tutorial-panel {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 38, 0.58);
}

.tool-section {
  display: none;
}

.tool-section.active {
  display: block;
  animation: panel-in 0.3s ease both;
}

.tool-title {
  font-size: 19px;
  font-weight: 700;
}

.tool-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  counter-reset: tutorial-step;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}

.step-item strong {
  color: var(--text);
}

.code-block {
  position: relative;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #080d17;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
}

.code-copy {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.code-copy:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: #cbd5e1;
}

.code-block pre .cmd {
  color: #7dd3fc;
}

.code-block pre .value {
  color: #86efac;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.faq-item {
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.faq-item h3 {
  font-size: 13.5px;
  font-weight: 700;
}

.faq-item p {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

/* 管理后台补充 */
.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 18px;
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(13, 20, 34, 0.86);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 800;
}

.admin-login-card .auth-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.admin-login-card .field {
  margin-top: 18px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.26);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 38, 0.6);
}

.metric-label {
  font-size: 11px;
  color: var(--faint);
}

.metric-value {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-sub {
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.note-box {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.05);
  color: #93c5fd;
  font-size: 12px;
  line-height: 1.65;
}

.note-box.warning {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
}

/* 拉取模型 */
.fetch-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  font-size: 12px;
  color: var(--muted);
}

.fetch-list {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.fetch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.fetch-item:last-child {
  border-bottom: 0;
}

.fetch-item input {
  accent-color: var(--accent);
}

.fetch-item.exists {
  opacity: 0.45;
}

.fetch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--faint);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.admin-toolbar-note {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.settings-section {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 23, 38, 0.55);
  margin-bottom: 18px;
}

.settings-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-section .sub {
  color: var(--faint);
  font-size: 12px;
  margin-bottom: 16px;
}

/* 前台通用小元素 */
.notice-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--faint);
}

.notice-inline::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.qs-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.7;
}

.qs-warning::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  margin-top: 6px;
  flex: none;
}

/* 响应式 */
@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-panel {
    max-width: 640px;
  }

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

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

  .auth-aside {
    display: none;
  }

  .auth-panel {
    padding: 34px 26px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 12, 21, 0.9);
  }

  .side-brand {
    padding: 0 0 12px;
  }

  .side-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
  }

  .nav-item {
    width: auto;
    flex: none;
    padding: 7px 12px;
    font-size: 12px;
  }

  .side-section-label {
    display: none;
  }

  .side-user {
    margin-top: 10px;
    padding: 10px 0 0;
  }

  .side-user-row {
    justify-content: space-between;
  }

  .side-user-meta {
    flex: none;
  }

  .side-logout {
    width: auto;
    margin-top: 0;
    padding: 6px 12px;
  }

  .app-shell {
    flex-direction: column;
  }

  .page-main {
    margin-left: 0;
    padding: 20px 18px 40px;
  }

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

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

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

  .tutorial-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .tool-tab {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 62px;
  }

  .nav-links {
    display: none;
  }

  .header-actions .btn {
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .feature-grid,
  .price-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 46px 0;
  }

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

  .stat-card {
    padding: 14px 15px;
  }

  .stat-value {
    font-size: 21px;
  }

  .stat-value.balance {
    font-size: 24px;
  }

  .page-header {
    flex-direction: column;
  }

  .header-tools {
    justify-content: flex-start;
  }

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

  .endpoint-grid,
  .settings-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar .search-input {
    width: 100%;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

  .tutorial-panel {
    padding: 20px 16px;
  }

  .cta-band {
    padding: 34px 20px;
  }

  .auth-page {
    padding: 18px 12px;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
