:root {
    --brand-red: #f10508;
    --brand-red-glow: rgba(241, 5, 8, 0.4);
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: none;
}

/* --- BACKGROUND EFFECTS --- */
.bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand-red);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 8s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

/* Particles */
.bg-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: var(--brand-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-red);
    opacity: 0.3;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(20vw); opacity: 0; }
}

/* --- MAIN CONTAINER --- */
.maintenance-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 
                inset 0 1px 0 rgba(255,255,255,0.1);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.logo-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.brand-logo {
    /* Kept small to hide Zalo compression blurriness */
    max-width: 160px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px var(--brand-red-glow));
    animation: gentleHover 4s infinite ease-in-out;
}

@keyframes gentleHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Content */
.content-wrapper {
    margin-bottom: 40px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 5, 8, 0.1);
    border: 1px solid rgba(241, 5, 8, 0.3);
    color: var(--brand-red);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--brand-red-glow); }
    70% { box-shadow: 0 0 0 10px rgba(241, 5, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 5, 8, 0); }
}

/* Typography */
.glitch-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #dcdcdc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    width: 30%;
    background: var(--brand-red);
    box-shadow: 0 0 10px var(--brand-red);
    border-radius: 4px;
    animation: loadProgress 2s ease-in-out infinite alternate;
}

@keyframes loadProgress {
    0% { width: 10%; }
    100% { width: 90%; }
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer */
.footer-text {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.brand-slogan {
    margin-top: 5px;
    color: var(--brand-red);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Mobile Tweaks */
@media (max-width: 400px) {
    .glass-card {
        padding: 30px 20px;
    }
    .glitch-text {
        font-size: 1.5rem;
    }
    .brand-logo {
        max-width: 140px;
    }
}
