:root {
  --bg: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --fg: #FAFAFA;
  --fg-dim: #888;
  --fg-soft: #555;
  --accent: #FF4D2E;
  --accent-soft: rgba(255,77,46,0.12);
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --ok: #4ADE80;
  --warn: #FACC15;
  --err: #EF4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand strong { font-weight: 700; font-size: 1rem; }
.brand .sub {
  color: var(--fg-dim); font-size: 0.85rem;
  border-left: 1px solid var(--border-strong); padding-left: 0.6rem;
}
.meta { display: flex; align-items: center; gap: 0.8rem; color: var(--fg-dim); font-size: 0.85rem; }
.meta button {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: 6px;
  width: 32px; height: 32px; cursor: pointer;
  font-size: 1rem; transition: all 0.15s;
}
.meta button:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

main { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1F1208 100%);
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  color: var(--accent); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
  margin-bottom: 0.6rem;
}
.hero-titulo { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.4rem; }
.hero-info { color: var(--fg-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.hero-link {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  padding: 0.6rem 1.2rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: opacity 0.15s;
}
.hero-link:hover { opacity: 0.85; }
.hero-link.disabled { background: var(--bg-card-hover); color: var(--fg-soft); pointer-events: none; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-lbl { color: var(--fg-dim); font-size: 0.75rem; margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.1em; }

.row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}
.card.wide { grid-column: 1 / -1; }
.card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.card h3.sub-h {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin: 1rem 0 0.4rem 0;
  font-weight: 600;
}
.badge {
  background: var(--warn); color: var(--bg);
  font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-left: 0.5rem;
}
.badge.ok { background: var(--ok); }
.badge.err { background: var(--err); color: var(--fg); }

.list { list-style: none; }
.list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.list li:last-child { border-bottom: none; }
.list.compact li { padding: 0.35rem 0; font-size: 0.82rem; color: var(--fg-dim); }
.list .titulo { font-weight: 500; color: var(--fg); }
.list .meta { color: var(--fg-dim); font-size: 0.75rem; margin-top: 0.2rem; display: block; }
.list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.list a:hover { text-decoration: underline; }
.list .empty { color: var(--fg-soft); padding: 1rem 0; text-align: center; font-style: italic; }

.logs {
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  font-family: "JetBrains Mono", Menlo, Monaco, monospace;
  font-size: 0.72rem;
  color: var(--fg-dim);
  overflow-x: auto;
  white-space: pre;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.5;
}
.logs::-webkit-scrollbar { width: 6px; height: 6px; }
.logs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--fg-soft);
  font-size: 0.75rem;
}

/* Responsivo */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  main { padding: 1rem; }
}
