:root{
  --bg0:#070816; --bg1:#0b0d22;
  --glass: rgba(255,255,255,0.08);
  --glass2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.14);
  --txt: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --purple:#7C3AED; --gold:#F59E0B;
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  background: radial-gradient(900px 500px at 80% 0%, rgba(124,58,237,0.22), transparent 60%),
              radial-gradient(700px 400px at 15% 15%, rgba(245,158,11,0.14), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--txt);
}
a{color:inherit}
.container{max-width:980px;margin:0 auto;padding:14px}
.glass{
  background: linear-gradient(180deg, var(--glass2), var(--glass));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card{border-radius:18px;padding:16px}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.grid2{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:760px){.grid2{grid-template-columns:1fr 1fr}}

.h1{margin:0 0 8px;font-size:20px;font-weight:1000}
.h2{margin:0;font-size:18px;font-weight:1000}
.h3{margin:0;font-size:15px;font-weight:1000}
.big{font-size:22px;font-weight:1100;margin-top:6px}
.muted{color:var(--muted)}
.tiny{font-size:12px;color:var(--muted)}
.sep{height:1px;background:var(--border);margin:10px 0}

.form{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.field{display:flex;flex-direction:column;gap:8px}
.field span{font-size:12px;color:var(--muted)}
input, textarea{
  border-radius:14px; border:1px solid var(--border);
  background: rgba(0,0,0,0.25);
  padding:12px; color:var(--txt);
  outline:none;
}
textarea{min-height:110px; resize:vertical}
input:focus, textarea:focus{
  border-color: rgba(124,58,237,0.55);
  box-shadow:0 0 0 3px rgba(124,58,237,0.18)
}

.btn{
  border-radius:14px; padding:12px 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--txt);
  font-weight:1000;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}
.btn.primary{
  border:none;
  background: linear-gradient(90deg, rgba(124,58,237,0.95), rgba(245,158,11,0.95));
  box-shadow: 0 14px 40px rgba(124,58,237,0.18);
}
.link{color: rgba(245,158,11,0.92); text-decoration:none}
.link:hover{text-decoration:underline}

.topbar{
  position: sticky; top: 10px; z-index: 5;
  margin: 10px auto 0; max-width:980px;
  border-radius:18px;
  padding:10px 12px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{display:flex; align-items:center; gap:10px; text-decoration:none}
.logo-img{width:38px;height:38px;border-radius:12px;object-fit:contain;border:1px solid rgba(255,255,255,0.14);background:rgba(0,0,0,0.25)}
.logo-mark{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(245,158,11,0.85));
  display:flex;align-items:center;justify-content:center;
  font-weight:1200;
}
.brand{font-weight:1200}
.sub{font-size:12px;color:var(--muted)}
.top-actions{display:flex;gap:8px}
.iconbtn{
  width:40px;height:40px;border-radius:14px;
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;
  background: rgba(255,255,255,0.06);
}

.main{max-width:980px;margin:12px auto 96px;padding:0 10px}

.bottomnav{
  position: fixed;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 980px;
  border-radius: 18px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.bn{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  text-decoration:none;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.bn:hover{ background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.22); }
.bn span{font-size:16px}
.bn small{font-size:11px;color:var(--muted)}

.pill{
  font-size:12px; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(245,158,11,0.35);
  color: rgba(245,158,11,0.95);
  background: rgba(245,158,11,0.10);
}

/* 16:9 cards for future content */
.grid-cards{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  margin-top:12px;
}
@media(min-width:760px){ .grid-cards{grid-template-columns:repeat(4, 1fr)} }
.content-card{border-radius:18px; overflow:hidden}
.thumb{
  width:100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.06);
  border-bottom:1px solid rgba(255,255,255,0.10);
}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pad{padding:12px}

/* Toast */
.toast{
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 560px;
  z-index: 999;
  border-radius: 16px;
  padding: 12px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.toast strong{font-size:13px}
.toast .msg{font-size:13px; color: rgba(255,255,255,0.86)}
.toast .x{cursor:pointer; opacity:0.85}