 @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-fadeIn { animation: fadeIn 0.5s ease-out; }

        @keyframes spin { to { transform: rotate(360deg); } }
        .animate-spin { animation: spin 1s linear infinite; }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }
        .animate-float { animation: float 3s ease-in-out infinite; }

        @keyframes twinkle {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
            50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
        }

        /* Toast */
        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(110px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        @keyframes slideOutRight {
            from { opacity: 1; transform: translateX(0); }
            to   { opacity: 0; transform: translateX(110px); }
        }
        .toast-enter { animation: slideInRight 0.35s ease-out forwards; }
        .toast-exit  { animation: slideOutRight 0.35s ease-in  forwards; }
        @keyframes progress-shrink {
            from { width: 100%; }
            to   { width: 0%; }
        }

        .star {
            position: absolute;
            width: 2px; height: 2px;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s ease-in-out infinite;
        }
        body {
            background: linear-gradient(to bottom, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
            overflow-x: hidden;
        }
        .result-row { animation: fadeIn 0.4s ease-out both; }
        .result-row:nth-child(1) { animation-delay: 0.05s; }
        .result-row:nth-child(2) { animation-delay: 0.10s; }
        .result-row:nth-child(3) { animation-delay: 0.15s; }
        .result-row:nth-child(4) { animation-delay: 0.20s; }
        .result-row:nth-child(5) { animation-delay: 0.25s; }
        .result-row:nth-child(6) { animation-delay: 0.30s; }
        .result-row:nth-child(7) { animation-delay: 0.35s; }
        .glow-btn { animation: pulse-glow 2.5s ease-in-out infinite; }

        #toast-container {
            position: fixed; top: 1.25rem; right: 1.25rem;
            z-index: 9999;
            display: flex; flex-direction: column; gap: 0.5rem;
            pointer-events: none;
        }
        .toast {
            pointer-events: auto;
            display: flex; align-items: center; gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.875rem; font-weight: 500;
            min-width: 260px; max-width: 340px;
            backdrop-filter: blur(12px);
            border: 1px solid;
            position: relative; overflow: hidden;
        }
        .toast-success { background: rgba(20,83,45,0.75);  border-color: rgba(74,222,128,0.4);  color: #bbf7d0; }
        .toast-error   { background: rgba(127,29,29,0.75); border-color: rgba(248,113,113,0.4); color: #fecaca; }
        .toast-info    { background: rgba(30,27,75,0.85);  border-color: rgba(167,139,250,0.4); color: #ddd6fe; }
        .toast-bar {
            position: absolute; bottom: 0; left: 0;
            height: 3px; border-radius: 0 0 0.75rem 0.75rem;
            animation: progress-shrink linear forwards;
        }
        .toast-success .toast-bar { background: #4ade80; }
        .toast-error   .toast-bar { background: #f87171; }
        .toast-info    .toast-bar { background: #a78bfa; }
        
        .back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
          }
