:root {
  --bg: #07080c;
  --bg-2: #0d1018;
  --panel: #11151f;
  --line: rgba(255,255,255,.08);
  --text: #e8edf7;
  --muted: #8b95a8;
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --warn: #fbbf24;
  --bad: #fb7185;
  --good: #34d399;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--bg); color: var(--text); font-family: "Instrument Sans", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }

.app-shell { min-height: 100vh; }
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}
.hero {
  padding: 56px 64px;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(110,231,183,.16), transparent 50%),
    radial-gradient(700px 400px at 80% 20%, rgba(96,165,250,.12), transparent 45%),
    linear-gradient(180deg, #0b0e14, #07080c);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand { font-family: "IBM Plex Mono", monospace; font-size: 18px; letter-spacing: .04em; }
.brand span { color: var(--accent); }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -1.5px; max-width: 560px; margin: 40px 0 16px; }
.hero p.lead { color: var(--muted); max-width: 480px; font-size: 17px; line-height: 1.6; }
.stats { display: flex; gap: 28px; margin-top: 48px; }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.hero-foot { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; }

.auth-panel { display: grid; place-items: center; padding: 40px 28px; }
.card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 26px; margin-bottom: 6px; }
.card .sub { color: var(--muted); margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  flex: 1;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
}
.tab.active { border-color: var(--accent); color: var(--text); background: rgba(110,231,183,.08); }
label { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); margin: 12px 0 6px; font-family: "IBM Plex Mono", monospace; }
input, textarea, select {
  width: 100%;
  background: #0b0e16;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(110,231,183,.5); }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #86efc4, #34d399);
  color: #042018;
  font-weight: 700;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.sm { width: auto; margin: 0; padding: 8px 12px; font-size: 13px; }
.btn.danger { background: linear-gradient(180deg, #fda4af, #fb7185); color: #2a0610; }
.error { color: var(--bad); font-size: 13px; margin-top: 10px; }

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,12,.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 14px; }
.credits {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0e16;
}
.layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  background: #0a0c12;
}
.nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.nav-btn.active { background: rgba(110,231,183,.1); color: var(--text); }
.main { padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.kpi span { color: var(--muted); font-size: 12px; }
.kpi b { display: block; margin-top: 8px; font-size: 24px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.panel h3 { margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 500; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
}
.badge.queued { color: var(--muted); }
.badge.submitting, .badge.crawling { color: var(--accent-2); }
.badge.indexed { color: var(--good); }
.badge.failed { color: var(--bad); }
.url { font-family: "IBM Plex Mono", monospace; font-size: 12px; word-break: break-all; }
.muted { color: var(--muted); }
.progress {
  height: 8px;
  background: #0b0e16;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

@media (max-width: 960px) {
  .auth-wrap, .layout, .grid { grid-template-columns: 1fr; }
  .hero { display: none; }
  .side { display: flex; gap: 8px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-btn { white-space: nowrap; width: auto; }
}
