:root{
  --bg:#0f0e1b;
  --panel:#1d1a33;
  --accent:#f5c657;
  --accent-2:#4ca6ff;
  --border:#34304f;
  --text:#f4f2ff;
  --muted:#9aa0c3;
  --danger:#ff6b67;
  font-family:"Sora","Futura","PingFang SC","Microsoft Yahei",sans-serif;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  background:radial-gradient(circle at top,#23254a 0%,#100f21 60%,#06050f 100%);
  color:var(--text);
}
.page{
  padding:32px 16px 48px;
  display:flex;
  justify-content:center;
}
.shell{
  width:min(900px,100%);
}
.hero{
  text-align:center;
  margin-bottom:32px;
}
.hero h1{
  margin:0;
  font-size:56px;
  letter-spacing:12px;
  font-weight:300;
}
.hero h1 span{
  color:var(--accent);
  font-weight:700;
}
.hero-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.15);
  padding:12px 26px;
  margin-top:12px;
  text-decoration:none;
  font-size:16px;
  color:var(--text);
  background:rgba(255,255,255,.04);
}
.hero-pill.primary{
  background:rgba(245,198,87,.16);
  color:var(--accent);
  border-color:rgba(245,198,87,.4);
}
.hero-pill.secondary{
  background:rgba(76,166,255,.10);
  color:var(--accent-2);
  border-color:rgba(76,166,255,.4);
  margin-left:12px;
}
.notice{
  margin-top:18px;
  color:#6ae5a4;
  font-weight:600;
  letter-spacing:1px;
}
.tabs{
  display:flex;
  gap:36px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:28px;
}
.tab{
  background:none;
  border:none;
  color:var(--muted);
  font-size:18px;
  padding:12px 6px;
  cursor:pointer;
  font-weight:500;
}
.tab.active{
  color:var(--accent);
  border-bottom:3px solid var(--accent);
}
.panel{
  display:none;
  background:var(--panel);
  border-radius:28px;
  padding:32px;
  border:1px solid var(--border);
  box-shadow:0 18px 60px rgba(4,3,12,.45);
}
.panel.active{
  display:block;
}
.label{
  display:block;
  margin:18px 0 8px;
  font-size:16px;
  letter-spacing:.5px;
  color:#e1ddf9;
}
.field{
  width:100%;
  padding:16px 18px;
  background:rgba(255,255,255,.04);
  border:none;
  border-radius:16px;
  color:var(--text);
  font-size:16px;
  margin-bottom:4px;
}
.field::placeholder{
  color:rgba(255,255,255,.45);
}
.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.short{
  max-width:160px;
}
.card-box{
  margin:22px 0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  padding:20px;
  background:rgba(255,255,255,.02);
}
.card-box h2{
  margin:0 0 14px;
  font-size:20px;
  letter-spacing:2px;
}
.btn{
  border:none;
  border-radius:16px;
  padding:14px 18px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
}
.btn.primary{
  width:100%;
  margin-top:18px;
  background:var(--accent);
  color:#111020;
}
.btn.border{
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  color:var(--text);
}
.tip{
  margin:10px 0 0;
  font-size:14px;
  color:var(--muted);
}
.preview{
  margin-top:4px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(0,0,0,0));
  line-height:1.7;
}
.preview.empty{
  color:var(--muted);
  text-align:center;
}
.history-table{
  margin-top:12px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.history-table table{
  width:100%;
  border-collapse:collapse;
}
.history-table th,.history-table td{
  padding:12px 16px;
  font-size:14px;
  color:var(--text);
}
.history-table th{
  background:rgba(255,255,255,.05);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:1px;
}
.history-table tr:nth-child(even){
  background:rgba(255,255,255,.02);
}
.placeholder{
  margin-top:28px;
  text-align:center;
  color:var(--muted);
  font-size:16px;
}
.hidden{
  display:none!important;
}
.mask{
  position:fixed;
  inset:0;
  background:rgba(3,2,12,.7);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:18px;
}
.mask-card{
  background:#120f2a;
  border-radius:24px;
  padding:28px;
  width:min(420px,100%);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.mask-card h3{
  margin:0 0 10px;
  font-size:24px;
}
.mask-card p{
  color:var(--muted);
  line-height:1.5;
  margin:0 0 20px;
}
.login-msg{
  height:20px;
  margin-top:14px;
  color:var(--danger);
}
.toast{
  position:fixed;
  bottom:18px;
  right:18px;
  padding:14px 18px;
  border-radius:12px;
  background:rgba(0,0,0,.85);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.toast.hidden{
  display:none;
}
@media (max-width:720px){
  .tabs{
    gap:18px;
  }
  .row{
    flex-direction:column;
    align-items:stretch;
  }
  .button-row{
    width:100%;
  }
}
