:root{
  --bg:#0f0f12;
  --card:#1a1a1f;
  --muted:#b7b7c2;
  --text:#ffffff;
  --accent:#7b5cff;
  --danger:#ff4d4d;
  --wa:#25D366;
  --shadow: 0 14px 30px rgba(0,0,0,.35);
  --radius: 18px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 900px at 20% 0%, #1b1630 0%, var(--bg) 55%);
  color:var(--text);
}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 14px 10px;
  backdrop-filter: blur(10px);
  background: rgba(15,15,18,.75);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand{display:flex; gap:12px; align-items:center;}
.brand__logo{width:44px;height:44px;border-radius:14px; background:#111; box-shadow: var(--shadow);}
.brand__name{font-weight:900; letter-spacing:.12em;}
.brand__sub{font-size:12px;color:var(--muted); margin-top:2px}
.tabs{display:flex; gap:8px; padding:10px 14px 0;}
.tab{
  flex:1; padding:10px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color:var(--muted); cursor:pointer; font-weight:700;
}
.tab--active{
  background: rgba(123,92,255,.25);
  color:var(--text);
  border-color: rgba(123,92,255,.45);
}
.container{padding:14px; max-width:720px; margin:0 auto;}
.view{display:none}
.view--active{display:block}
.card{
  background: rgba(26,26,31,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
  margin:12px 0;
}
.card__title{
  font-weight:900; letter-spacing:.06em;
  margin-bottom:10px; text-transform:uppercase;
  font-size:12px;
}
.field{display:block; margin:10px 0;}
.field span{display:block; font-size:12px; color:var(--muted); margin-bottom:6px;}
.field input, .field select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.row{display:flex; gap:10px; margin-top:10px;}
.row .btn{flex:1}
.btn{
  padding:12px 12px;
  border-radius:14px;
  border:none;
  background: var(--accent);
  color:white;
  font-weight:900;
  cursor:pointer;
}
.btn--secondary{background: rgba(255,255,255,.10)}
.btn--ghost{background: transparent; border:1px solid rgba(255,255,255,.14);}
.btn--danger{background: var(--danger);}
.btn--whatsapp{background: var(--wa);}
.divider{height:1px; background: rgba(255,255,255,.08); margin:14px 0;}
.results .line{
  display:flex; justify-content:space-between;
  padding:10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.results .line:last-child{border-bottom:none}
.results .line span{color: var(--muted)}
.results .line b{font-variant-numeric: tabular-nums;}
.line--highlight b{color: #ffde59}
.small{font-size:12px; color: var(--muted); margin:10px 0 0}
.hintbox{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(0,0,0,.18);
}
.hintbox__title{font-weight:900; font-size:12px; margin-bottom:6px}
.hintbox ul{margin:8px 0 0 18px; color:var(--muted); font-size:12px}
.history{list-style:none; padding:0; margin:0;}
.history li{
  padding:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  margin:10px 0;
  background: rgba(0,0,0,.18);
}
.history .h-top{display:flex; justify-content:space-between; gap:10px;}
.history .h-top b{font-variant-numeric: tabular-nums;}
.history .h-sub{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.4}
