:root {
    --glass-bg: rgba(10, 15, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --bluemoon-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6, #60a5fa, #93c5fd, #1d4ed8);
    --deep-blue: #02040a;
    --bluemoon: #0f172a;
}

* {
    box-sizing: border-box; /* Mencegah elemen menabrak keluar layar */
}

body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, var(--deep-blue), #111827, var(--bluemoon), var(--deep-blue));
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efek Bintang */
.stars-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Container Glassmorphism - FIX RESPONSIVE */
.container {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: calc(100% - 40px); /* Jarak aman kiri-kanan 20px */
    max-width: 450px; /* Ukuran maksimal di desktop */
    text-align: center;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-icon {
    font-size: 50px;
    margin-bottom: 15px;
    background: var(--bluemoon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(191, 149, 63, 0.3));
}

.error-code {
    font-size: 11px;
    color: #10b981;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

h1 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
}

p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    background: var(--bluemoon-gradient);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    font-size: 12px;
    width: 100%; /* Tombol penuh di mobile */
    max-width: 250px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- MEDIA QUERIES UNTUK DEVICE KECIL --- */
@media (max-width: 768px) {
    .container {
        padding: 30px 25px;
    }
    h1 { font-size: 20px; }
    p { font-size: 13px; }
}

@media (max-width: 380px) {
    .container {
        padding: 25px 15px;
        width: calc(100% - 30px); /* Jarak lebih rapat di HP sangat kecil */
    }
    .error-icon { font-size: 40px; }
    h1 { font-size: 18px; }
}