:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --card2:#0c1627;
  --txt:#e8eefc;
  --muted:#a9b6d6;
  --line:rgba(255,255,255,.12);
  --brand:#4da3ff;
  --ok:#19c37d;
  --err:#ff4d4d;
  --shadow:0 12px 30px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(77,163,255,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(25,195,125,.12), transparent 55%),
              var(--bg);
  color:var(--txt);
}
a{color:var(--brand); text-decoration:none}
.container{max-width:1120px; margin:0 auto; padding:14px 12px 90px}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.65);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:12px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.brand{display:flex; gap:10px; align-items:center}
.logo{
  width:40px; height:40px; border-radius:14px;
  background: linear-gradient(135deg, rgba(77,163,255,.9), rgba(25,195,125,.85));
}
.title b{display:block; font-size:14px}
.title span{display:block; font-size:12px; color:var(--muted)}
.nav{display:flex; gap:10px; flex-wrap:wrap}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%), var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px;
  margin-top:12px;
}
.cardLite{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  margin-top:12px;
}
.h1{margin:0; font-size:18px}
.h2{margin:0; font-size:15px}
.p{margin:6px 0 0; color:var(--muted); font-size:13px}
label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input, select, textarea{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--txt);
  padding:12px 12px;
  outline:none;
}
textarea{resize:vertical}
input:disabled{opacity:.55}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px;
  padding:12px 14px;
  border:1px solid rgba(77,163,255,.45);
  background: rgba(77,163,255,.18);
  color:var(--txt);
  cursor:pointer;
  font-weight:600;
  min-height:44px;
}
.btn:hover{filter:brightness(1.08)}
.btn.secondary{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.btn.ghost{
  border-color: transparent;
  background: rgba(255,255,255,.05);
}
.btn.small{min-height:34px; padding:8px 10px; font-size:12px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:900px){ .grid2{grid-template-columns:1fr} }
.row{display:flex; gap:12px; align-items:center}
.between{justify-content:space-between}
.spread{display:flex; justify-content:space-between; gap:10px}
.muted{color:var(--muted); font-size:12px}
.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size:12px; color:var(--muted);
}
.alert{border-radius:14px; padding:12px; border:1px solid var(--line); margin-top:12px}
.alert.ok{border-color: rgba(25,195,125,.4); background: rgba(25,195,125,.10)}
.alert.error{border-color: rgba(255,77,77,.5); background: rgba(255,77,77,.10)}
.sep{border:none; border-top:1px solid var(--line); margin:12px 0}
.table{width:100%; border-collapse:collapse; overflow:hidden; border-radius:14px}
.table th,.table td{border-bottom:1px solid var(--line); padding:10px; text-align:left; font-size:13px}
.table thead th{color:var(--muted); font-weight:700; background: rgba(255,255,255,.03)}
.ck{width:20px; height:20px}
.ckRow{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted)}
.commentItem{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  margin-top:10px;
  background: rgba(0,0,0,.08);
}
.mediaGrid{display:grid; grid-template-columns:repeat(4, 1fr); gap:10px}
@media(max-width:900px){ .mediaGrid{grid-template-columns:repeat(2, 1fr)} }
.mediaCard{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background: rgba(0,0,0,.08);
}
.mediaCard img{width:100%; height:120px; object-fit:cover; border-radius:12px; border:1px solid var(--line)}
.list{display:flex; flex-direction:column; gap:10px}
.listRow{
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
  border:1px solid var(--line); border-radius:14px; padding:10px;
  background: rgba(0,0,0,.08);
}
.savebar{
  position:fixed; left:0; right:0; bottom:64px; z-index:80;
  padding:10px 12px;
  display:none;
}
.savebar.show{display:block}
.savebar > .row{
  max-width:1120px; margin:0 auto;
  background: rgba(15,26,46,.92);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:12px;
}
.mobileNav{
  position:fixed; left:0; right:0; bottom:0; z-index:90;
  display:flex; justify-content:space-around;
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,18,32,.92);
  border-top:1px solid var(--line);
}
.mobileNav a{color:var(--muted); font-weight:700; font-size:12px}
.mobileNav a.active{color:var(--txt)}
.modal{
  position:fixed; inset:0; z-index:120;
  display:none; align-items:center; justify-content:center;
  padding:18px;
  background: rgba(0,0,0,.55);
}
.modal.show{display:flex}
.modalCard{
  width:min(560px, 100%);
  background: var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px;
}
.emailList{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}
.previewBox{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.03);
}
.previewFrame{
  width:100%;
  height:75vh;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.switch{display:flex; align-items:center; gap:8px; user-select:none}
.switch input{width:18px; height:18px}
.switch span{display:inline-block}
