#kn-notif-bell {
  position: relative;
  display: inline-flex;
}

.kn-bell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E5E7EF;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  color: #111827;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.kn-bell-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(37, 99, 235, 0.2);
  color: #2563EB;
  transform: translateY(-2px);
}

.kn-bell-btn:active {
  transform: scale(0.95);
}

.kn-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.kn-bell-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E5E7EF;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(84,66,170,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1500;
  overflow: hidden;
}

.kn-bell-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kn-bell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  border-bottom: 1px dashed #E5E7EF;
}

.kn-bell-markall {
  border: none;
  background: none;
  color: #2563EB;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.kn-bell-markall:hover {
  color: #1d4ed8;
}

.kn-bell-list {
  overflow-y: auto;
  flex: 1;
}

.kn-bell-empty {
  padding: 28px 16px;
  text-align: center;
  color: #6B7280;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

.kn-bell-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px dashed #E5E7EF;
  transition: background 0.15s ease;
}

.kn-bell-item:last-child {
  border-bottom: none;
}

.kn-bell-item:hover {
  background: rgba(37, 99, 235, 0.04);
}

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

.kn-bell-dot {
  flex-shrink: 0;
  color: #2563EB;
  font-size: 0.7rem;
  line-height: 1.6;
}

.kn-bell-item-body {
  flex: 1;
  min-width: 0;
}

.kn-bell-item-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #111827;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.kn-bell-item-msg {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #6B7280;
  margin-top: 2px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kn-bell-item-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #6B7280;
  margin-top: 4px;
  font-weight: 500;
}

.kn-bell-viewall {
  display: block;
  text-align: center;
  padding: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  border-top: 1px dashed #E5E7EF;
  transition: background 0.15s ease;
}

.kn-bell-viewall:hover {
  background: rgba(37, 99, 235, 0.04);
}

@media (max-width: 420px) {
  .kn-bell-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}
