
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-1: #00050f;
    --bg-2: #03163b;
    --bg-3: #000309;
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-bg-strong: rgba(255, 255, 255, 0.095);
    --card-border: rgba(255, 255, 255, 0.11);
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.84);
    --text-muted: rgba(255, 255, 255, 0.62);
    --primary: #a6cbff;
    --primary-2: #7ea9ff;
    --accent-orange: #f59a3d;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.40);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 22%, rgba(88, 137, 255, 0.14) 0%, transparent 24%),
        radial-gradient(circle at 82% 20%, rgba(35, 98, 255, 0.12) 0%, transparent 22%),
        radial-gradient(circle at 78% 76%, rgba(245, 154, 61, 0.09) 0%, transparent 14%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.world-map,
.cinematic-bg,
.bg-grid,
.bg-glow {
    position: absolute;
    inset: 0;
}

.world-map {
    background: url('../images/world-lines.svg') center center / cover no-repeat;
    opacity: 0.045;
    mix-blend-mode: screen;
}

.cinematic-bg {
    inset: -12%;
    background:
        radial-gradient(circle at 28% 38%, rgba(255,255,255,0.04), transparent 36%),
        radial-gradient(circle at 74% 66%, rgba(245,154,61,0.06), transparent 40%);
    animation: cinematicMove 26s ease-in-out infinite alternate;
}

.bg-glow {
    border-radius: 50%;
    filter: blur(95px);
    opacity: 0.32;
}

.glow-left {
    width: 320px;
    height: 320px;
    background: rgba(74, 125, 255, 0.20);
    top: 14%;
    left: 8%;
}

.glow-right {
    width: 420px;
    height: 420px;
    background: rgba(0, 110, 255, 0.14);
    right: 8%;
    top: 18%;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 34%, transparent 86%);
    -webkit-mask-image: radial-gradient(circle at center, black 34%, transparent 86%);
    opacity: 0.12;
}

.route-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(119, 168, 255, 0.40), transparent);
    opacity: 0.12;
}

.route-line-1 { width: 520px; top: 34%; left: 8%; transform: rotate(-8deg); }
.route-line-2 { width: 460px; bottom: 24%; right: 10%; transform: rotate(10deg); }

.route-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #83b2ff;
    box-shadow: 0 0 0 4px rgba(131, 178, 255, 0.03);
    opacity: 0.18;
}

.dot-1 { top: 31%; left: 26%; }
.dot-2 { top: 36%; right: 24%; }
.dot-3 { bottom: 22%; left: 50%; }

.page-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 34px 20px;
    position: relative;
    z-index: 2;
}

.maintenance-card {
    width: min(1100px, calc(100vw - 40px));
    margin-inline: auto;
    background:
        linear-gradient(180deg, var(--card-bg-strong), var(--card-bg)),
        linear-gradient(125deg, rgba(255,255,255,0.03) 0%, transparent 38%, transparent 62%, rgba(255,255,255,0.018) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .18s ease-out;
}

.maintenance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05), transparent 34%),
        radial-gradient(circle at 85% 16%, rgba(245,154,61,0.08), transparent 20%);
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-inline: auto;
    padding: 38px 34px 18px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-wrap {
    width: auto;
    min-width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.35))
            drop-shadow(0 0 10px rgba(255,255,255,0.08));
    transition: transform .35s ease, filter .35s ease;
}

.brand-copy {
    flex: 0 0 auto !important;
    width: auto !important;
}

.brand-copy h2 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 8px;
}

.brand-en {
    font-size: 1.08rem;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.mini-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: rgba(79, 132, 255, 0.10);
    border: 1px solid rgba(119,168,255,0.16);
    color: #dce9ff;
    font-size: 0.92rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239,68,68,0.10);
    animation: subtlePulse 4s ease-in-out infinite;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.14), transparent);
    margin: 28px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.92fr);
    gap: 28px;
    align-items: center;
}

.content-main {
    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(79,132,255,0.18), rgba(79,132,255,0.06));
    border: 1px solid rgba(119,168,255,0.16);
    color: #e4efff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.quick-status {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.76);
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
}

.status-chip--accent {
    background: rgba(245,154,61,0.08);
    border-color: rgba(245,154,61,0.22);
    color: #fff;
}

.content-main h1 {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.content-main h1::after {
    content: "";
    display: block;
    width: 82px;
    height: 2px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(166,203,255,0.95), rgba(245,154,61,0.75));
    opacity: 0.84;
}

.lead {
    font-size: 1.06rem;
    line-height: 1.95;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.sub-lead {
    font-size: 1rem;
    line-height: 1.82;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(245,154,61,0.10);
    border: 1px solid rgba(245,154,61,0.34);
    color: #fff;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

.action-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -110%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
    transition: left .55s ease;
}

.action-pill:hover {
    background: rgba(245,154,61,0.16);
    border-color: rgba(245,154,61,0.50);
    box-shadow: 0 10px 24px rgba(245,154,61,0.14);
    transform: translateY(-1px);
}

.action-pill:hover::after { left: 130%; }

.action-note {
    color: rgba(255,255,255,0.68);
    font-size: 0.92rem;
}

.content-side { min-width: 0; }

.side-card {
    width: 100%;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
}

.side-title {
    font-size: 1rem;
    font-weight: 700;
    color: #eef4ff;
    margin-bottom: 14px;
}

.info-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.info-row:last-child { border-bottom: none; }
.label { font-weight: 700; color: #edf3ff; }
.value { color: var(--text-soft); line-height: 1.85; word-break: break-word; }

.footer-note {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.footer-note a {
    color: #fff;
    text-decoration: none;
}

@keyframes cinematicMove {
    0% { transform: translateX(-2%) translateY(-1%) scale(1); }
    50% { transform: translateX(2%) translateY(1%) scale(1.03); }
    100% { transform: translateX(-1%) translateY(2%) scale(1.02); }
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(239,68,68,0.10); }
    50% { box-shadow: 0 0 0 10px rgba(239,68,68,0.03); }
}

@media (max-width: 980px) {
    body { overflow-y: auto; }

    .card-inner { padding: 28px 20px 18px; }
    .brand-block { flex-direction: column; align-items: center; text-align: center; }
    .content-grid { grid-template-columns: 1fr; }
    .content-main { text-align: center; }
    .content-main h1 { font-size: 2.2rem; }
    .content-main h1::after { margin: 18px auto 0; }
    .quick-status, .action-row { justify-content: center; }
    .action-note { width: 100%; }
}

@media (max-width: 640px) {
    .page-shell { padding: 16px; }
    .maintenance-card { width: calc(100vw - 20px); }
    .brand-logo { max-width: 120px; }
    .brand-copy h2 { font-size: 1.45rem; }
    .brand-en { font-size: 0.95rem; }
    .content-main h1 { font-size: 1.75rem; }
    .lead, .sub-lead, .value { font-size: 0.95rem; }
    .info-row { grid-template-columns: 1fr; gap: 4px; }
    .footer-note { flex-direction: column; align-items: flex-start; }
}


.lang-switch {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.58);
}
.lang-switch a { color: rgba(255,255,255,0.72); text-decoration:none; font-weight:600; }
.lang-switch a.active, .lang-switch a:hover { color:#fff; }


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

.lang-switch {
    margin-left: auto;
    position: static;
    top: auto;
    right: auto;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.58);
    align-self: flex-start;
}

.quick-status,
.status-chip,
.status-chip--accent {
    display: none !important;
}

@media (max-width: 980px) {
    .brand-block {
        align-items: center;
    }
    .lang-switch {
        margin-left: 0;
        margin-top: 6px;
        align-self: center;
    }
}

@media (max-width: 640px) {
    .lang-switch {
        font-size: 0.82rem;
        padding: 7px 10px;
    }
}


/* ===== Executive polish ===== */
.brand-block {
    gap: 28px;
    align-items: center;
}

.logo-wrap {
    flex: 0 0 auto;
}

.brand-logo {
    max-width: 142px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-copy h2 {
    letter-spacing: -0.2px;
    margin-bottom: 10px;
    text-wrap: balance;
}

.mini-status {
    margin-top: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.badge {
    margin-bottom: 18px;
}

.content-main h1 {
    max-width: 620px;
    text-wrap: balance;
}

.lead {
    max-width: 640px;
}

.action-row {
    margin-top: 14px;
}

.action-note {
    font-weight: 500;
    letter-spacing: 0.1px;
}

.side-card {
    background: rgba(255,255,255,0.05);
}

.side-title {
    margin-bottom: 16px;
}

.footer-note {
    align-items: center;
}

.footer-note > div:last-child {
    text-align: right;
}

@media (max-width: 980px) {
    .brand-block {
        gap: 18px;
    }

    .brand-logo {
        max-width: 128px;
    }

    .brand-copy h2 {
        margin-bottom: 8px;
    }

    .content-main h1,
    .lead {
        max-width: 100%;
    }

    .footer-note > div:last-child {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        max-width: 118px;
    }

    .mini-status {
        font-size: 0.86rem;
        padding: 9px 12px;
    }
}


/* ===== MOBILE & TABLET CENTER ALIGN FIX ===== */
@media (max-width: 1024px) {

    .brand-block {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 18px !important;
        width: 100% !important;
    }

    .logo-wrap {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .brand-copy {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .brand-copy h2 {
        text-align: center !important;
        width: 100% !important;
    }

    .mini-status {
        margin: 0 auto !important;
        display: inline-flex !important;
    }

    .lang-switch {
        position: static !important;
        margin: 10px auto 0 !important;
        align-self: center !important;
    }
}

@media (max-width: 640px) {

    .brand-logo {
        max-width: 110px !important;
    }

    .brand-copy h2 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    .mini-status {
        transform: scale(0.96);
        transform-origin: center;
    }
}
@media (max-width: 1024px) {
    .mini-status {
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
    }
}
@media (max-width: 1024px) {
    .mini-status {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .status-dot {
        width: 11px !important;
        height: 11px !important;
        min-width: 11px !important;
        min-height: 11px !important;
        flex: 0 0 11px !important;
        display: inline-block !important;
    }
}
.value a {
    color: inherit;
    text-decoration: none;
}

.value a:hover {
    text-decoration: underline;
}

.footer-note a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-note a:hover {
    color: #ffffff;
}

/* ===== Email Link Clean Hover (Same Style as EN | TH) ===== */

.value a {
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.value a:hover {
    color: #ffffff;
    opacity: 1;
}

/* ===== Remove Default Underline ===== */

.value a,
.footer-note a {
    text-decoration: none !important;
}

.value a:hover,
.footer-note a:hover {
    text-decoration: none !important;
}