:root {
  --bg: #05060a;
  --surface: #0e1018;
  --panel: #151826;
  --border: #1f2233;
  --text: #e7ecf5;
  --muted: #a6adc8;
  --accent: #5cd7ff;
  --accent-2: #a88bff;
  --danger: #ff6b6b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(92, 215, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(168, 139, 255, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(92, 215, 255, 0.3));
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1 { margin: 4px 0 0; font-size: 26px; }

.auth-note {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(92, 215, 255, 0.12), rgba(168, 139, 255, 0.12));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.controls {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

select, input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}
select:focus, input:focus { outline: 1px solid var(--accent); }

.ga-input {
  display: grid;
  gap: 6px;
}
.ga-input label { font-size: 13px; color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; }

.actions { display: flex; gap: 8px; }
.primary-btn, .ghost-btn {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d14;
}
.ghost-btn {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.primary-btn:active, .ghost-btn:active { transform: translateY(1px); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat {
  font-size: 30px;
  font-weight: 700;
  margin: 6px 0;
}
.substats {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.log {
  min-height: 120px;
  margin: 0;
  background: #0a0c14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
  font-size: 13px;
  color: #c5d0ff;
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .auth-note { align-self: stretch; text-align: center; }
}
