:root {
    --maintenance-bg: #07140d;
    --maintenance-panel: rgba(10, 28, 19, 0.78);
    --maintenance-panel-border: rgba(192, 227, 201, 0.12);
    --maintenance-text: #edf7ef;
    --maintenance-muted: rgba(237, 247, 239, 0.72);
    --maintenance-green: #49b36a;
    --maintenance-green-deep: #1f6b39;
    --maintenance-amber: #e4ac3b;
    --maintenance-red: #d56a45;
    --maintenance-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--maintenance-text);
    background:
        radial-gradient(circle at top, rgba(73, 179, 106, 0.18), transparent 28%),
        radial-gradient(circle at right, rgba(228, 172, 59, 0.16), transparent 24%),
        linear-gradient(180deg, #08150e 0%, #030906 100%);
}

.maintenance-scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.maintenance-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
}

.maintenance-orbit,
.maintenance-glow {
    position: absolute;
    border-radius: 999px;
}

.maintenance-orbit {
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: maintenance-spin 24s linear infinite;
}

.maintenance-orbit--one {
    width: 520px;
    height: 520px;
    right: -160px;
    top: -120px;
}

.maintenance-orbit--two {
    width: 680px;
    height: 680px;
    left: -220px;
    bottom: -260px;
    animation-direction: reverse;
    animation-duration: 34s;
}

.maintenance-glow {
    filter: blur(80px);
    opacity: 0.55;
}

.maintenance-glow--amber {
    width: 220px;
    height: 220px;
    background: rgba(228, 172, 59, 0.5);
    top: 16%;
    right: 12%;
}

.maintenance-glow--green {
    width: 260px;
    height: 260px;
    background: rgba(73, 179, 106, 0.35);
    left: 8%;
    bottom: 14%;
}

.maintenance-particles {
    position: absolute;
    inset: 0;
}

.maintenance-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
    animation: maintenance-float var(--duration, 9s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.maintenance-shell {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow: hidden;
}

.maintenance-panel {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100vw - 36px));
    padding: 24px;
    border-radius: 30px;
    background: var(--maintenance-panel);
    border: 1px solid var(--maintenance-panel-border);
    box-shadow: var(--maintenance-shadow);
    backdrop-filter: blur(16px);
}

.maintenance-brand,
.maintenance-status-row,
.maintenance-footer,
.maintenance-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.maintenance-brand {
    margin-bottom: 14px;
}

.maintenance-brand__logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.maintenance-brand__eyebrow,
.maintenance-footer span {
    display: block;
    color: var(--maintenance-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.maintenance-brand h1,
.maintenance-copy h2,
.maintenance-card h3,
.status-clock {
    font-family: 'Space Grotesk', sans-serif;
}

.maintenance-brand h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 0.9rem;
}

.status-chip__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--maintenance-red);
    box-shadow: 0 0 0 0 rgba(213, 106, 69, 0.8);
    animation: maintenance-pulse 1.8s infinite;
}

.status-clock {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.86);
}

.maintenance-hero {
    margin: 16px 0 14px;
    align-items: stretch;
}

.maintenance-copy {
    flex: 1 1 58%;
}

.maintenance-copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.04;
    max-width: 15ch;
}

.maintenance-copy p {
    max-width: 60ch;
    color: var(--maintenance-muted);
    line-height: 1.55;
    font-size: 0.93rem;
    margin: 10px 0 0;
}

.maintenance-rotating {
    color: #fff;
    font-weight: 700;
}

.maintenance-loader {
    flex: 0 0 250px;
    min-height: 250px;
    position: relative;
    display: grid;
    place-items: center;
}

.maintenance-loader__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.maintenance-loader__ring--outer {
    width: 220px;
    height: 220px;
    border-top-color: var(--maintenance-amber);
    animation: maintenance-spin 18s linear infinite;
}

.maintenance-loader__ring--middle {
    width: 170px;
    height: 170px;
    border-right-color: var(--maintenance-green);
    animation: maintenance-spin 12s linear infinite reverse;
}

.maintenance-loader__ring--inner {
    width: 124px;
    height: 124px;
    border-left-color: rgba(255, 255, 255, 0.65);
    animation: maintenance-spin 8s linear infinite;
}

.maintenance-loader__core {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(73, 179, 106, 0.18), rgba(228, 172, 59, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-size: 1.55rem;
}

.maintenance-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 14px;
}

.maintenance-progress__bar {
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--maintenance-green), var(--maintenance-amber), var(--maintenance-green));
    background-size: 220px 100%;
    animation: maintenance-progress 2.6s ease-in-out infinite;
}

.maintenance-grid-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.maintenance-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--maintenance-amber);
    margin-bottom: 10px;
    font-size: 1rem;
}

.maintenance-card h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.maintenance-card p {
    margin: 0;
    color: var(--maintenance-muted);
    line-height: 1.5;
    font-size: 0.87rem;
}

.maintenance-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.maintenance-footer a {
    display: inline-block;
    margin-top: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

@keyframes maintenance-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes maintenance-pulse {
    0% { box-shadow: 0 0 0 0 rgba(213, 106, 69, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(213, 106, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(213, 106, 69, 0); }
}

@keyframes maintenance-progress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(120%); }
    100% { transform: translateX(260%); }
}

@keyframes maintenance-float {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translate3d(0, -120px, 0) scale(1.2);
        opacity: 0;
    }
}

@media (max-height: 860px) {
    .maintenance-shell {
        padding: 14px;
    }

    .maintenance-panel {
        width: min(980px, calc(100vw - 28px));
        padding: 20px;
    }

    .maintenance-brand {
        margin-bottom: 10px;
    }

    .maintenance-hero {
        margin: 12px 0 10px;
    }

    .maintenance-copy h2 {
        font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    }

    .maintenance-copy p {
        font-size: 0.89rem;
        margin-top: 8px;
    }

    .maintenance-loader {
        flex-basis: 210px;
        min-height: 210px;
    }

    .maintenance-loader__ring--outer {
        width: 190px;
        height: 190px;
    }

    .maintenance-loader__ring--middle {
        width: 146px;
        height: 146px;
    }

    .maintenance-loader__ring--inner {
        width: 104px;
        height: 104px;
    }

    .maintenance-loader__core {
        width: 66px;
        height: 66px;
        font-size: 1.35rem;
    }

    .maintenance-grid-panels {
        gap: 12px;
        margin-bottom: 12px;
    }

    .maintenance-card {
        padding: 14px;
    }
}

@media (max-width: 960px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        overflow-y: auto;
    }

    .maintenance-shell {
        min-height: 100vh;
        min-height: 100svh;
        height: auto;
        place-items: start center;
        padding: 20px 14px;
        overflow: visible;
    }

    .maintenance-panel {
        width: min(100%, calc(100vw - 28px));
        padding: 20px;
        margin: 0 auto;
    }

    .maintenance-hero,
    .maintenance-status-row,
    .maintenance-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .maintenance-loader {
        width: 100%;
        flex-basis: auto;
    }

    .maintenance-grid-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .maintenance-shell {
        padding: 16px 12px 28px;
    }

    .maintenance-panel {
        width: calc(100vw - 24px);
        padding: 18px;
        border-radius: 24px;
    }

    .maintenance-brand {
        align-items: flex-start;
    }

    .maintenance-brand__logo {
        width: 56px;
        height: 56px;
    }

    .maintenance-copy h2 {
        max-width: none;
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .maintenance-copy p {
        font-size: 0.86rem;
    }

    .maintenance-loader {
        min-height: 200px;
    }

    .maintenance-loader__ring--outer {
        width: 180px;
        height: 180px;
    }

    .maintenance-loader__ring--middle {
        width: 138px;
        height: 138px;
    }

    .maintenance-loader__ring--inner {
        width: 98px;
        height: 98px;
    }

    .maintenance-loader__core {
        width: 62px;
        height: 62px;
        font-size: 1.2rem;
    }
}