/* Reward experience layer — readouts, urgency, toast (no payout math) */

#rtx-reward-toast-host {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 12500;
  max-width: 100vw;
  pointer-events: none;
}

#rtx-reward-toast-host .reward-ux-toast {
  pointer-events: auto;
  margin: 20px;
}

.reward-ux-toast {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 12000;
  max-width: min(380px, calc(100vw - 40px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 11, 10, 0.96), rgba(25, 22, 18, 0.98));
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 18px 50px rgba(0, 0, 0, 0.55);
  animation: reward-ux-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reward-ux-toast--neutral {
  border-color: rgba(255, 255, 255, 0.2);
}

.reward-ux-toast--error {
  border-color: rgba(248, 113, 113, 0.55);
}

.reward-ux-toast__bolt {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.reward-ux-toast__msg {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #fff);
  line-height: 1.35;
}

@keyframes reward-ux-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reward-ux-ribbon {
  margin: 0 0 22px;
  padding: 0;
}

.reward-ux-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.reward-ux-card {
  border-radius: 16px;
  padding: 14px 14px 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
}

.reward-ux-card__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.reward-ux-card__hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-ux-card__hero--sm {
  font-size: 1.35rem;
}

.reward-ux-card__big {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.reward-ux-card__suffix {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(249, 115, 22, 0.95);
}

.reward-ux-card__sub {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.reward-ux-card__hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.reward-ux-card__hint--muted {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  line-height: 1.35;
}

.reward-ux-tier-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #e0f2fe;
}

.reward-ux-tier-pill--orange {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.4);
  color: #ffedd5;
}

.reward-ux-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reward-ux-bar--blue .reward-ux-bar__fill {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.reward-ux-bar--health .reward-ux-bar__fill {
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

.reward-ux-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea580c, #fb923c);
  transition: width 0.35s ease;
}

.reward-ux-nudges {
  margin: 12px 0 0;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px dashed rgba(249, 115, 22, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 600;
}

.reward-ux-nudges li {
  margin: 4px 0;
}

.reward-ux-pool-test-log {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.reward-ux-pool-test-log__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: 8px;
}

.reward-ux-pool-test-log ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.reward-ux-pool-test-log__amt {
  font-weight: 800;
  color: #fdba74;
}

.reward-ux-pool-test-log__time {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}

.reward-ux-surf-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.1), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.reward-ux-surf-strip--compact {
  display: block;
  padding: 7px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.reward-ux-surf-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.reward-ux-surf-strip--compact .reward-ux-surf-strip__label {
  display: inline;
  font-size: 0.58rem;
  margin-right: 4px;
  vertical-align: baseline;
}

.reward-ux-surf-strip--compact .reward-ux-surf-strip__earnings,
.reward-ux-surf-strip--compact .reward-ux-surf-strip__session,
.reward-ux-surf-strip--compact .reward-ux-surf-strip__tier {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 4px;
}

.reward-ux-surf-strip--compact .reward-ux-surf-strip__session {
  flex-direction: column;
  align-items: stretch;
  min-width: 72px;
}

.reward-ux-surf-strip--compact .reward-ux-surf-strip__muted {
  font-size: 0.72rem;
}

.reward-ux-surf-strip--compact .reward-ux-surf-strip__bar {
  margin-top: 2px;
  height: 4px;
  min-width: 48px;
}

@media (max-width: 720px) {
  .reward-ux-surf-strip {
    grid-template-columns: 1fr 1fr;
  }
  .reward-ux-surf-strip__nudge {
    grid-column: 1 / -1;
  }
}

.reward-ux-surf-strip__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.reward-ux-surf-strip__earnings strong,
.reward-ux-surf-strip__session strong,
.reward-ux-surf-strip__tier strong {
  color: #fff;
  font-weight: 800;
}

.reward-ux-surf-strip__muted {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.85rem;
}

.reward-ux-surf-strip__dot {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.35);
}

.reward-ux-surf-strip__bar {
  margin-top: 4px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.reward-ux-surf-strip__bar > div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #64748b, #94a3b8);
  transition: width 0.25s ease;
}

.reward-ux-surf-strip__session--warm .reward-ux-surf-strip__bar > div {
  background: linear-gradient(90deg, #ea580c, #fbbf24);
}

.reward-ux-surf-strip__session--hot .reward-ux-surf-strip__bar > div {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.reward-ux-surf-strip__session--final .reward-ux-surf-strip__bar > div {
  background: linear-gradient(90deg, #22c55e, #a3e635);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.reward-ux-surf-strip__nudge {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 237, 213, 0.95);
  line-height: 1.3;
}

.dashboard-session-nudge {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fdba74;
}

.dashboard-session-panel--warm .dashboard-session-progress .progress-fill {
  background: linear-gradient(90deg, #ea580c, #fb923c);
}

.dashboard-session-panel--hot .dashboard-session-progress .progress-fill {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.dashboard-session-panel--final .dashboard-session-progress .progress-fill {
  background: linear-gradient(90deg, #22c55e, #86efac);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.reward-pool-mini-unit {
  font-size: 0.55em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 4px;
}
