:root{
  --bg:#0f1724;
  --card:#0b1220;
  --muted:#94a3b8;
  --accent:#7c3aed;
  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);
  --white: #e6eef8;
}

*{box-sizing:border-box}
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  background: linear-gradient(180deg,#071022,#071726 60%);
  color:var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 36px;
  border-bottom:1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.brand{font-weight:700; font-size:20px}
.brand .accent{color:var(--accent); margin-left:6px}

.nav .nav-item{color:var(--muted); margin-left:18px; text-decoration:none}

.container{max-width:1100px; margin:28px auto; padding:0 18px}

.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:12px; padding:22px; box-shadow: 0 6px 30px rgba(2,6,23,0.6); margin-bottom:18px; border:1px solid rgba(255,255,255,0.03)}

.hero{display:grid; grid-template-columns:1fr 360px; gap:24px; align-items:start}
.hero h1{margin:0 0 8px; font-size:26px}
.muted{color:var(--muted); margin-top:6px}

.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px}
label{display:flex; flex-direction:column; font-size:13px; color:var(--muted)}
input, select{margin-top:8px; padding:10px 12px; border-radius:8px; border:1px solid rgba(255,255,255,0.03); background:var(--glass); color:var(--white); outline:none}
input[type=number]::-webkit-inner-spin-button{opacity:0.4}

.calc-row{display:flex; gap:18px; margin-top:16px; align-items:center}
.small{color:var(--muted); font-size:12px}
.big{font-size:18px; font-weight:700; margin-top:6px; color:var(--white)}

.controls{display:flex; gap:12px; margin-top:18px}
.btn{padding:10px 14px; border-radius:10px; border:0; cursor:pointer; font-weight:600}
.primary{background:linear-gradient(90deg,var(--accent), #5b21b6); color:white}
.ghost{background:transparent; color:var(--white); border:1px solid rgba(255,255,255,0.06)}

.hero-right .panel{background:var(--glass-2); padding:12px; border-radius:10px}
.stakes-list{display:flex; flex-direction:column; gap:10px; margin-top:8px; max-height:420px; overflow:auto}

.stake{padding:10px; border-radius:8px; background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent); border:1px solid rgba(255,255,255,0.03)}
.stake .row{display:flex; justify-content:space-between; align-items:center}
.badge{font-size:12px; padding:6px 8px; border-radius:999px; background:rgba(255,255,255,0.03); color:var(--muted)}

.help{margin-top:10px}

.footer{padding:18px; text-align:center; color:var(--muted); font-weight:600; border-top:1px solid rgba(255,255,255,0.02)}

.toast{position:fixed; right:18px; bottom:18px; background:rgba(0,0,0,0.6); padding:10px 14px; border-radius:10px; color:var(--white)}
.hidden{display:none}

/* small screens */
@media (max-width:920px){
  .hero{grid-template-columns:1fr; }
  .hero-right{order:2}
}