/*
 * HEXODRAMA V44 — Popup tanpa tutup, tautan store otomatis (responsive).
 * Full CSS, tanpa minify, seluruh selector dibatasi prefix hexo-access.
 */
.hexo-access-bait[data-hexo-access-bait] {
    position: absolute;
    inset: auto auto auto -10000px;
    width: 300px;
    height: 90px;
    opacity: 0;
    pointer-events: none;
}

.hexo-access-modal[hidden] {
    display: none !important;
}

body.hexo-access-modal-open {
    overflow: hidden !important;
}

.hexo-access-modal,
.hexo-access-modal *,
.hexo-access-modal *::before,
.hexo-access-modal *::after {
    box-sizing: border-box;
}

.hexo-access-modal {
    --hexo-notice-text: #fafafc;
    --hexo-notice-muted: #adb0bc;
    --hexo-notice-accent: #ef455a;
    --hexo-notice-stroke: rgba(255, 255, 255, .1);
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:
        max(14px, env(safe-area-inset-top, 0px))
        max(12px, env(safe-area-inset-right, 0px))
        max(14px, env(safe-area-inset-bottom, 0px))
        max(12px, env(safe-area-inset-left, 0px));
    overflow: hidden;
    background: rgba(5, 6, 10, .88);
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.hexo-access-dialog {
    width: min(100%, 480px);
    max-height: 93vh;
    max-height: min(93dvh, 820px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    color: var(--hexo-notice-text);
    background:
        radial-gradient(circle at 52% -25%, rgba(239, 60, 85, .15), transparent 55%),
        #17181e;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .65);
    scrollbar-width: thin;
    scrollbar-color: #484951 transparent;
}

.hexo-access-hero {
    margin: 0 auto;
    max-width: 400px;
    text-align: center;
}

.hexo-access-symbol {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 13px;
    border: 1px solid rgba(244, 80, 102, .26);
    border-radius: 18px;
    background: rgba(243, 76, 97, .075);
}

.hexo-access-symbol svg {
    width: 54px;
    height: 54px;
}

.hexo-access-kicker {
    display: block;
    margin: 0 0 8px;
    color: #fe8393;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .075em;
}

.hexo-access-dialog h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(21px, 4.8vw, 27px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.hexo-access-desc {
    margin: 0 auto;
    color: #bfc0c9;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.67;
}

.hexo-access-panel {
    margin: 19px 0 16px;
    padding: 6px 15px;
    border: 1px solid var(--hexo-notice-stroke);
    border-radius: 15px;
    background: rgba(255, 255, 255, .035);
}

.hexo-access-panel-heading {
    padding: 11px 0 7px;
    color: #d7d8df;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
}

.hexo-access-instruction {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 11px 0;
}

.hexo-access-instruction + .hexo-access-instruction {
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.hexo-access-instruction-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(243, 69, 91, .12);
    border-radius: 11px;
    color: #fc8292;
    background: rgba(240, 61, 84, .105);
}

.hexo-access-instruction-icon svg {
    width: 20px;
    height: 20px;
}

.hexo-access-instruction-text {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}

.hexo-access-instruction-text strong {
    display: block;
    color: #f5f5f8;
    font-size: 12.5px;
    font-weight: 760;
    line-height: 1.4;
}

.hexo-access-instruction-text small {
    display: block;
    margin-top: 3px;
    color: #a0a2ad;
    font-size: 11px;
    line-height: 1.48;
}

.hexo-access-instruction-index {
    color: #777986;
    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hexo-access-actions {
    display: grid;
    gap: 8px;
}

.hexo-access-modal .hexo-access-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 760;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.hexo-access-modal .hexo-access-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.hexo-access-button-main {
    color: #fff !important;
    background: linear-gradient(115deg, #e9364f, #bd223b);
    border-color: rgba(255, 120, 140, .3) !important;
}

.hexo-access-button-main:hover {
    color: #fff;
    background: linear-gradient(115deg, #f0445f, #cb2a44);
}

.hexo-access-arrow {
    margin-left: auto;
}

.hexo-access-button-copy {
    color: #f1f1f5;
    background: rgba(255, 255, 255, .065);
    border-color: rgba(255, 255, 255, .14) !important;
}

.hexo-access-button-copy:hover {
    background: rgba(255, 255, 255, .11);
}

.hexo-access-button-retry {
    color: #bfc0c9;
    background: transparent;
    border-color: rgba(255, 255, 255, .09) !important;
}

.hexo-access-button-retry:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.hexo-access-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding: 13px;
    border: 1px solid rgba(245, 196, 91, .2);
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(215, 157, 52, .085), rgba(254, 209, 112, .02));
}

.hexo-access-premium-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    border-radius: 10px;
    color: #f1c36b;
    background: rgba(240, 181, 72, .12);
}

.hexo-access-premium-icon svg {
    width: 21px;
    height: 21px;
}

.hexo-access-premium-text {
    flex: 1 1 0;
    min-width: 0;
}

.hexo-access-premium-text strong,
.hexo-access-premium-text span {
    display: block;
}

.hexo-access-premium-text strong {
    color: #f8e3b5;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.4;
}

.hexo-access-premium-text span {
    margin-top: 3px;
    color: #b8ab95;
    font-size: 10.5px;
    line-height: 1.42;
}

.hexo-access-premium-link {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 8px 9px;
    border: 1px solid rgba(245, 194, 88, .26);
    border-radius: 9px;
    color: #ffe1a3 !important;
    background: rgba(239, 182, 72, .105);
    font-size: 11px;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
}

.hexo-access-premium-link:hover {
    background: rgba(239, 182, 72, .18);
}

.hexo-access-premium-link svg {
    width: 14px;
    height: 14px;
}

.hexo-access-footnote {
    margin: 13px 4px 0;
    color: #8d8e99;
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

.hexo-access-feedback {
    margin: 9px 0 0;
    min-height: 0;
    color: #a6f0c5;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.hexo-access-feedback:empty {
    display: none;
}

.hexo-access-modal a:focus-visible,
.hexo-access-modal button:focus-visible {
    outline: 2px solid #f57b8d;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .hexo-access-modal {
        align-items: center;
        padding:
            max(9px, env(safe-area-inset-top, 0px))
            max(9px, env(safe-area-inset-right, 0px))
            max(9px, env(safe-area-inset-bottom, 0px))
            max(9px, env(safe-area-inset-left, 0px));
    }

    .hexo-access-dialog {
        max-height: calc(100vh - 18px);
        max-height: calc(100dvh - 18px);
        padding: 20px 17px;
        border-radius: 18px;
    }

    .hexo-access-symbol {
        width: 54px;
        height: 54px;
        margin-bottom: 10px;
        border-radius: 15px;
    }

    .hexo-access-symbol svg {
        width: 44px;
        height: 44px;
    }

    .hexo-access-desc {
        font-size: 12.5px;
    }

    .hexo-access-panel {
        margin-top: 15px;
        padding: 4px 12px;
    }

    .hexo-access-instruction {
        min-height: 58px;
        padding: 8px 0;
    }

    .hexo-access-premium {
        margin-top: 12px;
        padding: 10px;
    }
}

@media (max-width: 350px) {
    .hexo-access-dialog {
        padding: 15px 13px;
    }

    .hexo-access-dialog h2 {
        font-size: 20px;
    }

    .hexo-access-premium {
        flex-wrap: wrap;
    }

    .hexo-access-premium-text {
        min-width: calc(100% - 50px);
    }

    .hexo-access-premium-link {
        width: 100%;
        margin-top: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hexo-access-modal .hexo-access-button {
        transition: none;
    }
}

/* V44: tata letak tombol tetap seimbang untuk label App Store/Play Store. */
.hexo-access-button-main > [data-hexo-access-chrome-text] {
    flex: 1 1 auto;
    min-width: 0;
}

.hexo-access-modal .hexo-access-button-main {
    justify-content: space-between;
}

@media (max-width: 360px) {
    .hexo-access-modal .hexo-access-button-main {
        font-size: 11.75px;
        gap: 7px;
    }
}
