/* Chat premium fase 2 — compacto, MMORPG */

body.dsk-hub-active .chat-panel--premium {
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.92), rgba(6, 8, 14, 0.88));
  border: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.35);
}

body.dsk-hub-active .chat-panel--premium .chat-header {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.06), transparent 60%);
}

body.dsk-hub-active .chat-panel--premium .chat-header h3 {
  font-family: Cinzel, serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8dcc0;
}

body.dsk-hub-active .chat-tabs--premium {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
}

body.dsk-hub-active .chat-tabs--premium .chat-tab {
  flex: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.32rem 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(180, 188, 210, 0.85);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.dsk-hub-active .chat-tabs--premium .chat-tab:hover {
  background: rgba(212, 175, 55, 0.06);
  color: #e8e0cc;
}

body.dsk-hub-active .chat-tabs--premium .chat-tab--on {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.05));
  border-color: rgba(212, 175, 55, 0.28);
  color: #f5e6b8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dsk-hub-active .chat-channel-divider {
  display: none;
}

body.dsk-hub-active .chat-tab-unread {
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 0.95rem;
  text-align: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #c0392b, #922b21);
  color: #fff;
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.45);
}

body.dsk-hub-active .chat-tab-unread.hidden {
  display: none;
}

body.dsk-hub-active .chat-messages--premium {
  padding: 0.35rem 0.45rem;
  gap: 0.15rem;
}

body.dsk-hub-active .chat-msg--premium {
  padding: 0.42rem 0.55rem 0.48rem;
  margin-bottom: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  background: linear-gradient(
    135deg,
    rgba(18, 24, 36, 0.72) 0%,
    rgba(10, 14, 22, 0.88) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.dsk-hub-active .chat-msg--premium:hover {
  border-color: rgba(74, 222, 128, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 16px rgba(74, 222, 128, 0.1);
}

body.dsk-hub-active .chat-msg--system {
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(48, 38, 14, 0.92) 0%, rgba(24, 20, 8, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(251, 191, 36, 0.12),
    0 0 18px rgba(251, 191, 36, 0.12);
}

body.dsk-hub-active .chat-msg--system:hover {
  border-color: rgba(251, 191, 36, 0.72);
}

body.dsk-hub-active .chat-system-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fbbf24;
  font-weight: 700;
  cursor: default;
  user-select: none;
}

body.dsk-hub-active .chat-system-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.45));
}

body.dsk-hub-active .chat-role-badge--system {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

body.dsk-hub-active .chat-msg--system .chat-msg-body {
  color: #fde68a;
}

body.dsk-hub-active .chat-msg--enter {
  animation: none;
}

@keyframes chat-msg-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dsk-hub-active .chat-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.25;
  margin-bottom: 0.22rem;
}

body.dsk-hub-active .chat-frame-dot {
  display: none !important;
}

body.dsk-hub-active .chat-meta-row .chat-time {
  margin-left: auto;
  color: rgba(140, 150, 170, 0.75);
  font-size: 0.52rem;
}

body.dsk-hub-active .chat-meta-row .chat-profile-link {
  max-width: 100%;
  text-align: left;
}

body.dsk-hub-active .chat-meta-row .chat-profile-link,
body.dsk-hub-active .chat-meta-row .chat-glow--vip,
body.dsk-hub-active .chat-meta-row .chat-glow--admin {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(232, 220, 192, 0.35);
}

body.dsk-hub-active .chat-title-compact,
body.dsk-hub-active .chat-clan-compact {
  opacity: 0.92;
}

body.dsk-hub-active .chat-msg-body {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(225, 228, 235, 0.92);
  word-break: break-word;
}

body.dsk-hub-active .chat-status-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.08rem 0.35rem 0.08rem 0.22rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.52rem;
  color: rgba(170, 180, 200, 0.9);
}

body.dsk-hub-active .chat-status-compact .dsk-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  box-shadow: 0 0 6px currentColor;
}

body.dsk-hub-active .chat-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.1rem 0.42rem;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

body.dsk-hub-active .chat-role-badge--vip {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(140, 100, 20, 0.42));
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #ffe08a;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.22);
}

body.dsk-hub-active .chat-vip-gem {
  width: 0.55rem;
  height: 0.55rem;
  display: inline-block;
  background: linear-gradient(135deg, #fff6c8, #d4af37 45%, #8b6914);
  clip-path: polygon(50% 0%, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.6));
}

body.dsk-hub-active .chat-role-badge--admin {
  background: rgba(255, 77, 94, 0.15);
  border: 1px solid rgba(255, 77, 94, 0.35);
  color: #ff8a96;
}

body.dsk-hub-active .chat-role-badge--founder {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f0d890;
}

body.dsk-hub-active .chat-role-badge--rank {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}

body.dsk-hub-active .chat-clan-tag {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(180, 200, 235, 0.9);
  opacity: 0.88;
}

body.dsk-hub-active .chat-player-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.85);
  font-style: italic;
  opacity: 0.9;
}

body.dsk-hub-active .chat-profile-link {
  font-family: Cinzel, 'Segoe UI', serif;
  font-size: 0.82rem;
  font-weight: 800;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #f0e6d0;
}

body.dsk-hub-active .chat-glow--vip.chat-profile-link {
  color: #ffe9a8;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

body.dsk-hub-active .chat-profile-link:hover {
  color: #ffe9a8;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.dsk-hub-active .chat-preview-popover--rich {
  min-width: 11.5rem;
  max-width: 15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(16, 20, 32, 0.98), rgba(8, 10, 18, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  z-index: 9000;
}

body.dsk-hub-active .chat-preview-popover--rich .chat-preview-head {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

body.dsk-hub-active .chat-preview-popover--rich .chat-preview-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

body.dsk-hub-active .chat-preview-popover--rich .chat-preview-name {
  font-family: Cinzel, serif;
  font-size: 0.72rem;
  color: #f0e6c8;
}

body.dsk-hub-active .chat-preview-popover--rich .chat-preview-sub {
  font-size: 0.55rem;
  color: rgba(160, 170, 190, 0.9);
}

body.dsk-hub-active .chat-preview-popover--rich .chat-preview-bio {
  font-size: 0.58rem;
  color: rgba(200, 205, 220, 0.85);
  margin: 0.25rem 0;
  line-height: 1.35;
}

body.dsk-hub-active .chat-preview-popover--rich .chat-preview-foot {
  font-size: 0.52rem;
  color: rgba(130, 140, 160, 0.85);
  margin-top: 0.25rem;
}

body.dsk-hub-active .chat-private-peer-row {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dsk-hub-active .chat-peer-input {
  font-size: 0.65rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #e8e0cc;
  width: 100%;
}

body.dsk-hub-active .chat-input-row {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

body.dsk-hub-active .chat-input-row input {
  font-size: 0.68rem;
}

body.dsk-hub-active .chat-input-row button {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}
