/* AZTEC888 promo — hijau Aztec gelap + emas (gradien selaras landing) */
#AZTEC888-promo-layer {
    --az-accent: #c9a227;
    --az-accent-mid: #8b6914;
    --az-accent-bright: #f0d78c;
    --az-accent-soft: rgba(201, 162, 39, 0.38);
    --az-bg: #030a07;
    --az-bg-raised: #0a1810;
    --az-bg-deep: #05140e;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 1000010;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    isolation: isolate;
    box-sizing: border-box;
}

#AZTEC888-promo-layer .AZTEC888-promo-cta-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    margin-bottom: 16px;
    font-family: "Sarabun", "Kanit", "Segoe UI", system-ui, sans-serif;
}

#AZTEC888-promo-layer .AZTEC888-promo-cta {
    flex: 1;
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: #fdf8e8;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(201, 162, 39, 0.22) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

#AZTEC888-promo-layer .AZTEC888-promo-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(201, 162, 39, 0.28),
        0 0 0 1px rgba(240, 215, 140, 0.35) inset;
}

#AZTEC888-promo-layer .AZTEC888-promo-cta span {
    position: relative;
    z-index: 2;
    color: #fdf8e8;
    letter-spacing: 0.04em;
}

#AZTEC888-promo-layer .AZTEC888-promo-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    z-index: -1;
}

#AZTEC888-promo-layer .AZTEC888-promo-cta:hover::before {
    transform: scaleX(1);
}

#AZTEC888-promo-layer .AZTEC888-promo-cta.login-btn,
#AZTEC888-promo-layer .AZTEC888-promo-cta.register-btn {
    background: linear-gradient(
        165deg,
        #1e4d36 0%,
        #0f291c 38%,
        #2a1f0a 78%,
        var(--az-bg-deep) 100%
    );
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(4, 18, 12, 0.95) inset,
        0 1px 0 rgba(201, 162, 39, 0.15) inset,
        0 0 22px rgba(201, 162, 39, 0.14);
}

#AZTEC888-promo-layer .AZTEC888-promo-overlay {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 65% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 52%),
        radial-gradient(ellipse 80% 50% at 85% 60%, rgba(30, 77, 54, 0.25), transparent 50%),
        linear-gradient(
            165deg,
            rgba(6, 21, 13, 0.94) 0%,
            rgba(3, 10, 7, 0.97) 48%,
            rgba(0, 0, 0, 0.93) 100%
        );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    padding-bottom: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

#AZTEC888-promo-layer .AZTEC888-promo-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    position: relative;
    background: linear-gradient(
        175deg,
        rgba(15, 36, 26, 0.98) 0%,
        rgba(8, 24, 16, 0.99) 42%,
        rgba(5, 12, 8, 1) 100%
    );
    border: 1px solid rgba(201, 162, 39, 0.42);
    border-radius: 16px;
    padding: 16px 14px 14px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 48px rgba(201, 162, 39, 0.1),
        inset 0 1px 0 rgba(201, 162, 39, 0.14);
}

#AZTEC888-promo-layer .AZTEC888-promo-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(201, 162, 39, 0.28);
    margin-bottom: 16px;
    object-fit: contain;
}

#AZTEC888-promo-layer .AZTEC888-promo-title {
    width: 100%;
    text-align: center;
    font-family: "Sarabun", "Kanit", sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin: 0 0 12px 0;
    padding: 0 4px 12px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.4);
    color: #f5ecd4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

#AZTEC888-promo-layer .AZTEC888-promo-footnote {
    font-size: 11px;
    color: rgba(232, 197, 71, 0.88);
    letter-spacing: 0.02em;
    text-align: center;
}

#AZTEC888-promo-layer .AZTEC888-promo-bottom {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    width: 100%;
    pointer-events: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 4px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0));
    background: linear-gradient(
        180deg,
        #0f2419 0%,
        var(--az-bg-raised) 40%,
        var(--az-bg) 70%,
        var(--az-bg-deep) 100%
    );
    border-top: 1px solid rgba(201, 162, 39, 0.48);
    box-shadow:
        0 -12px 40px rgba(0, 0, 0, 0.75),
        0 -1px 0 rgba(201, 162, 39, 0.12) inset,
        0 0 32px rgba(0, 0, 0, 0.45);
    border-radius: 22px 22px 0 0;
    font-family: "Sarabun", "Kanit", "Segoe UI", sans-serif;
}

#AZTEC888-promo-layer .AZTEC888-promo-bottom a {
    flex: 1;
    max-width: 20%;
    text-align: center;
    text-decoration: none;
    color: rgba(253, 248, 232, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
    transition: all 0.35s ease;
}

#AZTEC888-promo-layer .AZTEC888-promo-bottom a:hover {
    color: #fff9e6;
    transform: translateY(-2px);
    text-shadow:
        0 0 16px rgba(201, 162, 39, 0.45),
        0 0 28px rgba(139, 105, 20, 0.22);
}

#AZTEC888-promo-layer .AZTEC888-promo-bottom img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
    transition: all 0.4s ease;
}

#AZTEC888-promo-layer .AZTEC888-promo-bottom .tada {
    background: radial-gradient(
        circle,
        rgba(201, 162, 39, 0.32) 0%,
        rgba(139, 105, 20, 0.16) 50%,
        transparent 72%
    );
    border-radius: 999px;
    padding: 9px 10px;
    transform: scale(1.06);
    box-shadow:
        0 0 24px rgba(201, 162, 39, 0.26),
        0 0 0 1px rgba(201, 162, 39, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: aztec888PromoPulse 2.4s ease-in-out infinite;
    margin-top: -15px;
}

@keyframes aztec888PromoPulse {
    0%,
    100% {
        box-shadow:
            0 0 18px rgba(201, 162, 39, 0.34),
            0 0 0 1px rgba(201, 162, 39, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    50% {
        box-shadow:
            0 0 30px rgba(240, 215, 140, 0.38),
            0 0 0 1px rgba(232, 197, 71, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 500px) {
    #AZTEC888-promo-layer .AZTEC888-promo-bottom {
        padding: 8px 0;
        border-radius: 16px 16px 0 0;
    }
    #AZTEC888-promo-layer .AZTEC888-promo-bottom a {
        font-size: 9.5px;
        letter-spacing: 0;
    }
    #AZTEC888-promo-layer .AZTEC888-promo-bottom img {
        width: 22px;
        height: 22px;
    }
    #AZTEC888-promo-layer .AZTEC888-promo-bottom .tada {
        transform: scale(1.1);
        padding: 8px;
        margin-top: -10px;
    }
    #AZTEC888-promo-layer .AZTEC888-promo-title {
        font-size: 14px;
    }
    #AZTEC888-promo-layer .AZTEC888-promo-cta {
        font-size: 14px;
        height: 40px;
        line-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #AZTEC888-promo-layer .AZTEC888-promo-bottom .tada {
        animation: none;
    }
    #AZTEC888-promo-layer .AZTEC888-promo-cta:hover,
    #AZTEC888-promo-layer .AZTEC888-promo-bottom a:hover {
        transform: none;
    }
}
