/* Popup tengah + footer â€” hijau Aztec gelap + emas (selaras landing) */
.cta-button-container-modern {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    margin-bottom: 16px;
    font-family: "FC Iconic", "LatoWeb", system-ui, sans-serif;
}

.cta-btn-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 58px;
    height: 58px;
    line-height: 1.2;
    text-align: center;
    font-family: "FC Iconic", "LatoWeb", system-ui, sans-serif;
    color: #fdf8e8 !important;
    font-weight: 700 !important;
    font-size: 20px;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 6px 22px rgba(0, 0, 0, 0.42);
    position: relative;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        filter 0.25s ease,
        border-color 0.2s ease;
    will-change: transform;
    touch-action: manipulation;
    z-index: 1;
}

/* à¸à¸±à¸™à¸›à¸¸à¹ˆà¸¡à¸„à¹‰à¸²à¸‡à¸‚à¸™à¸²à¸”à¸«à¸¥à¸±à¸‡à¸›à¸¥à¹ˆà¸­à¸¢à¹€à¸¡à¸²à¸ªà¹Œ/à¸™à¸´à¹‰à¸§ */
.cta-btn-modern:not(:active) {
    transform: scale(1) !important;
}

.cta-btn-modern:active {
    transform: scale(1.04) !important;
}

.cta-btn-modern span {
    position: relative;
    z-index: 2;
    line-height: 1.2;
    font-family: inherit;
    font-weight: 700 !important;
    font-size: inherit;
    color: #fdf8e8 !important;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 2px 3px rgba(0, 0, 0, 0.75),
        0 0 14px rgba(255, 230, 180, 0.24);
}

.cta-btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    z-index: -1;
}

.cta-btn-modern.login-btn {
    background: linear-gradient(
        165deg,
        #2a7a5c 0%,
        #1a4f3c 40%,
        #0e281e 76%,
        #050f0c 100%
    );
    border: 2px solid rgba(255, 224, 150, 0.95);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4) inset,
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset 0 -2px 0 rgba(0, 0, 0, 0.38),
        0 8px 26px rgba(0, 0, 0, 0.58),
        0 0 26px rgba(201, 162, 39, 0.45),
        0 0 44px rgba(40, 160, 110, 0.18);
}

.cta-btn-modern.register-btn {
    background: linear-gradient(
        165deg,
        #ffcf4a 0%,
        #f59e0b 34%,
        #d97706 58%,
        #6b2f0a 100%
    );
    border: 2px solid rgba(255, 250, 220, 0.98);
    color: #fffaf0 !important;
    box-shadow:
        0 0 0 1px rgba(120, 45, 0, 0.28) inset,
        inset 0 2px 0 rgba(255, 255, 255, 0.48),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2),
        0 10px 32px rgba(0, 0, 0, 0.48),
        0 0 36px rgba(255, 170, 50, 0.55),
        0 0 64px rgba(255, 140, 0, 0.28);
    animation: suai138PromoCtaPulse 2.4s ease-in-out infinite;
}

.cta-btn-modern.register-btn span {
    font-weight: 700 !important;
    color: #fffaf0 !important;
    text-shadow:
        0 1px 0 rgba(60, 28, 0, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.65),
        0 0 12px rgba(255, 255, 255, 0.24);
}

.cta-btn-modern.login-btn:active,
.cta-btn-modern.register-btn:active {
    transform: scale(1.04) !important;
    animation: none !important;
    filter: none !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14) inset,
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        0 12px 36px rgba(0, 0, 0, 0.52),
        0 0 34px rgba(201, 162, 39, 0.34),
        0 0 64px rgba(201, 162, 39, 0.2) !important;
}

.cta-btn-modern.login-btn:active span,
.cta-btn-modern.register-btn:active span {
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.popup-overlay {
    position: fixed;
    z-index: 9997;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 100% 40%, rgba(30, 77, 54, 0.22) 0%, transparent 45%),
        rgba(2, 10, 6, 0.78);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: calc(52px + 80px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup-overlay::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    box-sizing: border-box;
}

/* à¹à¸ªà¸‡à¸—à¸­à¸‡à¸ˆà¸²à¸‡à¹† à¸”à¹‰à¸²à¸™à¸«à¸¥à¸±à¸‡à¸à¸¥à¹ˆà¸­à¸‡à¸›à¹Šà¸­à¸›à¸­à¸±à¸› â€” à¸šà¸™/à¸¥à¹ˆà¸²à¸‡ + à¸‚à¸¢à¸±à¸šà¸Šà¹‰à¸²à¹† */
.popup-content::before,
.popup-content::after {
    content: "";
    position: absolute;
    left: 50%;
    width: min(124%, 640px);
    height: 156px;
    pointer-events: none;
    z-index: -1;
    filter: blur(38px);
    mix-blend-mode: screen;
    border-radius: 50%;
}

.popup-content::before {
    top: -52px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 80% 75% at 50% 100%,
        rgba(255, 242, 195, 0.92) 0%,
        rgba(255, 214, 118, 0.58) 33%,
        rgba(232, 175, 62, 0.28) 56%,
        transparent 78%
    );
    box-shadow:
        0 -12px 88px rgba(255, 216, 100, 0.38),
        0 0 120px rgba(201, 162, 39, 0.42);
    animation: suai138PopupAuraTop 7s ease-in-out infinite;
}

.popup-content::after {
    bottom: -62px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 82% 76% at 50% 0%,
        rgba(255, 236, 170, 0.86) 0%,
        rgba(255, 201, 94, 0.54) 34%,
        rgba(201, 142, 30, 0.24) 58%,
        transparent 80%
    );
    box-shadow:
        0 14px 95px rgba(255, 205, 80, 0.34),
        0 0 125px rgba(201, 162, 39, 0.36);
    animation: suai138PopupAuraBottom 7s ease-in-out infinite;
    animation-delay: -3.5s;
}

@keyframes suai138PopupAuraTop {
    0%,
    100% {
        opacity: 0.72;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-14px) scale(1.15);
    }
}

@keyframes suai138PopupAuraBottom {
    0%,
    100% {
        opacity: 0.68;
        transform: translateX(-50%) translateY(0) scale(1.02);
    }
    50% {
        opacity: 0.98;
        transform: translateX(-50%) translateY(16px) scale(1.16);
    }
}

.popup-image {
    width: 100%;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.22),
        0 20px 50px rgba(0, 0, 0, 0.48);
    margin-bottom: 16px;
}

.popup-title {
    width: 100%;
    box-sizing: border-box;
    color: #fff8e8;
    font-size: clamp(1rem, 3.6vw, 1.125rem);
    text-align: center;
    font-family: "FC Iconic", "LatoWeb", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.5;
    margin: 0 0 16px 0;
    padding: 14px 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
    background: linear-gradient(
        165deg,
        rgba(30, 77, 54, 0.42) 0%,
        rgba(10, 28, 18, 0.72) 45%,
        rgba(42, 31, 10, 0.55) 100%
    );
    text-shadow:
        0 0 18px rgba(201, 162, 39, 0.45),
        0 2px 0 rgba(0, 0, 0, 0.65),
        0 1px 0 rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 8px 24px rgba(0, 0, 0, 0.35);
}

.popup-footer-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.035em;
    text-align: center;
    font-family: "FC Iconic", "LatoWeb", system-ui, sans-serif;
    color: rgba(240, 215, 140, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    padding: 0 6px 4px;
}

.suai138-fixed-footer {
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 4px;
    padding: 14px 0 calc(12px + env(safe-area-inset-bottom, 0));
    background: linear-gradient(
        180deg,
        rgba(15, 36, 24, 0.94) 0%,
        rgba(6, 18, 12, 0.97) 55%,
        rgba(3, 8, 5, 0.98) 100%
    );
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-top: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow:
        0 -4px 0 rgba(0, 0, 0, 0.2),
        0 -20px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(201, 162, 39, 0.08);
    border-radius: 22px 22px 0 0;
    font-family: "FC Iconic", "LatoWeb", system-ui, sans-serif;
}

.suai138-fixed-footer a {
    flex: 1;
    max-width: 20%;
    text-align: center;
    text-decoration: none;
    color: rgba(253, 248, 232, 0.92) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.suai138-fixed-footer a:hover {
    color: #f0d78c !important;
    transform: translateY(-3px);
}

.suai138-fixed-footer img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.35));
    transition: all 0.4s ease;
}

.suai138-fixed-footer .tada {
    background: radial-gradient(circle, rgba(201, 162, 39, 0.38) 0%, transparent 68%);
    border-radius: 50%;
    padding: 11px;
    transform: scale(1.12);
    box-shadow:
        0 0 0 1px rgba(201, 162, 39, 0.32),
        0 8px 28px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(201, 162, 39, 0.35);
    animation: suai138MegaPulse 2.4s ease-in-out infinite;
    margin-top: -15px;
}

@keyframes suai138PromoCtaPulse {
    0%,
    100% {
        filter: brightness(1) saturate(1);
    }
    50% {
        filter: brightness(1.07) saturate(1.12);
    }
}

@keyframes suai138MegaPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(201, 162, 39, 0.28),
            0 8px 28px rgba(0, 0, 0, 0.35),
            0 0 24px rgba(201, 162, 39, 0.32);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(240, 215, 140, 0.42),
            0 10px 32px rgba(0, 0, 0, 0.4),
            0 0 36px rgba(232, 197, 71, 0.38);
    }
}

@media (max-width: 500px) {
    .suai138-fixed-footer {
        padding: 10px 0;
        border-radius: 16px 16px 0 0;
    }
    .suai138-fixed-footer a {
        font-size: 11.5px;
        letter-spacing: 0.03em;
    }
    .suai138-fixed-footer img {
        width: 26px;
        height: 26px;
    }
    .suai138-fixed-footer .tada {
        transform: scale(1.1);
        padding: 8px;
        margin-top: -10px;
    }
    .popup-title {
        font-size: clamp(0.98rem, 4vw, 1.0625rem);
    }
    .popup-footer-text {
        font-size: 12px;
    }
    .cta-btn-modern {
        font-size: clamp(18px, 4.5vw, 20px);
        min-height: 54px;
        height: 54px;
        line-height: 1.2;
    }
    .cta-btn-modern:hover,
    .cta-btn-modern:focus-visible {
        transform: scale(1.04);
    }
    .cta-btn-modern:active {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-btn-modern,
    .suai138-fixed-footer a {
        transition: none !important;
    }
    .cta-btn-modern.register-btn {
        animation: none !important;
        filter: none !important;
    }
    .suai138-fixed-footer a:hover {
        transform: none;
    }
    .cta-btn-modern:active,
    .cta-btn-modern:focus-visible {
        transform: none;
    }
    .suai138-fixed-footer .tada {
        animation: none;
    }
    .popup-content::before,
    .popup-content::after {
        animation: none !important;
        opacity: 0.5;
    }
}

.popup-overlay.popup-overlay--off {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

body:has(.popup-overlay.popup-overlay--off) #suai138-promo-layer,
body:has(.popup-overlay.popup-overlay--off) .suai138-fixed-footer {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

body:has(.popup-overlay.popup-overlay--on) .inner-body-container > .inner-body {
    padding-bottom: calc(52px + 76px + env(safe-area-inset-bottom, 0px));
}

/* Alias: satu tanda hubung (tanpa BEM --) tetap dipakai jika HTML salah ketik */
.popup-overlay.popup-overlay-off {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

body:has(.popup-overlay.popup-overlay-off) #suai138-promo-layer,
body:has(.popup-overlay.popup-overlay-off) .suai138-fixed-footer {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

body:has(.popup-overlay.popup-overlay-on) .inner-body-container > .inner-body {
    padding-bottom: calc(52px + 76px + env(safe-area-inset-bottom, 0px));
}