/* Notification Modal */
.nf-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(3,6,15,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
.nf-overlay.show { display: flex; animation: nfFade 0.2s ease; }
@keyframes nfFade { from { opacity: 0 } to { opacity: 1 } }

.nf-modal {
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 480px; max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: nfSlide 0.25s ease;
}
@keyframes nfSlide { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.nf-head {
  padding: 18px 20px; border-bottom: 1px solid rgba(148,163,184,0.15);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #0EA5E9, #6366F1);
  color: #fff;
}
.nf-head h3 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.nf-close {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 10px; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.nf-close:hover { background: rgba(255,255,255,0.35); }

.nf-body { padding: 12px 16px 16px; overflow-y: auto; flex: 1; }

.nf-item {
  padding: 14px; margin-bottom: 10px;
  border-radius: 14px; border: 1px solid rgba(148,163,184,0.2);
  background: #f8fafc;
}
.nf-item:last-child { margin-bottom: 0; }
.nf-item.unread {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(14,165,233,0.04));
}
.nf-item-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 8px;
}
.nf-tag {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nf-tag.bug { background: rgba(239,68,68,0.15); color: #dc2626; }
.nf-tag.error { background: rgba(245,158,11,0.15); color: #d97706; }
.nf-tag.saran { background: rgba(34,197,94,0.15); color: #16a34a; }
.nf-tag.pembelian { background: rgba(99,102,241,0.15); color: #6366F1; }
.nf-id { font-size: 11px; color: #64748b; font-weight: 700; font-family: monospace; }
.nf-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.nf-msg { font-size: 12px; color: #475569; line-height: 1.5; margin-bottom: 10px; }
.nf-reply {
  padding: 10px 12px; border-radius: 10px;
  background: #fff; border-left: 3px solid #16a34a;
  font-size: 12px; color: #0f172a; line-height: 1.5;
  white-space: pre-wrap;
}
.nf-reply-label {
  font-size: 10px; font-weight: 800; color: #16a34a;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.nf-empty {
  text-align: center; padding: 40px 20px; color: #94a3b8;
  font-size: 13px; font-style: italic;
}

/* Dark mode */
body.theme-dark .nf-modal { background: #0f172a; }
body.theme-dark .nf-body { background: #0f172a; }
body.theme-dark .nf-item { background: rgba(30,41,59,0.6); border-color: rgba(255,255,255,0.08); }
body.theme-dark .nf-item.unread {
  border-color: rgba(129,140,248,0.5);
  background: linear-gradient(135deg, rgba(129,140,248,0.1), rgba(14,165,233,0.05));
}
body.theme-dark .nf-title { color: #f1f5f9; }
body.theme-dark .nf-msg { color: #cbd5e1; }
body.theme-dark .nf-id { color: #94a3b8; }
body.theme-dark .nf-reply { background: rgba(15,23,42,0.6); color: #e2e8f0; border-left-color: #22c55e; }
body.theme-dark .nf-empty { color: #64748b; }
