/* ============================================================================
   NHÓM 3: KHOẢNH KHẮC CHUNG TỰ ĐỘNG & CẦU NỐI BẠN CÙNG CA (BONDING GROUP 3)
   Chuẩn Font Google Sans (>= 12px) · Tabular-nums · Icon 3D Dopamine PNG
   ============================================================================ */

/* Thanh Khoảnh Khắc Chung & Anh Em Cùng Ca (nằm gọn 1 dòng ngay trên #realtime-social-bar) */
.g3-shift-moments-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  background: linear-gradient(90deg, rgba(6, 28, 38, 0.96) 0%, rgba(15, 23, 42, 0.96) 55%, rgba(30, 27, 75, 0.94) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.32);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  flex-wrap: nowrap;
}

.g3-buddies-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.g3-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.g3-section-badge img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.g3-buddies-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  padding: 1px 2px;
}

.g3-buddies-scroll::-webkit-scrollbar {
  display: none;
}

.g3-buddy-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.g3-buddy-chip:hover {
  transform: translateY(-1px);
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
}

.g3-buddy-chip.is-burning {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92), rgba(15, 23, 42, 0.92));
  border-color: #34d399;
  color: #ecfdf5;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.32);
}

.g3-buddy-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
  flex-shrink: 0;
}

.g3-buddy-chip.is-burning img {
  border-color: #10b981;
}

.g3-buddy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  flex-shrink: 0;
}

.g3-buddy-chip.is-burning .g3-buddy-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: livePulse 1.3s infinite;
}

.g3-buddy-tok {
  font-size: 12px;
  font-weight: 800;
  color: #fde047;
}

/* Cụm 3 nút hành động Nhóm 3 bên phải */
.g3-actions-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.g3-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
  font-variant-numeric: tabular-nums;
}

.g3-action-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}

.g3-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.g3-action-btn.milestone-btn {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 55%, #ea580c 100%);
  border: 1px solid #fde047;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.38);
}

.g3-action-btn.personal-ms-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%);
  border: 1px solid #f0abfc;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(192, 38, 211, 0.38);
}

.g3-action-btn.welcome-btn {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  border: 1px solid #7dd3fc;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.32);
}

.g3-action-btn.bridges-btn {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.g3-action-btn.bridges-btn.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #6ee7b7;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* Banner Chúc Mừng Cột Mốc Chung & Chào Đón Đồng Đội Vừa Bật Máy (đặt gọn phía dưới .viewport-wrap để không che bầu trời pháo hoa 3D) */
.g3-celebration-banner {
  position: absolute;
  bottom: 10px;
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 44;
  width: min(760px, calc(100% - 24px));
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 27, 75, 0.90) 52%, rgba(6, 78, 59, 0.90) 100%);
  border: 1.5px solid #fde047;
  border-radius: 14px;
  padding: 8px 13px;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.62), 0 0 24px rgba(250, 204, 21, 0.32);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.g3-celebration-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.g3-celebration-banner.welcome-mode {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 55%, rgba(8, 47, 73, 0.96) 100%);
  border-color: #34d399;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62), 0 0 26px rgba(16, 185, 129, 0.35);
}

.g3-celebration-banner.personal-mode {
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.95) 0%, rgba(15, 23, 42, 0.95) 52%, rgba(88, 28, 135, 0.94) 100%);
  border-color: #f0abfc;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 28px rgba(217, 70, 239, 0.42);
}

.g3-personal-roster-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(240, 171, 252, 0.28);
}

.g3-ms-member-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(240, 171, 252, 0.38);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.g3-ms-member-pill:hover {
  transform: translateY(-1px);
  border-color: #fde047;
  background: rgba(88, 28, 135, 0.85);
}

.g3-ms-member-pill.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #fde047;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.45);
}

.g3-ms-member-pill img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  object-fit: cover;
}

.g3-buddy-ms-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(253, 224, 71, 0.55);
  color: #fef08a;
}

.g3-tag-ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.14s ease;
}

.g3-tag-ms-badge:hover {
  transform: scale(1.06);
}

.g3-tag-ms-badge img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.g3-banner-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.g3-banner-visual {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 30%, rgba(253, 224, 71, 0.32), rgba(15, 23, 42, 0.85));
  border: 1.5px solid rgba(253, 224, 71, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g3-celebration-banner.welcome-mode .g3-banner-visual {
  border-color: #34d399;
  background: radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.32), rgba(15, 23, 42, 0.85));
}

.g3-banner-visual img.g3-icon-3d {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.g3-banner-visual img.g3-avatar-real {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.g3-banner-text {
  min-width: 0;
  flex: 1;
}

.g3-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.01em;
}

.g3-celebration-banner.welcome-mode .g3-banner-kicker {
  color: #6ee7b7;
}

.g3-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.28;
  margin-top: 1px;
}

.g3-banner-sub {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.3;
  margin-top: 2px;
}

.g3-banner-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.g3-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(253, 224, 71, 0.4);
  font-size: 12px;
  font-weight: 700;
  color: #fef08a;
}

.g3-celebration-banner.welcome-mode .g3-metric-pill {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.g3-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.g3-banner-cta {
  appearance: none;
  border: 1px solid #fde047;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.g3-celebration-banner.welcome-mode .g3-banner-cta {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.g3-banner-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.g3-banner-close {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 10px;
  cursor: pointer;
}

.g3-banner-close:hover {
  color: #ffffff;
  border-color: #94a3b8;
}

@media (max-width: 768px) {
  .g3-shift-moments-bar {
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 6px 8px !important;
  }
  .g3-buddies-left {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .g3-actions-right {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .g3-actions-right::-webkit-scrollbar {
    display: none;
  }
  .g3-celebration-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 9px 11px;
  }
  .g3-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
