/* =========================================================
   DARK FINTECH DASHBOARD
   Semua warna dibuat eksplisit agar tidak bentrok dengan
   variable CSS dari stylesheet utama.
========================================================= */

.pg-page,
.pg-page * {
    box-sizing: border-box;
}

.pg-page {
    --pg-bg: var(--c-bg);
    --pg-bg-soft: var(--c-bg);
    --pg-card: var(--c-card);
    --pg-card-2: var(--c-card-2);
    --pg-border: rgba(var(--rgb-fg), .08);
    --pg-border-green: rgba(35,226,145,.22);
    --pg-green: #25df91;
    --pg-green-dark: #0eae6b;
    --pg-white: var(--c-strong);
    --pg-text: var(--c-text);
    --pg-muted: var(--c-muted);
    --pg-muted-2: var(--c-muted-2);

    min-height: 100vh;

    min-height: 100dvh;
    color: var(--pg-text);
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(35,223,145,.09),
            transparent 38%
        ),
        var(--pg-bg);

    overflow: hidden;
}

/* Remove possible inherited styles */

.pg-page h1,
.pg-page h2,
.pg-page h3,
.pg-page p {
    margin-top: 0;
}

.pg-page a {
    text-decoration: none;
}

/* =========================================================
   NAVBAR
========================================================= */

.pg-nav {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background: rgba(var(--rgb-bg),.92);
    border-bottom: 1px solid var(--pg-border);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pg-nav-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.pg-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--pg-white) !important;

    font-size: 1rem;
    font-weight: 800;
}

.pg-logo {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.pg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.pg-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   BUTTONS
========================================================= */

.pg-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border-radius: 10px;

    font-size: .85rem;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.pg-btn:hover {
    transform: translateY(-2px);
}

.pg-btn-outline {
    color: var(--pg-text) !important;

    background: rgba(var(--rgb-fg), .035);

    border: 1px solid var(--pg-border);
}

.pg-btn-outline:hover {
    border-color: rgba(var(--rgb-fg), .16);
    background: rgba(var(--rgb-fg), .06);
}

.pg-btn-primary {
    color: #04100b !important;

    background: var(--pg-green);

    border: 1px solid var(--pg-green);

    box-shadow:
        0 10px 28px rgba(37,223,145,.14);
}

.pg-btn-primary:hover {
    background: #39e99e;

    box-shadow:
        0 14px 35px rgba(37,223,145,.22);
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.pg-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================================
   HERO
========================================================= */

.pg-hero {
    position: relative;
    overflow-x: clip;

    padding: 82px 0 65px;

    text-align: center;
}

.pg-hero-glow {
    position: absolute;

    width: min(480px, 100%);
    height: 300px;

    left: 50%;
    top: 0;

    transform: translateX(-50%);

    background: rgba(35,223,145,.08);

    filter: blur(90px);

    pointer-events: none;
}

.pg-badge {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border-radius: 999px;

    color: var(--c-green-text) !important;

    background: rgba(37,223,145,.07);

    border: 1px solid rgba(37,223,145,.16);

    font-size: .72rem;
    font-weight: 750;
}

.pg-badge-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--pg-green);

    box-shadow: 0 0 10px rgba(37,223,145,.8);
}

.pg-hero h1 {
    position: relative;

    max-width: 850px;

    margin: 22px auto 0;

    color: var(--pg-white) !important;

    font-size: clamp(
        2.6rem,
        7vw,
        5.8rem
    );

    line-height: 1.02;

    letter-spacing: -.055em;

    font-weight: 900;
}

.pg-hero-highlight {
    color: var(--c-green-text) !important;
}

.pg-hero-description {
    position: relative;

    max-width: 650px;

    margin: 23px auto 0;

    color: var(--pg-muted) !important;

    font-size: 1rem;
    line-height: 1.75;
}

.pg-hero-actions {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 27px;
}

/* =========================================================
   DASHBOARD MOCKUP
========================================================= */

.pg-dashboard {
    position: relative;

    margin: 5px auto 80px;

    max-width: 980px;
}

.pg-dashboard-glow {
    position: absolute;

    inset: 12% 10%;

    background: rgba(37,223,145,.08);

    filter: blur(65px);

    pointer-events: none;
}

.pg-dashboard-card {
    position: relative;

    overflow: hidden;

    border-radius: 18px;

    background: var(--c-card);

    border: 1px solid var(--pg-border);

    box-shadow:
        0 35px 90px rgba(0,0,0,.35);
}

.pg-dashboard-header {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    background: var(--c-card);

    border-bottom: 1px solid var(--pg-border);
}

.pg-window-dots {
    display: flex;
    gap: 6px;
}

.pg-window-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #30413a;
}

.pg-dashboard-name {
    color: var(--pg-muted-2);

    font-size: .68rem;
    font-family: monospace;
}

.pg-dashboard-content {
    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 14px;

    padding: 16px;
}

.pg-balance {
    min-height: 220px;

    padding: 22px;

    border-radius: 15px;

    background:
        radial-gradient(
            circle at 90% 0,
            rgba(37,223,145,.12),
            transparent 35%
        ),
        #0f2119;

    border: 1px solid rgba(37,223,145,.1);
}

.pg-small-label {
    color: var(--pg-muted-2);

    font-size: .72rem;
}

.pg-balance-number {
    margin-top: 10px;

    color: var(--pg-white);

    font-size: clamp(1.8rem,4vw,2.8rem);
    font-weight: 900;

    letter-spacing: -.04em;
}

.pg-balance-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 45px;
}

.pg-online {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 9px;

    border-radius: 7px;

    color: var(--c-green-text);

    background: rgba(37,223,145,.07);

    font-size: .68rem;
}

.pg-online::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--pg-green);
}

.pg-transaction {
    color: var(--pg-muted-2);

    font-size: .68rem;
}

.pg-activity {
    padding: 22px;

    border-radius: 15px;

    background: var(--c-card);

    border: 1px solid var(--pg-border);
}

.pg-activity-title {
    color: var(--pg-white);

    font-size: .85rem;
    font-weight: 800;

    margin-bottom: 20px;
}

.pg-activity-row {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
}

.pg-activity-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: var(--c-green-text);

    background: rgba(37,223,145,.08);
}

.pg-activity-icon svg {
    width: 15px;
    height: 15px;

    stroke: currentColor;
    fill: none;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pg-activity-text {
    flex: 1;
}

.pg-activity-text strong {
    display: block;

    color: var(--c-text);

    font-size: .7rem;
}

.pg-activity-text span {
    color: var(--pg-muted-2);

    font-size: .6rem;
}

.pg-success {
    color: var(--c-green-text);

    font-size: .62rem;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.pg-section-head {
    max-width: 650px;

    margin-bottom: 28px;
}

.pg-section-head h2 {
    margin: 0 0 10px;

    color: var(--pg-white) !important;

    font-size: clamp(1.8rem,4vw,2.8rem);

    line-height: 1.1;

    letter-spacing: -.035em;
}

.pg-section-head p {
    margin: 0;

    color: var(--pg-muted) !important;

    font-size: .92rem;

    line-height: 1.7;
}

/* =========================================================
   FEATURES
========================================================= */

.pg-features {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.pg-feature {
    position: relative;

    min-height: 215px;

    padding: 22px;

    overflow: hidden;

    border-radius: 15px;

    background: var(--pg-card);

    border: 1px solid var(--pg-border);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.pg-feature:hover {
    transform: translateY(-4px);

    background: var(--pg-card-2);

    border-color: var(--pg-border-green);
}

.pg-feature-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: rgba(37,223,145,.07);

    border: 1px solid rgba(37,223,145,.13);
}

.pg-feature-icon svg {
    width: 23px;
    height: 23px;

    stroke: var(--c-green-text);
    fill: none;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.pg-feature h3 {
    margin: 0 0 8px;

    color: var(--pg-white) !important;

    font-size: 1rem;
    font-weight: 800;
}

.pg-feature p {
    margin: 0;

    color: var(--pg-muted) !important;

    font-size: .82rem;

    line-height: 1.65;
}

/* =========================================================
   STATS
========================================================= */

.pg-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin: 45px 0 80px;

    border: 1px solid var(--pg-border);

    border-radius: 15px;

    overflow: hidden;

    background: var(--pg-card);
}

.pg-stat {
    padding: 24px;

    text-align: center;

    border-right: 1px solid var(--pg-border);
}

.pg-stat:last-child {
    border-right: 0;
}

.pg-stat strong {
    display: block;

    color: var(--pg-white);

    font-size: 1.45rem;
    font-weight: 900;
}

.pg-stat span {
    display: block;

    margin-top: 5px;

    color: var(--pg-muted-2);

    font-size: .68rem;
}

/* =========================================================
   CTA
========================================================= */

.pg-cta {
    padding: 70px 0;

    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(37,223,145,.09),
            transparent 50%
        ),
        var(--c-card);

    border-top: 1px solid var(--pg-border);
    border-bottom: 1px solid var(--pg-border);
}

.pg-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.pg-cta h2 {
    margin: 12px 0 0;

    color: var(--pg-white) !important;

    font-size: clamp(1.8rem,4vw,2.8rem);

    line-height: 1.1;

    letter-spacing: -.04em;
}

.pg-cta p {
    margin: 10px 0 0;

    color: var(--pg-muted) !important;
}

/* =========================================================
   FOOTER
========================================================= */

.pg-footer {
    padding: 56px 16px 32px;
    text-align: center;
    color: var(--pg-muted);
    background: var(--pg-bg-soft);
    border-top: 1px solid var(--pg-border);
    font-size: .95rem;
}

.pg-footer-inner {
    width: min(720px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.pg-footer-brand img {
    display: block;
    width: 200px;
    max-width: 60vw;
    height: auto;
    border-radius: 12px;
}

.pg-footer-company {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.6;
}

.pg-footer-company strong {
    color: var(--pg-text);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.pg-footer-cols {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    margin-top: 8px;
}

.pg-footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pg-footer-col h4 {
    margin: 0 0 6px;
    color: var(--c-green-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.pg-footer-col a {
    color: var(--pg-text);
    text-decoration: none;
    line-height: 1.4;
    transition: color .15s;
}

.pg-footer-col a:hover {
    color: var(--c-green-text);
}

.pg-footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 20px;
    margin-top: 8px;
}

.pg-badge-cert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-strong);
    line-height: 1.1;
}

.pg-badge-cert b {
    font-weight: 800;
    letter-spacing: .04em;
}

.pg-badge-cert small {
    display: block;
    font-size: .6rem;
    letter-spacing: .06em;
    color: var(--pg-text);
}

.pg-badge-ssl svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--c-green-text);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pg-badge-ssl span { text-align: left; }
.pg-badge-ssl b { font-size: 1.15rem; display: block; }

.pg-badge-aes {
    flex-direction: column;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px dashed var(--pg-border-green);
    background: var(--pg-card);
    gap: 2px;
}
.pg-badge-aes b { font-size: .8rem; }
.pg-badge-aes small { font-size: .7rem; color: var(--c-green-text); }

/* Logo Kominfo & OJK: PNG transparan, tanpa kotak latar */
.pg-badge-logo { padding: 0; }
.pg-badge-logo img {
    display: block;
    height: 44px;
    width: auto;
}

.pg-footer-copy {
    margin-top: 8px;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid var(--pg-border);
    color: var(--pg-muted-2);
    font-size: .75rem;
}

/* Halaman isi (page.php) */
.pg-doc {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 56px;
}
.pg-doc h1 {
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--pg-white);
    margin-bottom: 8px;
}
.pg-doc .pg-doc-updated { color: var(--pg-muted-2); font-size: .8rem; margin-bottom: 28px; }
.pg-doc h2 { color: var(--c-green-text); font-size: 1.1rem; margin: 28px 0 8px; }
.pg-doc p, .pg-doc li { color: var(--pg-text); line-height: 1.75; font-size: .95rem; }
.pg-doc p { margin: 0 0 14px; }
.pg-doc ul { padding-left: 1.2rem; margin: 8px 0; }

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .pg-hero {
        padding-top: 60px;
    }

    .pg-dashboard-content {
        grid-template-columns: 1fr;
    }

    .pg-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .pg-cta-inner {
        align-items: flex-start;

        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .pg-nav-inner {
        width: min(100% - 20px, 1180px);

        min-height: 64px;
    }

    .pg-logo {
        width: 35px;
        height: 35px;
    }

    .pg-brand {
        font-size: .9rem;
    }

    .pg-nav-actions .pg-btn {
        min-height: 37px;

        padding: 0 12px;

        font-size: .72rem;
    }

    .pg-container {
        width: min(100% - 22px, 1180px);
    }

    .pg-hero {
        padding: 50px 0 45px;
    }

    .pg-hero h1 {
        font-size: clamp(2.35rem, 13vw, 4rem);

        letter-spacing: -.04em;
    }

    .pg-hero-description {
        font-size: .88rem;
    }

    .pg-hero-actions {
        flex-direction: column;
    }

    .pg-hero-actions .pg-btn {
        width: 100%;
    }

    .pg-dashboard {
        margin-bottom: 55px;
    }

    .pg-dashboard-content {
        padding: 10px;
    }

    .pg-balance,
    .pg-activity {
        padding: 17px;
    }

    .pg-balance {
        min-height: 185px;
    }

    .pg-balance-footer {
        margin-top: 30px;
    }

    .pg-features {
        grid-template-columns: 1fr;
    }

    .pg-feature {
        min-height: auto;
    }

    .pg-stats {
        grid-template-columns: 1fr;

        margin-bottom: 55px;
    }

    .pg-stat {
        border-right: 0;
        border-bottom: 1px solid var(--pg-border);
    }

    .pg-stat:last-child {
        border-bottom: 0;
    }

    .pg-cta {
        padding: 55px 0;
    }

    .pg-cta .pg-btn {
        width: 100%;
    }
}


/* =========================================================
   LOGO + GALLERY (gambar sudah diselaraskan ke hijau tema)
========================================================= */

.pg-hero-logo {
    display: block;
    width: min(340px, 78%);
    height: auto;
    margin: 0 auto 28px;
    border-radius: 14px;
    border: 1px solid var(--pg-border-green);
    box-shadow: 0 20px 60px -30px rgba(37,223,145,.35);
}

.pg-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 56px 0 8px;
}

.pg-shot {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--pg-border);
    background: var(--pg-card);
}

.pg-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.pg-shot figcaption {
    padding: 18px 20px 22px;
    border-top: 1px solid var(--pg-border);
}

.pg-shot figcaption strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pg-white);
    font-size: 1rem;
}

.pg-shot figcaption span {
    color: var(--pg-muted);
    font-size: .92rem;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .pg-gallery { grid-template-columns: 1fr; margin-top: 40px; }
}


/* =========================================================
   MOCKUP DASHBOARD DI HERO — selalu gelap (gambar produk),
   walau tema situs terang.
========================================================= */
html[data-theme="light"] .pg-dashboard {
    --c-strong: #ffffff;
    --c-text: #e8f0ed;
    --c-text-2: #b9c9c3;
    --c-muted: #9aaba4;
    --c-muted-2: #71827b;
    --c-bg: #07110d;
    --c-card: #0d1b16;
    --c-card-2: #101f19;
    --c-danger: #ff7d8d;
    --c-warn: #f4c95d;
    --c-green-text: #25df91;
    --rgb-fg: 255, 255, 255;
    --rgb-ink: 0, 0, 0;
    --rgb-bg: 7, 17, 13;
    --rgb-card: 13, 27, 22;

    --pg-bg: #07110d;
    --pg-bg-soft: #0a1712;
    --pg-card: #0d1b16;
    --pg-card-2: #101f19;
    --pg-border: rgba(255, 255, 255, .08);
    --pg-white: #ffffff;
    --pg-text: #e8f0ed;
    --pg-muted: #9aaba4;
    --pg-muted-2: #71827b;
    color-scheme: dark;
}


/* =========================================================
   TOMBOL TEMA DI DALAM NAVBAR
   (tidak lagi melayang di pojok kanan atas, jadi tidak
   menumpuk dengan tombol Daftar)
========================================================= */

.pg-nav-actions .theme-toggle.theme-toggle-nav {
    position: static;
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    margin-left: 4px;

    box-shadow: none;
    background: rgba(var(--rgb-fg), .035);
    border: 1px solid var(--pg-border);
    color: var(--pg-text);
}

.pg-nav-actions .theme-toggle.theme-toggle-nav:hover {
    transform: translateY(-2px);
    border-color: rgba(37,223,145,.5);
}

@media (max-width: 600px) {
    .pg-nav-actions {
        gap: 6px;
    }

    .pg-nav-actions .theme-toggle.theme-toggle-nav {
        width: 37px;
        height: 37px;
        margin-left: 0;
    }

    .pg-nav-actions .theme-toggle.theme-toggle-nav svg {
        width: 17px;
        height: 17px;
    }
}

/* HP sempit: navbar boleh turun baris agar 4 tombol muat */
@media (max-width: 480px) {
    .pg-nav-inner:has(.theme-toggle-nav) {
        flex-wrap: wrap;
        padding: 8px 0;
        row-gap: 8px;
    }

    .pg-nav-actions:has(.theme-toggle-nav) {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
