/* /assets/css/profiles.css */
:root {
  --bg: #070911;
  --card: rgba(12, 14, 22, 0.78);
  --card2: rgba(10, 12, 18, 0.88);
  --border: rgba(148, 163, 184, 0.14);
  --border2: rgba(148, 163, 184, 0.1);
  --text: rgba(248, 250, 252, 0.95);
  --muted: rgba(148, 163, 184, 0.92);

  --cyan: rgba(0, 240, 255, 0.95);
  --cyan2: rgba(0, 240, 255, 0.16);
  --purple2: rgba(168, 85, 247, 0.12);

  --r: 10px; /* squared-ish */
  --rs: 8px;
  --rx: 6px;

  --shadow: 0 14px 55px rgba(0, 0, 0, 0.45);
  --shadow2: 0 18px 80px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: radial-gradient(
      900px 700px at 18% 12%,
      rgba(0, 240, 255, 0.09),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 85% 18%,
      rgba(168, 85, 247, 0.07),
      transparent 55%
    ),
    var(--bg);
}

/* ===== Buttons / inputs ===== */
.pz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--rx);
  border: 1px solid var(--border2);
  background: rgba(15, 23, 42, 0.22);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.pz-btn--primary {
  border-color: rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.12);
}
.pz-btn--ghost {
  background: rgba(15, 23, 42, 0.16);
}
.pz-btn:hover {
  border-color: rgba(0, 240, 255, 0.25);
}

.pz-input,
.pz-textarea,
.pz-select {
  width: 100%;
  border-radius: var(--rx);
  border: 1px solid var(--border2);
  background: rgba(15, 23, 42, 0.18);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
.pz-textarea {
  resize: vertical;
}

/* ===== Topbar ===== */
.pz-topbar {
  position: sticky;
  top: 0;
  z-index: 3000;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(10px);
}
.pz-topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pz-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.pz-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.1);
  font-weight: 900;
}
.pz-brand__title {
  display: block;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.pz-brand__sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.pz-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pz-nav__link {
  color: rgba(226, 232, 240, 0.95);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--rx);
  border: 1px solid transparent;
}
.pz-nav__link:hover {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.14);
}

.pz-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Bell + dropdown */
.pz-bell {
  position: relative;
}
.pz-iconbtn {
  width: 44px;
  height: 38px;
  border-radius: var(--rx);
  border: 1px solid var(--border2);
  background: rgba(15, 23, 42, 0.2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}
.pz-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(239, 68, 68, 0.92);
  color: white;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.pz-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  max-width: calc(100vw - 22px);
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.96);
  box-shadow: var(--shadow2);
  overflow: hidden;
  display: none;
}
.pz-drop.is-open {
  display: block;
}
.pz-drop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.pz-linkbtn {
  border: none;
  background: transparent;
  color: rgba(0, 240, 255, 0.9);
  font-weight: 800;
  cursor: pointer;
}
.pz-drop__body {
  max-height: 340px;
  overflow: auto;
  padding: 10px 12px;
}
.pz-notifs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pz-notif {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.18);
}
.pz-notif.is-unread {
  border-color: rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.06);
}
.pz-notif__av {
  width: 38px;
  height: 38px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pz-notif__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pz-notif__msg {
  font-weight: 800;
  font-size: 0.92rem;
}
.pz-notif__time {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ===== Shell ===== */
.pz-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 14px 60px;
}

/* ===== Profile head ===== */
.pz-profilehead {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(10, 12, 18, 0.45);
}
.pz-cover {
  height: 180px;
  background: linear-gradient(
      90deg,
      rgba(0, 240, 255, 0.1),
      rgba(168, 85, 247, 0.1)
    ),
    radial-gradient(
      900px 300px at 25% 40%,
      rgba(0, 240, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      900px 300px at 80% 40%,
      rgba(168, 85, 247, 0.08),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.pz-profilehead__bar {
  display: flex;
  gap: 14px;
  padding: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.pz-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--r);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.2);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: -44px; /* overlap cover like FB */
}
.pz-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pz-avatar span {
  font-weight: 900;
  font-size: 1.4rem;
}

.pz-id {
  flex: 1;
  min-width: 240px;
}
.pz-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}
.pz-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pz-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pz-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--rx);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  font-weight: 800;
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.95);
}
.pz-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.pz-dot.is-online {
  background: rgba(34, 197, 94, 0.95);
}
.pz-dot.is-idle {
  background: rgba(245, 158, 11, 0.95);
}
.pz-dot.is-busy {
  background: rgba(239, 68, 68, 0.95);
}
.pz-dot.is-offline {
  background: rgba(148, 163, 184, 0.95);
}

.pz-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Tabs */
.pz-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 12, 18, 0.25);
}
.pz-tab {
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  color: rgba(226, 232, 240, 0.95);
  border-radius: var(--rx);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}
.pz-tab.is-active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.22);
}

/* ===== Grid ===== */
.pz-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 330px 1fr 330px;
  gap: 12px;
  align-items: start;
}

/* Cards */
.pz-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
}
.pz-card__title {
  font-weight: 900;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.pz-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
.pz-empty {
  color: var(--muted);
  padding: 6px 0;
}

.pz-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pz-kv li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
}
.pz-kv span {
  color: var(--muted);
  font-size: 0.86rem;
}
.pz-kv strong {
  font-weight: 900;
  font-size: 0.88rem;
}

/* Chips */
.pz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pz-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--rx);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
}
.pz-chip__icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
}
.pz-chip__name {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.95);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}
.pz-chip__x {
  width: 28px;
  height: 28px;
  border-radius: var(--rx);
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(254, 202, 202, 0.95);
  cursor: pointer;
  font-weight: 900;
}
.pz-chipform {
  margin: 0;
}
.pz-addgame {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* Panels (tabs) */
.pz-panel {
  display: none;
}
.pz-panel.is-active {
  display: block;
}

/* Post layout */
.pz-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pz-post__av {
  width: 44px;
  height: 44px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.2);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pz-post__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pz-post__who {
  flex: 1;
}
.pz-post__name {
  font-weight: 900;
}
.pz-post__time {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

.pz-post__tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pz-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.95);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}
.pz-link.is-danger {
  color: rgba(254, 202, 202, 0.95);
}
.pz-post__body {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 23, 42, 0.14);
  line-height: 1.5;
}

.pz-post__actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pz-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--rx);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  color: rgba(226, 232, 240, 0.95);
  font-weight: 900;
  cursor: pointer;
}
.pz-act--muted {
  color: rgba(203, 213, 225, 0.95);
}
.pz-react {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pz-select {
  width: auto;
}

.pz-reactions {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Comments */
.pz-comments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.pz-comment {
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  margin-bottom: 8px;
}
.pz-comment__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(226, 232, 240, 0.95);
}
.pz-comment__top span {
  color: var(--muted);
  font-size: 0.84rem;
}
.pz-comment__txt {
  margin-top: 6px;
  line-height: 1.5;
}
.pz-commentform {
  margin-top: 8px;
}

.pz-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.pz-row--end {
  justify-content: flex-end;
}

/* Lists / people */
.pz-list {
  display: grid;
  gap: 8px;
}
.pz-person {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
}
.pz-person__left {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex: 1;
}
.pz-person__av {
  width: 42px;
  height: 42px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pz-person__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pz-person__name {
  font-weight: 900;
}
.pz-person__meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}
.pz-person__right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Mini items */
.pz-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  text-decoration: none;
  color: rgba(226, 232, 240, 0.95);
}
.pz-mini__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.95);
}
.pz-mini__name {
  font-weight: 900;
}

/* Music */
.pz-music {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pz-music__art {
  width: 58px;
  height: 58px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.12),
    rgba(168, 85, 247, 0.1)
  );
}
.pz-music__t {
  font-weight: 900;
}
.pz-music__a {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}
.pz-bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  margin-top: 10px;
  overflow: hidden;
}
.pz-bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: rgba(0, 240, 255, 0.28);
}
.pz-music__time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}
.pz-music__btns {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.pz-music__btns button {
  width: 40px;
  height: 36px;
  border-radius: var(--rx);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  color: rgba(226, 232, 240, 0.95);
}
.pz-music__btns .is-main {
  border-color: rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.1);
}

/* Flash */
.pz-flash {
  padding: 10px;
  border-radius: var(--rs);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.16);
  margin-bottom: 10px;
}
.pz-flash.is-error {
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(254, 202, 202, 0.95);
}
.pz-flash.is-success {
  border-color: rgba(34, 197, 94, 0.2);
  color: rgba(187, 247, 208, 0.95);
}

/* Modal */
.pz-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.pz-modal.is-hidden {
  display: none;
}
.pz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.pz-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(70vh, 680px);
  overflow: auto;
  border-radius: var(--r);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 12, 18, 0.96);
  box-shadow: var(--shadow2);
  padding: 12px;
}
.pz-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: var(--rx);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.18);
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
}
.pz-modal__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .pz-grid {
    grid-template-columns: 1fr;
  }
  .pz-profilehead__bar {
    flex-direction: column;
  }
  .pz-cta {
    justify-content: flex-start;
  }
  .pz-nav {
    display: none;
  }
}
