/* ==========================================================================
   CỔNG DỊCH VỤ TRỰC TUYẾN HUTECH — Maintenance Page Styles
   ========================================================================== */

:root {
    --bg-top: #eef4ff;
    --bg-bottom: #e2edff;
    --text: #0b1c42;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --brand-navy: #0a1d48;
    --brand-blue: #1d56d8;
    --brand-blue-hover: #1444b5;
    --brand-blue-soft: rgba(29, 86, 216, 0.1);
    --brand-gold: #c99a3e;

    --radius-pill: 999px;
    --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 52% 60% at 32% 52%, rgba(238, 244, 255, 0.82), rgba(238, 244, 255, 0.25) 70%, transparent 100%),
        url("../img/tech-bg.jpg") center / cover no-repeat;
    opacity: 0.48;
    -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 26%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 8%, #000 26%, #000 92%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: min(1320px, 90vw);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* ==========================================================================
   Header Banner (Gradient + Curved Wave + Logo HUTECH)
   ========================================================================== */
.portal-banner {
    position: relative;
    background: linear-gradient(110deg, #071b45 0%, #0e3889 55%, #1d56d8 100%);
    color: #ffffff;
    padding: 22px 0 92px;
    overflow: hidden;
    z-index: 2;
}

.banner-wave-svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 88px;
    display: block;
    pointer-events: none;
}

.banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo-pill {
    background-color: #ffffff;
    padding: 10px 22px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(7, 27, 69, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hutech-logo {
    display: block;
    height: 54px;
    width: auto;
    object-fit: contain;
}

.banner-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.system-name {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    line-height: 1.15;
}

.dept-tag {
    display: inline-block;
    background-color: var(--brand-gold);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}

/* Soft Background Waves */
.canvas-waves {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 68px;
    height: 260px;
    pointer-events: none;
    z-index: 0;
}

.canvas-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   Main 2-Column Content
   ========================================================================== */
.main-scenic {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 0 32px;
}

.scenic-grid {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(380px, 620px);
    justify-content: center;
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}

/* Maintenance Status Line */
.status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background-color: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% { box-shadow: 0 0 0 0 rgba(29, 86, 216, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(29, 86, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 86, 216, 0); }
}

.scenic-title {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.5vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: var(--text);
    white-space: nowrap;
}

.scenic-subtitle {
    margin: 0 0 18px;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
}

/* Countdown + Expected Completion Time */
.countdown-section {
    margin: 0 0 30px;
}

.eta-line {
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.eta-line strong {
    color: var(--brand-blue);
    font-weight: 700;
}

.countdown-caption {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.countdown-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 14px;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
}

.cd-num {
    font-size: clamp(2.6rem, 4.6vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.cd-num--accent {
    color: var(--brand-blue);
}

.cd-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 6px;
}

.cd-colon {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--brand-blue);
    opacity: 0.85;
}

.done-banner {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background-color: var(--brand-blue-soft);
    border-radius: var(--radius-pill);
    color: var(--brand-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Action Buttons & Links */
.action-row {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 14px;
}

.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.78);
    color: var(--text);
    border-color: rgba(11, 28, 66, 0.22);
}

.btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background-color: #ffffff;
}

.text-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    padding: 4px 2px;
}

.text-link:hover {
    text-decoration: underline;
}

.auto-check-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.auto-check-note strong {
    color: var(--text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Right Illustration */
.scenic-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-wrapper {
    width: 100%;
    max-width: clamp(380px, 38vw, 620px);
}

.scenic-img {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 78%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 78%, transparent 100%);
}

/* ==========================================================================
   Footer Navy
   ========================================================================== */
.scenic-footer {
    position: relative;
    z-index: 2;
    background-color: var(--brand-navy);
    color: #ffffff;
    padding: 18px 0;
}

.footer-items {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: start;
    gap: 20px 44px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-item.is-highlighted {
    background-color: rgba(251, 191, 36, 0.16);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55);
}

.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.38;
}

.footer-key {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.footer-val {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

a.footer-val:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
    .scenic-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .scenic-visual {
        order: -1;
    }

    .scene-wrapper {
        max-width: 420px;
    }

    .footer-items {
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
    }

    .footer-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .portal-banner {
        padding: 16px 0 46px;
    }

    .banner-wave-svg {
        height: 36px;
    }

    .banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .logo-pill {
        padding: 6px 14px;
        border-radius: 12px;
    }

    .hutech-logo {
        height: 36px;
    }

    .banner-titles {
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .system-name {
        font-size: 1.05rem;
    }

    .dept-tag {
        font-size: clamp(0.48rem, 2.25vw, 0.64rem);
        padding: 4px 10px;
        line-height: 1.3;
        white-space: nowrap;
        letter-spacing: 0.01em;
    }

    .main-scenic {
        padding: 4px 0 24px;
    }

    .scenic-grid {
        gap: 16px;
    }

    .scene-wrapper {
        max-width: 310px;
    }

    .scenic-copy {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .scenic-title {
        white-space: normal;
        font-size: clamp(1.2rem, 5.1vw, 1.5rem);
        margin-bottom: 10px;
    }

    .eta-line {
        font-size: 0.86rem;
        margin-bottom: 16px;
    }

    .countdown-section {
        margin: 0 0 22px;
    }

    .countdown-caption {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .countdown-wrap {
        justify-content: center;
        gap: 10px;
    }

    .cd-item {
        min-width: 52px;
    }

    .cd-num {
        font-size: 2.3rem;
    }

    .cd-colon {
        font-size: 1.9rem;
    }

    .action-row {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .btn {
        padding: 11px 18px;
        font-size: 0.86rem;
    }

    .auto-check-note {
        font-size: 0.78rem;
        margin-top: 12px;
    }

    .footer-items {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-val {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
