/* ============================================================
   UI V2 — Navbar & Live Chat redesign (semua halaman)
   Dimuat setelah base/components/responsive → override aman.
   Token warna: variable.css / design-system MASTER.md
   ============================================================ */

/* =========================
   NAVBAR — floating glass pill
   ========================= */
header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: 14px;
    transition: padding 0.25s ease;
}

header.scrolled {
    background: transparent;
    backdrop-filter: none;
    padding-top: 8px;
}

/* Transparan di atas hero; jadi glass pill setelah mulai scroll */
.navbar {
    height: 64px;
    padding: 0 10px 0 20px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
                backdrop-filter 0.3s ease;
}

header.scrolled .navbar {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.logo-image {
    height: 46px;
}

/* Link jadi pill, hapus underline lama */
.nav-links {
    gap: 4px;
}

.nav-links a {
    padding: 9px 15px;
    border-radius: 999px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.nav-links a.nav-active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.16);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.nav-links a.nav-active::after {
    display: none;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent-blue-light);
    outline-offset: 2px;
}

.nav-cta {
    height: 44px;
    min-width: 0;
    margin-left: 8px;
    padding: 0 22px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.nav-cta.nav-active {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ===== Mobile dropdown: kartu glass melayang ===== */
@media (max-width: 768px) {
    header {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding-top: 10px;
    }

    .navbar {
        height: 58px;
        padding: 0 8px 0 14px;
    }

    .logo-image {
        height: 38px;
    }

    .nav-links,
    .nav-links.scrolled {
        position: fixed;
        top: 78px;
        left: 14px;
        right: 14px;
        width: auto;
        padding: 10px;
        gap: 2px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(10, 16, 30, 0.97);
        /* Tanpa backdrop-filter: bg sudah nyaris solid; blur di panel fixed
           rawan artefak compositing di device low-end */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    }

    .nav-links a {
        padding: 13px 16px;
        border-radius: 14px;
        font-size: 15px;
        color: var(--text-primary);
    }

    .nav-links a.nav-active {
        background: rgba(59, 130, 246, 0.18);
    }

    /* Specificity ekstra: kalahkan rule .nav-links lama di responsive.css
       supaya panel menu benar-benar solid (blur tidak selalu didukung) */
    .nav-links.active,
    .nav-links.active.scrolled {
        background: rgba(10, 16, 30, 0.97);
    }

    .nav-cta {
        margin: 10px 4px 4px;
        width: auto;
        justify-content: center;
    }
}

/* =========================
   LIVE CHAT V2
   ========================= */

/* Toggle — FAB bundar icon-only dengan dot online */
.live-chat-toggle {
    width: 60px;
    height: 60px;
    padding: 0;
    min-width: 0;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
}

.live-chat-toggle-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-toggle i {
    font-size: 22px;
}

.live-chat-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    border: 2px solid #0b1324;
    animation: lc-pulse 2.4s ease-in-out infinite;
}

@keyframes lc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    60%      { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

/* Panel */
.live-chat-panel {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(11, 19, 36, 0.97);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

/* Header gradient */
.live-chat-header {
    padding: 14px 16px;
    background: var(--gradient-primary);
    border-bottom: none;
}

.live-chat-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.live-chat-avatar {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: #12213f;
}

.live-chat-avatar svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.live-chat-avatar .live-chat-online-dot {
    border-color: #1d4ed8;
}

.live-chat-header strong {
    color: #fff;
    font-size: 15px;
}

.live-chat-header span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.live-chat-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee7b7;
    margin-right: 6px;
    vertical-align: middle;
}

.live-chat-header button {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transition: background-color 0.2s ease;
}

.live-chat-header button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.live-chat-end-btn {
    color: #fee2e2 !important;
}

/* Start form */
.live-chat-start {
    padding: 20px 18px 16px;
}

.live-chat-greeting {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.live-chat-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-chat-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.live-chat-field label span {
    color: #f87171;
}

.live-chat-field label small {
    font-weight: 400;
    color: var(--text-muted);
}

.live-chat-start form {
    gap: 14px;
}

.live-chat-start input {
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.live-chat-start input:focus,
.live-chat-form input:focus {
    border-color: var(--accent-blue-light);
    background: rgba(255, 255, 255, 0.09);
}

.live-chat-start button {
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-chat-start button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.live-chat-privacy {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Ruang chat */
.live-chat-room[hidden] {
    display: none; /* components.css memberi display:flex yang menimpa [hidden] */
}

.live-chat-messages {
    background:
        radial-gradient(ellipse 120% 60% at 50% 0%, rgba(59, 130, 246, 0.06), transparent 70%),
        rgba(2, 8, 18, 0.35);
}

.live-chat-bubble {
    border-radius: 16px;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-chat-message.is-admin .live-chat-bubble {
    border-bottom-left-radius: 5px;
}

.live-chat-message.is-visitor .live-chat-bubble {
    background: var(--gradient-primary);
    border: none;
    border-bottom-right-radius: 5px;
}

/* Input pesan */
.live-chat-form {
    padding: 12px 14px;
    background: rgba(11, 19, 36, 0.98);
    gap: 9px;
}

.live-chat-form input {
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
}

.live-chat-form button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s ease;
}

.live-chat-form button:hover {
    transform: scale(1.06);
}

/* Toggle kini FAB 60px — rapatkan tombol scroll-top */
.scroll-top-btn {
    right: 104px;
}

@media (prefers-reduced-motion: reduce) {
    .live-chat-online-dot {
        animation: none;
    }
}

/* ============================================================
   UI V2.1 — Tema seragam semua halaman (backdrop, page-hero,
   subpage: kontak / faq / status / blog / karir)
   Definisi backdrop identik dengan landing-v2.css (duplikat sadar:
   landing memuat keduanya, nilai sama — tidak konflik).
   ============================================================ */

body {
    background-color: var(--primary-dark);
}

.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.pb-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 15% 0%, rgba(29, 58, 110, 0.5), transparent 65%),
        radial-gradient(ellipse 70% 45% at 90% 30%, rgba(6, 182, 212, 0.09), transparent 70%),
        radial-gradient(ellipse 80% 50% at 30% 70%, rgba(59, 130, 246, 0.08), transparent 70%),
        radial-gradient(ellipse 90% 55% at 70% 105%, rgba(139, 92, 246, 0.1), transparent 70%),
        var(--primary-dark);
}

.pb-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
}

.pb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.pb-orb-1 {
    width: 560px; height: 560px; top: 12%; left: -180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 70%);
}

.pb-orb-2 {
    width: 480px; height: 480px; top: 45%; right: -160px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.13), transparent 70%);
}

.pb-orb-3 {
    width: 520px; height: 520px; top: 78%; left: 20%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.11), transparent 70%);
}

/* Section shell + curve (identik dengan landing-v2) */
.section-shell {
    position: relative;
    overflow: clip;
}

.section-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.section-decor ~ .container {
    position: relative;
    z-index: 1;
}

.curve-sep {
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath d='M-20 110 C 300 20, 620 150, 940 70 C 1140 22, 1330 60, 1460 44' stroke='%233b82f6' stroke-opacity='0.3' stroke-width='2' fill='none'/%3E%3Cpath d='M-20 124 C 300 36, 620 164, 940 86 C 1140 38, 1330 76, 1460 58' stroke='%2306b6d4' stroke-opacity='0.18' stroke-width='1.4' fill='none'/%3E%3Cpath d='M-20 96 C 300 6, 620 134, 940 56 C 1140 8, 1330 46, 1460 30' stroke='%2360a5fa' stroke-opacity='0.09' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    -webkit-mask-image: linear-gradient(90deg, black 0%, black 26%, transparent 42%, transparent 58%, black 74%, black 100%);
    mask-image: linear-gradient(90deg, black 0%, black 26%, transparent 42%, transparent 58%, black 74%, black 100%);
    pointer-events: none;
}

.curve-sep-flip {
    transform: scaleX(-1);
}

/* Background solid halaman lama DIMATIKAN — backdrop yang bekerja */
.faq,
.status,
.blog,
.career,
.contact-page {
    background: transparent !important;
}

/* =========================
   PAGE HERO (halaman lanjutan)
   ========================= */
.page-hero {
    padding: 148px 0 30px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
}

.page-hero-text .section-badge {
    margin-bottom: 16px;
}

.page-hero-text .section-title {
    text-align: left;
    margin-bottom: 12px;
}

.page-hero-text .section-description {
    text-align: left;
    font-size: 16.5px;
    max-width: 560px;
}

.page-hero-art svg {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .page-hero {
        padding-top: 128px;
    }

    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        text-align: center;
    }

    .page-hero-text .section-title,
    .page-hero-text .section-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero-art svg {
        max-width: 280px;
    }
}

/* =========================
   KONTAK V2
   ========================= */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.contact-map-panel {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 26, 47, 0.6);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.contact-map-panel iframe {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 380px;
    border: 0;
    filter: grayscale(0.2) contrast(1.02);
}

.contact-map-foot {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
    color: var(--text-muted);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(17, 26, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.contact-card-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: var(--accent-blue-light);
    font-size: 18px;
}

.contact-card h3 {
    font-size: 15px;
    margin: 2px 0 5px;
    color: var(--text-primary);
}

.contact-card p,
.contact-card a {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--accent-blue-light);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================
   FAQ V2 — accordion <details>
   ========================= */
.faq-list-v2 {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item-v2 {
    border-radius: 18px;
    background: rgba(17, 26, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item-v2[open] {
    border-color: rgba(96, 165, 250, 0.35);
}

.faq-item-v2 summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item-v2 summary::-webkit-details-marker {
    display: none;
}

.faq-item-v2 summary:focus-visible {
    outline: 2px solid var(--accent-blue-light);
    outline-offset: -2px;
    border-radius: 18px;
}

.faq-chevron {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.13);
    color: var(--accent-blue-light);
    font-size: 12px;
    transition: transform 0.25s ease;
}

.faq-item-v2[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item-v2 .faq-answer {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* =========================
   BLOG & KARIR — polish kartu
   ========================= */
.blog-card,
.career-card {
    border-radius: 22px;
    background: rgba(17, 26, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card:hover,
.career-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

/* =========================
   STATUS — kartu selaras tema
   ========================= */
.status-card {
    border-radius: 22px;
    background: rgba(17, 26, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Empty state karir (tanpa lowongan aktif) */
.career-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    border-radius: 24px;
    background: rgba(17, 26, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.career-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--accent-blue-light);
    font-size: 28px;
}

.career-empty h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.career-empty p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 26px;
}

.career-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.career-empty-actions .btn {
    padding: 12px 20px;
    font-size: 14px;
}
