@keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }
        @keyframes twinkle {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        @keyframes glow {
            0%, 100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.3); }
            50% { box-shadow: 0 0 40px rgba(147, 51, 234, 0.7), 0 0 60px rgba(147, 51, 234, 0.3); }
        }
        @keyframes shimmer {
            0% { background-position: -200% center; }
            100% { background-position: 200% center; }
        }
        @keyframes resultReveal {
            from { opacity: 0; transform: translateY(20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -30px) scale(1.05); }
            66% { transform: translate(-20px, 20px) scale(0.95); }
        }

        .animate-fadeIn { animation: fadeIn 0.6s ease-out; }
        .animate-float { animation: float 3s ease-in-out infinite; }
        .animate-glow { animation: glow 2s ease-in-out infinite; }
        .animate-result { animation: resultReveal 0.5s ease-out forwards; }

        .star {
            position: fixed;
            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%);
            min-height: 100vh;
            font-family: 'Crimson Pro', Georgia, serif;
            overflow-x: hidden;
        }

        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.15;
            pointer-events: none;
            animation: orbFloat 8s ease-in-out infinite;
        }

        h1, h2, h3, .font-display { font-family: 'Cinzel', serif; }

        .card {
            background: linear-gradient(135deg, rgba(88, 28, 135, 0.2), rgba(29, 78, 216, 0.15));
            backdrop-filter: blur(16px);
            border: 1px solid rgba(147, 51, 234, 0.3);
            border-radius: 1.5rem;
            transition: all 0.3s ease;
        }
        .card:hover {
            border-color: rgba(147, 51, 234, 0.6);
            box-shadow: 0 20px 50px rgba(147, 51, 234, 0.3);
        }

        .input-select {
            background: rgba(15, 10, 40, 0.7);
            border: 1px solid rgba(147, 51, 234, 0.4);
            color: white;
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            width: 100%;
            font-family: 'Crimson Pro', serif;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
        }
        .input-select:focus {
            outline: none;
            border-color: rgba(167, 139, 250, 0.8);
            box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
            background: rgba(20, 12, 55, 0.9);
        }
        .input-select option {
            background: #1a0a3e;
            color: white;
        }

        .btn-primary {
            background: linear-gradient(135deg, #7c3aed, #4f46e5);
            color: white;
            border: none;
            border-radius: 0.75rem;
            padding: 0.9rem 2rem;
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        .btn-primary::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #8b5cf6, #6366f1);
            opacity: 0;
            transition: opacity 0.3s;
        }
        .btn-primary:hover::before { opacity: 1; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5); }
        .btn-primary:active { transform: translateY(0); }
        .btn-primary span { position: relative; z-index: 1; }

        .hero-text { text-shadow: 0 0 30px rgba(167, 139, 250, 0.6); }

        .result-card {
            background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.2));
            border: 1px solid rgba(167, 139, 250, 0.5);
            border-radius: 1.25rem;
        }

        .neptu-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            font-family: 'Cinzel', serif;
            font-weight: 700;
            font-size: 1.2rem;
        }

        .weton-label {
            font-family: 'Cinzel', serif;
            font-size: 0.7rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: rgba(196, 181, 253, 0.7);
        }

        .select-wrapper {
            position: relative;
        }
        .select-wrapper::after {
            content: '▾';
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(167, 139, 250, 0.8);
            pointer-events: none;
            font-size: 1rem;
        }

        .pager-border {
            border-image: linear-gradient(135deg, #7c3aed, #4f46e5, #7c3aed) 1;
        }

        .divider {
            height: 1px;
            background: linear-gradient(to right, transparent, rgba(167, 139, 250, 0.4), transparent);
        }

        .tafsir-good { color: #86efac; }
        .tafsir-medium { color: #fcd34d; }
        .tafsir-bad { color: #f87171; }

        .scroll-ornament {
            font-size: 1.5rem;
            opacity: 0.4;
        }

        table { width: 100%; border-collapse: collapse; }
        th { font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(196, 181, 253, 0.7); padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(147, 51, 234, 0.3); text-align: left; }
        td { padding: 0.5rem 0.75rem; font-size: 1rem; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(147, 51, 234, 0.15); }
        tr:last-child td { border-bottom: none; }

        .section-title {
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            letter-spacing: 0.2em;
            color: rgba(196, 181, 253, 0.6);
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: rgba(10, 14, 39, 0.5); }
        ::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.5); border-radius: 3px; }

        @media (max-width: 640px) {
            .hero-title { font-size: 2rem; }
}
.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);
}
