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

html, body { min-height: 100vh; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: var(--ago-bg, #1d2327);
    color: var(--ago-text, #ffffff);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

.ago-maint-wrap {
    width: 100%;
    max-width: 720px;
    padding: 48px 24px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    gap: 8px;
}

.ago-maint-content {
    animation: agoFadeIn 0.6s ease-out;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes agoFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ago-maint-userlogo {
    max-width: 220px;
    max-height: 140px;
    width: auto;
    height: auto;
    margin-bottom: 36px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.ago-maint-message {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 32px;
}

.ago-maint-countdown {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 28px;
}

.ago-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 76px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.ago-countdown-unit span {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.ago-countdown-unit small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-top: 8px;
}

@media (max-width: 600px) {
    h1 { font-size: 28px; }
    .ago-maint-message { font-size: 15px; }
    .ago-maint-userlogo { max-width: 160px; max-height: 100px; margin-bottom: 28px; }
    .ago-maint-countdown { gap: 10px; }
    .ago-countdown-unit { min-width: 62px; padding: 10px 4px; }
    .ago-countdown-unit span { font-size: 30px; }
    .ago-maint-wrap { padding: 32px 16px 16px; }
}

body.ago-has-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.ago-has-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--ago-bg);
    opacity: var(--ago-overlay);
    z-index: 0;
    pointer-events: none;
}
body.ago-has-bg .ago-maint-wrap { position: relative; z-index: 1; }
