* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #010a08;
    overflow: hidden;
    overscroll-behavior-y: none;
    perspective: 1200px;
}

.noise-bg {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.font-arabic {
    font-family: 'Amiri', serif;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #fef08a, #d97706, #fde047, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ketupat-wrapper {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ketupat-explode {
    animation: explode 1.2s cubic-bezier(0.1, 0, 0.1, 1) forwards;
}

@keyframes explode {
    0% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 10px rgba(253, 224, 71, 0.5));
    }

    20% {
        transform: scale(0.7) rotate(-15deg);
        filter: brightness(0.6);
    }

    40% {
        transform: scale(1.3) rotate(45deg);
        filter: brightness(2) drop-shadow(0 0 50px rgba(253, 224, 71, 1));
    }

    100% {
        transform: scale(60) rotate(180deg);
        filter: brightness(10);
        opacity: 0;
    }
}

.flash-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}

.flash-active {
    opacity: 1 !important;
}

.glass-card {
    background: linear-gradient(145deg, rgba(4, 47, 36, 0.6), rgba(1, 18, 14, 0.8));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(253, 224, 71, 0.3);
    border-left: 1px solid rgba(253, 224, 71, 0.2);
    border-bottom: 1px solid rgba(4, 47, 36, 0.5);
    border-right: 1px solid rgba(4, 47, 36, 0.5);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.8), -10px -10px 40px rgba(253, 224, 71, 0.05);
    border-radius: 3rem 1rem 3rem 1rem;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.abstract-shape {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(45deg, rgba(253, 224, 71, 0.1), rgba(6, 95, 70, 0.2));
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.pop-out {
    transform: translateZ(30px);
}

.pop-out-more {
    transform: translateZ(60px);
}

.input-peer:focus~.input-label,
.input-peer:not(:placeholder-shown)~.input-label {
    transform: translateY(-1.5rem) scale(0.85);
    color: #fde047;
}

.btn-float {
    animation: floatBtn 4s ease-in-out infinite;
}

@keyframes floatBtn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}