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

.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: 380px;
        filter: drop-shadow(0 0 35px rgba(255, 215, 0, .7));
        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;
        }
    }

/* ================= COOKIE ================= */
    .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%;
        }
    }

    /* 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;
        }
    }
