.fon-root {
  position: fixed;
  z-index: 999999;
  bottom: 16px;
  max-width: 420px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.35;
  pointer-events: none;
}
.fon-left { left: 16px; right: auto; }
.fon-right { right: 16px; left: auto; }

.fon-toast {
  position: relative;
  margin-top: 12px;
  background: #ffffff;
  color: #111827; /* gray-900 */
  border-radius: 12px;
  padding: 14px 18px 14px 16px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.15);
  border: 1px solid #E5E7EB; /* gray-200 */
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: all 0.22s ease;
}

.fon-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #22C55E 0%, #3B82F6 100%);
}

.fon-toast.fon-enter { opacity: 0; transform: translateY(12px) scale(0.98); }
.fon-toast.fon-show  { opacity: 1; transform: translateY(0) scale(1); }
.fon-toast.fon-exit  { opacity: 0; transform: translateY(12px) scale(0.98); }

.fon-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6B7280; /* gray-500 */
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
}
.fon-close:hover { color: #374151; background: rgba(17,24,39,0.06); }

.fon-body { display: flex; flex-direction: column; gap: 4px; }

.fon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
  color: #065F46; /* emerald-800 */
  background: #ECFDF5; /* emerald-50 */
  border: 1px solid #A7F3D0; /* emerald-200 */
  padding: 3px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 2px;
}

.fon-line1 { font-size: 15px; }
.fon-line2 { font-size: 14px; color: #374151; } /* gray-700 */
.fon-line3 { font-size: 12px; color: #6B7280; } /* gray-500 */

.fon-confetti { 
  position: absolute; 
  top: 10px; 
  right: 10px; 
  width: 0; 
  height: 0; 
  pointer-events: none; 
}
.fon-confetti .fcp {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: translate(0,0) scale(.6) rotate(0deg);
  animation: fon-pop .7s ease forwards;
}
.fon-confetti .fc0 { background: #22C55E; }
.fon-confetti .fc1 { background: #3B82F6; }
.fon-confetti .fc2 { background: #F59E0B; }
.fon-confetti .fc3 { background: #EF4444; }
.fon-confetti .fc4 { background: #A855F7; }
.fon-confetti .fc5 { background: #14B8A6; }

@keyframes fon-pop {
  0% { opacity: 1; transform: translate(0,0) scale(.4) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(260deg); }
}

@media (max-width: 768px) {
  .fon-root { display: none; }
}
