* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #f7f1ff;
  background:
    radial-gradient(circle at top left, rgba(255,106,0,.28), transparent 35%),
    radial-gradient(circle at top right, rgba(129,47,255,.25), transparent 35%),
    #08070d;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
h1, h2 { margin: 0; }
.badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,106,0,.16);
  color: #ffb26b;
  font-size: 12px;
}
.logout, a {
  color: #ffb26b;
  text-decoration: none;
}
.layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  padding: 28px;
}
.panel, .post-card, .login-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
label {
  display: block;
  margin: 16px 0 8px;
  color: #d9cfff;
  font-size: 14px;
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: white;
  border-radius: 16px;
  padding: 14px;
  outline: none;
}
textarea { resize: vertical; }
button, .actions a {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,.1);
  color: white;
  cursor: pointer;
  display: inline-block;
}
button:hover, .actions a:hover { background: rgba(255,255,255,.18); }
.primary {
  width: 100%;
  margin-top: 20px;
  background: linear-gradient(135deg, #ff6a00, #8a3ffc);
  font-weight: 800;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.check {
  background: rgba(255,255,255,.06);
  padding: 12px;
  border-radius: 14px;
}
.check input { width: auto; }
.hint, .empty { color: #b9afd4; }
.preview-box {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.12);
}
.preview-card video, .preview-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}
.preview-content { padding: 16px; }
.tags { color: #ffb26b; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.history {
  padding: 0 28px 32px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: white;
}
.post-head span {
  color: #aaa;
  font-size: 12px;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6a00, #8a3ffc);
  font-weight: 900;
}
.alert {
  background: rgba(255,0,60,.18);
  color: #ff9aae;
  padding: 10px;
  border-radius: 12px;
  margin: 12px 0;
}
@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .topbar { padding: 18px; }
  .history { padding: 0 16px 24px; }
  .grid-3 { grid-template-columns: 1fr; }
}