:root {
  --bg: #081018;
  --panel: #101b28;
  --line: rgba(255,255,255,0.08);
  --text: #eef8ff;
  --muted: #97b3c9;
  --accent: #1ec8a5;
  --accent-2: #2f9dff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top left, #133347, var(--bg) 45%);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar {
  padding: 24px; border-right: 1px solid var(--line);
  background: rgba(4, 13, 20, 0.8); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand h1 { margin: 0; font-size: 20px; }
.brand p { margin: 4px 0 0; color: var(--muted); }
.brand-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800;
}
nav { display: grid; gap: 10px; }
.nav-btn, button, .ghost { border: 0; border-radius: 16px; cursor: pointer; }
.nav-btn { padding: 14px 16px; text-align: left; background: transparent; color: var(--text); }
.nav-btn.active, .nav-btn:hover { background: rgba(255,255,255,0.07); }
.content { padding: 28px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 26px; padding: 22px;
}
.auth-card { max-width: 520px; margin: 50px auto; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.topbar h2, .section-head h2, .section-head h3 { margin: 0; }
.topbar p, .section-head p { color: var(--muted); margin: 6px 0 0; }
.grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.stat-card strong { display: block; font-size: 32px; margin-top: 10px; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
button {
  padding: 14px 18px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.ghost { background: rgba(255,255,255,0.08); color: var(--text); padding: 12px 16px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.badge.published { color: #7ef0cb; background: rgba(30,200,165,0.16); }
.badge.pending, .badge.draft { color: #8fd0ff; background: rgba(47,157,255,0.16); }
.badge.rejected { color: #ffb3b3; background: rgba(255,99,99,0.16); }
.preview-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 12px; }
.preview-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 16px; }
.message { color: var(--muted); min-height: 24px; }
.hidden { display: none !important; }
.mini-tools { margin-top: 18px; display: grid; gap: 16px; }
.register-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.subscription-card { margin-bottom: 18px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; }
.plan-card {
  padding: 18px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.03); display: grid; gap: 10px;
}
.plan-card strong { font-size: 18px; }
.plan-card small, .plan-card p { color: var(--muted); margin: 0; }
.locked {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.1);
}
@media (max-width: 1024px) {
  .shell, .stats-grid, .two-col { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}
