/* Theme-independent system maintenance page - image-first professional templates */
:root {
    --nc-maintenance-bg: #0f172a;
    --nc-maintenance-text: #f8fafc;
    --nc-maintenance-muted: rgba(248, 250, 252, .78);
    --nc-maintenance-line: rgba(255, 255, 255, .30);
    --nc-maintenance-light-text: #111827;
    --nc-maintenance-light-muted: #4b5563;
    --nc-maintenance-backdrop: rgba(2, 6, 23, .34);
}

* { box-sizing: border-box; }

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

body.nc-maintenance-page {
    min-height: 100svh;
    color: var(--nc-maintenance-text);
    background: var(--nc-maintenance-bg);
    font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

.nc-maintenance-shell {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    min-height: 100svh;
    padding: clamp(1.15rem, 4vw, 4.5rem);
    color: var(--nc-maintenance-text);
    background: var(--nc-maintenance-bg);
}

.nc-maintenance-shell::before,
.nc-maintenance-shell::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

.nc-maintenance-shell::before {
    z-index: -3;
    background-color: var(--nc-maintenance-bg);
    background-image: var(--nc-maintenance-bg-image, linear-gradient(135deg, #0f172a, #1e3a8a));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: translateZ(0);
}

.nc-maintenance-shell::after {
    z-index: -2;
    background: linear-gradient(90deg, rgba(2, 6, 23, .72), rgba(2, 6, 23, .24) 54%, rgba(2, 6, 23, .08));
}

.nc-maintenance-stage {
    display: flex;
    width: min(100%, 88rem);
    min-height: calc(100svh - clamp(2.3rem, 8vw, 9rem));
    margin: 0 auto;
}

.nc-maintenance-content {
    width: min(100%, 62rem);
    color: inherit;
    text-shadow: 0 .45rem 1.65rem rgba(0, 0, 0, .35);
}

/* Editorial Hero: clear background, compact lower-left type block */
.nc-maintenance-shell-default {
    align-items: flex-end;
}

.nc-maintenance-shell-default::after {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, .78), rgba(2, 6, 23, .28) 48%, rgba(2, 6, 23, .04)),
        linear-gradient(0deg, rgba(2, 6, 23, .76), transparent 52%);
}

.nc-maintenance-stage-bottom {
    align-items: flex-end;
    justify-content: flex-start;
}

.nc-maintenance-content-bottom {
    max-width: min(100%, 62rem);
    padding: clamp(.8rem, 2.2vw, 1.4rem) 0 clamp(.8rem, 2.2vw, 1.4rem) clamp(1rem, 2.4vw, 1.65rem);
    border-left: .18rem solid rgba(255, 255, 255, .74);
}

/* Centered Launch: Colorlib-like full image focus with centered typography */
.nc-maintenance-shell-centered {
    align-items: center;
    text-align: center;
}

.nc-maintenance-shell-centered::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(2, 6, 23, .22), rgba(2, 6, 23, .70) 78%),
        linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(168, 85, 247, .12));
}

.nc-maintenance-stage-center {
    align-items: center;
    justify-content: center;
}

.nc-maintenance-content-center {
    width: min(100%, 54rem);
    padding: clamp(.8rem, 3vw, 2rem);
    text-align: center;
}

/* Left Intro: full-height editorial intro, no hard card */
.nc-maintenance-shell-card {
    align-items: stretch;
    color: var(--nc-maintenance-light-text);
}

.nc-maintenance-shell-card::after {
    background: linear-gradient(90deg, rgba(248, 250, 252, .90) 0%, rgba(248, 250, 252, .72) 27rem, rgba(248, 250, 252, .15) 61%, rgba(248, 250, 252, .03));
}

.nc-maintenance-stage-side {
    align-items: center;
    justify-content: flex-start;
}

.nc-maintenance-content-side {
    width: min(100%, 35rem);
    padding: clamp(1rem, 4vw, 2.6rem) 0;
    color: var(--nc-maintenance-light-text);
    text-shadow: none;
}

.nc-maintenance-content-side .nc-maintenance-description,
.nc-maintenance-content-side .nc-maintenance-kicker {
    color: var(--nc-maintenance-light-muted);
}

/* Poster Focus: large display type, background remains dominant */
.nc-maintenance-shell-split {
    align-items: center;
}

.nc-maintenance-shell-split::after {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .38), rgba(2, 6, 23, .62)),
        linear-gradient(90deg, transparent, rgba(2, 6, 23, .24) 18% 82%, transparent);
}

.nc-maintenance-stage-poster {
    align-items: center;
    justify-content: center;
}

.nc-maintenance-content-poster {
    width: min(100%, 72rem);
    padding: clamp(.8rem, 3vw, 2rem);
    text-align: center;
}

.nc-maintenance-content-poster .nc-maintenance-title {
    max-width: none;
    font-size: clamp(2.35rem, 7vw, 6.65rem);
}

/* Quiet Minimal: calm, bright, typography-focused */
.nc-maintenance-shell-minimal {
    align-items: center;
    color: var(--nc-maintenance-light-text);
}

.nc-maintenance-shell-minimal::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(248, 250, 252, .54)),
        linear-gradient(0deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .14));
}

.nc-maintenance-stage-minimal {
    align-items: center;
    justify-content: center;
}

.nc-maintenance-content-minimal {
    width: min(100%, 43rem);
    padding: clamp(.8rem, 3vw, 2rem);
    color: var(--nc-maintenance-light-text);
    text-align: center;
    text-shadow: none;
}

.nc-maintenance-content-minimal .nc-maintenance-description,
.nc-maintenance-content-minimal .nc-maintenance-kicker {
    color: var(--nc-maintenance-light-muted);
}

.nc-maintenance-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(72vw, 13rem);
    margin: 0 0 clamp(.85rem, 3vw, 1.45rem);
    padding: .45rem .55rem;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: .55rem;
    box-shadow: 0 .45rem 1.2rem rgba(0, 0, 0, .10);
    backdrop-filter: blur(6px);
}

.nc-maintenance-content-center .nc-maintenance-logo-wrap,
.nc-maintenance-content-poster .nc-maintenance-logo-wrap,
.nc-maintenance-content-minimal .nc-maintenance-logo-wrap {
    margin-right: auto;
    margin-left: auto;
}

.nc-maintenance-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: clamp(2.1rem, 6vw, 3.9rem);
    object-fit: contain;
}

.nc-maintenance-kicker {
    max-width: min(100%, 34rem);
    margin: 0 0 .7rem;
    color: var(--nc-maintenance-muted);
    font-size: clamp(.72rem, 1.45vw, .9rem);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.35;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.nc-maintenance-title {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 clamp(.85rem, 2.4vw, 1.25rem);
    color: inherit;
    font-size: clamp(2.1rem, 5.8vw, 5.4rem);
    font-weight: 780;
    letter-spacing: -.058em;
    line-height: .98;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: nowrap;
}

.nc-maintenance-content-center .nc-maintenance-title,
.nc-maintenance-content-poster .nc-maintenance-title,
.nc-maintenance-content-minimal .nc-maintenance-title {
    margin-right: auto;
    margin-left: auto;
}

.nc-maintenance-description {
    max-width: 42rem;
    margin: 0;
    color: var(--nc-maintenance-muted);
    font-size: clamp(1rem, 2.1vw, 1.22rem);
    font-weight: 450;
    line-height: 1.68;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.nc-maintenance-content-center .nc-maintenance-description,
.nc-maintenance-content-poster .nc-maintenance-description,
.nc-maintenance-content-minimal .nc-maintenance-description {
    margin-right: auto;
    margin-left: auto;
}

.nc-maintenance-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    width: min(100%, 27rem);
    margin: clamp(1.25rem, 4vw, 2rem) 0 0;
}

.nc-maintenance-content-center .nc-maintenance-countdown,
.nc-maintenance-content-poster .nc-maintenance-countdown,
.nc-maintenance-content-minimal .nc-maintenance-countdown {
    margin-right: auto;
    margin-left: auto;
}

.nc-maintenance-countdown-item {
    min-width: 0;
    padding: .62rem .42rem;
    color: inherit;
    background: rgba(255, 255, 255, .11);
    border: 1px solid var(--nc-maintenance-line);
    border-radius: .55rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

.nc-maintenance-shell-card .nc-maintenance-countdown-item,
.nc-maintenance-shell-minimal .nc-maintenance-countdown-item {
    background: rgba(255, 255, 255, .54);
    border-color: rgba(148, 163, 184, .26);
}

.nc-maintenance-countdown-item strong,
.nc-maintenance-countdown-item span { display: block; }

.nc-maintenance-countdown-item strong {
    font-size: clamp(1.05rem, 3.4vw, 1.55rem);
    line-height: 1;
}

.nc-maintenance-countdown-item span {
    margin-top: .3rem;
    color: currentColor;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .72;
}

.nc-maintenance-page-dark,
[data-bs-theme="dark"] {
    --nc-maintenance-bg: #020617;
    --nc-maintenance-text: #f8fafc;
    --nc-maintenance-muted: rgba(248, 250, 252, .78);
    --nc-maintenance-light-text: #f8fafc;
    --nc-maintenance-light-muted: rgba(226, 232, 240, .76);
}

.nc-maintenance-page-dark .nc-maintenance-shell-card,
[data-bs-theme="dark"] .nc-maintenance-shell-card,
.nc-maintenance-page-dark .nc-maintenance-shell-minimal,
[data-bs-theme="dark"] .nc-maintenance-shell-minimal {
    color: var(--nc-maintenance-text);
}

.nc-maintenance-page-dark .nc-maintenance-shell-card::after,
[data-bs-theme="dark"] .nc-maintenance-shell-card::after,
.nc-maintenance-page-dark .nc-maintenance-shell-minimal::after,
[data-bs-theme="dark"] .nc-maintenance-shell-minimal::after {
    background: linear-gradient(90deg, rgba(2, 6, 23, .74), rgba(2, 6, 23, .30) 60%, rgba(2, 6, 23, .12));
}

.nc-maintenance-page-dark .nc-maintenance-content-side,
[data-bs-theme="dark"] .nc-maintenance-content-side,
.nc-maintenance-page-dark .nc-maintenance-content-minimal,
[data-bs-theme="dark"] .nc-maintenance-content-minimal {
    color: var(--nc-maintenance-text);
    text-shadow: 0 .45rem 1.65rem rgba(0, 0, 0, .35);
}

.nc-maintenance-page-dark .nc-maintenance-content-side .nc-maintenance-description,
.nc-maintenance-page-dark .nc-maintenance-content-side .nc-maintenance-kicker,
.nc-maintenance-page-dark .nc-maintenance-content-minimal .nc-maintenance-description,
.nc-maintenance-page-dark .nc-maintenance-content-minimal .nc-maintenance-kicker,
[data-bs-theme="dark"] .nc-maintenance-content-side .nc-maintenance-description,
[data-bs-theme="dark"] .nc-maintenance-content-side .nc-maintenance-kicker,
[data-bs-theme="dark"] .nc-maintenance-content-minimal .nc-maintenance-description,
[data-bs-theme="dark"] .nc-maintenance-content-minimal .nc-maintenance-kicker {
    color: var(--nc-maintenance-muted);
}

.nc-maintenance-page-dark .nc-maintenance-logo-wrap,
[data-bs-theme="dark"] .nc-maintenance-logo-wrap {
    background: rgba(255, 255, 255, .76);
}


@media (min-width: 768px) and (max-width: 1199.98px) {
    .nc-maintenance-title {
        font-size: clamp(2.35rem, 5.6vw, 4.2rem);
        white-space: nowrap;
    }

    .nc-maintenance-content-poster .nc-maintenance-title {
        font-size: clamp(2.55rem, 6.2vw, 4.85rem);
    }
}

@media (max-width: 767.98px) {
    .nc-maintenance-shell {
        align-items: flex-end;
        padding: 1rem;
    }

    .nc-maintenance-stage {
        min-height: calc(100svh - 2rem);
    }

    .nc-maintenance-stage-center,
    .nc-maintenance-stage-side,
    .nc-maintenance-stage-poster,
    .nc-maintenance-stage-minimal {
        align-items: flex-end;
        justify-content: flex-start;
    }

    .nc-maintenance-content,
    .nc-maintenance-content-center,
    .nc-maintenance-content-side,
    .nc-maintenance-content-poster,
    .nc-maintenance-content-minimal {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0 1rem 1rem;
        text-align: left;
        border-left: .18rem solid rgba(255, 255, 255, .70);
    }

    .nc-maintenance-content-side,
    .nc-maintenance-content-minimal {
        border-left-color: rgba(15, 23, 42, .38);
    }

    .nc-maintenance-page-dark .nc-maintenance-content-side,
    .nc-maintenance-page-dark .nc-maintenance-content-minimal,
    [data-bs-theme="dark"] .nc-maintenance-content-side,
    [data-bs-theme="dark"] .nc-maintenance-content-minimal {
        border-left-color: rgba(255, 255, 255, .70);
    }

    .nc-maintenance-logo-wrap {
        max-width: min(78vw, 12rem);
        margin-right: 0;
        margin-left: 0;
    }

    .nc-maintenance-content-center .nc-maintenance-logo-wrap,
    .nc-maintenance-content-poster .nc-maintenance-logo-wrap,
    .nc-maintenance-content-minimal .nc-maintenance-logo-wrap,
    .nc-maintenance-content-center .nc-maintenance-title,
    .nc-maintenance-content-poster .nc-maintenance-title,
    .nc-maintenance-content-minimal .nc-maintenance-title,
    .nc-maintenance-content-center .nc-maintenance-description,
    .nc-maintenance-content-poster .nc-maintenance-description,
    .nc-maintenance-content-minimal .nc-maintenance-description,
    .nc-maintenance-content-center .nc-maintenance-countdown,
    .nc-maintenance-content-poster .nc-maintenance-countdown,
    .nc-maintenance-content-minimal .nc-maintenance-countdown {
        margin-right: 0;
        margin-left: 0;
    }

    .nc-maintenance-title {
        width: fit-content;
        max-width: 100%;
        font-size: clamp(1.9rem, 7.2vw, 3.25rem);
        line-height: 1.02;
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .nc-maintenance-content-poster .nc-maintenance-title {
        font-size: clamp(2rem, 7.8vw, 3.55rem);
    }

    .nc-maintenance-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 22rem);
    }
}

@media (max-width: 575.98px) {
    .nc-maintenance-shell {
        padding: .875rem;
    }

    .nc-maintenance-content,
    .nc-maintenance-content-center,
    .nc-maintenance-content-side,
    .nc-maintenance-content-poster,
    .nc-maintenance-content-minimal {
        padding-left: .82rem;
    }

    .nc-maintenance-title,
    .nc-maintenance-content-poster .nc-maintenance-title {
        font-size: clamp(1.72rem, 7.4vw, 2.42rem);
        letter-spacing: -.052em;
    }

    .nc-maintenance-description {
        font-size: clamp(.95rem, 3.7vw, 1.08rem);
        line-height: 1.56;
    }
}

@supports not (height: 100svh) {
    body.nc-maintenance-page,
    .nc-maintenance-shell { min-height: 100vh; }
    .nc-maintenance-stage { min-height: calc(100vh - clamp(2.3rem, 8vw, 9rem)); }

    @media (max-width: 767.98px) {
        .nc-maintenance-stage { min-height: calc(100vh - 2rem); }
    }
}
