/* Bell dropdown and login bonus toast. Tokens come from the active theme. */
.bell-panel {
  position: fixed;
  z-index: 70;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.bell-panel[hidden] {
  display: none;
}

.bell-panel:focus {
  outline: none;
}

.bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.bell-title {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.bell-all,
.bell-retry {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bell-all:disabled {
  color: var(--muted);
  cursor: default;
}

.bell-list {
  max-height: 380px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.bell-row {
  display: flex;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bell-row:hover {
  background: var(--soft);
}

.bell-icon {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--soft);
  color: color-mix(in srgb, var(--ink) 72%, var(--card));
}

.bell-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.bell-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.bell-row-title,
.bell-row-text,
.bell-time {
  display: block;
}

.bell-row-title {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.bell-row-text {
  margin-top: 2px;
  color: color-mix(in srgb, var(--ink) 62%, var(--card));
  font-size: 12px;
  line-height: 16px;
}

.bell-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.bell-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: #e5484d;
}

.bell-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 28px 16px;
  color: color-mix(in srgb, var(--ink) 70%, var(--card));
  font-size: 13px;
  text-align: center;
}

.bell-foot {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--card);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.bell-foot:hover {
  color: var(--ink);
}

.bell-panel :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.credit-toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}

.credit-toast {
  box-sizing: border-box;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-inverse, var(--card));
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: credit-toast-in 0.25s ease both;
}

@keyframes credit-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .credit-toast {
    animation: none;
  }
}

@media (max-width: 560px) {
  .bell-all,
  .bell-retry {
    min-height: 44px;
    padding: 0 4px;
  }

  .bell-foot {
    padding: 14px 16px;
  }

  .bell-list {
    max-height: min(380px, calc(100vh - 260px));
  }
}
