:root {
  --bg: #0d0d0f;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-3: #202024;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.12);
  --text: #e8e8ea;
  --text-muted: #6b6b75;
  --text-faint: #3a3a42;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --font-display: "Space Grotesk", Inter, sans-serif;
  --font-body: Inter, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-family: var(--font-body); }
h1, h2, h3, .display { font-family: var(--font-display); }
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.shell { max-width: 1360px; margin: 0 auto; padding: 20px 18px 72px; }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: beat 1.8s infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1 { margin: 2px 0 0; font-size: 26px; font-weight: 650; }
.sub { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.seg button, .ghost, .primary {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 12px;
  transition: var(--transition);
}
.seg button { background: transparent; color: var(--text-muted); }
.seg button.active { background: var(--accent-dim); color: var(--accent); }
.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
}
.primary {
  background: var(--accent);
  color: #041016;
  font-weight: 700;
  border-radius: var(--radius);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.kpi span { color: var(--text-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi .delta { font-size: 12px; margin-top: 4px; }
.delta.up { color: var(--success); }
.delta.down { color: var(--error); }
.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-bottom: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 12px;
  margin-bottom: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.chart-box { height: 240px; position: relative; }
.chart-box.sm { height: 180px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { color: var(--accent); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge.demo { color: #7dd3fc; border-color: #7dd3fc55; }
.badge.production { color: var(--success); border-color: #22c55e55; }
.badge.agency { color: #c4b5fd; border-color: #c4b5fd55; }
.badge.internal { color: var(--warning); border-color: #f59e0b55; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 6px; animation: beat 1.6s infinite; }
.spark { width: 72px; height: 22px; display: block; }
.feed-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: center;
}
.feed-item--entering { opacity: 0; transform: translateY(-8px); }
.feed-path { color: var(--text-muted); font-size: 12px; }
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow: auto;
  z-index: 20;
}
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 19; }
.modal {
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.err { color: var(--error); font-size: 13px; min-height: 18px; }
.updated { color: var(--text-muted); font-size: 12px; }
.hostinger.collapsed .body { display: none; }
.chevron { color: var(--text-muted); cursor: pointer; }
.geo-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cards-mobile { display: none; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { display: none; }
  .cards-mobile { display: grid; gap: 8px; }
  .site-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
}
