/* Modex Site Header Notifications - Matching Exact BlueNode / Whop Reference */
.site-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.site-notif-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.site-notif-btn:active {
  transform: translateY(0);
}

.site-notif-btn .icon {
  width: 17px;
  height: 17px;
}

/* Blue circular unread badge matching Image 2 */
.site-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #0b0d12;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.7);
  line-height: 1;
}

/* Notifications Dropdown Popover matching Image 3 */
.site-notif-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #11141d;
  border: 1px solid #1e2536;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: siteNotifFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-notif-menu.active {
  display: flex;
}

@keyframes siteNotifFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.site-notif-menu-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e2536;
  background: rgba(255, 255, 255, 0.015);
}

.site-notif-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-notif-title-group h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

.site-notif-pill {
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
}

.site-notif-mark-read-btn {
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-notif-mark-read-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.site-notif-mark-read-btn .icon {
  width: 13px;
  height: 13px;
  color: #10b981;
}

/* Tabs: All / Unread only */
.site-notif-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid #1a202e;
}

.site-notif-tab-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.site-notif-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.site-notif-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Items List */
.site-notif-items {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.site-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.site-notif-empty {
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.site-notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.site-notif-item.unread {
  background: rgba(37, 99, 235, 0.04);
}

.site-notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  flex-shrink: 0;
}

.site-notif-avatar.orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
}

.site-notif-avatar.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
}

.site-notif-avatar.emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.site-notif-avatar.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
}

.site-notif-subicon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0e1017;
  border: 1px solid #232b3c;
  display: grid;
  place-items: center;
}

.site-notif-subicon .icon {
  width: 9px;
  height: 9px;
  color: #60a5fa;
}

.site-notif-content {
  flex: 1;
  min-width: 0;
}

.site-notif-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.site-notif-item-title-row strong {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.site-notif-item-title-row time {
  font-size: 10px;
  color: #64748b;
  margin-left: auto;
}

.site-notif-blue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.8);
}

.site-notif-content p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
  overflow-wrap: anywhere;
}

.site-notif-menu-footer {
  padding: 12px 18px;
  border-top: 1px solid #1e2536;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.site-notif-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.site-notif-footer-link:hover {
  color: #a78bfa;
}

/* RTL Support */
[dir="rtl"] .site-notif-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .site-notif-badge {
  right: auto;
  left: -4px;
}

[dir="rtl"] .site-notif-blue-dot {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .site-notif-item-title-row time {
  margin-left: 0;
  margin-right: auto;
}
