/* =========================================================
   FEATHER RUSH: SOCIAL, FRIENDLIST, CHAT & MULTIPLAYER (HANDCRAFTED ARCADE THEME)
   ========================================================= */

.social-modal {
  width: min(540px, 94vw) !important;
  max-height: min(340px, 94vh) !important;
  background: linear-gradient(180deg, #142442 0%, #0c172c 100%) !important;
  border: 2px solid #254a78 !important;
  border-radius: 18px !important;
  padding: 10px 14px 8px !important;
  color: #f1f5f9 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), inset 0 1.5px 0 rgba(255, 255, 255, 0.15) !important;
  overflow: hidden !important;
}

.social-modal.hidden {
  display: none !important;
}

.social-modal:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
}

.social-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1.5px solid rgba(37, 74, 120, 0.7);
  padding-bottom: 6px;
}

.social-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-title-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1px solid #7dd3fc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.social-title {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Tabs */
.social-tabs {
  display: flex;
  background: #091427;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 6px;
  border: 1.5px solid #1c355a;
}

.social-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
}

.social-tab-btn.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 0 #075985;
}

.social-tab-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Tab Panels */
.social-tab-panel {
  display: none;
  max-height: 205px !important;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.social-tab-panel.active {
  display: block;
}

/* Custom Scrollbar */
.social-tab-panel::-webkit-scrollbar,
.chat-messages-container::-webkit-scrollbar,
.profile-scrollable-content::-webkit-scrollbar {
  width: 5px;
}
.social-tab-panel::-webkit-scrollbar-thumb,
.chat-messages-container::-webkit-scrollbar-thumb,
.profile-scrollable-content::-webkit-scrollbar-thumb {
  background: #254a78;
  border-radius: 4px;
}

/* Search Bar */
.social-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.social-search-input {
  flex: 1;
  background: #091427;
  border: 1.5px solid #204470;
  border-radius: 10px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
}

.social-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.social-search-btn {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 3px 0 #075985;
  color: #fff;
  font-weight: 900;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s;
}

.social-search-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #075985;
}

/* Friend / Player Card */
.social-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #182c4e 0%, #12213d 100%);
  border: 1.5px solid #254b7a;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  transition: all 0.18s ease;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-player-card:hover {
  border-color: #38bdf8;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.2);
}

.social-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.social-player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #091427;
  border: 2px solid #38bdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.social-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #142442;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}
.social-status-dot.offline {
  background: #64748b;
  box-shadow: none;
}

.social-player-meta {
  flex: 1;
  min-width: 0;
}

.social-player-name {
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-player-tier {
  font-size: 0.76rem;
  color: #facc15;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.social-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

.social-action-btn {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 2px 0 #075985;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-action-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.social-action-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #075985;
}

.social-action-btn.danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  border-color: #f87171;
  box-shadow: 0 2px 0 #991b1b;
  color: #ffffff;
}

.social-action-btn.success {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-color: #4ade80;
  box-shadow: 0 2px 0 #166534;
  color: #ffffff;
}

.social-empty-state {
  text-align: center;
  padding: 32px 12px;
  color: #94a3b8;
  font-size: 0.88rem;
}
.social-empty-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

/* =========================================================
   FRIEND DETAILED PROFILE MODAL & SHOWCASE (HANDCRAFTED ARCADE)
   ========================================================= */
.friend-profile-modal {
  width: min(560px, 94vw) !important;
  max-width: 560px !important;
  background: linear-gradient(180deg, #142442 0%, #0c172c 100%) !important;
  border: 2px solid #254a78 !important;
  border-radius: 18px !important;
  padding: 10px 14px 8px !important;
  color: #f1f5f9 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), inset 0 1.5px 0 rgba(255, 255, 255, 0.15) !important;
  max-height: min(340px, 94vh) !important;
  overflow: hidden !important;
}

.friend-profile-modal.hidden {
  display: none !important;
}

.friend-profile-modal:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
}

.profile-tabs {
  display: flex;
  background: #091427;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 6px;
  border: 1.5px solid #1c355a;
  flex-shrink: 0;
}

.profile-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 5px 6px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
}

.profile-tab-btn.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 0 #075985;
}

.profile-tab-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.profile-tab-panel.hidden {
  display: none !important;
}

.profile-scrollable-content {
  overflow-y: auto;
  padding-right: 2px;
  max-height: 255px !important;
  scrollbar-width: thin;
}

.friend-profile-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #182c4e 0%, #12213d 100%);
  border: 1.5px solid #254b7a;
  border-radius: 12px;
  padding: 6px 12px;
  margin: 0 auto 6px;
  max-width: 420px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.friend-showcase-box {
  position: relative;
  width: 240px !important;
  height: 80px !important;
  margin: 0 auto 6px !important;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2563eb;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  background: radial-gradient(circle at 50% 30%, #173663 0%, #0b1c36 100%);
  flex-shrink: 0;
}

.friend-showcase-canvas {
  width: 240px !important;
  height: 80px !important;
  display: block;
}

.friend-showcase-tag {
  position: absolute;
  bottom: 5px;
  left: 8px;
  background: rgba(11, 28, 54, 0.9);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.friend-profile-avatar-box {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  border: 2px solid #7dd3fc;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.friend-profile-avatar-box:hover {
  transform: scale(1.06);
}

.friend-profile-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.friend-profile-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.friend-profile-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
  border: 1px solid #facc15;
  color: #fef08a;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Stats 2x2 Grid */
.friend-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.friend-stat-box {
  background: #11203b;
  border: 1.5px solid #1e385f;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.friend-stat-box:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.friend-stat-label {
  font-size: 0.68rem;
  color: #93c5fd;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.friend-stat-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.friend-stat-val.gold {
  color: #facc15;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

.friend-stat-val.green {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* Equipped & Inventory Showcase */
.friend-section-title {
  font-size: 0.74rem;
  font-weight: 900;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Equipped Items 2x2 Grid */
.friend-equipped-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.friend-item-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #11203b;
  border: 1.5px solid #1e385f;
  border-radius: 9px;
  padding: 6px 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
}

.friend-item-pill:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.friend-item-pill-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.friend-item-pill-info {
  min-width: 0;
  text-align: left;
}

.friend-item-pill-title {
  font-size: 0.62rem;
  color: #93c5fd;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.friend-item-pill-val {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Inventory Counts 4-Column Grid */
.friend-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.friend-inv-stat {
  background: #11203b;
  border: 1.5px solid #1e385f;
  border-radius: 9px;
  padding: 6px 4px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
}

.friend-inv-stat:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.friend-inv-num {
  font-size: 0.92rem;
  font-weight: 900;
  color: #38bdf8;
}

.friend-inv-label {
  font-size: 0.62rem;
  color: #93c5fd;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Profile Action Bar */
.friend-profile-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  border-top: 1px solid rgba(37, 74, 120, 0.7);
  padding-top: 6px;
}

.gp-buttons {
  display: flex !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

.gp-buttons button,
.friend-profile-actions button {
  min-height: 32px !important;
  font-size: 11px !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  flex: 1 !important;
}

/* =========================================================
   DIRECT CHAT MODAL & CUTE BIRD EMOTES
   ========================================================= */
.direct-chat-modal {
  width: min(500px, 94vw) !important;
  max-width: 500px !important;
  height: min(340px, 94vh) !important;
  max-height: min(340px, 94vh) !important;
  background: linear-gradient(180deg, #142442 0%, #0c172c 100%) !important;
  border: 2px solid #254a78 !important;
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7) !important;
}

.direct-chat-modal.hidden {
  display: none !important;
}

.direct-chat-modal:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
}

.direct-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #182c4e;
  border-bottom: 1.5px solid #254b7a;
}

.chat-partner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-partner-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-partner-name {
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffffff;
}

.chat-messages-container {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0c172c;
}

.chat-msg-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg-bubble.incoming {
  align-self: flex-start;
  background: #182c4e;
  border: 1px solid #254b7a;
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
}

.chat-msg-bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-msg-time {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 2px;
  text-align: right;
}

/* Cute Bird Emotes Bar */
.chat-bird-emotes-bar {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: #142442;
  border-top: 1.5px solid #254a78;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bird-emote-btn {
  width: 40px;
  height: 40px;
  background: #091427;
  border: 1.5px solid #204470;
  border-radius: 10px;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s;
}

.bird-emote-btn:hover {
  transform: scale(1.12) translateY(-2px);
  border-color: #38bdf8;
  background: #182c4e;
}

.bird-sticker-img {
  width: 46px;
  height: 46px;
  display: block;
  animation: bounceInEmote 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceInEmote {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.chat-input-bar {
  display: flex;
  padding: 8px 10px;
  background: #142442;
  border-top: 1.5px solid #254a78;
  gap: 6px;
}

.chat-input {
  flex: 1;
  background: #091427;
  border: 1.5px solid #204470;
  border-radius: 10px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
}

.chat-input:focus {
  border-color: #38bdf8;
}

.chat-send-btn {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 2px 0 #075985;
  color: #fff;
  font-weight: 800;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* =========================================================
   PREMIUM MULTIPLAYER INVITE TOAST / POPUP
   ========================================================= */
.social-invite-toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  width: 92%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.social-invite-toast {
  pointer-events: auto;
  background: linear-gradient(180deg, #182c4e 0%, #12213d 100%);
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.35);
  animation: slideDownToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes slideDownToast {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.invite-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite-toast-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0284c7;
  border: 1.5px solid #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-toast-title {
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffffff;
}

.invite-toast-room-pill {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
}

.invite-toast-msg {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.invite-toast-msg b {
  color: #38bdf8;
}

.invite-toast-actions {
  display: flex;
  gap: 8px;
}

.invite-btn-accept {
  flex: 1;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border: 1.5px solid #4ade80;
  box-shadow: 0 3px 0 #166534;
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: transform 0.15s;
}

.invite-btn-accept:hover {
  filter: brightness(1.1);
}
.invite-btn-accept:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #166534;
}

.invite-btn-decline {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border: 1.5px solid #475569;
  box-shadow: 0 3px 0 #0f172a;
  color: #cbd5e1;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Social Notification Pill Button */
.btn-social-lobby {
  position: relative;
}

.social-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 9999px;
  border: 2px solid #142442;
  animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Chunky Close Button */
/* Clean Subtle Close Button (Inside header) */
.profile-modal-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
}

.profile-modal-heading {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.profile-modal-icon {
  font-size: 14px !important;
}

.profile-modal-title {
  font: 900 11px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #f1f5f9 !important;
  letter-spacing: 0.5px !important;
}

.profile-modal-close-btn {
  width: 22px !important;
  height: 22px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  color: #cbd5e1 !important;
  font: 900 14px/1 Arial, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.profile-modal-close-btn:hover {
  background: #ef4444 !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

.friend-profile-modal .close {
  display: none !important;
}

.profile-top-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 4px;
}

.profile-top-row .friend-profile-hero {
  flex: 1.1;
  margin: 0;
  min-width: 0;
  padding: 6px 8px;
  max-width: none;
}

.profile-top-row .friend-showcase-box {
  flex: 0.9;
  margin: 0;
  min-width: 0;
  width: auto !important;
  height: 85px !important;
}

.profile-top-row .friend-showcase-canvas {
  width: 100% !important;
  height: 85px !important;
}

/* =========================================================
   MLBB LOBBY CHAT BAR & UNIFIED MODAL (GLOBAL & TEMAN)
   ========================================================= */

/* Bottom-left chat pill with live message preview */
.mlbb-chat-pill {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 260px !important;
  background: linear-gradient(180deg, rgba(20, 36, 66, 0.95) 0%, rgba(12, 23, 44, 0.95) 100%) !important;
  border: 1.5px solid #254a78 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  border-radius: 10px !important;
  padding: 5px 10px !important;
  cursor: pointer !important;
  transition: all 0.18s !important;
}

.mlbb-chat-pill:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-1px) !important;
}

.mlbb-chat-divider {
  width: 1px !important;
  height: 14px !important;
  background: #334155 !important;
  margin: 0 2px !important;
}

.mlbb-chat-snippet {
  font: 700 8.5px/1.2 'Trebuchet MS', Arial, sans-serif !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 160px !important;
}

.mlbb-chat-snippet .mlbb-chat-ch {
  color: #facc15 !important;
  font-weight: 900 !important;
  margin-right: 2px !important;
}

/* UNIFIED MLBB CHAT MODAL */
.mlbb-chat-modal {
  width: min(540px, 95vw) !important;
  max-width: 540px !important;
  height: min(320px, 94vh) !important;
  max-height: min(320px, 94vh) !important;
  background: linear-gradient(180deg, #142442 0%, #0c172c 100%) !important;
  border: 2px solid #254a78 !important;
  border-radius: 16px !important;
  padding: 8px 12px 6px !important;
  color: #f1f5f9 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), inset 0 1.5px 0 rgba(255, 255, 255, 0.15) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.mlbb-chat-modal.hidden {
  display: none !important;
}

.mlbb-cm-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 5px !important;
  border-bottom: 1.5px solid rgba(37, 74, 120, 0.7) !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
}

.mlbb-cm-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.mlbb-cm-icon {
  width: 24px !important;
  height: 24px !important;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
  border: 1px solid #7dd3fc !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.mlbb-cm-titles h2 {
  font: 900 11px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 0.3px !important;
}

.mlbb-cm-subtitle {
  font: 700 7px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
  display: block !important;
}

.mlbb-cm-tabs {
  display: flex !important;
  gap: 4px !important;
  background: #091427 !important;
  border: 1.5px solid #1c355a !important;
  border-radius: 8px !important;
  padding: 2px !important;
}

.mlbb-cm-tab {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font: 900 8.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.mlbb-cm-tab.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 1.5px 0 #075985 !important;
}

.mlbb-cm-body {
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  margin-top: 4px !important;
  overflow: hidden !important;
}

.mlbb-cm-body.hidden {
  display: none !important;
}

.mlbb-cm-messages {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 4px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: rgba(9, 20, 39, 0.7) !important;
  border: 1px solid #1c355a !important;
  border-radius: 8px !important;
}

/* Global Message Row */
.mlbb-gm-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  animation: fadeInMsg 0.2s ease !important;
}

.mlbb-gm-avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 1.5px solid #38bdf8 !important;
  background: #091427 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.mlbb-gm-avatar img, .mlbb-gm-avatar svg {
  width: 100% !important;
  height: 100% !important;
}

.mlbb-gm-content {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.mlbb-gm-meta {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-bottom: 2px !important;
}

.mlbb-gm-name {
  font: 900 8.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #38bdf8 !important;
  cursor: pointer !important;
}

.mlbb-gm-name:hover {
  text-decoration: underline !important;
}

.mlbb-gm-tier {
  font: 900 6.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  padding: 1px 3px !important;
  border-radius: 3px !important;
  background: rgba(250, 204, 21, 0.2) !important;
  color: #facc15 !important;
}

.mlbb-gm-time {
  font: 700 6.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #64748b !important;
  margin-left: auto !important;
}

.mlbb-gm-bubble {
  background: #182c4e !important;
  border: 1px solid #254b7a !important;
  border-radius: 0 8px 8px 8px !important;
  padding: 4px 8px !important;
  font: 600 8.5px/1.3 'Trebuchet MS', Arial, sans-serif !important;
  color: #f1f5f9 !important;
  word-break: break-word !important;
  display: inline-block !important;
  max-width: 90% !important;
}

.mlbb-gm-row.is-me .mlbb-gm-bubble {
  background: #0369a1 !important;
  border-color: #38bdf8 !important;
  border-radius: 8px 0 8px 8px !important;
}

.mlbb-gm-row.is-me {
  flex-direction: row-reverse !important;
}

.mlbb-gm-row.is-me .mlbb-gm-meta {
  flex-direction: row-reverse !important;
}

/* FRIENDS SPLIT PANE */
.mlbb-cm-friends-sidebar {
  width: 140px !important;
  border-right: 1.5px solid #1c355a !important;
  display: flex !important;
  flex-direction: column !important;
  margin-right: 4px !important;
  background: #0a1529 !important;
  border-radius: 8px 0 0 8px !important;
  overflow: hidden !important;
}

.mlbb-cm-sidebar-title {
  font: 900 7.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #94a3b8 !important;
  padding: 4px 6px !important;
  background: #0f1f3a !important;
  border-bottom: 1px solid #1c355a !important;
}

.mlbb-cm-friends-list {
  flex: 1 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.mlbb-cm-friend-item {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 6px !important;
  cursor: pointer !important;
  border-bottom: 1px solid rgba(28, 53, 90, 0.5) !important;
  transition: background 0.15s !important;
}

.mlbb-cm-friend-item:hover, .mlbb-cm-friend-item.active {
  background: #182c4e !important;
}

.mlbb-cm-friend-item-name {
  font: 800 8px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #f1f5f9 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mlbb-cm-friend-chat-pane {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.mlbb-cm-friend-target-bar {
  font: 900 8.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #38bdf8 !important;
  padding: 3px 6px !important;
  background: #0d1a33 !important;
  border: 1px solid #1c355a !important;
  border-radius: 6px 6px 0 0 !important;
}

/* PRESETS BAR */
.mlbb-cm-presets-bar {
  display: flex !important;
  gap: 4px !important;
  overflow-x: auto !important;
  padding: 3px 0 !important;
  flex-shrink: 0 !important;
}

.mlbb-preset-chip {
  background: #091427 !important;
  border: 1px solid #204470 !important;
  color: #94a3b8 !important;
  font: 800 7.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  padding: 3px 7px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s !important;
}

.mlbb-preset-chip:hover {
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  background: #142442 !important;
}

/* INPUT BAR */
.mlbb-cm-input-bar {
  display: flex !important;
  gap: 5px !important;
  padding-top: 4px !important;
  flex-shrink: 0 !important;
}

.mlbb-cm-input {
  flex: 1 !important;
  background: #091427 !important;
  border: 1.5px solid #204470 !important;
  border-radius: 8px !important;
  padding: 5px 8px !important;
  color: #ffffff !important;
  font: 600 8.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  outline: none !important;
}

.mlbb-cm-input:focus {
  border-color: #38bdf8 !important;
}

.mlbb-cm-send-btn {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%) !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 1.5px 0 #075985 !important;
  color: #ffffff !important;
  font: 900 8px/1 'Trebuchet MS', Arial, sans-serif !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.mlbb-cm-send-btn:hover {
  filter: brightness(1.15) !important;
}

/* =========================================================
   INDIE PROFILE & ACCOUNT TAB 3 STYLES
   ========================================================= */
.gp-cloud-card, .gp-guest-box {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
}

.gp-card-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 6px !important;
}

.gp-status-pill {
  font: 900 8px/1 'Trebuchet MS', Arial, sans-serif !important;
  padding: 3px 8px !important;
  border-radius: 8px !important;
}

.gp-status-pill.online {
  background: rgba(34, 197, 94, 0.2) !important;
  border: 1px solid #22c55e !important;
  color: #4ade80 !important;
}

.gp-status-pill.offline {
  background: rgba(148, 163, 184, 0.2) !important;
  border: 1px solid #94a3b8 !important;
  color: #cbd5e1 !important;
}

.gp-sync-badge {
  font: 800 7px/1 'Trebuchet MS', Arial, sans-serif !important;
  color: #38bdf8 !important;
  letter-spacing: 0.3px !important;
}

.gp-sync-badge.warn {
  color: #fbbf24 !important;
}

.gp-account-info-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(8, 15, 30, 0.7) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
}

.gp-account-avatar-mini {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #1e293b !important;
  border: 1px solid #38bdf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.gp-account-texts {
  flex: 1 !important;
  min-width: 0 !important;
}

.gp-email-display {
  font: 900 9.5px/1.2 'Trebuchet MS', Arial, sans-serif !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.gp-sync-desc, .gp-guest-desc {
  font: 700 7.5px/1.2 'Trebuchet MS', Arial, sans-serif !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

.gp-login-btns-grid {
  display: flex !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

.gp-provider-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  font: 900 8.5px/1 'Trebuchet MS', Arial, sans-serif !important;
  transition: all 0.15s ease !important;
}

.gp-provider-btn.google {
  background: #ffffff !important;
  color: #1e293b !important;
}

.gp-provider-btn.facebook {
  background: #1877f2 !important;
  color: #ffffff !important;
}

.gp-actions-row {
  display: flex !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

.gp-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font: 900 9px/1 'Trebuchet MS', Arial, sans-serif !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.15s ease !important;
}

.gp-btn.primary.save {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
  border: 1px solid #4ade80 !important;
  box-shadow: 0 2px 0 #14532d !important;
  color: #ffffff !important;
}

.gp-btn.secondary.signout {
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid #ef4444 !important;
  color: #fca5a5 !important;
}

.gp-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.1) !important;
}
