@keyframes glowPulse {
  0% { box-shadow: 0 0 18px rgba(255,77,166,.25); }
  50% { box-shadow: 0 0 28px rgba(255,77,166,.45); }
  100% { box-shadow: 0 0 18px rgba(255,77,166,.25); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #0f0f0f;
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 18px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,15,15,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 14px;
  background: linear-gradient(135deg, #ff4da6, #ff85c1);
  animation: glowPulse 2.2s infinite;
}
.brand-title { font-weight: 800; letter-spacing: .4px; font-size: 14px; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }
.row { display: flex; gap: 12px; align-items: center; }

.card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(255,77,166,.16);
}
.btn {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff4da6, #ff85c1 60%, #ff4da6);
  font-weight: 700;
  animation: glowPulse 2.2s infinite;
}
.btn.secondary {
  animation: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-weight: 600;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 12px 14px;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(255,77,166,.55);
  box-shadow: 0 0 0 3px rgba(255,77,166,.16);
}
.textarea { min-height: 90px; resize: vertical; }
.muted { color: rgba(255,255,255,.6); }
.chip { display: inline-flex; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,77,166,.25); background: rgba(255,77,166,.1); color: #ff85c1; font-size: 12px; }

.grid { display: grid; gap: 14px; }
.grid.creators { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.creator-card { overflow: hidden; }
.creator-cover { height: 140px; background: rgba(0,0,0,.35); position: relative; }
.creator-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,15,1), rgba(15,15,15,.2), transparent); }
.creator-body { padding: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 18px; background: rgba(255,255,255,.08); display: inline-block; overflow: hidden; }

.layout-chat { height: calc(100vh - 68px); display: grid; grid-template-columns: 320px 1fr; }
.sidebar { border-right: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.22); overflow: auto; }
.sidebar-item { width: 100%; text-align: left; padding: 14px; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.sidebar-item:hover { background: rgba(255,255,255,.04); }
.sidebar-item.active { background: rgba(255,255,255,.06); }
.chat-area { display: flex; flex-direction: column; }
.chat-header { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.22); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-messages { flex: 1; overflow: auto; padding: 14px; }
.bubble { max-width: 78%; padding: 10px 12px; border-radius: 18px; font-size: 14px; }
.bubble.me { background: rgba(255,77,166,.9); box-shadow: 0 0 18px rgba(255,77,166,.25); margin-left: auto; }
.bubble.them { background: rgba(255,255,255,.08); margin-right: auto; }
.bubble-meta { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); }
.chat-input { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.28); padding: 12px; display: flex; gap: 10px; align-items: center; }
.notice { padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255,77,166,.25); background: rgba(255,77,166,.08); }

@media (max-width: 860px) {
  .layout-chat { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

