:root{
  --bg:#0a1623;
  --panel:#0f2134;
  --text:#e9f2ff;
  --muted:#9db3c7;
  --accent:#62d2a2;
  --danger:#ff5c7a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 980px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(900px 600px at 20% 0%, rgba(98,210,162,.14), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(78,141,255,.14), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 16px 26px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
}
.brand img{width:28px;height:28px}
.brand .title{
  font-size:18px;
  font-weight:750;
  letter-spacing:.2px;
}
.badge{
  font-size:12px;
  color:var(--muted);
  padding:6px 10px;
  border:1px solid rgba(157,179,199,.25);
  border-radius:999px;
  background: rgba(15,33,52,.35);
}
.hero{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 860px){
  .hero{grid-template-columns:1fr}
}
.card{
  background: linear-gradient(180deg, rgba(15,33,52,.9), rgba(15,33,52,.72));
  border:1px solid rgba(157,179,199,.18);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.main{
  padding:18px;
  position:relative;
  overflow:hidden;
}
.h1{
  font-size:34px;
  margin:0 0 6px;
  line-height:1.05;
}
.sub{
  margin:0 0 14px;
  color:var(--muted);
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 560px){
  .grid{grid-template-columns:1fr}
}
.btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 14px;
  font-size:15px;
  font-weight:700;
  border-radius:14px;
  border:1px solid rgba(157,179,199,.22);
  background: rgba(10,22,35,.35);
  color:var(--text);
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{border-color: rgba(98,210,162,.55); background: rgba(98,210,162,.08);}
.btn:active{transform: translateY(1px);}
.btn.primary{
  background: linear-gradient(180deg, rgba(98,210,162,.22), rgba(98,210,162,.10));
  border-color: rgba(98,210,162,.55);
}
.btn.danger{
  background: linear-gradient(180deg, rgba(255,92,122,.22), rgba(255,92,122,.10));
  border-color: rgba(255,92,122,.55);
}
.pillrow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(157,179,199,.22);
  color:var(--muted);
  background: rgba(10,22,35,.25);
  font-size:12px;
}
.side{
  padding:16px;
}
.side h3{
  margin:0 0 10px;
  font-size:15px;
  color:var(--muted);
  font-weight:750;
  letter-spacing:.2px;
  text-transform:uppercase;
}
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(157,179,199,.18);
  background: rgba(10,22,35,.22);
}
.item .k{font-weight:800; margin-bottom:6px}
.item .v{color:var(--muted); font-size:13px; line-height:1.35}
.footer{
  margin-top:14px;
  padding:14px 16px;
  color:rgba(157,179,199,.9);
  font-size:12px;
  border-top:1px solid rgba(157,179,199,.15);
}
.footer a{color:rgba(157,179,199,.95)}
/* Modal */
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:999;
}
.backdrop.show{display:flex;}
.modal{
  width:min(560px, 100%);
  background: linear-gradient(180deg, rgba(15,33,52,.98), rgba(15,33,52,.88));
  border:1px solid rgba(157,179,199,.20);
  border-radius:20px;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
  overflow:hidden;
}
.modal header{
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(157,179,199,.14);
}
.modal header .t{font-weight:850}
.modal main{padding:14px 16px}
.modal .row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(157,179,199,.22);
  background: rgba(10,22,35,.22);
  cursor:pointer;
  font-weight:750;
}
.chip:hover{border-color: rgba(98,210,162,.55);}
.field{
  margin-top:12px;
}
.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.field input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(157,179,199,.20);
  background: rgba(10,22,35,.35);
  color:var(--text);
  outline:none;
}
.field input:focus{border-color: rgba(98,210,162,.55);}
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  padding:10px 12px;
  border-radius:999px;
  background: rgba(15,33,52,.92);
  border:1px solid rgba(157,179,199,.18);
  color:var(--text);
  font-size:13px;
  display:none;
  z-index:1000;
}
.toast.show{display:block;}