/* =============================================
   FOOTER & UTILITY FLOATING ELEMENTS
   ============================================= */

.footer {
  border-top: 1px solid var(--ash-10);
  padding: var(--sp-6) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--ash);
  opacity: 0.5;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--ash);
  opacity: 0.85;
}

.footer-right .pagoda-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  opacity: 0.95;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ── Back to Top Floating Button ── */
.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 40px;
  height: 40px;
  background: var(--slate);
  border: 1px solid var(--ash-20);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--chalk);
  border-color: var(--gold);
  box-shadow: 0 6px 20px -4px rgba(192, 138, 46, 0.35);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* ── Easter-egg Toast ── */
.egg-toast {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--slate);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--chalk);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
}

.egg-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.egg-toast .icon {
  color: #34D399;
}
