body {
    background-color: #030006;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(120, 0, 180, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 15%, rgba(100, 0, 160, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(80, 0, 140, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: #f3f0f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.prediction-app {
    width: 100%;
    max-width: 900px;
}

.prediction-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.brand-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(180, 100, 255, 0.5));
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: #efeef1;
    text-transform: uppercase;
}

.header-text h1 {
    margin: 5px 0;
    font-size: 28px;
    font-weight: 800;
}

.header-text h1 span {
    color: #7A1FA2;
    text-shadow: 0 0 15px rgba(106, 48, 169, 0.6);
}

.header-text p {
    margin: 0;
    font-size: 13px;
    color: #aaa;
}

.prediction-grid-single {
    margin-bottom: 40px;
}

.glass-card {
    background: rgba(18, 10, 30, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(216, 180, 254, 0.15);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #e9d5ff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.title-dot {
    width: 8px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7;
}

/* Styling Tabel Prediksi Khusus */
.prediction-table-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pred-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #c084fc;
}

.pred-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
}

.highlight-num {
    color: #f3e8ff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.top2d-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.top2d-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.top2d-grid span {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: #e9d5ff;
    letter-spacing: 1px;
}

.section-heading {
    margin-bottom: 15px;
}

.section-heading h2 {
    margin: 5px 0 0 0;
    font-size: 22px;
}
/* Styling Kotak Info & Teks Berjalan */
.marquee-container {
    display: flex;
    align-items: center;
    background: rgba(18, 10, 30, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 12px;
    padding: 8px 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.marquee-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    white-space: nowrap;
}

.marquee-text-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-text-wrapper marquee {
    font-size: 15px;
    color: #e9d5ff;
    letter-spacing: 0.5px;
}

.marquee-text-wrapper strong {
    color: #f3e8ff;
    text-shadow: 0 0 8px rgba(216, 180, 254, 0.6);
}
/* Layout Header Menggunakan Grid agar Sempurna */
.prediction-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Memastikan tombol berada di kolom kanan secara otomatis */
.header-right-buttons {
    display: flex;
    gap: 10px;
    justify-self: flex-end;
}

.btn-login, .btn-register {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: #d8b4fe;
    border: 1px solid rgba(216, 180, 254, 0.4);
}

.btn-login:hover {
    background: rgba(216, 180, 254, 0.1);
    color: #fff;
    box-shadow: 0 0 12px rgba(216, 180, 254, 0.3);
}

.btn-register {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.5);
}

.btn-register:hover {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}
/* --- CSS UNTUK ANIMASI FADE-IN --- */

/* Definisikan keyframe animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Sedikit geser ke bawah saat awal */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Kembali ke posisi normal */
    }
}

/* Terapkan animasi ke elemen-elemen utama */
.summary-card {
    animation: fadeIn 0.8s ease-out forwards; /* Durasi 0.8 detik, muncul dari bawah */
    /* Tambahkan sedikit penundaan (optional) agar muncul setelah header */
    animation-delay: 0.2s; 
    /* Pastikan opacity awal 0 agar animasi terlihat */
    opacity: 0; 
}

.history-section {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s; /* Muncul setelah summary-card */
    opacity: 0;
}
/* --- LATAR BELAKANG ANIMASI CAHAYA BINTIK-BINTIK (UKURAN SEDANG / PAS) --- */

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.stars-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(216, 180, 254, 0.8), rgba(216, 180, 254, 0.3) 2px, transparent 3.5px),
        radial-gradient(white, rgba(255,255,255,0.5) 1.5px, transparent 2.5px),
        radial-gradient(rgba(168, 85, 247, 0.8), transparent 3px);
    background-size: 350px 350px, 220px 220px, 280px 280px;
    background-position: 0 0, 30px 30px, 80px 100px;
    opacity: 0.85;
}

.stars-moving {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: 
        radial-gradient(rgba(216, 180, 254, 0.8), rgba(255,255,255,0.4) 2px, transparent 3.5px),
        radial-gradient(white, transparent 1.5px);
    background-size: 400px 400px, 300px 300px;
    /* Kecepatan gerak lembut dan nyaman di mata */
    animation: moveStars 70s linear infinite;
}

@keyframes moveStars {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(40%) translateX(20%);
    }
}