:root{
  --bg:#0b1220;
  --card:#0f172a;
  --muted:#94a3b8;
  --text:#e2e8f0;
  --accent:#22c55e;
  --border:rgba(148,163,184,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(34,197,94,.18), transparent 55%),
              radial-gradient(1200px 800px at 100% 0%, rgba(56,189,248,.12), transparent 50%),
              var(--bg);
  color:var(--text);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 16px 8px;
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.65);
  border-bottom:1px solid var(--border);
}

.brand{display:flex; align-items:center; gap:12px;}
.logo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(34,197,94,.25), rgba(56,189,248,.18));
  border:1px solid var(--border);
  font-weight:800;
}
.title{font-weight:800; letter-spacing:.2px;}
.subtitle{font-size:12px; color:var(--muted); margin-top:2px;}

.topnav{
  display:none;
  gap:8px;
  flex-wrap:wrap;
}
@media (min-width: 860px){
  .topnav{display:flex;}
}

.content{
  padding:16px;
  padding-bottom:84px; /* room for tabbar on mobile */
  max-width:1000px;
  margin:0 auto;
}

.card{
  background: rgba(15,23,42,.75);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

h1{margin:0 0 6px; font-size:24px;}
.muted{color:var(--muted); margin:0 0 14px; line-height:1.4}

.actions{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 640px){
  .actions{grid-template-columns: 1fr 1fr;}
}

.btn{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-radius:14px;
  background: rgba(2,6,23,.45);
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
}
.btn:hover{border-color: rgba(34,197,94,.35)}
.btn .label{font-weight:700}
.btn .small{font-size:12px; color:var(--muted); margin-top:3px}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(34,197,94,.35);
  color: rgba(34,197,94,.95);
  background: rgba(34,197,94,.10);
}

.note{
  margin-top:14px;
  padding:12px 12px;
  border-radius:14px;
  border:1px dashed rgba(148,163,184,.25);
  color: var(--muted);
  background: rgba(2,6,23,.28);
}

.tabbar{
  position:fixed;
  bottom:0; left:0; right:0;
  display:flex;
  justify-content:space-around;
  gap:6px;
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,18,32,.80);
  border-top:1px solid var(--border);
  backdrop-filter: blur(10px);
}
@media (min-width: 860px){
  .tabbar{display:none;}
}

.tab{
  width:20%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:10px 6px;
  border-radius:14px;
  border:1px solid transparent;
  color: var(--muted);
  text-decoration:none;
  font-size:12px;
}
.tab.active{
  color: var(--text);
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.10);
}
.dot{
  width:8px; height:8px;
  border-radius:999px;
  background: rgba(148,163,184,.35);
}
.tab.active .dot{background: rgba(34,197,94,.9);}
