/* ── Nav bell badge ──────────────────────────────────────────────────────── */
.notif-bell {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: var(--btn-text);
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  font-family: 'Jost', sans-serif;
  line-height: 1;
}

@keyframes bell-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-14deg);
  }
  40% {
    transform: rotate(12deg);
  }
  60% {
    transform: rotate(-8deg);
  }
  80% {
    transform: rotate(6deg);
  }
}

.notif-bell.shaking {
  animation: bell-shake 0.45s ease;
}

/* ── Notifications page ──────────────────────────────────────────────────── */
.notif-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.notif-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.notif-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.notif-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.btn-mark-all {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  transition:
    border-color 0.18s,
    color 0.18s;
  flex-shrink: 0;
}

.btn-mark-all:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Group labels */
.notif-group-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Notification item */
.notif-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.18s;
  align-items: flex-start;
}

.notif-item.unread .notif-icon {
  background: var(--accent);
  color: var(--btn-text);
}

.notif-item.read {
  opacity: 0.65;
}

.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition:
    background 0.18s,
    color 0.18s;
}

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

.notif-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.notif-message {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}

/* Unread dot */
.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-item.read .notif-dot {
  visibility: hidden;
}

/* Empty / loading states */
.notif-empty {
  text-align: center;
  padding: 72px 20px;
}

.notif-empty-icon {
  font-size: 2.5rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.notif-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.notif-empty p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Live indicator */
.notif-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.notif-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6bcf7f;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (max-width: 768px) {
  .notif-page {
    padding: 32px 16px 80px;
  }

  .notif-time {
    display: none;
  }
}
