/* Players — friends & direct messages (prototype) */

.pl-subnav { margin-bottom: 12px; }

.pl-friends-wrap,
.pl-messages-wrap {
  background: white;
  border-radius: var(--pr);
  border: 0.5px solid var(--pb);
  padding: 12px 14px;
  margin-bottom: 12px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
#pl-friends-list,
#pl-dm-inbox {
  min-width: 0;
  max-width: 100%;
}

.pl-social-hd {
  font-size: 10px;
  font-weight: 600;
  color: #90A4AE;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 10px 0 6px;
}
.pl-social-hd:first-child { margin-top: 0; }

.pl-social-lead {
  font-size: 11px;
  color: #607d8b;
  line-height: 1.4;
  margin: 0 0 8px;
}
.pl-social-requests-block,
.pl-social-sent-block {
  margin-bottom: 10px;
  padding: 2px 0;
  max-width: 100%;
}
.pl-social-row--request {
  background: linear-gradient(135deg, #f3f6ff 0%, #eef2ff 100%);
  margin: 0 0 6px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-bottom: none;
  box-sizing: border-box;
  max-width: 100%;
}
.pl-social-row--request:last-child { margin-bottom: 0; }
.pl-social-row--pending {
  background: #fafafa;
  margin: 0 0 6px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: none;
  box-sizing: border-box;
  max-width: 100%;
}
.pl-social-row--pending:last-child { margin-bottom: 0; }
.pl-social-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pl-social-status-pending {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #f57c00;
  padding: 2px 7px;
  border-radius: 10px;
  background: #fff3e0;
}

.pl-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--pb);
  font-size: 12px;
  color: var(--ps);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.pl-social-row > span:first-child {
  flex: 1;
  min-width: 0;
}
.pl-social-row .btn {
  flex-shrink: 0;
}
.pl-social-row:last-child { border-bottom: none; }
.pl-social-name {
  display: block;
  font-weight: 600;
  color: var(--pn);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-social-note {
  margin-top: 3px;
  font-size: 10px;
  color: #78909C;
  line-height: 1.35;
}

.pl-invite-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1400;
}
.pl-invite-overlay.open { display: block; }

.pl-invite-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  background: #fff;
  border-radius: var(--pr);
  border: 0.5px solid var(--pb);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 1401;
  flex-direction: column;
  overflow: hidden;
}
.pl-invite-modal.open { display: flex; }

.pl-invite-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--pb);
}

.pl-invite-hint {
  font-size: 11px;
  color: #607D8B;
  margin: 0;
  padding: 10px 16px;
  line-height: 1.45;
}

.pl-invite-list {
  overflow-y: auto;
  padding: 0 12px 14px;
}

.pl-invite-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 0.5px solid var(--pb);
  border-radius: 8px;
  background: #F7F9F7;
  cursor: pointer;
  font-family: inherit;
}
.pl-invite-row:hover:not(:disabled) {
  border-color: var(--pg);
  background: #E8F5E9;
}
.pl-invite-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pl-invite-row-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ps);
}

.pl-invite-row-meta {
  font-size: 10px;
  color: #90A4AE;
}

.pl-invite-empty {
  font-size: 12px;
  color: #90A4AE;
  padding: 12px 4px;
  margin: 0;
}

/* Invite hub (Players topbar) */
.pl-invite-hub-modal {
  width: min(520px, calc(100vw - 24px));
  max-height: min(88vh, 720px);
}
.pl-invite-hub-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 0 14px 10px;
}
.pl-invite-hub-section {
  margin-bottom: 14px;
}
.pl-invite-hub-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pl-invite-hub-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pn);
}
.pl-invite-hub-tools {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pl-invite-hub-tools .btn {
  padding: 4px 8px;
  font-size: 10px;
}
.pl-invite-hub-players {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
  border: 0.5px solid var(--pb);
  border-radius: 8px;
  padding: 6px;
  background: #f8fafc;
}
.pl-invite-hub-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.pl-invite-hub-player:hover {
  background: #eef2ff;
}
.pl-invite-hub-player.hidden {
  display: none;
}
.pl-invite-hub-player input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--pg);
}
.pl-invite-hub-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pl-invite-hub-player-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pl-invite-hub-player-name {
  font-weight: 600;
  color: var(--ps);
}
.pl-invite-hub-player-meta {
  font-size: 10px;
  color: #64748B;
}
.pl-invite-hub-dest {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}
.pl-invite-hub-dest-btn {
  flex: 1;
  padding: 8px 10px;
  border: 0.5px solid var(--pb);
  border-radius: 8px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.pl-invite-hub-dest-btn.on {
  background: var(--pgl);
  border-color: var(--pg);
  color: var(--pn);
}
.pl-invite-hub-dest-hint {
  font-size: 11px;
  line-height: 1.45;
  color: #475569;
  margin: 0 0 8px;
}
.pl-invite-hub-targets {
  max-height: 180px;
}
.pl-invite-row.pl-invite-hub-target.on {
  border-color: var(--pg);
  background: var(--pgl);
  box-shadow: inset 0 0 0 1px var(--pg);
}
.pl-invite-hub-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 0.5px solid var(--pb);
  flex-shrink: 0;
}

.pl-dm-inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--pb);
  cursor: pointer;
}
.pl-dm-inbox-av {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  overflow: hidden;
}
.pl-dm-inbox-row-main {
  flex: 1;
  min-width: 0;
}
.pl-dm-inbox-row--unread {
  background: #f3f6ff;
  margin: 0 0 6px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(30, 58, 138, 0.08);
  border-bottom-color: transparent;
  box-sizing: border-box;
  max-width: 100%;
}
.pl-dm-inbox-row--unread + .pl-dm-inbox-row {
  border-top: none;
}
.pl-dm-inbox-row:hover {
  background: #f7f9f7;
  margin: 0 0 6px;
  padding: 10px 10px;
  border-radius: 8px;
  box-sizing: border-box;
}
.pl-dm-inbox-row--unread:hover { background: #e8eeff; }
.pl-dm-inbox-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.pl-dm-inbox-row--unread .pl-dm-inbox-name {
  color: var(--pn);
}
.pl-dm-inbox-row--unread .pl-dm-inbox-preview {
  color: #37474f;
  font-weight: 600;
}
.pl-dm-inbox-hd {
  font-size: 12px;
  color: #607D8B;
  line-height: 1.45;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--pb);
}
.pl-dm-inbox-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pl-dm-inbox-row-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pl-dm-inbox-unread-lbl {
  color: #c62828;
}
.pl-dm-inbox-name { font-size: 13px; font-weight: 600; color: var(--pn); }
.pl-dm-inbox-dir {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pl-dm-inbox-dir-out { background: #E3F2FD; color: #1565C0; }
.pl-dm-inbox-dir-in { background: #E8F5E9; color: #2E7D32; }
.pl-dm-inbox-preview { font-size: 12px; color: #546E7A; margin-top: 4px; line-height: 1.35; }
.pl-dm-inbox-counts {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #90A4AE;
}

.dm-empty {
  font-size: 12px;
  color: #90A4AE;
  text-align: center;
  padding: 16px 8px;
  line-height: 1.5;
}

#pl-dm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal-stack-overlay);
  opacity: 0;
  transition: opacity 0.24s ease;
}
#pl-dm-overlay.open {
  display: block;
  opacity: 1;
}

#pl-dm-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  z-index: var(--z-modal-stack-panel);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    -8px 0 32px rgba(30, 58, 138, 0.1),
    -2px 0 8px rgba(0, 0, 0, 0.04);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
#pl-dm-panel.open { transform: translateX(0); }

.pl-dm-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 14px 10px;
  background: linear-gradient(155deg, #eef4ff 0%, #fff 58%);
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
  flex-shrink: 0;
}
.pl-dm-back,
.pl-dm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #607d8b;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pl-dm-back:hover,
.pl-dm-close:hover {
  background: #fff;
  color: var(--pn);
}
.pl-dm-back:active,
.pl-dm-close:active { transform: scale(0.96); }
.pl-dm-back { font-size: 18px; }
.pl-dm-close { font-size: 17px; }

.pl-dm-peer {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}
.pl-dm-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.18);
  overflow: hidden;
}
.pl-dm-avatar.user-av {
  font-size: 0;
  font-weight: normal;
  color: transparent;
  padding: 0;
}
.pl-dm-peer-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.pl-dm-peer-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--pn);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-dm-peer-status {
  font-size: 11px;
  font-weight: 600;
  color: #78909c;
  letter-spacing: 0.15px;
}

.pl-dm-feed,
#pl-dm-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 14px 12px;
  background:
    radial-gradient(circle at 20% 12%, rgba(76, 175, 80, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(30, 58, 138, 0.05) 0%, transparent 38%),
    linear-gradient(180deg, #f4f7fb 0%, #fafbfd 100%);
  scroll-behavior: smooth;
}

.pl-dm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(280px, 45vh);
  padding: 24px 20px;
}
.pl-dm-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #e8f5e9 0%, #fff 100%);
  color: var(--pg);
  font-size: 26px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.12);
}
.pl-dm-empty-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--pn);
  margin: 0 0 6px;
}
.pl-dm-empty-sub {
  font-size: 13px;
  font-weight: 500;
  color: #78909c;
  line-height: 1.5;
  margin: 0;
  max-width: 260px;
}
.pl-dm-empty-sub strong {
  color: #455a64;
  font-weight: 700;
}

.dm-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  animation: dm-row-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dm-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dm-row--own {
  justify-content: flex-end;
}
.dm-row--peer { justify-content: flex-start; }

.dm-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 2px;
  overflow: hidden;
}
.dm-avatar.user-av {
  font-size: 0;
  font-weight: normal;
  color: transparent;
  padding: 0;
}

.dm-bubble {
  max-width: min(78%, 300px);
  padding: 10px 13px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.07);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.06);
}
.dm-bubble.own {
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(145deg, #66bb6a 0%, var(--pg) 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.28);
}
.dm-sender {
  font-size: 10px;
  font-weight: 700;
  color: var(--pn);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.dm-text {
  font-size: 13px;
  font-weight: 500;
  color: #37474f;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.dm-bubble.own .dm-text { color: #fff; }
.dm-time {
  font-size: 10px;
  font-weight: 600;
  color: #90a4ae;
  margin-top: 5px;
  text-align: right;
}
.dm-bubble.own .dm-time {
  color: rgba(255, 255, 255, 0.78);
}

.pl-dm-compose {
  flex-shrink: 0;
  padding: 12px 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 40%);
  border-top: 1px solid rgba(30, 58, 138, 0.07);
}
.pl-dm-compose-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(30, 58, 138, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pl-dm-compose-inner:focus-within {
  border-color: rgba(76, 175, 80, 0.45);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
  background: #fff;
}
.pl-dm-compose input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: var(--ps);
}
.pl-dm-compose input::placeholder { color: #90a4ae; }
.pl-dm-compose input:focus { outline: none; }

.pl-dm-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #66bb6a 0%, var(--pg) 100%);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pl-dm-send:hover {
  background: linear-gradient(145deg, #57a85c 0%, var(--pgd) 100%);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}
.pl-dm-send:active { transform: scale(0.94); }

@media (max-width: 520px) {
  #pl-dm-panel {
    width: 100vw;
    border-radius: 0;
  }
  .pl-dm-feed,
  #pl-dm-feed { padding: 14px 12px 10px; }
  .dm-bubble { max-width: 84%; }
}

.panel-actions.pl-panel-actions-3 {
  flex-wrap: wrap;
}
.panel-actions.pl-panel-actions-3 .btn,
.panel-actions.pl-panel-actions-4 .btn {
  flex: 1 1 30%;
  min-width: 90px;
}

.pc-blocked-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  font-size: 10px;
  color: #90A4AE;
  padding: 6px 0;
}

.pl-suggestions-wrap {
  background: linear-gradient(135deg, #E8EAF6 0%, #fff 100%);
  border: 0.5px solid #C5CAE9;
  border-radius: var(--pr);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.pl-suggest-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3949AB;
}
.pl-suggest-hd i { margin-right: 4px; }
.pl-suggest-sub { font-size: 10px; font-weight: 400; color: #90A4AE; }
.pl-suggest-list { display: flex; flex-direction: column; gap: 8px; }
.pl-suggest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border-radius: 8px;
  border: 0.5px solid var(--pb);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
  min-width: 0;
}
.pl-suggest-card:hover {
  border-color: #A5D6A7;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.pl-suggest-card:focus-visible {
  outline: 2px solid var(--pg);
  outline-offset: 2px;
}
.pl-suggest-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.pl-suggest-av.user-av {
  font-size: 0;
  font-weight: normal;
  color: transparent;
  padding: 0;
}
.pl-suggest-body { flex: 1; min-width: 0; }
.pl-suggest-name { font-size: 12px; font-weight: 600; color: var(--pn); }
.pl-suggest-meta { font-size: 10px; color: #90A4AE; }
.pl-suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  max-width: 100%;
}
.pl-suggest-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E8EAF6;
  color: #3949AB;
  font-weight: 600;
  max-width: 100%;
}
.pl-suggest-acts { display: flex; gap: 4px; flex-shrink: 0; }

/* Friend request intro — anchored popover */
.pl-friend-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-stack-overlay);
  background: rgba(15, 23, 42, 0.28);
  padding: 0;
}
.pl-friend-intro-overlay.open {
  display: block;
}
.pl-friend-intro-overlay[hidden] {
  display: none !important;
}
.pl-friend-intro-pop {
  position: fixed;
  left: 0;
  top: 0;
  width: min(340px, calc(100vw - 24px));
  padding: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow:
    0 4px 8px rgba(30, 58, 138, 0.06),
    0 18px 44px rgba(30, 58, 138, 0.18);
  overflow: hidden;
  animation: pl-friend-intro-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.pl-friend-intro-pop--centered {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}
.pl-friend-intro-pop--above::after {
  top: auto;
  bottom: -7px;
  border: 1px solid rgba(30, 58, 138, 0.12);
  border-left: none;
  border-top: none;
}
.pl-friend-intro-pop::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.12);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
  top: -7px;
  left: 50%;
  margin-left: -6px;
}
.pl-friend-intro-pop--centered::after {
  display: none;
}
@keyframes pl-friend-intro-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pl-friend-intro-pop--centered {
  animation-name: pl-friend-intro-in-centered;
}
@keyframes pl-friend-intro-in-centered {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.pl-friend-intro-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 10px;
  background: linear-gradient(145deg, #e8f0fe 0%, #fff 70%);
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
}
.pl-friend-intro-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--pn) 0%, #2a4fad 100%);
  color: #fff;
  flex-shrink: 0;
  font-size: 18px;
}
.pl-friend-intro-titles {
  flex: 1;
  min-width: 0;
}
.pl-friend-intro-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pn);
  line-height: 1.25;
}
.pl-friend-intro-sub {
  font-size: 12px;
  font-weight: 600;
  color: #607d8b;
  margin-top: 2px;
}
.pl-friend-intro-sub strong {
  color: #37474f;
  font-weight: 700;
}
.pl-friend-intro-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #78909c;
  cursor: pointer;
  flex-shrink: 0;
}
.pl-friend-intro-close:hover {
  color: var(--pn);
  background: #fff;
}
.pl-friend-intro-hint {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 12px;
  font-weight: 500;
  color: #607d8b;
  line-height: 1.45;
}
.pl-friend-intro-lbl {
  display: block;
  margin: 10px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: #78909c;
}
.pl-friend-intro-input {
  margin: 0 14px;
  width: calc(100% - 28px);
  min-height: 72px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 10px;
}
.pl-friend-intro-ft {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  margin-top: 10px;
}
.pl-friend-intro-ft .btn {
  min-height: 38px;
  font-size: 12px;
  font-weight: 700;
}

.pl-safety-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: var(--z-modal-stack-overlay);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pl-safety-overlay.open { display: flex; }
.pl-safety-modal {
  background: white;
  border-radius: var(--pr);
  width: 100%;
  max-width: 380px;
  padding: 16px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.pl-safety-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pl-safety-hint { font-size: 12px; color: #607D8B; margin: 0 0 12px; }

.notif-prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: #F7F9F7;
  border-radius: 8px;
}
.notif-pref-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #90A4AE;
  width: 100%;
}
.notif-log-list {
  max-height: 240px;
  overflow-y: auto;
}
.notif-log-row {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--pb);
}
.notif-log-row:last-child { border-bottom: none; }
.notif-log-main { font-size: 12px; color: var(--ps); line-height: 1.4; }
.notif-log-meta { font-size: 10px; color: #90A4AE; margin-top: 3px; }
.pl-notif-modal { max-width: 420px; }
