:root{
  --purple:#6a5bff;
  --purple2:#5a58f2;
  --teal:#22c3b5;
  --teal2:#18a99d;
  --bg:#f3f5fb;
  --text:#142033;
  --muted:#6b7280;
  --border: rgba(20,32,51,.12);
  --card: rgba(255,255,255,.92);
  --shadow: 0 12px 30px rgba(15, 23, 42, .10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background: radial-gradient(1200px 600px at 50% -40%, rgba(106,91,255,.45), transparent 60%), var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
small{color:var(--muted)}

.topbar{
  position:sticky; top:0; z-index:30;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  padding:14px 0;
  box-shadow: 0 12px 22px rgba(90,88,242,.22);
}
.topbar-inner{
  width:min(1100px, 92vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{display:flex;align-items:center;gap:12px;color:#fff}
.logo{
  width:42px;height:42px;border-radius:12px;
  background: rgba(255,255,255,.18);
  display:grid;place-items:center;
  font-weight:900;
}
.title b{display:block;font-size:16px;line-height:1}
.title small{color: rgba(255,255,255,.85)}

.container{
  width:min(1100px, 92vw);
  margin: 18px auto 34px;
}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
}
.hr{height:1px;background:var(--border);margin:14px 0}

.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:1fr}
@media(min-width:980px){ .grid-2{grid-template-columns:1fr 1fr;} }

.row{display:flex;gap:12px;flex-wrap:wrap}
.row > *{flex:1}

.input{
  width:100%;
  border:1px solid var(--border);
  background: rgba(255,255,255,.95);
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
  font-weight:600;
}
.input:focus{box-shadow: 0 0 0 4px rgba(90,88,242,.12); border-color: rgba(90,88,242,.35);}

.btn{
  border:none;
  cursor:pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight:900;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:active{transform: translateY(1px)}
.btn:disabled{opacity:.6;cursor:not-allowed}

.btn-teal{
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  color:white;
  box-shadow: 0 14px 28px rgba(34,195,181,.25);
}
.btn-primary{
  background: linear-gradient(90deg, var(--purple2), var(--purple));
  color:white;
  box-shadow: 0 14px 28px rgba(90,88,242,.25);
}
.btn-ghost{
  background: rgba(255,255,255,.18);
  color:white;
  border: 1px solid rgba(255,255,255,.22);
}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight:900;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
}

.pill{
  display:inline-grid; place-items:center;
  min-width:28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  color:white;
  font-weight:900;
}

.notice{
  padding: 12px;
  border-radius: 14px;
  border:1px dashed rgba(90,88,242,.35);
  background: rgba(90,88,242,.08);
}
.small{font-size:12px}
.muted{color:var(--muted)}
.kpi{display:flex; align-items:center; justify-content:space-between; gap:12px}
.kpi .label{font-size:12px;color:var(--muted);font-weight:800}
.toast{
  position: fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 18px;
  background: rgba(20,32,51,.92);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  display:none;
  z-index:99;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
