/* Extracted from app/Views/user/footer.php */

.affiliate-qr-swal {
    width: 390px !important;
    max-width: calc(100vw - 30px) !important;
    border-radius: 24px !important;
    overflow: hidden;
    transform: none !important;
    border: 1px solid rgba(249, 209, 125, .26);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 22% 0%, rgba(82, 186, 255, .18), transparent 36%),
        radial-gradient(circle at 86% 18%, rgba(249, 209, 125, .20), transparent 32%),
        linear-gradient(180deg, #091120 0%, #040712 56%, #02040b 100%) !important;
    box-shadow:
        0 26px 78px rgba(0, 0, 0, .72),
        inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.affiliate-qr-swal.swal2-show {
    transform: none !important;
    animation: affiliateQrPopupIn .18s ease-out both !important;
}

.affiliate-qr-swal.swal2-hide {
    transform: none !important;
    animation: affiliateQrPopupOut .14s ease-in both !important;
}

@keyframes affiliateQrPopupIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes affiliateQrPopupOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(6px) scale(.985);
    }
}

.affiliate-qr-close {
    top: 14px !important;
    right: 14px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    color: rgba(226, 232, 240, .82) !important;
    background: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    font-size: 24px !important;
    line-height: 28px !important;
    box-shadow: none !important;
    transition: .2s ease !important;
}

.affiliate-qr-close:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .14) !important;
}

.affiliate-qr-popup {
    padding: 0;
    text-align: center;
}

.affiliate-qr-hero {
    position: relative;
    margin: 10px 10px 0;
    min-height: 340px;
    overflow: hidden;
    border-radius: 21px;
    background:
        linear-gradient(#07101f, #07101f) padding-box,
        linear-gradient(135deg, rgba(255, 236, 184, .95), rgba(68, 148, 255, .40) 48%, rgba(245, 193, 108, .92)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .48);
}

.affiliate-qr-hero img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
}

.affiliate-qr-caption {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    max-width: calc(100% - 22px);
    min-height: 34px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(4, 8, 18, .76);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
}

.affiliate-qr-caption i {
    color: #33e18a;
    font-size: 14px;
    flex: 0 0 auto;
}

.affiliate-qr-body {
    padding: 16px 18px 16px;
}

.affiliate-qr-copy {
    display: grid;
    gap: 5px;
    margin: 0 auto;
    max-width: 300px;
}

.affiliate-qr-copy div {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.affiliate-qr-copy span {
    color: #a8b3c4;
    font-size: 12px;
    line-height: 1.45;
}

.affiliate-qr-share-status {
    min-height: 0;
    margin-top: 8px;
    color: #86efac;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.35;
}

.affiliate-qr-confirm {
    flex: 1 1 auto !important;
    height: 46px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #06101d !important;
    background: linear-gradient(135deg, #fff0b8 0%, #f7cc72 45%, #eeb24c 100%) !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    box-shadow:
        0 14px 30px rgba(245, 193, 108, .24),
        inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

.affiliate-qr-confirm.is-sharing {
    position: relative;
    overflow: hidden;
    color: #07111d !important;
    cursor: wait !important;
    opacity: 1 !important;
}

.affiliate-qr-confirm.is-sharing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .34) 42%, transparent 68%);
    transform: translateX(-120%);
    animation: affiliateQrButtonSheen 1.05s ease-in-out infinite;
    pointer-events: none;
}

.affiliate-qr-button-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 2px solid rgba(7, 17, 29, .18);
    border-top-color: rgba(7, 17, 29, .78);
    border-right-color: rgba(7, 17, 29, .48);
    box-shadow: 0 0 12px rgba(255, 255, 255, .34);
    animation: affiliateQrButtonSpin .68s linear infinite;
}

@keyframes affiliateQrButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes affiliateQrButtonSheen {
    to {
        transform: translateX(120%);
    }
}

.affiliate-qr-cancel {
    flex: 0 0 96px !important;
    height: 46px !important;
    margin: 0 !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    color: #dbe4f0 !important;
    background: rgba(15, 23, 42, .78) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.affiliate-qr-swal .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

.affiliate-qr-swal .swal2-actions {
    width: calc(100% - 36px) !important;
    margin: 0 18px 18px !important;
    display: flex !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

@media (max-width: 520px) {
    .affiliate-qr-swal {
        width: calc(100vw - 30px) !important;
        border-radius: 22px !important;
    }

    .affiliate-qr-hero {
        margin: 10px 10px 0;
        min-height: 340px;
    }

    .affiliate-qr-hero img {
        min-height: 340px;
    }

    .affiliate-qr-swal .swal2-actions {
        width: calc(100% - 32px) !important;
        margin: 0 16px 16px !important;
        gap: 8px !important;
    }

    .affiliate-qr-cancel {
        flex-basis: 84px !important;
    }

    .affiliate-qr-body {
        padding: 15px 16px 15px;
    }
}

.ref-icon-wrap {
                    position: relative;
                    width: 20px;
                    height: 20px;
                }

                #refIcon,
                #refSpinner {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    transition: all 0.2s ease;
                }

                #refIcon {
                    font-size: 18px;
                }

                #refSpinner {
                    width: 16px;
                    height: 16px;
                    border-width: 2px;
                    opacity: 0;
                    visibility: hidden;
                    transform: translate(-50%, -50%) scale(0.6);
                }

                .footer-ref.loading #refIcon {
                    opacity: 0;
                    transform: translate(-50%, -50%) scale(0.6);
                }

                .footer-ref.loading #refSpinner {
                    opacity: 1;
                    visibility: visible;
                    transform: translate(-50%, -50%) scale(1);
                }

                .footer-ref:hover #refIcon {
                    color: #ffd700;
                    transform: translate(-50%, -50%) scale(1.15);
                }

.footer-pro {
        margin-top: auto;
        /* 🔥关键 */

        padding: 14px 0 10px;

        background: #0b0f14;
        color: #9aa4af;
        font-size: 12px;

        border-top: 1px solid rgba(255, 255, 255, .05);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
    }

    /* LINKS */
    .footer-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .footer-links a {
        position: relative;
        color: #8f99a6;
        text-decoration: none;
        padding: 2px 4px;
        transition: .25s;
    }

    .footer-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #8a6d2f, #d4af37, #8a6d2f);
        transition: width .3s;
    }

    .footer-links a:hover {
        color: #d4af37;
    }

    .footer-links a:hover::after {
        width: 100%;
    }

    .footer-links span {
        margin: 0 8px;
        color: #5f6772;
    }

    /* REF */
    .footer-ref {
        font-size: 12px;
        color: #9ca3af;
        padding: 4px 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .08);
        cursor: pointer;
    }

    /* TEXT */
    .footer-disclaimer {
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.4;
        color: #7f8a96;
        text-align: center;
    }

    .footer-bottom {
        margin-top: 6px;
        font-size: 11px;
        color: #6f7a86;
        text-align: center;
    }

    /* MOBILE */
    @media (max-width:768px) {
        .footer-pro {
            padding: 12px 0 8px;
        }
    }

    /* 🔥 强制整个页面结构正确（手机关键） */
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* 🔥 主内容自动撑开 */
    .main-content,
    .page-content,
    .container-main {
        flex: 1;
    }

/* ===== POPUP ===== */
.swal-4d-popup {
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ===== TITLE ===== */
.swal-4d-title {
    font-size: 16px !important;
    font-weight: 600;
}

/* ===== CONTENT ===== */
.swal-4d-wrap {
    text-align: left;
    line-height: 1.6;
}

.swal-4d-desc {
    font-size: 13px;
    color: #e5e7eb;
}

.swal-4d-note {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
}

.swal-4d-divider {
    height: 1px;
    background: #1f2937;
    margin: 14px 0;
}

.swal-4d-ref {
    font-size: 11px;
    color: #9ca3af;
}

.swal-4d-ref a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

/* ===== BUTTON BASE ===== */
.swal-4d-btn,
.swal-4d-btn-cancel {
    font-size: 13px !important;
    padding: 8px 16px !important;
    margin: 0 !important;
}

/* 🔥 核心：强制左右 */
.swal2-popup.swal-4d-popup .swal2-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
}

/* 👉 平均分 */
.swal2-popup.swal-4d-popup .swal2-actions .swal2-styled {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .swal-4d-title {
        font-size: 15px !important;
    }

    .swal-4d-desc {
        font-size: 12px;
    }

    .swal-4d-note,
    .swal-4d-ref {
        font-size: 10px;
    }

    /* 🔥 再锁一次 mobile（防全局覆盖） */
    .swal2-popup.swal-4d-popup .swal2-actions {
        flex-direction: row !important;
        gap: 8px !important;
    }

    .swal2-popup.swal-4d-popup .swal2-actions .swal2-styled {
        flex: 1 1 0 !important;
        width: auto !important;
    }
}

/* ================= SUPPORT BUTTON ================= */
    .support-btn {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: none;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        font-size: 13px;
        font-weight: 600;

        transition: .25s;
    }

    /* Telegram */
    .support-btn.tg {
        background: #229ED9;
        color: #fff;
    }

    /* Tawk */
    .support-btn.tawk {
        background: linear-gradient(135deg, #f5c16c, #ffb347);
        color: #000;
    }

    /* click */
    .support-btn:active {
        transform: scale(.95);
    }

/* ================= GLASS LOADER ================= */

    .brand-loader {
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at center,
                rgba(0, 0, 0, 0.65) 0%,
                rgba(0, 0, 0, 0.45) 40%,
                rgba(0, 0, 0, 0.25) 70%,
                rgba(0, 0, 0, 0.15) 100%);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

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

        z-index: 9999;

        /* 🔥 默认隐藏（关键修复） */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity .6s ease;
    }

    /* 🔥 显示状态 */
    .brand-loader:not(.hide) {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .brand-loader.hide {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* ================= CENTER ================= */

    .brand-loader-inner {
        position: relative;
        text-align: center;
    }

    /* ================= LOGO ================= */

    .brand-logo {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 28px;
        filter: drop-shadow(0 0 28px rgba(67, 197, 190, .42));
        animation: logoEntrance .9s ease forwards;
    }

    @keyframes logoEntrance {
        from {
            transform: scale(.9);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* ================= GOLD AURA ================= */

    .brand-loader-inner::before {
        content: "";
        position: absolute;
        inset: -80px;
        background: radial-gradient(circle,
                rgba(255, 215, 0, .35),
                transparent 70%);
        animation: auraPulse 3s ease-in-out infinite;
        z-index: -1;
    }

    @keyframes auraPulse {

        0%,
        100% {
            opacity: .5;
            transform: scale(1);
        }

        50% {
            opacity: .85;
            transform: scale(1.08);
        }
    }

    /* ================= STAR FLASH ================= */

    .star-flash {
        position: absolute;
        top: -40px;
        left: 50%;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle,
                rgba(255, 215, 0, .8),
                transparent 70%);
        transform: translateX(-50%);
        animation: starFlash 1s ease forwards;
    }

    @keyframes starFlash {
        50% {
            opacity: 1;
            transform: translateX(-50%) scale(1.15);
        }

        100% {
            opacity: 0;
        }
    }

    /* ================= BALL GLOW ================= */

    .ball-glow {
        position: absolute;
        top: 30px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: radial-gradient(circle,
                rgba(255, 215, 0, .9),
                transparent 70%);
        opacity: 0;
    }

    .ball1 {
        left: 25%;
        animation: ballGlow .7s ease .3s forwards;
    }

    .ball2 {
        left: 50%;
        transform: translateX(-50%);
        animation: ballGlow .7s ease .6s forwards;
    }

    .ball3 {
        right: 25%;
        animation: ballGlow .7s ease .9s forwards;
    }

    @keyframes ballGlow {
        50% {
            opacity: 1;
            transform: scale(1.15);
        }

        100% {
            opacity: 0;
        }
    }

    /* ================= GOLD SWEEP ================= */

    .gold-sweep {
        position: absolute;
        bottom: 70px;
        width: 200%;
        height: 80px;
        background: linear-gradient(120deg,
                transparent 40%,
                rgba(255, 215, 0, .6) 50%,
                transparent 60%);
        animation: sweepForward 1.4s linear forwards;
    }

    @keyframes sweepForward {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(100%);
        }
    }

    /* ================= LOADING TEXT ================= */

    .brand-loading {
        margin-top: 30px;
        font-size: 14px;
        letter-spacing: 5px;
        font-weight: 700;
        text-transform: uppercase;

        background: linear-gradient(90deg,
                #5c4a1a,
                #d4af37,
                #f1d47a,
                #d4af37,
                #5c4a1a);

        background-size: 300% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        animation: textGlow 3s linear infinite;
    }

    @keyframes textGlow {
        0% {
            background-position: 0% center;
        }

        100% {
            background-position: 300% center;
        }
    }

    /* ================= DOT ================= */

    .brand-loading span {
        display: inline-block;
        animation: dotBounce 1.4s infinite ease-in-out;
    }

    .brand-loading span:nth-child(1) {
        animation-delay: .2s;
    }

    .brand-loading span:nth-child(2) {
        animation-delay: .4s;
    }

    .brand-loading span:nth-child(3) {
        animation-delay: .6s;
    }

    @keyframes dotBounce {

        0%,
        100% {
            transform: translateY(0);
            opacity: .5;
        }

        50% {
            transform: translateY(-5px);
            opacity: 1;
        }
    }

/* ================= PREMIUM LOGO LOADER OVERRIDE ================= */

    .brand-loader {
        background:
            radial-gradient(circle at 50% 18%, rgba(96, 165, 250, .14), transparent 28%),
            radial-gradient(circle at 50% 58%, rgba(248, 113, 113, .10), transparent 30%),
            linear-gradient(180deg, rgba(2, 6, 23, .92), rgba(0, 0, 0, .96));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: none;
    }

    .brand-loader:not(.hide) {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .brand-loader.hide {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .brand-loader-inner {
        width: min(76vw, 340px);
        min-height: 188px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 24px 22px 20px;
        border-radius: 22px;
        background:
            radial-gradient(circle at 50% -20%, rgba(245, 193, 108, .13), transparent 42%),
            linear-gradient(180deg, rgba(15, 23, 42, .64), rgba(2, 6, 23, .34)),
            rgba(2, 6, 23, .22);
        border: 1px solid rgba(148, 163, 184, .12);
        box-shadow:
            0 26px 70px rgba(0, 0, 0, .42),
            0 0 46px rgba(96, 165, 250, .08),
            0 0 52px rgba(248, 113, 113, .06),
            inset 0 1px 0 rgba(255, 255, 255, .06);
        overflow: hidden;
        transform: translateY(8px) scale(.985);
        animation: loaderPanelIn .46s cubic-bezier(.2, .8, .2, 1) forwards;
    }

    .brand-loader-inner::before {
        inset: -90px;
        background:
            conic-gradient(from 180deg, transparent, rgba(96, 165, 250, .16), rgba(245, 193, 108, .13), rgba(248, 113, 113, .14), transparent 48%),
            radial-gradient(circle, rgba(245, 193, 108, .16), transparent 62%);
        opacity: .9;
        animation: premiumAura 5.8s linear infinite;
        z-index: -1;
    }

    .brand-loader-inner::after {
        content: "";
        position: absolute;
        left: 13%;
        right: 13%;
        bottom: 58px;
        height: 1px;
        background:
            radial-gradient(circle, rgba(245, 193, 108, .95), transparent 2px),
            linear-gradient(90deg, transparent, rgba(96, 165, 250, .32), rgba(245, 193, 108, .55), rgba(248, 113, 113, .32), transparent);
        box-shadow:
            0 0 16px rgba(245, 193, 108, .22),
            0 0 26px rgba(96, 165, 250, .10);
        animation: casinoRailPulse 1.9s ease-in-out infinite;
        pointer-events: none;
    }

    .brand-logo {
        width: min(254px, 64vw);
        height: auto;
        padding: 0;
        filter:
            drop-shadow(0 0 12px rgba(96, 165, 250, .36))
            drop-shadow(0 0 18px rgba(248, 113, 113, .22))
            drop-shadow(0 11px 22px rgba(0, 0, 0, .34));
        animation: premiumLogoIn .58s cubic-bezier(.2, .8, .2, 1) both, premiumLogoFloat 2.6s ease-in-out .58s infinite;
    }

    .brand-logo::selection {
        background: transparent;
    }

    .star-flash {
        display: none !important;
    }

    .ball-glow {
        display: block !important;
        position: absolute;
        top: auto;
        bottom: 56px;
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #f5c16c;
        opacity: 0;
        box-shadow:
            0 0 12px rgba(245, 193, 108, .82),
            0 0 24px rgba(96, 165, 250, .28);
        animation: loaderSparkRun 1.9s cubic-bezier(.2, .8, .2, 1) infinite;
        pointer-events: none;
    }

    .ball1 {
        left: 24%;
        animation-delay: 0s;
    }

    .ball2 {
        left: 50%;
        transform: translateX(-50%);
        background: #60a5fa;
        animation-delay: .24s;
    }

    .ball3 {
        right: 24%;
        background: #f87171;
        animation-delay: .48s;
    }

    .gold-sweep {
        position: absolute;
        left: 50%;
        top: 15px;
        width: 118px;
        height: 118px;
        margin-left: -59px;
        border-radius: 999px;
        background: none;
        border: 2px solid rgba(255, 255, 255, .07);
        border-top-color: rgba(245, 193, 108, .95);
        border-right-color: rgba(96, 165, 250, .58);
        filter:
            drop-shadow(0 0 16px rgba(245, 193, 108, .22))
            drop-shadow(0 0 28px rgba(96, 165, 250, .12));
        opacity: .72;
        animation: premiumLoaderSpin 1.05s linear infinite, ringBreathe 2.2s ease-in-out infinite;
        pointer-events: none;
        z-index: -1;
    }

    .gold-sweep::before,
    .gold-sweep::after {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: inherit;
        border: 1px solid transparent;
        border-left-color: rgba(248, 113, 113, .78);
        border-bottom-color: rgba(96, 165, 250, .42);
        animation: premiumLoaderSpinReverse 1.24s linear infinite;
    }

    .gold-sweep::after {
        inset: 19px;
        border-width: 2px;
        border-top-color: rgba(245, 193, 108, .80);
        border-left-color: transparent;
        border-bottom-color: transparent;
        animation: premiumLoaderSpin 1.6s linear infinite;
    }

    .brand-loading {
        position: relative;
        width: min(224px, 58vw);
        margin-top: 22px;
        padding-top: 18px;
        color: #cbd5e1;
        background: none;
        -webkit-text-fill-color: initial;
        letter-spacing: 3.2px;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        opacity: .9;
        animation: none;
    }

    .brand-loading::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background:
            linear-gradient(90deg, transparent, rgba(148, 163, 184, .22), transparent);
        overflow: hidden;
    }

    .brand-loading::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 42%;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, #60a5fa, #f5c16c, #f87171);
        box-shadow: 0 0 16px rgba(245, 193, 108, .28);
        animation: premiumProgress 1.12s ease-in-out infinite;
    }

    .brand-loading span {
        animation: dotBounce .96s infinite ease-in-out;
    }

    .brand-loader:not(.hide) .brand-loader-inner {
        isolation: isolate;
    }

    .brand-loader:not(.hide) .brand-loader-inner .brand-loading {
        text-shadow: 0 0 16px rgba(96, 165, 250, .22);
    }

    @keyframes loaderPanelIn {
        from {
            opacity: 0;
            transform: translateY(18px) scale(.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes premiumLogoIn {
        from {
            opacity: 0;
            transform: translateY(10px) scale(.94);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes premiumLogoFloat {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-3px);
        }
    }

    @keyframes premiumAura {
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes premiumSweep {
        0%, 32% {
            left: -55%;
            opacity: 0;
        }

        48% {
            opacity: 1;
        }

        76%, 100% {
            left: 112%;
            opacity: 0;
        }
    }

    @keyframes casinoRailPulse {
        0%, 100% {
            opacity: .48;
            transform: scaleX(.92);
        }

        50% {
            opacity: 1;
            transform: scaleX(1);
        }
    }

    @keyframes ringBreathe {
        0%, 100% {
            box-shadow:
                0 0 0 0 rgba(245, 193, 108, .00),
                inset 0 0 0 rgba(255, 255, 255, 0);
        }

        50% {
            box-shadow:
                0 0 24px 2px rgba(245, 193, 108, .10),
                inset 0 0 18px rgba(96, 165, 250, .08);
        }
    }

    @keyframes premiumProgress {
        0% {
            transform: translateX(-110%);
        }

        55% {
            transform: translateX(95%);
        }

        100% {
            transform: translateX(260%);
        }
    }

    @keyframes premiumLoaderSpin {
        to {
            transform: rotate(360deg);
        }
    }

    @keyframes premiumLoaderSpinReverse {
        to {
            transform: rotate(-360deg);
        }
    }

    @keyframes loaderSparkRun {
        0% {
            opacity: 0;
            transform: translate(-28px, 8px) scale(.55);
        }

        26% {
            opacity: 1;
            transform: translate(-8px, 0) scale(1);
        }

        58% {
            opacity: .95;
            transform: translate(16px, -3px) scale(.86);
        }

        100% {
            opacity: 0;
            transform: translate(40px, 6px) scale(.45);
        }
    }

/* ================= COMPACT TRANSPARENT PAGE LOADER ================= */

    .brand-loader {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none !important;
        transition: opacity .15s ease, visibility .15s ease !important;
    }

    .brand-loader:not(.hide) {
        pointer-events: none !important;
    }

    .brand-loader-inner {
        width: auto;
        min-width: 0;
        min-height: 0;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 9px 14px 9px 10px;
        border-radius: 999px;
        background: rgba(7, 12, 22, .72);
        border: 1px solid rgba(245, 193, 108, .20);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, .20),
            inset 0 1px 0 rgba(255, 255, 255, .08);
        backdrop-filter: blur(14px) saturate(135%);
        -webkit-backdrop-filter: blur(14px) saturate(135%);
        overflow: visible;
        transform: translateY(4px) scale(.98);
        animation: compactLoaderIn .18s ease-out forwards;
    }

    .brand-loader-inner::before,
    .brand-loader-inner::after {
        display: none;
    }

    .brand-logo {
        position: relative;
        z-index: 1;
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        border-radius: 9px;
        object-fit: cover;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .24));
        animation: none;
    }

    .gold-sweep {
        left: 7px;
        top: 6px;
        bottom: auto;
        width: 38px;
        height: 38px;
        margin: 0;
        border-width: 1px;
        opacity: .78;
        z-index: 0;
        animation: premiumLoaderSpin .9s linear infinite;
    }

    .gold-sweep::before,
    .gold-sweep::after,
    .star-flash,
    .ball-glow {
        display: none !important;
    }

    .brand-loading {
        width: auto;
        margin: 0;
        padding: 0;
        color: rgba(241, 245, 249, .92);
        background: none;
        -webkit-text-fill-color: initial;
        font-size: 11px;
        font-weight: 750;
        line-height: 1;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        white-space: nowrap;
        opacity: 1;
        animation: none;
    }

    .brand-loading::before,
    .brand-loading::after {
        display: none;
    }

    .brand-loading span {
        display: inline-block;
        color: #f5c16c;
        animation: compactDot 1s ease-in-out infinite;
    }

    .brand-loading span:nth-child(2) {
        animation-delay: .14s;
    }

    .brand-loading span:nth-child(3) {
        animation-delay: .28s;
    }

    @keyframes compactLoaderIn {
        to {
            transform: translateY(0) scale(1);
        }
    }

    @keyframes compactDot {
        0%, 60%, 100% {
            opacity: .32;
            transform: translateY(0);
        }

        30% {
            opacity: 1;
            transform: translateY(-2px);
        }
    }

/* ================= COOKIE ================= */
    .swal2-container {
        z-index: 10050 !important;
    }

    .cookie-consent {
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 9999;
        display: none;
        animation: slideUp .4s ease;
    }

    .cookie-box {
        display: flex;
        align-items: center;
        gap: 14px;

        padding: 16px 18px;

        background: linear-gradient(180deg, rgba(2, 6, 23, .96), rgba(2, 6, 23, 1));
        backdrop-filter: blur(12px);

        border-top: 1px solid rgba(255, 255, 255, .06);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, .7);
    }

    .cookie-text-wrap {
        flex: 1;
    }

    .cookie-text {
        font-size: 13px;
        color: #e5e7eb;
    }

    /* PRIVACY */
    .cookie-privacy {
        font-size: 11px;
        color: #94a3b8;
        opacity: .6;
        transition: .2s;
    }

    .cookie-privacy:hover {
        color: #f5c16c;
        opacity: 1;
    }

    /* ACTION */
    .cookie-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    /* DECLINE */
    .cookie-btn-decline {
        border: 1px solid rgba(255, 255, 255, .08);
        background: transparent;
        color: #94a3b8;

        padding: 8px 14px;
        border-radius: 8px;
        min-width: 90px;

        transition: .25s;
    }

    .cookie-btn-decline:hover {
        color: #fff;
        border-color: rgba(255, 255, 255, .2);
    }

    /* AGREE */
    .cookie-btn {
        border: none;
        border-radius: 10px;

        padding: 8px 16px;
        font-weight: 600;

        background: linear-gradient(135deg, #f5c16c, #ffd27f);
        color: #000;

        min-width: 110px;
        transition: .25s;
    }

    .cookie-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(245, 193, 108, .3);
    }

    /* LOADING */
    .cookie-btn.loading .btn-text {
        display: none;
    }

    .cookie-btn.loading .btn-loading {
        display: flex !important;
    }

    /* ================= MODAL ================= */
    /* ================= MODAL（盖全站 FINAL） ================= */
    .privacy-modal {
        position: fixed;

        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

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

        /* 🔥 关键：压死全站 */
        z-index: 999999 !important;

        /* 🔥 高级效果 */
        background: rgba(0, 0, 0, 0.82);
        backdrop-filter: blur(8px);

        animation: fadeIn .25s ease;
    }

    /* 🔥 BOX（升级动画） */
    .privacy-box {
        width: 100%;
        max-width: 420px;

        background: #020617;
        border-radius: 14px;
        padding: 22px;

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

        animation: scaleUp .25s ease;
    }

    /* 🔥 HEADER */
    .privacy-header {
        position: relative;
        margin-bottom: 14px;
    }

    /* TITLE */
    .privacy-title {
        font-size: 16px;
        font-weight: 700;
        color: #f5c16c;
    }

    /* 🔥 CLOSE（固定右上角） */
    .privacy-close {
        position: absolute;
        top: -4px;
        right: -4px;

        width: 32px;
        height: 32px;

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

        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;

        border: none;
        color: #94a3b8;
        font-size: 16px;

        cursor: pointer;
        transition: .25s;
    }

    .privacy-close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

    /* CONTENT */
    .privacy-content {
        font-size: 13px;
        color: #e5e7eb;
        line-height: 1.6;
    }

    /* MOBILE */
    @media (max-width:768px) {

        .cookie-box {
            flex-direction: column;
            align-items: stretch;
        }

        .cookie-actions {
            width: 100%;
        }

        .cookie-btn,
        .cookie-btn-decline {
            flex: 1;
            width: 100%;
        }
    }

    .mobile-back-to-top {
        position: fixed;
        left: 16px;
        bottom: calc(112px + env(safe-area-inset-bottom, 0px));
        z-index: 998;
        width: 42px;
        height: 42px;
        display: none;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(245, 193, 108, .54);
        border-radius: 999px;
        color: #ffe2a4;
        background:
            radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .22), transparent 24%),
            radial-gradient(circle at 50% 100%, rgba(245, 193, 108, .18), transparent 52%),
            linear-gradient(145deg, rgba(18, 24, 36, .94), rgba(2, 6, 23, .9));
        box-shadow:
            0 12px 28px rgba(0, 0, 0, .34),
            0 0 22px rgba(245, 193, 108, .18),
            inset 0 1px 0 rgba(255, 255, 255, .12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px) scale(.92);
        transition: opacity .22s ease, transform .22s ease, border-color .22s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-back-to-top i {
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
        filter: drop-shadow(0 1px 5px rgba(245, 193, 108, .32));
    }

    .mobile-back-to-top.show {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        animation: backToTopFloat 2.4s ease-in-out infinite;
    }

    .mobile-back-to-top:active {
        transform: translateY(1px) scale(.96);
        border-color: rgba(250, 204, 21, .75);
        animation: none;
    }

    @media (min-width: 769px) {
        .mobile-back-to-top {
            display: none !important;
        }
    }

    @keyframes backToTopFloat {
        0%, 100% {
            box-shadow:
                0 12px 28px rgba(0, 0, 0, .34),
                0 0 18px rgba(245, 193, 108, .16),
                inset 0 1px 0 rgba(255, 255, 255, .12);
        }

        50% {
            box-shadow:
                0 14px 32px rgba(0, 0, 0, .38),
                0 0 26px rgba(245, 193, 108, .28),
                inset 0 1px 0 rgba(255, 255, 255, .14);
        }
    }

    /* ANIMATION */
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes scaleUp {
        from {
            transform: scale(0.92);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }
