
.notif-widget__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: notifFadeIn 0.2s ease;
}

@keyframes notifFadeIn { from { opacity: 0; } to { opacity: 1; } }

.notif-widget {
  width: 100%;
  max-width: 480px;
  height: 85vh;
  background: #0f0f0f;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: notifSlideUp 0.3s ease;
  overflow: hidden;
}

@keyframes notifSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.notif-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notif-widget__close {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.06); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.notif-widget__title {
  font-weight: 700; font-size: 16px; color: #fff;
  display: flex; align-items: center; gap: 8px;
}

.notif-widget__count {
  background: var(--c-accent); color: #000;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
}

.notif-widget__mark-read {
  background: none; border: none; color: var(--c-accent);
  font-family: inherit; font-size: 12px; cursor: pointer;
}

.notif-widget__tabs {
  display: flex; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.04); flex-shrink: 0;
}

.notif-widget__tab {
  flex: 1; padding: 12px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.4); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.notif-widget__tab.is-active { color: #fff; border-bottom-color: var(--c-accent); }

.notif-widget__content {
  flex: 1; overflow-y: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.notif-widget__content::-webkit-scrollbar { display: none; }

.notif-widget__item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; cursor: pointer; transition: 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.notif-widget__item:hover { background: rgba(255,255,255,0.02); }
.notif-widget__item.is-unread { background: rgba(168,85,247,0.04); }

.notif-widget__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.notif-widget__icon--sale { background: rgba(34,197,94,0.1); color: #8ab633; }
.notif-widget__icon--like { background: rgba(255,107,107,0.1); color: #ff6b6b; }
.notif-widget__icon--comment { background: rgba(59,130,246,0.1); color: #3b82f6; }
.notif-widget__icon--follow { background: rgba(168,85,247,0.1); color: var(--c-accent); }
.notif-widget__icon--system { background: rgba(245,166,35,0.1); color: #f5a623; }

.notif-widget__info { flex: 1; min-width: 0; }
.notif-widget__text { font-size: 13px; color: #fff; line-height: 1.4; }
.notif-widget__time { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 3px; }
.notif-widget__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); flex-shrink: 0;
}

.notif-widget__empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 20px; color: rgba(255,255,255,0.25); text-align: center;
}
.notif-widget__empty i { font-size: 40px; }
.notif-widget__empty p { font-size: 14px; }

@media (min-width: 768px) {
  .notif-widget__overlay {
    align-items: center; justify-content: center; padding: 40px;
  }
  .notif-widget {
    max-height: 80vh; border-radius: 20px;
  }
}

.notif-widget__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-widget__clear-all {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.notif-widget__clear-all:hover { color: #ff5252; }

.notif-widget__delete {
  width: 24px; height: 24px; border: none; background: none;
  color: rgba(255,255,255,0.2); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; opacity: 0;
}
.notif-widget__item:hover .notif-widget__delete { opacity: 1; }
.notif-widget__delete:hover { color: #ff5252; }
.notif-widget__sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.notif-widget__sort-btns {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 3px;
}

.notif-widget__sort-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.notif-widget__sort-btn.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.notif-widget__mark-read {
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--c-accent, #b8f53d);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}

.notif-widget__mark-read:hover {
  background: rgba(184,245,61,0.08);
}
