@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0f0c14;
  --card: #1c1924;
  --text: #f1e7ff;
  --muted: #c5b8d9;
  --rose: #c0267a;
  --rose-soft: rgba(192, 38, 122, 0.15);
  --gold: #d4af77;
  --border: rgba(255, 255, 255, 0.1);
  --ok: #7dcea0;
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
}
a { color: var(--rose); text-decoration: none; }
a:hover { color: #ffb3d9; }

.top {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 8, 15, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}
.brand img {
  height: 42px;
  border-radius: 10px;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  display: block;
}
.brand span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.is-active { color: var(--rose); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 {
  font-family: var(--serif);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 40rem;
}

.profile-card {
  background: linear-gradient(135deg, #1c1924 0%, #241828 100%);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 640px) {
  .profile-card { grid-template-columns: 1fr; }
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: #ffb3d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  border: 2px solid rgba(192, 38, 122, 0.4);
}
.profile-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.profile-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.pill {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.pill.on {
  background: var(--rose-soft);
  color: #ffb3d9;
}
.pill.gold {
  background: rgba(212, 175, 119, 0.15);
  color: var(--gold);
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}
.stat .n {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #ffd6ec;
}
.stat .l {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}
.section h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--gold);
}
.section .sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.list {
  list-style: none;
}
.list li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  margin-bottom: 0.5rem;
  background: rgba(0,0,0,0.2);
  font-size: 0.9rem;
}
.list li .title { font-weight: 500; }
.list li .detail {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.list .actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.empty {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--text); }
.btn-danger {
  background: transparent;
  border: 1px solid rgba(196, 92, 74, 0.45);
  color: #e8a094;
}
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; }

.chat-bubble {
  border-left: 3px solid var(--rose);
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
  background: rgba(0,0,0,0.18);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.88rem;
}
.chat-bubble .when {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.chat-bubble.peer {
  border-left-color: var(--gold);
}

.foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(241,231,255,0.35);
}
