:root {
  --bg: #0b1020;
  --panel: #111827;
  --muted: #9CA3AF;
  --brand: #7c3aed;
  --brand-2: #06b6d4;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: #e5e7eb; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; }
header {
  display:flex; align-items:center; gap:16px; padding:16px; background: linear-gradient(90deg, #2e1065, #1e3a8a);
  box-shadow: 0 2px 24px rgba(0,0,0,.35); position: sticky; top:0; z-index:999;
}
header img { height: 56px; width:auto; border-radius: 10px; }
header h1 { margin:0; font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: .5px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid #1f2937; border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px){ .grid-2 { grid-template-columns: 1.2fr .8fr; } }
label { display:block; font-size:.9rem; color: var(--muted); margin-bottom: 8px; }
input, select, button, textarea {
  background: #0f172a; color:#e5e7eb; border:1px solid #334155; border-radius: 12px;
  padding: 10px 12px; font-size: 1rem; width:100%;
}
button { cursor: pointer; transition: all .2s ease; }
.btn { background: var(--brand); border-color: #5b21b6; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124,58,237,.35); }
.btn-secondary { background: #1f2937; border-color:#374151; }
.kpis { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
@media(min-width:700px){ .kpis{ grid-template-columns: repeat(4,1fr);} }
.kpi { background:#0f172a; border:1px dashed #374151; padding:12px; border-radius:12px; text-align:center; }
.small { font-size: .85rem; color: var(--muted); }
.result { white-space: pre-wrap; background: #0b1220; border: 1px solid #223; border-radius: 12px; padding: 12px; }
footer { text-align:center; color: var(--muted); padding: 24px 12px; }
a { color: #93c5fd; }
.badge { display:inline-flex; align-items:center; gap:8px; font-size:.85rem; background:#0b1220; border:1px solid #223; padding:6px 10px; border-radius:999px; }
.flex { display:flex; gap:12px; align-items:center; }
.right { display:flex; justify-content:flex-end; }
.hidden { display:none; }