/* =========================================================
   PA BUNTOK — STATISTIK PENGUNJUNG
   FINAL / REFACTORED
========================================================= */


/* =========================================================
   PAGE WRAPPER
========================================================= */

.pa-visitor-page {

    width: min(1000px, calc(100% - 40px));

    margin: 0 auto;

    padding: 12px 0 45px;

    box-sizing: border-box;
}


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

.pa-statistik-pengunjung-heading {

    position: relative;

    width: 100%;

    margin: 0 0 26px;

    padding: 25px 30px 26px;

    box-sizing: border-box;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f5132 0%,
            #176b45 100%
        );

    border-radius: 16px;

    text-align: center;

    color: #fff;

    box-shadow:
        0 10px 28px rgba(15,81,50,.14);
}


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

.pa-statistik-pengunjung-heading::before {

    content: "";

    position: absolute;

    width: 145px;
    height: 145px;

    top: -92px;
    right: -55px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 50%;

    pointer-events: none;
}


.pa-statistik-pengunjung-heading::after {

    content: "";

    position: absolute;

    width: 115px;
    height: 115px;

    bottom: -82px;
    left: -58px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 50%;

    pointer-events: none;
}


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

.pa-statistik-pengunjung-eyebrow {

    position: relative;

    z-index: 2;

    display: inline-block;

    margin-bottom: 8px;

    padding: 6px 13px;

    border:
        1px solid
        rgba(255,255,255,.28);

    border-radius: 999px;

    background:
        rgba(255,255,255,.04);

    color: #f4d77d;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


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

.pa-statistik-pengunjung-heading h1 {

    position: relative;

    z-index: 2;

    margin: 0 0 6px;

    color: #fff;

    font-size: 24px;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -.5px;
}


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

.pa-statistik-pengunjung-heading p {

    position: relative;

    z-index: 2;

    max-width: 760px;

    margin: 0 auto;

    color:
        rgba(255,255,255,.86);

    font-size: 12.5px;

    font-weight: 500;

    line-height: 1.55;
}


/* =========================================================
   HERO GOLD LINE
========================================================= */

.pa-statistik-pengunjung-heading p::after {

    content: "";

    display: block;

    width: 40px;
    height: 3px;

    margin: 11px auto 0;

    background: #f4d77d;

    border-radius: 999px;
}


/* =========================================================
   MAIN STATISTICS CARD
========================================================= */

.pa-visitor-card {

    width: 100%;

    padding: 32px 40px 28px;

    box-sizing: border-box;

    background: #fff;

    border:
        1px solid
        #edf1ef;

    border-radius: 22px;

    box-shadow:
        0 10px 32px
        rgba(15,81,50,.06);
}


/* =========================================================
   CARD HEADING
========================================================= */

.card-heading {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-bottom: 28px;

    text-align: left;
}


/* =========================================================
   CARD ICON
========================================================= */

.pa-visitor-card .pa-icon {

    display: flex;

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

    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    border-radius: 50%;

    background: #edf7f1;

    color: #08783f;

    font-size: 24px;
}


/* =========================================================
   CARD TITLE
========================================================= */

.card-title h3 {

    margin: 0;

    color: #102c21;

    font-size: 26px;

    font-weight: 800;

    line-height: 1.2;
}


.card-title p {

    margin: 3px 0 0;

    color: #64748b;

    font-size: 15px;

    line-height: 1.4;
}


/* =========================================================
   CARD HEADING ACCENT
========================================================= */

.card-heading::after {

    content: "";

    position: absolute;
}


/* =========================================================
   VISITOR GRID
========================================================= */

.visitor-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 18px;
}


/* =========================================================
   VISITOR STAT
========================================================= */

.visitor-stat {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 116px;

    padding: 20px;

    box-sizing: border-box;

    background: #f8fafc;

    border:
        1px solid
        #e4ebef;

    border-radius: 17px;

    text-align: center;

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


.visitor-stat:hover {

    transform: translateY(-2px);

    border-color: #cfe1d8;

    box-shadow:
        0 8px 20px
        rgba(15,81,50,.06);
}


/* =========================================================
   VISITOR NUMBER
========================================================= */

.visitor-number {

    display: block;

    margin: 0;

    color: #08783f;

    font-size: 36px;

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -.8px;
}


/* =========================================================
   VISITOR LABEL
========================================================= */

.visitor-stat > span {

    display: block;

    margin-top: 7px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.3;
}


/* =========================================================
   ONLINE STATUS
========================================================= */

.online-status {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    min-height: 48px;

    margin-bottom: 16px;

    padding: 10px 16px;

    box-sizing: border-box;

    background: #edf8f1;

    border-radius: 13px;

    color: #08783f;

    text-align: center;
}


.online-dot {

    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    border-radius: 50%;

    background: #72d995;

    box-shadow:
        0 0 0 4px
        rgba(114,217,149,.16);
}


.online-status strong {

    font-size: 17px;

    font-weight: 800;

    line-height: 1;
}


.online-status > span:last-child {

    font-size: 15px;

    font-weight: 600;
}


/* =========================================================
   NOTE
========================================================= */

.visitor-note {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 14px 16px;

    box-sizing: border-box;

    background: #fff;

    border-left:
        3px solid
        #d4af37;

    border-top:
        1px solid
        #e5ebe8;

    border-right:
        1px solid
        #e5ebe8;

    border-bottom:
        1px solid
        #e5ebe8;

    border-radius: 10px;

    color: #64748b;

    font-size: 12px;

    line-height: 1.55;
}


.visitor-note i {

    flex: 0 0 auto;

    margin-top: 2px;

    color: #08783f;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .pa-visitor-page {

        width: calc(100% - 28px);

        padding:
            8px 0 35px;
    }


    /* HERO */

    .pa-statistik-pengunjung-heading {

        margin-bottom: 22px;

        padding:
            23px 22px 24px;

        border-radius: 14px;
    }


    .pa-statistik-pengunjung-eyebrow {

        margin-bottom: 8px;

        padding: 6px 12px;

        font-size: 8px;
    }


    .pa-statistik-pengunjung-heading h1 {

        font-size: 22px;
    }


    .pa-statistik-pengunjung-heading p {

        font-size: 12px;

        line-height: 1.5;
    }


    .pa-statistik-pengunjung-heading p::after {

        width: 36px;
        height: 2px;

        margin-top: 10px;
    }


    /* MAIN CARD */

    .pa-visitor-card {

        padding:
            27px 25px 23px;

        border-radius: 18px;
    }


    /* HEADING */

    .card-heading {

        gap: 13px;

        margin-bottom: 23px;
    }


    .pa-visitor-card .pa-icon {

        width: 54px;
        height: 54px;

        flex-basis: 54px;

        font-size: 20px;
    }


    .card-title h3 {

        font-size: 22px;
    }


    .card-title p {

        font-size: 13px;
    }


    /* STATS */

    .visitor-grid {

        gap: 12px;

        margin-bottom: 13px;
    }


    .visitor-stat {

        min-height: 100px;

        padding: 16px 12px;

        border-radius: 13px;
    }


    .visitor-number {

        font-size: 30px;
    }


    .visitor-stat > span {

        margin-top: 5px;

        font-size: 12px;
    }


    /* ONLINE */

    .online-status {

        min-height: 43px;

        padding: 9px 12px;
    }


    .online-status strong {

        font-size: 15px;
    }


    .online-status > span:last-child {

        font-size: 13px;
    }


    /* NOTE */

    .visitor-note {

        padding: 12px 13px;

        font-size: 11px;
    }

}


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

@media (max-width: 480px) {

    .pa-visitor-page {

        width: calc(100% - 20px);

        padding-top: 5px;
    }


    /* HERO */

    .pa-statistik-pengunjung-heading {

        margin-bottom: 19px;

        padding:
            20px 15px 21px;

        border-radius: 13px;
    }


    .pa-statistik-pengunjung-heading::before {

        width: 90px;
        height: 90px;

        top: -58px;
        right: -35px;
    }


    .pa-statistik-pengunjung-heading::after {

        width: 75px;
        height: 75px;

        bottom: -50px;
        left: -38px;
    }


    .pa-statistik-pengunjung-eyebrow {

        margin-bottom: 7px;

        padding: 5px 10px;

        font-size: 8px;

        letter-spacing: 1.1px;
    }


    .pa-statistik-pengunjung-heading h1 {

        margin-bottom: 5px;

        font-size: 20px;

        line-height: 1.2;
    }


    .pa-statistik-pengunjung-heading p {

        font-size: 11px;

        line-height: 1.5;
    }


    .pa-statistik-pengunjung-heading p::after {

        width: 32px;
        height: 2px;

        margin-top: 9px;
    }


    /* MAIN CARD */

    .pa-visitor-card {

        padding:
            22px 12px 18px;

        border-radius: 15px;
    }


    /* HEADING */

    .card-heading {

        gap: 10px;

        margin-bottom: 18px;
    }


    .pa-visitor-card .pa-icon {

        width: 45px;
        height: 45px;

        flex-basis: 45px;

        font-size: 17px;
    }


    .card-title h3 {

        font-size: 19px;
    }


    .card-title p {

        margin-top: 2px;

        font-size: 11px;
    }


    /* STAT GRID */

    .visitor-grid {

        gap: 9px;

        margin-bottom: 11px;
    }


    .visitor-stat {

        min-height: 82px;

        padding: 12px 7px;

        border-radius: 11px;
    }


    .visitor-number {

        font-size: 23px;

        letter-spacing: -.5px;
    }


    .visitor-stat > span {

        margin-top: 4px;

        font-size: 9.5px;
    }


    /* ONLINE */

    .online-status {

        min-height: 39px;

        margin-bottom: 11px;

        padding: 8px 9px;

        gap: 6px;

        border-radius: 10px;
    }


    .online-dot {

        width: 7px;
        height: 7px;

        flex-basis: 7px;

        box-shadow:
            0 0 0 3px
            rgba(114,217,149,.16);
    }


    .online-status strong {

        font-size: 13px;
    }


    .online-status > span:last-child {

        font-size: 10.5px;
    }


    /* NOTE */

    .visitor-note {

        gap: 7px;

        padding: 10px 11px;

        font-size: 9.5px;

        line-height: 1.5;

        border-radius: 8px;
    }


    .visitor-note i {

        font-size: 11px;
    }

}