html {
    font-size: 14px;
}

/* layout for title with icon */
.admin-table-title-v2 .admin-title-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-table-title-v2 .admin-title-icon-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-table-title-v2 .admin-title-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(2,20,50,0.12));
}

.admin-table-title-v2 .admin-title-texts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

@media (max-width: 768px) {
    .admin-table-title-v2 .admin-title-inner { flex-direction: column; gap: 8px; }
    .admin-table-title-v2 .admin-title-icon { width: 48px; height: 48px; }
    .admin-table-title-v2 > div:first-child { font-size: 1.25rem; }
}
/* end of layout for title with icon */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Landing page reusable styles */
html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #12284C;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #042e6e;
}

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

main[role="main"] {
    width: 100%;
    min-height: auto;
}

.landing-container {
    width: 100%;
    height: 100vh;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #f0f4f8;
    overflow: hidden;
}

.content {
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

    .content h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 25px;
        letter-spacing: -0.5px;
    }

.logo {
    width: 70%;
    height: auto;
    margin: 15px 0 35px 0;
    display: block;
}

.content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 45px;
    letter-spacing: -0.5px;
}

.btn-mulai {
    background: linear-gradient(135deg, #0dcaf0, #e8c678) !important;
    color: #12284C !important;
    border: 1px solid rgba(18, 40, 76, 0.08) !important;
    outline: none !important;
    padding: 10px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 40, 76, 0.18);
    transition: all 0.25s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
}

    .btn-mulai:hover {
        background: linear-gradient(135deg, #ebcb80, #ddb96a) !important;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(18, 40, 76, 0.22);
    }

    .btn-mulai:active {
        transform: translateY(0);
    }

.btn-kembali {
    background: linear-gradient(135deg, #f1c171, #fbdba6) !important;
    color: #4c3812 !important;
    border: 1px solid rgba(18, 40, 76, 0.08) !important;
    outline: none !important;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 40, 76, 0.18);
    transition: all 0.25s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
}

    .btn-kembali:hover {
        background: linear-gradient(135deg, #ffaf2b, #ffaf00) !important;
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(18, 40, 76, 0.22);
    }

    .btn-kembali:active {
        transform: translateY(0);
    }

/* Make the create-question button match the visual weight and size of
   the primary 'Mulai Bertanya' button on the index page. */
.btn-buat-pertanyaan {
    background: linear-gradient(135deg, #0dcaf0, #e8c678) !important;
    color: #12284C !important;
    border: 1px solid rgba(18, 40, 76, 0.08) !important;
    outline: none !important;
    padding: 16px 55px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 40, 76, 0.18);
    transition: all 0.25s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-buat-pertanyaan:hover {
    background: linear-gradient(135deg, #ebcb80, #ddb96a) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(18, 40, 76, 0.22);
}

.btn-buat-pertanyaan:active { transform: translateY(0); }

@media (max-width: 768px) {
    .btn-mulai,
    .btn-buat-pertanyaan {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .question-search-wrap .search-replacement {
        padding: 6px 0 12px;
    }
}

@media (max-width: 480px) {
    .btn-mulai,
    .btn-buat-pertanyaan {
        padding: 10px 18px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .question-search-wrap .search-replacement {
        justify-content: center; /* center the button on very small screens */
    }
}

@media (max-width: 768px) {
    .btn-kembali,
    .btn-buat-pertanyaan {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .question-search-wrap .search-replacement {
        padding: 6px 0 12px;
    }
}

@media (max-width: 480px) {
    .btn-kembali,
    .btn-buat-pertanyaan {
        padding: 10px 18px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .question-search-wrap .search-replacement {
        justify-content: center; /* center the button on very small screens */
    }
}

.badge-hexagon {
    position: absolute;
    bottom: 35px;
    left: 35px;
    z-index: 2;
    background-color: #E8C678;
    color: #12284C;
    width: 125px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Halaman Pertanyaan */
.question-page {
    position: relative;
    min-height: auto;
    width: 100%;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 28px 36px 90px;
    overflow-x: hidden;
}

/*.question-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 250, 255, 0.84), rgba(234, 243, 252, 0.75));
    backdrop-filter: blur(1px);
}*/

.question-header,
.question-search-wrap,
.akun-grid,
.main-page-badge {
    position: relative;
    z-index: 2;
}

.question-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

.question-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.question-logo {
    width: 20%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(18, 40, 76, 0.18));
}

/* ---------------------------------------------------------------------------
   Tombol aksi utama aplikasi. Satu sumber gaya: dipakai "Buat Pertanyaan" dan
   tombol lain seperti "Kembali" supaya tampilannya seragam di semua halaman.
   --------------------------------------------------------------------------- */
.app-btn,
.btn-buat-pertanyaan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(18, 40, 76, 0.08);
    border-radius: 14px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: #12284C !important;
    background: linear-gradient(135deg, #0dcaf0, #ffc1078c);
    box-shadow: 0 10px 24px rgba(79, 59, 245, 0.3);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .app-btn:hover,
    .btn-buat-pertanyaan:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(79, 59, 245, 0.36);
        filter: brightness(1.03);
        color: #ffffff;
    }

    .app-btn:active,
    .btn-buat-pertanyaan:active {
        transform: translateY(0);
        box-shadow: 0 6px 14px rgba(79, 59, 245, 0.24);
    }

    /* Cincin fokus hanya untuk navigasi keyboard, tidak muncul saat diklik mouse. */
    .app-btn:focus-visible,
    .btn-buat-pertanyaan:focus-visible {
        outline: 2px solid #0a69cf;
        outline-offset: 3px;
    }

.app-btn-icon {
    flex: none;
    transition: transform 0.2s ease;
}

.app-btn:hover .app-btn-icon {
    transform: translateX(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .app-btn,
    .btn-buat-pertanyaan,
    .app-btn-icon {
        transition: none;
    }

        .app-btn:hover,
        .btn-buat-pertanyaan:hover,
        .app-btn:hover .app-btn-icon {
            transform: none;
        }
}

.question-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 42px;
}

/* Improve admin title/banner aesthetics for PageQuestion */
.admin-table-title-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    background: linear-gradient(90deg, #0b95ff 0%, #1976ff 100%);
    color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(13,34,64,0.12);
    margin-bottom: 20px;
}



/* Banner layout: left icon, center title, right category pill */
.admin-banner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
    /* Limit banner width and center it in the page */
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

/* Back button above the form (Kembali) */
.form-back-wrap {
    display: flex;
    justify-content: flex-start;
}

.form-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(18, 40, 76, 0.08);
    background: linear-gradient(135deg, #7edbb0, #00ff778c);
    color: #12284C;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.form-back-btn svg {
    width: 16px;
    height: 16px;
    stroke: #12284C;
}

.form-back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(126, 219, 176, 0.15);
    background: linear-gradient(135deg, #6ad49e, #00ff668c);
    color: #ffffff;
}

.form-back-btn:hover svg { stroke: #ffffff; }

.form-back-btn:focus-visible {
    outline: 3px solid rgba(126, 219, 176, 0.25);
    outline-offset: 3px;
}

.admin-banner-left { flex: 0 0 auto; }
.admin-title-icon { 
    width: clamp(48px, 8vw, 68px); 
    height: clamp(48px, 8vw, 68px); 
    object-fit: contain;
    display: block;
}

.admin-banner-center { flex: 1 1 auto; display:flex; justify-content:center; }
.admin-title-main { 
    font-size: clamp(1.1rem, 5vw, 2rem); 
    font-weight: 800; 
    letter-spacing: -0.6px; 
}

/* Back button positioned relative to the banner - sits just outside left edge */
.admin-banner .form-back-wrap {
    position: absolute;
    left: 18px;
    top: -18px; /* place button above the banner */
    transform: none;
    z-index: 12;
}

@media (max-width: 900px) {
    .admin-banner .form-back-wrap { left: 14px; top: -16px; }
}

@media (max-width: 520px) {
    /* Smaller devices: keep above banner but slightly closer */
    .admin-banner .form-back-wrap { left: 10px; top: -12px; }
}

.admin-banner-right { flex: 0 0 auto; }
.admin-banner-right .inv2-category-name {
    display: inline-block;
    background: #ffffff;
    color: #0b66bf;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(11,102,191,0.12);
}

@media (max-width: 1024px) {
    .admin-title-main { font-size: clamp(1.1rem, 5vw, 1.8rem); }
    .admin-title-icon { width: clamp(48px, 7vw, 60px); height: clamp(48px, 7vw, 60px); }
}

@media (max-width: 720px) {
    .admin-banner { gap: 12px; }
    .admin-title-main { font-size: 1.25rem; }
    .admin-banner-right .inv2-category-name { padding: 6px 12px; font-size: 0.95rem; }
}


/* Make banner responsive on narrow screens: stack elements and allow the
   category pill to wrap under the title. */
@media (max-width: 520px) {
    .admin-table-title-v2 { padding: 12px 14px; }
    .admin-banner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .admin-banner-left { order: 0; }
    .admin-banner-center { order: 1; }
    .admin-banner-right { order: 2; }

    .admin-title-icon { width: clamp(44px, 6vw, 52px); height: clamp(44px, 6vw, 52px); }
    .admin-title-main { font-size: clamp(1rem, 4vw, 1.25rem); }

    .admin-banner-right .inv2-category-name {
        display: inline-block;
        margin: 0 auto;
        padding: 6px 10px;
        font-size: 0.9rem;
        white-space: normal;
    }

    /* Ensure banner doesn't overflow small screens */
    .admin-table-title-v2 { border-radius: 16px; }
}
/* End Of Improve admin title/banner aesthetics for PageQuestion */

.search-box {
    width: min(760px, 90%);
    background: #fff;
    border: 1px solid rgba(18, 40, 76, 0.3);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(18, 40, 76, 0.1);
}

.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f2444;
    line-height: 1;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

.search-submit {
    border: none;
    background: linear-gradient(135deg, #2d83ff, #685dff);
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-submit svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    color: #0f2444;
    cursor: pointer;
}

.search-close svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,0.9);
}

.search-close:hover {
    background: rgba(18,40,76,0.06);
}
}

.search-box > input,
.search-box input[type="text"],
.search-box input[name="q"] {
    /* make the input fill remaining space of the search box */
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    /* allow input to flex and shrink correctly inside the search box */
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 0; /* keep vertical padding but remove inner horizontal padding so it aligns with search-box gap */
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: #12284C;
    background: transparent;
}

.search-close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #12284C;
    cursor: pointer;
    line-height: 1;
}

.akun-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 24px;
}

/* New category card layout used on Pertanyaan page */
.kategori-judul {
    font-size: 1.25rem;
    font-weight: 800;
    color: #12284C;
    margin: 0 0 18px 6px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px 24px;
}

.category-card {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(18, 40, 76, 0.06);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 14px rgba(18, 40, 76, 0.04);
}

.category-card .card-inner {
    display: flex;
    gap: 18px;
    align-items: center;
}

.category-card .card-icon {
    flex: 0 0 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card .card-icon svg { display: block; }

.category-card .card-icon img,
.card-icon-img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    display: block;
}

.category-card .card-body {
    flex: 1 1 auto;
}

.title-pill {
    display: inline-block;
    background: linear-gradient(155deg, #5196cf 0%, #1465a6 58%, #10518e 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.category-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.category-card-link:focus {
    outline: 3px solid rgba(7,166,106,0.18);
    outline-offset: 3px;
}

.card-desc {
    margin: 0 0 8px 0;
    color: #23436f;
    font-size: 0.95rem;
    line-height: 1.4;
}

.category-card .btn-lebih-banyak {
    margin: 6px 0 0 0;
    color: #0b7bd6;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .category-grid { grid-template-columns: 1fr; }
    .question-logo { width: 30%; }
}

.akun-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(18, 40, 76, 0.1);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 12px 26px rgba(18, 40, 76, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .akun-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 30px rgba(18, 40, 76, 0.16);
    }

    .akun-card h2 {
        margin: 0 0 14px;
        font-size: 1rem;
        line-height: 1;
        font-weight: 800;
        color: #0f2444;
    }

    .akun-card ul {
        margin: 0;
        padding-left: 18px;
    }

    .akun-card li {
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 500;
        color: #1d355c;
    }

.akun-card-perjalanan {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dadada;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 24px 14px;
}

    .akun-card-perjalanan h2 {
        text-align: center;
        font-size: 3rem;
        line-height: 1.05;
        margin-bottom: 16px;
        color: #000000;
    }

    .akun-card-perjalanan ol {
        margin: 0 0 12px;
        padding-left: 22px;
    }

    .akun-card-perjalanan li {
        color: #000000;
        font-size: 2rem;
        line-height: 1.15;
        font-weight: 600;
        margin-bottom: 10px;
    }

.btn-lebih-banyak {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    color: #0088ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

    .btn-lebih-banyak:hover {
        color: #0077e2;
        text-decoration: underline;
    }

.main-page-badge {
    position: absolute;
    left: 26px;
    bottom: 24px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    color: #12284C;
    background: #efd189;
    text-decoration: none;
    width: 122px;
    height: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(28% 0, 72% 0, 100% 50%, 72% 100%, 28% 100%, 0 50%);
    box-shadow: 0 12px 22px rgba(18, 40, 76, 0.22);
}

@media (max-width: 1024px) {
    .akun-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

/* Halaman Form Pertanyaan */
.form-page {
    position: relative;
    min-height: auto;
    width: 100%;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 28px 28px 92px;
    overflow-x: hidden;
}

.form-page-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.78), transparent 42%), radial-gradient(circle at 80% 12%, rgba(214, 237, 255, 0.62), transparent 38%), linear-gradient(140deg, rgba(247, 251, 255, 0.92), rgba(231, 241, 252, 0.85));
    backdrop-filter: blur(1px);
}

.form-layout,
.form-page-badge {
    position: relative;
    z-index: 2;
}

.form-layout {
    display: grid;
    /* Single centered column for the form card. Keep a max width so the
       card remains centered on wide screens. */
    grid-template-columns: minmax(420px, 560px);
    justify-content: center;
    gap: 24px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .form-layout {
        grid-template-columns: minmax(320px, 92%);
    }
}

@media (max-width: 420px) {
    .form-layout {
        grid-template-columns: 94%;
        padding: 0 8px;
    }
    .form-card { padding: 18px; }
}

.form-logo-link {
    display: inline-flex;
    margin-top: 6px;
}

.form-logo {
    width: 112px;
    max-width: 100%;
    filter: drop-shadow(0 10px 16px rgba(18, 40, 76, 0.22));
}

.form-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(145, 174, 214, 0.28);
    border-radius: 22px;
    padding: 24px 24px 18px;
    box-shadow: 0 24px 46px rgba(26, 54, 93, 0.18);
    backdrop-filter: blur(12px);
}

    .form-card h1 {
        margin: 0 0 18px;
        color: #163460;
        font-size: 1.55rem;
        font-weight: 800;
        letter-spacing: -0.3px;
    }

.professional-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 6px;
    color: #23436f;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1px;
}

.professional-form input,
.professional-form textarea,
.professional-form select {
    width: 100%;
    border: 1px solid rgba(133, 163, 201, 0.38);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: #153256;
    padding: 11px 12px;
    min-height: 42px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.professional-form textarea {
    min-height: 106px;
    resize: vertical;
}

    .professional-form input::placeholder,
    .professional-form textarea::placeholder {
        color: rgba(56, 89, 129, 0.58);
    }

.professional-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #3f6ea8 50%), linear-gradient(135deg, #3f6ea8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

    .professional-form input:focus,
    .professional-form textarea:focus,
    .professional-form select:focus {
        border-color: #4d91ff;
        box-shadow: 0 0 0 4px rgba(77, 145, 255, 0.16);
        background-color: #ffffff;
    }

.kategori-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kategori-item {
    border: 1px solid rgba(126, 160, 203, 0.45);
    border-radius: 999px;
    background: rgba(245, 250, 255, 0.92);
    color: #29486d;
    text-align: left;
    padding: 8px 14px;
    min-height: 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .kategori-item:hover {
        background: #eef5ff;
        border-color: rgba(97, 143, 201, 0.7);
        transform: translateY(-1px);
    }

    .kategori-item.active {
        border-color: transparent;
        background: linear-gradient(135deg, #2d83ff, #5f63ff);
        color: #ffffff;
        box-shadow: 0 8px 16px rgba(56, 105, 211, 0.28);
    }

.form-submit-btn {
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2783ff, #685dff);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(62, 101, 211, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .form-submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(62, 101, 211, 0.32);
        filter: brightness(1.03);
    }

    .form-submit-btn:active {
        transform: translateY(0);
    }

.form-footnote {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: #4c678d;
    font-weight: 600;
    text-align: left;
    line-height: 1.45;
}

.form-note-bubble {
    margin-top: 118px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 12px 24px rgba(18, 40, 76, 0.12);
    border: 1px solid rgba(129, 158, 198, 0.24);
    backdrop-filter: blur(8px);
}

    .form-note-bubble p {
        margin: 0;
        color: #23436f;
        font-weight: 700;
        font-size: 0.72rem;
        text-align: left;
        line-height: 1.45;
    }

.form-page-badge {
    position: absolute;
    left: 26px;
    bottom: 18px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.6px;
    font-size: 0.92rem;
    color: #12284C;
    background: #efd189;
    text-decoration: none;
    width: 126px;
    height: 136px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(28% 0, 72% 0, 100% 50%, 72% 100%, 28% 100%, 0 50%);
    box-shadow: 0 12px 22px rgba(18, 40, 76, 0.22);
}

/* Halaman Detail Pertanyaan / Detail Jawaban */
.detail-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 12px 24px 86px;
    overflow-x: hidden;
}

.detail-page-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(244, 250, 255, 0.83), rgba(230, 241, 252, 0.73));
}

.detail-header,
.detail-content {
    position: relative;
    z-index: 2;
}

.detail-header {
    max-width: 1120px;
    margin: 0 auto 6px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
}

.detail-logo-link {
    display: inline-flex;
}

.detail-logo {
    width: 20%;
    filter: drop-shadow(0 10px 14px rgba(18, 40, 76, 0.18));
}

.detail-title {
    justify-self: center;
    margin: 0;
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #e94f84;
    text-shadow: 0 8px 0 rgba(145, 17, 63, 0.18);
}

.topic-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    font-weight: 800;
    color: #0f2444;
}

.topic-status-label {
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: 0.2px;
}

.topic-status-open,
.topic-status-closed {
    color: #111;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1.05rem;
    font-weight: 900;
    transform: rotate(-9deg);
    box-shadow: 0 8px 16px rgba(18, 40, 76, 0.18);
    display: inline-block;
}

.topic-status-open {
    background: #35c25a;
    color: #ffffff;
}

.topic-status-closed {
    background: #ff5630;
}

.detail-content {
    max-width: 970px;
    margin: 5% 11% 0;
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 16px;
    align-items: start;
}

.q-icon,
.a-icon {
    justify-self: center;
    font-size: 4.4rem;
    line-height: 0.9;
    font-weight: 900;
    text-shadow: 5px 5px 0 #111111;
}

.q-icon {
    grid-column: 1;
    grid-row: 1;
    color: #f6e458;
}

.a-icon {
    grid-column: 1;
    grid-row: 2;
    color: #63f53f;
}

.detail-question-card,
.detail-answer-card {
    width: 100%;
    border-radius: 5px;
    border: 1px solid rgba(18, 40, 76, 0.12);
    box-shadow: none;
    padding: 10px 14px;
}

.detail-question-card {
    grid-column: 2;
    grid-row: 1;
    background: #f4df53;
}

.detail-answer-card {
    grid-column: 2;
    grid-row: 2;
    background: #6df044;
}

    .detail-question-card p,
    .detail-answer-card p {
        margin: 0;
        text-align: center;
        font-weight: 600;
        line-height: 1.35;
        color: #141414;
    }


@media (max-width: 900px) {
    .detail-header {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "logo title"
            "status status";
        row-gap: 8px;
    }

    .detail-logo-link {
        grid-area: logo;
    }

    .detail-title {
        grid-area: title;
    }

    .topic-status-wrap {
        grid-area: status;
        justify-self: end;
    }

    .q-icon {
        margin-left: 16px;
    }
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .content h2 {
        font-size: 1.75rem;
        margin-bottom: 35px;
    }

    .logo {
        width: 70%;
        margin-bottom: 25px;
    }

    .btn-mulai {
        padding: 12px 40px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .badge-hexagon {
        width: 95px;
        height: 105px;
        font-size: 0.58rem;
        bottom: 20px;
        left: 20px;
    }

    .question-page {
        padding: 20px 16px 86px;
    }

    .question-logo {
        width: 20%;
    }

    .btn-buat-pertanyaan {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .question-search-wrap {
        margin-bottom: 24px;
    }

    .search-box {
        width: 100%;
    }

    .akun-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .akun-card h2 {
        font-size: 1.8rem;
    }

    .main-page-badge {
        width: 96px;
        height: 104px;
        font-size: 0.75rem;
        left: 12px;
        bottom: 12px;
    }

    .form-page {
        padding: 16px 12px 82px;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 640px;
    }

    .form-logo-link {
        margin-top: 0;
    }

    .form-logo {
        width: 96px;
    }

    .form-card {
        border-radius: 16px;
        padding: 18px 14px 14px;
    }

        .form-card h1 {
            font-size: 1.35rem;
            margin-bottom: 14px;
        }

    .form-group label {
        font-size: 0.95rem;
    }

    .professional-form {
        gap: 12px;
    }

        .professional-form input,
        .professional-form textarea,
        .professional-form select {
            font-size: 0.86rem;
            min-height: 40px;
        }

        .professional-form textarea {
            min-height: 92px;
        }

    .form-submit-btn {
        font-size: 0.95rem;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .form-note-bubble {
        margin-top: 4px;
        border-radius: 14px;
        padding: 12px 14px;
    }

        .form-note-bubble p {
            font-size: 0.78rem;
            text-align: left;
        }

    .form-page-badge {
        width: 98px;
        height: 108px;
        font-size: 0.72rem;
        left: 10px;
        bottom: 10px;
    }

    .detail-page {
        padding: 12px 10px 82px;
    }

    .detail-logo {
        width: 20%;
    }

    .detail-title {
        font-size: 2.5rem;
    }

    .topic-status-wrap {
        margin-top: 4px;
        gap: 6px;
        justify-self: end;
    }

    .topic-status-label {
        font-size: 1.1rem;
    }

    .topic-status-open,
    .topic-status-closed {
        font-size: 0.8rem;
        padding: 4px 6px;
    }

    .detail-content {
        grid-template-columns: 52px 1fr;
        row-gap: 10px;
        column-gap: 10px;
    }

    .q-icon,
    .a-icon {
        font-size: 3.8rem;
        text-shadow: 3px 3px 0 #111111;
    }

    .detail-question-card,
    .detail-answer-card {
        padding: 10px 8px;
    }

        .detail-question-card p,
        .detail-answer-card p {
            font-size: 0.95rem;
            text-align: left;
        }
}

/* Detail Pertanyaan V2 (match mockup, modern-professional) */
.detail-question-v2 {
    padding: 10px 28px 48px;
}

    .detail-question-v2 .detail-page-overlay {
        background: radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.88), transparent 38%), radial-gradient(circle at 82% 12%, rgba(220, 238, 255, 0.62), transparent 36%), linear-gradient(130deg, rgba(245, 251, 255, 0.92), rgba(228, 240, 251, 0.78));
    }

.detail-header-v2,
.detail-hero-v2,
.detail-content-v2 {
    position: relative;
    z-index: 2;
}

.detail-header-v2 {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.detail-header-v2 .detail-logo-link-v2 {
    display: none;
}

.detail-header-actions-v2 {
    display: flex;
    align-items: center;
    gap: 18px;
}

.detail-back-form-v2 {
    margin: 0;
}

.detail-logo-link-v2 {
    margin-top: 2px;
}

.detail-logo-v2 {
    /* Larger, responsive header logo:
       - Use clamp to allow fluid sizing between a minimum and maximum.
       - Keep max-width:100% to avoid overflow inside small containers. */
    width: clamp(120px, 12vw, 260px);
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 8px 18px rgba(16, 57, 101, 0.22));
}

.topic-status-wrap-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topic-status-label-v2 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b7796;
}

/* Pil status: latar lembut + titik warna, bukan blok warna penuh, supaya
   tidak bersaing dengan tombol aksi di sebelahnya. */
.topic-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.topic-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.topic-status-pill-open {
    color: #b06a12;
    background: #fff5e6;
    border-color: #f0cf9d;
}

.topic-status-pill-close {
    color: #0b7a4c;
    background: #e8f8f0;
    border-color: #a6dcc2;
}

/* Varian .app-btn yang sedikit dirapatkan, untuk tombol di dalam header/navbar.
   Dipakai tombol "Kembali" pada halaman detail maupun daftar pertanyaan. */
.app-btn-sm {
    padding: 11px 20px;
    font-size: 0.95rem;
}

.detail-hero-v2 {
    max-width: 1080px;
    margin: 18px auto 26px;
    text-align: center;
}

.detail-hero-logo-v2 {
    /* Prominent hero logo (SVG) with responsive sizing. Using clamp keeps the
       logo proportional across viewports. SVG ensures crisp rendering. */
    width: 30%;
    height: 50%;
    object-fit: contain;
    border-radius: 0; /* keep original shape for SVG; remove mask */
    filter: drop-shadow(0 12px 28px rgba(13, 71, 135, 0.22));
    /* Smoothly animate size/visual changes (e.g. when viewport changes or
       when hovering). Respects user preference for reduced motion below. */
    transition: width 260ms ease, filter 260ms ease, transform 260ms ease;
}

@media (max-width: 767px) {
    .detail-hero-logo-v2 {
        width: 60%; /* Diperbesar agar tetap jelas di layar kecil */
        height: auto; /* Menghindari distorsi tinggi pada mobile */
        filter: drop-shadow(0 6px 14px rgba(13, 71, 135, 0.18)); /* Bayangan lebih tipis */
    }
}

/* Subtle scale on hover/focus to give a tactile feel on pointer devices */
.detail-hero-logo-v2:hover,
.detail-hero-logo-v2:focus {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .detail-hero-logo-v2 {
        transition: none !important;
    }
}

/* Header layout adjustments for smaller screens so logo and actions stack */
/*@media (max-width: 860px) {
    .detail-header-v2 {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 8px;
    }

    .detail-logo-link-v2 {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .detail-header-actions-v2 {
        width: 100%;
        justify-content: flex-end;
    }
}*/

/*@media (max-width: 480px) {
    .detail-header-v2 {
        align-items: center;
    }

    .detail-title-v2 { font-size: 1.6rem; }
}

.detail-title-v2 {
    margin: 12px 0 4px;
    font-size: 2rem;
    font-weight: 800;
    color: #0a2f59;
    letter-spacing: -0.01em;
    line-height: 1.1;
}*/

.detail-subtitle-v2 {
    margin: 0;
    font-size: 0.95rem;
    color: #5b7796;
    font-weight: 600;
}

.detail-content-v2 {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---------------------------------------------------------------------------
   Kartu Q&A. Latar putih dengan aksen warna di tepi kiri: teks panjang jauh
   lebih terbaca dibanding blok warna pekat, dan strukturnya (kepala, metadata,
   isi) membuat halaman terbaca seperti berkas resmi.
   --------------------------------------------------------------------------- */
.qa-card-v2 {
    position: relative;
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    padding: 22px 26px 24px 30px;
    box-shadow: 0 12px 30px rgba(10, 54, 100, 0.09);
    overflow: hidden;
}

    .qa-card-v2::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
    }

.qa-card-question-v2::before {
    background: linear-gradient(180deg, #0c5b9d, #0b7ecf);
}

.qa-card-answer-v2::before {
    background: linear-gradient(180deg, #0aa0f1, #23c4b8);
}

.qa-card-answer-v2.is-waiting::before {
    background: linear-gradient(180deg, #d7e0ea, #c3cfdc);
}

.qa-card-head-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qa-badge-v2 {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.qa-badge-q-v2 {
    background: linear-gradient(140deg, #0c5b9d, #0b7ecf);
    box-shadow: 0 6px 14px rgba(12, 91, 157, 0.28);
}

.qa-badge-a-v2 {
    background: linear-gradient(140deg, #0aa0f1, #23c4b8);
    box-shadow: 0 6px 14px rgba(10, 160, 241, 0.26);
}

.is-waiting .qa-badge-a-v2 {
    background: linear-gradient(140deg, #b9c6d5, #9fb0c3);
    box-shadow: none;
}

.qa-card-heading-v2 {
    flex: 1;
    min-width: 0;
}

    .qa-card-heading-v2 h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f2a4d;
        line-height: 1.2;
    }

    .qa-card-heading-v2 p {
        margin: 3px 0 0;
        font-size: 0.82rem;
        font-weight: 600;
        color: #6b849e;
    }

.qa-card-date-v2 {
    flex: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: #7b93ab;
    white-space: nowrap;
}

.qa-meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.qa-chip-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f6fc;
    border: 1px solid #dde8f4;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #24507f;
}

.qa-chip-label-v2 {
    font-weight: 600;
    color: #8399b0;
}

.qa-card-body-v2 {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #edf2f8;
}

    .qa-card-body-v2 p {
        margin: 0;
        /* Teks panjang: rata kiri, ukuran nyaman, jarak baris lega. */
        text-align: left;
        font-size: 0.98rem;
        font-weight: 500;
        line-height: 1.65;
        color: #22405f;
        white-space: pre-line;
        overflow-wrap: anywhere;
    }

.qa-card-answer-v2.is-waiting .qa-card-body-v2 p {
    color: #8b9db0;
    font-style: italic;
}

/* Keadaan kosong ketika pertanyaan tidak ditemukan. */
.qa-empty-v2 {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    padding: 48px 28px;
    text-align: center;
    color: #7b93ab;
    box-shadow: 0 12px 30px rgba(10, 54, 100, 0.09);
}

    .qa-empty-v2 h2 {
        margin: 14px 0 6px;
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f2a4d;
    }

    .qa-empty-v2 p {
        margin: 0 auto 22px;
        max-width: 460px;
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.6;
    }

@media (max-width: 860px) {
    .detail-question-v2 {
        padding: 12px 14px 34px;
    }

    .detail-header-v2 {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .detail-header-actions-v2 {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .detail-logo-v2 {
        width: 132px;
    }

    .app-btn-sm {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .detail-hero-v2 {
        margin: 10px auto 18px;
    }

/*    .detail-hero-logo-v2 {
        width: 60px;
        height: 60px;
    }*/

    .detail-title-v2 {
        font-size: 1.55rem;
    }

    .detail-subtitle-v2 {
        font-size: 0.86rem;
    }

    .qa-card-v2 {
        padding: 18px 16px 20px 20px;
        border-radius: 14px;
    }

    /* Tanggal pindah ke bawah judul agar kepala kartu tidak berdesakan. */
    .qa-card-head-v2 {
        flex-wrap: wrap;
        gap: 12px;
    }

    .qa-card-date-v2 {
        width: 100%;
        padding-left: 54px;
    }

    .qa-badge-v2 {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .qa-card-body-v2 p {
        font-size: 0.94rem;
    }
}

/* Halaman Admin Dashboard */
.admin-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 12px 24px 86px;
    overflow-x: hidden;
}

.admin-page-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(244, 250, 255, 0.83), rgba(230, 241, 252, 0.73));
}

.admin-header,
.admin-navbar,
.admin-table-wrap {
    position: relative;
    z-index: 2;
}

.admin-header {
    max-width: 1180px;
    margin: 0 auto 12px;
}

.admin-logo-link {
    display: inline-flex;
}

.admin-logo {
    width: 20%;
    filter: drop-shadow(0 10px 14px rgba(18, 40, 76, 0.18));
}

.admin-navbar {
    max-width: 1040px;
    margin: 10px auto 0;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(237, 245, 255, 0.78));
    border: 1px solid rgba(148, 176, 214, 0.32);
    box-shadow: 0 14px 30px rgba(13, 45, 84, 0.12);
    backdrop-filter: blur(10px);
}

/* Semua tombol dirapatkan ke kanan. Dipakai halaman daftar pertanyaan, di mana
   jumlah tombolnya berubah menurut peran sehingga "space-between" akan membuat
   satu tombol melompat ke kiri saat tombol lainnya tidak dirender. */
.admin-navbar-end {
    justify-content: flex-end;
}

.admin-navbar-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-navbar-item {
    display: inline-flex;
}

.admin-navbar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #1a3d69;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(130, 164, 206, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: all 0.22s ease;
}

    .admin-navbar-item.active .admin-navbar-link,
    .admin-navbar-link:hover {
        color: #ffffff;
        background: linear-gradient(135deg, #2a8cff, #4f67ff);
        border-color: transparent;
        box-shadow: 0 10px 20px rgba(44, 105, 232, 0.28);
        transform: translateY(-1px);
    }

    .admin-navbar-link:focus-visible,
    .admin-navbar-back-button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(64, 136, 255, 0.25);
    }

.admin-navbar-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #123258;
    background: linear-gradient(135deg, #ffffff, #e8f1ff);
    border: 1px solid rgba(121, 156, 202, 0.44);
    box-shadow: 0 8px 18px rgba(16, 48, 86, 0.14);
    transition: all 0.2s ease;
}

    .admin-navbar-back-button::before {
        content: "←";
        margin-right: 8px;
        font-weight: 800;
    }

    .admin-navbar-back-button:hover {
        color: #ffffff;
        background: linear-gradient(135deg, #3859ff, #2a8cff);
        border-color: transparent;
        box-shadow: 0 12px 24px rgba(43, 103, 229, 0.32);
        transform: translateY(-1px);
    }

.admin-table-wrap {
    max-width: 1040px;
    margin: 18px auto 0;
}

.admin-table-title {
    background: #08b43e;
    color: #ffffff;
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    padding: 16px 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
}

    .admin-table th,
    .admin-table td {
        border: 1px solid rgba(18, 40, 76, 0.12);
        padding: 14px 10px;
        font-size: 1.95rem;
        color: #111111;
        vertical-align: middle;
    }

    .admin-table th {
        background: #ddffee;
        font-weight: 700;
        text-align: center;
    }

    .admin-table td:nth-child(1) {
        width: 14%;
        text-align: center;
    }

    .admin-table td:nth-child(2) {
        width: 30%;
    }

    .admin-table td:nth-child(3) {
        width: 24%;
    }

    .admin-table td:nth-child(4),
    .admin-table td:nth-child(5) {
        width: 16%;
        text-align: center;
    }

.admin-date-pill {
    display: inline-block;
    background: #e9e9e9;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f2444;
    line-height: 1;
}

.admin-action-pill,
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-width: 130px;
    padding: 8px 18px;
    font-size: 1.85rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.1;
}

.admin-action-fix {
    background: #ecd27a;
    color: #ffffff;
}

.admin-action-answer {
    background: #0d4f96;
    color: #ffffff;
}

.admin-status-close {
    background: #07b843;
    color: #ffffff;
}

.admin-status-open {
    background: #de2f62;
    color: #ffffff;
}

/* Halaman Admin Dashboard V2 */
.admin-page-v2 .admin-page-overlay {
    background: linear-gradient(130deg, rgba(245, 250, 255, 0.76), rgba(230, 240, 250, 0.66));
}

.admin-header-v2 {
    max-width: 1060px;
    margin-bottom: 8px;
}

.admin-table-wrap-v2 {
    max-width: 1060px;
    margin-top: 30px;
}

.admin-table-title-v2 {
    background: #008dff;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 18px 20px;
    text-align: center;
}

.admin-table-v2 {
    table-layout: fixed;
}

    .admin-table-v2 thead th {
        background: #008dff;
        color: #ffffff;
        border-color: #0075d6;
        font-size: 2rem;
        font-weight: 800;
        padding: 16px 8px;
    }

    .admin-table-v2 .col-no {
        width: 6%;
        text-align: center;
    }

    .admin-table-v2 .col-date {
        width: 16%;
        text-align: left;
        padding-left: 18px;
    }

    .admin-table-v2 .col-question {
        width: 54%;
        text-align: center;
    }

    .admin-table-v2 .col-status {
        width: 24%;
        text-align: center;
    }

    .admin-table-v2 td {
        background: #ffffff;
        font-size: 2rem;
        font-weight: 600;
        color: #000000;
        border-color: #c4ccd3;
        padding: 12px 10px;
    }

    .admin-table-v2 .cell-no {
        text-align: center;
        font-weight: 700;
    }

    .admin-table-v2 .cell-date {
        text-align: center;
    }

    .admin-table-v2 .cell-question {
        line-height: 1.22;
    }

    .admin-table-v2 .cell-status {
        text-align: center;
        font-weight: 700;
    }

    .admin-table-v2 .status-dijawab {
        background: #00c853;
        color: #000000;
    }

    .admin-table-v2 .status-belum {
        background: #b7bec6;
        color: #000000;
    }

.admin-page-v2 .admin-date-pill {
    background: #efefef;
    border: 1px solid #d5d5d5;
    font-size: 1.4rem;
    font-weight: 700;
    color: #132b4c;
    padding: 4px 14px;
}

.admin-badge-v2 {
    font-size: 2rem;
    line-height: 1.05;
    width: 160px;
    height: 178px;
    left: 32px;
    bottom: 22px;
    background: #eacb73;
    color: #000000;
}

@media (max-width: 768px) {
    .admin-table-title-v2 {
        font-size: 1.15rem;
        padding: 12px 10px;
    }

    .admin-table-v2 {
        min-width: 980px;
    }

        .admin-table-v2 thead th {
            font-size: 1.05rem;
            padding: 10px 8px;
        }

        .admin-table-v2 td {
            font-size: 0.95rem;
            padding: 10px 8px;
        }

    .admin-page-v2 .admin-date-pill {
        font-size: 0.86rem;
        padding: 4px 10px;
    }

    .admin-badge-v2 {
        width: 100px;
        height: 110px;
        font-size: 0.72rem;
        left: 10px;
        bottom: 10px;
    }
}

/* Admin Dashboard V2 - Enterprise Compact (override) */
.inv2-page {
    min-height: auto;
    background: #f5f8fc;
    padding: 18px 18px 26px;
}

.inv2-shell {
    max-width: 1760px;
    margin: 0 auto;
}

.inv2-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* responsive, centered search wrapper */
.inv2-search-wrap {
    width: clamp(320px, 60%, 760px); /* min 320, preferred 60% of container, max 760 */
    max-width: 760px;
    margin: 0 auto;
    height: clamp(44px, 6vh, 56px); /* responsive height between 44 and 56 */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #ffffffcc; /* semi-transparent bg to blend with page */
    box-shadow: 0 6px 18px rgba(2,20,50,0.12);
    border: 1px solid rgba(2,20,50,0.06);
}

    .inv2-search-wrap input {
        border: none;
        outline: none;
        flex: 1;
        height: 100%;
        padding: 0 6px ;
        font-size: 14px;
        color: #2b3f57;
        background: #fff;
    }

    .inv2-search-wrap button {
        border: none;
        background: transparent;
        width: 30px;
        height: 100%;
        color: #7e95ad;
        font-size: 20px;
        cursor: pointer;
    }

.inv2-link-action {
    font-size: 12px;
    color: #2f91f5;
    text-decoration: none;
    font-weight: 600;
}

/* Tombol unduh: tinggi disamakan dengan kotak pencarian di sebelahnya. */
.inv2-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 18px 22px;
    border: 1px solid #cddcec;
    border-radius: 6px;
    background: #fff;
    color: #2f6fae;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(18, 40, 76, 0.06);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .inv2-export-btn:hover:not(:disabled) {
        background: #f2f8ff;
        border-color: #9dc4ec;
        color: #1b5aa0;
        box-shadow: 0 2px 6px rgba(18, 40, 76, 0.12);
    }

    .inv2-export-btn:active:not(:disabled) {
        transform: translateY(1px);
        box-shadow: none;
    }

    /* Cincin fokus hanya muncul untuk navigasi keyboard, bukan saat diklik mouse. */
    .inv2-export-btn:focus-visible {
        outline: 2px solid #2f91f5;
        outline-offset: 2px;
    }

    .inv2-export-btn:disabled {
        opacity: 0.65;
        cursor: default;
    }

.inv2-export-icon,
.inv2-export-spinner {
    flex: none;
}

.inv2-export-icon {
    transition: transform 0.15s ease;
}

/* Panah ikut bergerak turun saat hover - isyarat halus arah "unduh". */
.inv2-export-btn:hover:not(:disabled) .inv2-export-icon {
    transform: translateY(1px);
}

.inv2-export-spinner {
    display: none;
    animation: inv2-spin 0.7s linear infinite;
}

.inv2-export-btn.is-loading .inv2-export-icon {
    display: none;
}

.inv2-export-btn.is-loading .inv2-export-spinner {
    display: block;
}

@keyframes inv2-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .inv2-export-btn,
    .inv2-export-icon {
        transition: none;
    }

    .inv2-export-btn:hover:not(:disabled) .inv2-export-icon {
        transform: none;
    }

    .inv2-export-spinner {
        animation-duration: 2s;
    }
}

.inv2-table-card {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #d9e3ef;
    border-radius: 6px;
    overflow: hidden;
}

.inv2-table-wrap {
    overflow-x: auto;
}

.inv2-table {
    width: 100%;
    border-collapse: collapse;
    /* Allow table columns to size based on their content so non-"Pertanyaan"
       columns become dynamic. Min-width is removed so layout can shrink on
       small screens; horizontal scrolling is still provided by the wrapper
       (."inv2-table-wrap"). */
    table-layout: auto;
    min-width: 0;
}

    .inv2-table thead tr.inv2-head-label th {
        font-size: 12px;
        font-weight: 700;
        color: #143f67;
        text-align: left;
        padding: 8px 10px;
        background: #f7fafc;
        border-bottom: 1px solid #dfe7f1;
        white-space: nowrap;
    }

    .inv2-table thead tr.inv2-head-filter th {
        background: #f7fafc;
        border-bottom: 1px solid #dfe7f1;
        padding: 6px 10px;
    }

    .inv2-table thead input,
    .inv2-table thead select {
        width: 100%;
        height: 24px;
        border: 1px solid #d6e1ee;
        border-radius: 3px;
        font-size: 11px;
        color: #355272;
        padding: 0 8px;
        background: #fff;
        outline: none;
    }

.inv2-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.inv2-filter-actions button {
    width: 28px;
    height: 24px;
    border: 1px solid #c9dbef;
    border-radius: 4px;
    background: #fff;
    color: #4a6f96;
    cursor: pointer;
}

    /* Tombol reset hanya menonjol saat benar-benar ada filter yang aktif. */
    .inv2-filter-actions button:disabled {
        opacity: 0.45;
        cursor: default;
    }

    .inv2-filter-actions button.is-active {
        border-color: #f3a06f;
        background: #fff1e9;
        color: #d66a2f;
        font-weight: 700;
    }

.inv2-table tbody td {
    font-size: 12px;
    color: #103459;
    padding: 8px 10px;
    border-bottom: 1px solid #e3ebf4;
    vertical-align: middle;
    /* Allow cell content to wrap by default so column width is driven by
       content. Specific columns keep nowrap via their classes (.inv2-question,
       .inv2-title, .inv2-question-link). */
    white-space: normal;
    word-break: break-word;
}

.inv2-primary {
    font-weight: 700;
    color: #0d3963;
    line-height: 1.2;
}

.inv2-sub {
    font-size: 10px;
    color: #7e95ad;
    margin-top: 2px;
}

.inv2-question {
    /* Allow question text to wrap and limit its width for readability */
    max-width: 420px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

/* Keep title and question link truncated to preserve layout. Other cells will
   expand/shrink to fit their content. */
.inv2-title,
.inv2-question-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Minimum/priority sizing for table columns. Columns without a fixed width
   will grow/shrink based on content, but these min-widths ensure readability
   and prevent extremely narrow columns. */
.inv2-table thead th.col-no { min-width: 48px; }
.inv2-table thead th.col-question-no { min-width: 120px; }
.inv2-table thead th.col-date { min-width: 100px; }
.inv2-table thead th.col-title { min-width: 140px; }
.inv2-table thead th.col-pertanyaan { min-width: 240px; }
.inv2-table thead th.col-category { min-width: 120px; }
.inv2-table thead th.col-employee { min-width: 140px; }
.inv2-table thead th.col-status { min-width: 100px; }

@media (max-width: 1024px) {
    .inv2-table thead th.col-pertanyaan { min-width: 200px; }
    .inv2-table thead th.col-title { min-width: 100px; }
    .inv2-table thead th.col-employee { min-width: 110px; }
}

@media (max-width: 640px) {
    /* On narrow screens push to wrapping / scrolling earlier */
    .inv2-table thead th.col-pertanyaan { min-width: 180px; }
}

/* Responsive behaviour requested: when width < 900px truncate Judul and Pembuat,
   but keep Pertanyaan visible (allow wrapping). */
@media (max-width: 900px) {
    .inv2-table td.col-title,
    .inv2-table td.col-employee {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Make Pertanyaan column wrap so longer questions remain readable. */
    .inv2-table td.col-pertanyaan,
    .inv2-table td.col-pertanyaan .inv2-question-link {
        white-space: normal !important;
        overflow: visible !important;
    }

    /* Reduce padding slightly to fit more content on small screens */
    .inv2-table tbody td {
        padding: 6px 8px;
    }
}

/* Jalan keluar dari lingkup kategori, hanya tampil bagi pengelola. */
.inv2-scope-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
    opacity: 0.85;
    transition: opacity 0.15s ease, background 0.15s ease;
}

    .inv2-scope-reset:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.16);
        color: inherit;
    }

/* Kolom judul hanya muncul pada tampilan pengelola, yang kolomnya lebih banyak
   sehingga tiap kolom mendapat ruang lebih sempit. */
.inv2-title {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #1d3557;
}

/* Tombol submit yang tampil seperti tautan (navigasi detail memakai POST). */
.inv2-question-link {
    display: inline;
    max-width: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: #0a58ca;
    /* Allow the clickable question link to wrap along with the cell */
    white-space: normal;
    overflow: visible;
}

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

.inv2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.inv2-badge-success {
    border: 1px solid #54b173;
    color: #1b7d46;
    background: #ebfff2;
}

.inv2-badge-warn {
    border: 1px solid #f3a06f;
    color: #d66a2f;
    background: #fff1e9;
}

/* Status yang tidak tergolong "sudah" maupun "belum" dijawab, mis. status buatan
   sendiri. Dibuat kelabu supaya tidak keliru dibaca sebagai salah satu dari keduanya. */
.inv2-badge-neutral {
    border: 1px solid #b9c5d3;
    color: #55677d;
    background: #f1f4f8;
}

/* Lencana yang warnanya datang dari master status. Warna itu hanya mengisi titik
   dan garis tepi; teksnya tetap gelap agar terbaca berapa pun mudanya warna yang
   dipilih pengelola. */
.inv2-badge-custom {
    gap: 6px;
    border: 1px solid #b9c5d3;
    color: #2b3a4d;
    background: #ffffff;
}

.inv2-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.inv2-kebab {
    text-align: center;
    color: #6b85a2;
    font-size: 16px;
    font-weight: 700;
}

.inv2-empty {
    text-align: center;
    padding: 20px 10px !important;
    color: #6c8298 !important;
}

.inv2-empty-action {
    margin-top: 10px;
}

    .inv2-empty-action button {
        border: 1px solid #c9dbef;
        border-radius: 4px;
        background: #fff;
        color: #2f91f5;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        padding: 5px 14px;
        cursor: pointer;
    }

    .inv2-empty-action button:hover {
        background: #f2f8ff;
    }

/* Baris meredup selama data baru sedang dimuat. */
.inv2-table tbody[aria-busy="true"] {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.inv2-footer {
    border-top: 1px solid #dfe7f1;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #466585;
}

.inv2-left select {
    margin-left: 4px;
    border: 1px solid #d6e1ee;
    border-radius: 4px;
    font-size: 12px;
    height: 24px;
    padding: 0 4px;
}

.inv2-pages {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .inv2-pages a,
    .inv2-pages span {
        min-width: 24px;
        height: 24px;
        border-radius: 4px;
        border: 1px solid transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 12px;
        color: #31557c;
    }

        .inv2-pages a:hover {
            border-color: #cfe0f2;
            background: #f5faff;
        }

    .inv2-pages .active {
        border-color: #8ab9ea;
        background: #eaf4ff;
        color: #1e66ad;
        font-weight: 700;
    }

.inv2-right {
    font-size: 11px;
    color: #6f859c;
}

@media (max-width: 768px) {
    .inv2-page {
        padding: 10px 8px 16px;
    }

    .inv2-toolbar {
        gap: 8px;
    }

    .inv2-search-wrap {
        width: 220px;
    }

    .inv2-footer {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 8px;
    }

    .inv2-pages {
        justify-self: start;
    }
}

/* Halaman Detail Admin Answering */
.detail-page-admin-answering .topic-status-open {
    transform: rotate(-5deg);
}

.detail-content-admin-answering {
    grid-template-rows: auto auto auto;
}

    .detail-content-admin-answering .detail-question-card,
    .detail-content-admin-answering .detail-answer-card {
        border-radius: 0;
        box-shadow: none;
    }

.admin-answer-submit-btn {
    grid-column: 2;
    justify-self: center;
    margin-top: 8px;
    background: #7d36ff;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: 700;
    border-radius: 14px;
    padding: 10px 48px;
    border: 2px solid rgba(183, 158, 255, 0.75);
    box-shadow: 0 10px 20px rgba(125, 54, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .admin-answer-submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 22px rgba(125, 54, 255, 0.38);
    }

@media (max-width: 768px) {
    .admin-page {
        padding: 12px 10px 82px;
    }

    .admin-logo {
        width: 20%;
    }

    .admin-table-wrap {
        margin-top: 10px;
        overflow-x: auto;
    }

    .admin-navbar {
        margin-top: 8px;
        padding: 8px 10px;
        border-radius: 12px;
        gap: 8px;
    }

    .admin-navbar-link {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .admin-navbar-back-button {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.82rem;
        border-radius: 9px;
    }

        .admin-navbar-back-button::before {
            margin-right: 6px;
        }

    .admin-table-title {
        font-size: 1.5rem;
        padding: 12px 8px;
    }

    .admin-table {
        min-width: 760px;
    }

        .admin-table th,
        .admin-table td {
            font-size: 0.95rem;
            padding: 10px 8px;
        }

    .admin-date-pill {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .admin-action-pill,
    .admin-status-pill {
        min-width: 88px;
        font-size: 0.9rem;
        padding: 7px 10px;
    }

    .admin-answer-submit-btn {
        grid-column: 2;
        font-size: 1rem;
        padding: 8px 26px;
        border-radius: 10px;
    }
}

/* Global footer */
.site-footer {
    width: 100%;
    margin-top: 0;
    padding: 28px 20px 16px;
    color: #f4f8ff;
    background: linear-gradient(155deg, #04366b 0%, #022650 58%, #011b3d 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 28px rgba(4, 23, 48, 0.28);
}

.site-footer-top {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    /* Make footer columns responsive: each column will be at least 220px
       and will grow to fill available space. On narrow screens columns
       will wrap automatically. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}

.site-footer-column {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 14px 14px 12px;
}

    .site-footer-column h4 {
        margin: 0 0 10px;
        font-size: 12px;
        font-weight: 800;
        color: rgba(226, 240, 255, 0.95);
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .site-footer-column p {
        margin: 0 0 6px;
        font-size: 10px;
        line-height: 1.55;
        color: rgba(245, 249, 255, 0.94);
        font-weight: 500;
    }

    .site-footer-column a {
        color: #8ad0ff;
        text-decoration: none;
        font-weight: 700;
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

        .site-footer-column a:hover {
            color: #b8e4ff;
            text-shadow: 0 0 10px rgba(120, 205, 255, 0.45);
        }

/* Tautan area administrator, diletakkan paling bawah pada kartu
   "Tentang Pilar Keuangan" dan dipisahkan garis tipis. */
.site-footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    width: 100%;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(196, 224, 255, 0.72) !important;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

    .site-footer-admin-link svg {
        flex: none;
        opacity: 0.85;
    }

    .site-footer-admin-link:hover {
        color: #b8e4ff !important;
        text-shadow: 0 0 10px rgba(120, 205, 255, 0.45);
    }

.site-footer-bottom {
    max-width: 1240px;
    margin: 14px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(186, 220, 255, 0.28);
    text-align: center;
}

    .site-footer-bottom p {
        margin: 0;
        color: rgba(225, 238, 252, 0.86);
        font-size: 0.92rem;
        line-height: 1.45;
    }

@media (max-width: 1024px) {
    .site-footer {
        padding: 22px 16px 14px;
    }

    .site-footer-top {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 14px;
    }

    .site-footer-column {
        padding: 12px 12px 10px;
    }

        .site-footer-column h4 {
            font-size: 0.9rem;
        }

        .site-footer-column p {
            font-size: 0.84rem;
        }
}

@media (max-width: 768px) {
    .site-footer {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        padding: 18px 12px 12px;
        background: linear-gradient(155deg, #063a73 0%, #022650 58%, #011a39 100%);
        box-shadow: 0 -8px 24px rgba(1, 23, 50, 0.35);
    }

    .site-footer-top {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-footer-column {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        padding: 10px 10px 8px;
        backdrop-filter: blur(2px);
    }

        .site-footer-column h4 {
            font-size: 11px;
            margin-bottom: 6px;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: rgba(210, 230, 255, 0.95);
            text-shadow: 0 0 8px rgba(80, 168, 255, 0.35);
        }

        .site-footer-column p {
            font-size: 10px;
            margin-bottom: 4px;
            line-height: 1.55;
            color: rgba(243, 248, 255, 0.94);
            font-weight: 500;
        }

        .site-footer-column a {
            color: #73c2ff;
            text-shadow: 0 0 8px rgba(45, 170, 255, 0.35);
            transition: color 0.2s ease, text-shadow 0.2s ease;
        }

            .site-footer-column a:hover {
                color: #a5dbff;
                text-shadow: 0 0 10px rgba(90, 190, 255, 0.45);
            }

    .site-footer-bottom {
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid rgba(158, 206, 255, 0.32);
    }

        .site-footer-bottom p {
            font-size: 0.76rem;
            line-height: 1.45;
            letter-spacing: 0.2px;
            color: rgba(214, 230, 250, 0.9);
        }
}

/* ===========================================================================
   Halaman Masuk Administrator
   =========================================================================== */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

    .login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(4, 30, 66, 0.9), rgba(2, 22, 51, 0.94));
    }

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1020px;
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 40px 90px rgba(2, 18, 42, 0.55);
}

/* ---------- Panel identitas ---------- */
.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 44px 40px 32px;
    overflow: hidden;
    color: #eaf4ff;
    background: linear-gradient(158deg, #0a3f7d 0%, #052c5c 52%, #021c3d 100%);
}

.login-brand-glow {
    position: absolute;
    top: -110px;
    right: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.42), transparent 68%);
    pointer-events: none;
}

/* Motif pilar: representasi visual dari nama "Pilar Keuangan". */
.login-pillars {
    position: absolute;
    inset: auto 0 0 0;
    height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    opacity: 0.14;
    pointer-events: none;
}

    .login-pillars span {
        width: 26px;
        border-radius: 13px 13px 0 0;
        background: linear-gradient(180deg, #e8c678, rgba(232, 198, 120, 0));
    }

        .login-pillars span:nth-child(1) {
            height: 78px;
        }

        .login-pillars span:nth-child(2) {
            height: 126px;
        }

        .login-pillars span:nth-child(3) {
            height: 168px;
        }

        .login-pillars span:nth-child(4) {
            height: 168px;
        }

        .login-pillars span:nth-child(5) {
            height: 126px;
        }

        .login-pillars span:nth-child(6) {
            height: 78px;
        }

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand-logo {
    width: 330px;
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.login-brand-title {
    margin: 22px 0 8px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #ffffff;
}

.login-brand-tagline {
    margin: 0 0 26px;
    max-width: 330px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(216, 234, 255, 0.78);
}

.login-brand-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .login-brand-points li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.83rem;
        font-weight: 600;
        line-height: 1.45;
        color: rgba(226, 240, 255, 0.9);
    }

    .login-brand-points svg {
        flex: none;
        margin-top: 2px;
        color: #0dcaf0;
    }

.login-brand-footnote {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(196, 222, 252, 0.62);
}

/* ---------- Panel formulir ---------- */
.login-panel {
    display: flex;
    align-items: center;
    background: #ffffff;
}

.login-panel-inner {
    width: 100%;
    padding: 48px 44px;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #d6e8fb;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1b5aa0;
}

.login-title {
    margin: 16px 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f2a4d;
}

.login-subtitle {
    margin: 0 0 26px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    color: #6b849e;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.5;
}

    .login-alert svg {
        flex: none;
        margin-top: 1px;
    }

    .login-alert code {
        padding: 1px 5px;
        border-radius: 4px;
        background: rgba(15, 42, 77, 0.08);
        font-size: 0.78rem;
    }

.login-alert-error {
    color: #a32020;
    background: #fdeded;
    border: 1px solid #f5c6c6;
}

.login-alert-info {
    color: #1b5aa0;
    background: #eef6ff;
    border: 1px solid #d0e4f8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #24405f;
}

.login-field {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #f8fbff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .login-field:focus-within {
        border-color: #0dcaf0;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(13, 202, 240, 0.16);
    }

.login-field-icon {
    flex: none;
    margin-left: 14px;
    color: #8ba5c0;
}

.login-field input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #14335a;
}

    .login-field input::placeholder {
        font-weight: 500;
        color: #9db3c9;
    }

.login-field-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    color: #8ba5c0;
    cursor: pointer;
    border-radius: 0 12px 12px 0;
}

    .login-field-toggle:hover {
        color: #1b5aa0;
    }

    .login-field-toggle:focus-visible {
        outline: 2px solid #0dcaf0;
        outline-offset: -3px;
    }

    /* Ikon mata tertutup hanya muncul saat kata sandi sedang ditampilkan. */
    .login-field-toggle .login-eye-closed {
        display: none;
    }

    .login-field-toggle.is-visible .login-eye-open {
        display: none;
    }

    .login-field-toggle.is-visible .login-eye-closed {
        display: block;
    }

.login-field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #c02b2b;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4d6884;
    cursor: pointer;
    user-select: none;
}

    .login-remember input {
        width: 16px;
        height: 16px;
        accent-color: #0a69cf;
        cursor: pointer;
    }

.login-submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    font-size: 0.98rem;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 26px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #6b849e;
    transition: color 0.15s ease;
}

    .login-back-link:hover {
        color: #1b5aa0;
    }

@media (max-width: 900px) {
    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
        border-radius: 0;
        min-height: 100vh;
        align-content: start;
    }

    /* Di layar kecil panel identitas dipadatkan menjadi kepala halaman. */
    .login-brand {
        padding: 28px 26px 24px;
        gap: 0;
    }

    .login-brand-points,
    .login-brand-footnote,
    .login-pillars {
        display: none;
    }

    .login-brand-logo {
        width: 200px;
    }

    .login-brand-title {
        margin: 16px 0 6px;
        font-size: 1.5rem;
    }

    .login-brand-tagline {
        margin: 0;
        font-size: 0.8rem;
    }

    .login-panel-inner {
        padding: 30px 26px 40px;
    }
}
