:root {
  --bg-1: #03060b;
  --bg-2: #071018;
  --bg-3: #0a1420;
  --panel: rgba(8, 16, 22, 0.84);
  --panel-2: rgba(10, 18, 28, 0.94);
  --line: rgba(57, 255, 136, 0.12);
  --line-strong: rgba(57, 255, 136, 0.22);
  --text: #effaf3;
  --muted: #90a89a;
  --green: #39ff88;
  --green-2: #12e36a;
  --shadow: 0 20px 80px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(57,255,136,0.08), transparent 20%), linear-gradient(180deg, var(--bg-1), var(--bg-2) 52%, var(--bg-3));
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.88), transparent 88%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 24% 18%, rgba(57,255,136,0.08), transparent 18%), radial-gradient(circle at 80% 18%, rgba(57,255,136,0.06), transparent 18%);
}
.site-header {
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
  background: rgba(3, 6, 11, 0.58); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 74px; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #041009; background: linear-gradient(135deg, #7dffb7, #39ff88 55%, #12e36a 100%); box-shadow: 0 0 34px rgba(57,255,136,0.32);
}
.brand-title { font-size: 22px; font-weight: 900; letter-spacing: .04em; }
.brand-sub { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.header-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 800; border: 1px solid transparent; transition: .2s ease;
}
.btn-primary, .header-btn {
  background: linear-gradient(135deg, #7dffb7, #39ff88 55%, #12e36a 100%);
  color: #06110a; box-shadow: 0 0 26px rgba(57,255,136,0.28);
}
.btn-secondary {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}
.btn-block { width: 100%; }
.usage-section, .section { padding: 42px 0; }
.usage-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: start; }
.eyebrow {
  display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: #bcffdc; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.usage-section h1 { margin: 12px 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
.hero-desc, .usage-tip { color: var(--muted); line-height: 1.72; font-size: 15px; }
.cyber-card {
  background: linear-gradient(180deg, rgba(8,16,22,0.92), rgba(10,18,28,0.92));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.cyber-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1px solid rgba(57,255,136,0.08);
}
.compact-panel, .result-block { padding: 18px; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); }
.dot.gold { background: var(--green); }
.dot.line { background: rgba(255,255,255,0.28); }
.panel-title { margin-left: 8px; color: #d6eedd; font-size: 12px; letter-spacing: .16em; }
.query-form { display: grid; gap: 14px; }
.query-form label { display: grid; gap: 8px; color: #d9f7e5; }
.query-form input {
  width: 100%; min-height: 48px; border-radius: 12px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: #fff; outline: none;
}
.usage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.ai-console {
  margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,0.24); border: 1px solid rgba(57,255,136,0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: #a4ffca; line-height: 1.75; font-size: 13px;
}
.progress-wrap { margin-top: 14px; }
.progress-label { color: #cfe9d7; font-size: 12px; letter-spacing: .12em; margin-bottom: 8px; }
.progress-bar { width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7dffb7, #39ff88 55%, #12e36a); box-shadow: 0 0 16px rgba(57,255,136,0.25); }
.progress-value { margin-top: 6px; color: var(--muted); font-size: 13px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 10px 0 8px; font-size: clamp(24px, 3.2vw, 34px); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 16px;
}
.stat-card .muted-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.stat-card h3 { margin: 0; font-size: 22px; color: #7dffb7; }
.usage-meta { color: var(--muted); line-height: 1.85; }
.logs-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 14px; }
.toolbar.compact-toolbar { display: flex; gap: 10px; align-items: center; }
.select-control {
  min-height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: #fff; padding: 0 12px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); text-align: left; font-size: 14px; vertical-align: top; }
.empty { color: var(--muted); padding: 16px 0; }
.site-footer { padding: 24px 0 34px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
@media (max-width: 980px) {
  .nav-wrap, .footer-wrap, .logs-head { flex-direction: column; align-items: flex-start; }
  .usage-wrap, .stats-grid, .usage-actions { grid-template-columns: 1fr; }
}
