.hero-controls {
  grid-template-columns: 54px minmax(0, 1fr) 112px;
}

.notification-center {
  position: relative;
  align-self: start;
  z-index: 30;
}

.notification-bell {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background:
    radial-gradient(circle at 25% 20%, rgba(24, 212, 183, 0.18), transparent 55%),
    var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.notification-bell:hover,
.notification-bell.active {
  transform: translateY(-1px);
  border-color: rgba(24, 212, 183, 0.56);
  background:
    radial-gradient(circle at 25% 20%, rgba(24, 212, 183, 0.28), transparent 62%),
    var(--surface-soft-strong);
}

.notification-bell svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--surface-hero);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b7a, #ff9a55);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 7px 20px rgba(255, 107, 122, 0.3);
}

.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  border-radius: 22px;
  background: var(--surface-card-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.notification-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(24, 212, 183, 0.1), rgba(93, 140, 255, 0.08));
}

.notification-popover-header > div {
  display: grid;
  gap: 2px;
}

.notification-popover-header strong {
  font-size: 16px;
}

.notification-popover-header span {
  color: var(--muted);
  font-size: 12px;
}

.notification-popover-header button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.notification-list {
  display: grid;
  max-height: min(520px, 68vh);
  overflow-y: auto;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 8px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.notification-item.unread {
  background: linear-gradient(90deg, rgba(24, 212, 183, 0.09), rgba(93, 140, 255, 0.035));
}

.notification-kind {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(24, 212, 183, 0.28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(24, 212, 183, 0.18), rgba(93, 140, 255, 0.14));
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.notification-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.notification-copy > span {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.notification-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.notification-item i {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(24, 212, 183, 0.55);
}

.notification-empty {
  display: grid;
  gap: 6px;
  padding: 28px 22px;
  text-align: center;
}

.notification-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification-target-focus {
  position: relative;
  z-index: 1;
  outline: 3px solid color-mix(in srgb, var(--accent) 82%, white 18%);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: notification-target-pulse 850ms ease-in-out 2;
}

@keyframes notification-target-pulse {
  0%, 100% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
  }
  50% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 28%, transparent);
  }
}

@media (max-width: 1450px) {
  .hero-top {
    grid-template-columns: 1fr;
  }

  .notification-popover {
    right: auto;
    left: 0;
  }
}

@media (max-width: 1100px) {
  .hero-controls {
    grid-template-columns: 1fr;
  }

  .notification-center {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .notification-center {
    justify-self: stretch;
  }

  .notification-bell {
    width: 100%;
    height: 48px;
  }

  .notification-popover {
    right: auto;
    left: 0;
    width: 100%;
  }
}
