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

[data-translate] {
            word-break: break-word;
        }

/* CENTER QR ICON */
                .nav-center-qr {
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    cursor: pointer;
                    z-index: 10;

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

                    min-width: 24px;
                    min-height: 24px;

                    transition: transform 0.18s ease;
                }

                /* 点击压感 */
                .nav-center-qr:active {
                    transform: translate(-50%, -50%) scale(0.92);
                }

                /* ICON / SPINNER 共用定位 */
                #qrIcon,
                #qrSpinner {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                }

                /* ICON */
                #qrIcon {
                    font-size: 20px;
                    line-height: 1;
                }

                /* HOVER */
                .nav-center-qr:hover #qrIcon {
                    color: #ffd700;
                    transform: translate(-50%, -50%) scale(1.18);
                }

                /* 🔥 SPINNER（改用 display 控制） */
                #qrSpinner {
                    display: none;
                    width: 18px;
                    height: 18px;
                    border-width: 2px;
                }

                /* 🔥 LOADING 状态 */
                .nav-center-qr.qr-loading #qrIcon {
                    display: none;
                }

                .nav-center-qr.qr-loading #qrSpinner {
                    display: block;
                }

/* ================= HEADER 融合 ================= */

        .navbar-platform {
            border-bottom: none !important;
        }

        /* ================= SUPPORT STRIP ================= */

        .header-support-strip {
            position: fixed;
            top: 60px;
            /* fallback */
            left: 0;
            width: 100%;
            z-index: 997;

            background: rgba(0, 0, 0, 0.94);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);

            font-size: 11.5px;
            color: #cbd5f5;

            padding: 6px 0;
            text-align: center;
            cursor: pointer;

            transition: all .3s ease;
        }

        /* 🔥 scroll 隐藏 */
        .header-support-strip.hide {
            transform: translateY(-100%);
            opacity: 0;
        }

        /* 内容 */
        .support-inner {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
        }

        /* 在线点 */
        .support-dot {
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            box-shadow: 0 0 6px #22c55e;

            animation: pulseDot 1.8s infinite;
        }

        @keyframes pulseDot {
            0% {
                opacity: .4;
                transform: scale(.8);
            }

            50% {
                opacity: 1;
                transform: scale(1.2);
            }

            100% {
                opacity: .4;
                transform: scale(.8);
            }
        }

        /* 文案 */
        .support-text {
            opacity: 0.9;
        }

        /* 分隔 */
        .support-divider {
            width: 1px;
            height: 10px;
            background: rgba(255, 255, 255, 0.2);
            margin: 0 2px;
        }

        /* CTA */
        .support-tg {
            color: #2AABEE;
            font-weight: 600;
        }

        /* ================= MOBILE 自动贴紧 ================= */

        @media (max-width:768px) {
            .header-support-strip {
                top: 72px;
                /* fallback */
            }
        }

/* ================= CONTAINER ================= */
                .menu-sub {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;
                    padding: 6px 4px;
                }

                /* ================= ITEM ================= */
                .menu-sub-item {
                    display: flex;
                    align-items: center;
                    gap: 12px;

                    padding: 10px 12px;
                    border-radius: 12px;

                    text-decoration: none !important;

                    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
                    border: 1px solid rgba(255, 255, 255, 0.05);

                    transition: all .25s ease;
                    position: relative;
                    overflow: hidden;
                }

                /* 🔥 hover */
                .menu-sub-item:hover {
                    transform: translateY(-1px);
                    border-color: rgba(255, 215, 0, 0.25);
                    background: rgba(255, 215, 0, 0.04);
                }

                /* 🔥 active press */
                .menu-sub-item:active {
                    transform: scale(0.98);
                }

                /* ================= ICON ================= */
                .menu-icon {
                    width: 38px;
                    height: 38px;

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

                    border-radius: 10px;

                    background: rgba(255, 255, 255, 0.04);
                    border: 1px solid rgba(255, 255, 255, 0.06);

                    color: #cbd5e1;
                    font-size: 16px;

                    transition: all .25s ease;
                }

                /* GOLD ICON */
                .menu-icon.gold {
                    background: rgba(255, 215, 0, 0.08);
                    border: 1px solid rgba(255, 215, 0, 0.25);
                    color: #f5c16c;
                }

                /* ================= TEXT ================= */
                .menu-text {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                }

                /* TITLE */
                .sub-title {
                    font-size: 13.5px;
                    font-weight: 600;
                    color: #e5e7eb;
                    line-height: 1.2;
                }

                /* DESC */
                .sub-desc {
                    font-size: 11px;
                    color: #9ca3af;
                    margin-top: 2px;
                }

                /* ================= ARROW ================= */
                .menu-arrow {
                    font-size: 13px;
                    color: #6b7280;
                    transition: all .25s ease;
                }

                /* hover arrow */
                .menu-sub-item:hover .menu-arrow {
                    transform: translateX(3px);
                    color: #f5c16c;
                }

                /* ================= SHIMMER（高级感） ================= */
                .menu-sub-item::after {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: -120%;
                    width: 60%;
                    height: 100%;

                    background: linear-gradient(120deg,
                            transparent,
                            rgba(255, 255, 255, 0.08),
                            transparent);

                    transition: all .6s ease;
                }

                .menu-sub-item:hover::after {
                    left: 120%;
                }

                /* ================= REMOVE UNDERLINE ================= */
                .menu-sub-item,
                .menu-sub-item * {
                    text-decoration: none !important;
                }

/* ================= TEXT WRAP ================= */
                .menu-text-wrap {
                    display: flex;
                    flex-direction: column;
                    line-height: 1.2;
                }

                /* 主标题 */
                .menu-text-main {
                    font-size: 13.5px;
                    font-weight: 600;
                    color: #e5e7eb;
                }

                /* 副标题 */
                .menu-text-sub {
                    font-size: 11px;
                    color: #9ca3af;
                }

                /* ================= LOADING STATE ================= */
                .menu-item.loading {
                    pointer-events: none;
                    opacity: 0.7;
                }

                .menu-item.loading i {
                    display: none;
                }

                .menu-item.loading::before {
                    content: "";
                    width: 16px;
                    height: 16px;

                    border: 2px solid rgba(255, 255, 255, 0.2);
                    border-top-color: #2AABEE;

                    border-radius: 50%;
                    animation: spin 0.7s linear infinite;
                }

                /* spinner animation */
                @keyframes spin {
                    to {
                        transform: rotate(360deg);
                    }
                }

/* =========================================================
                            🔥 BUTTON LOADING STYLE
                            ========================================================= */

            .btn-action.loading {
                opacity: 0.7;
                pointer-events: none;
            }

            .btn-action .spinner-border {
                width: 14px;
                height: 14px;
                border-width: 2px;
            }

            .btn-action {
                transition: all .25s ease;
            }

            .btn-action:hover {
                transform: translateY(-1px);
            }

            .btn-action:active {
                transform: scale(0.96);
            }


            /* =========================================================
                        🔥 SWAL DARK STYLE（品牌统一）
                        ========================================================= */

            .swal-dark-popup {
                border-radius: 12px;
                border: 1px solid rgba(255, 255, 255, 0.08);

                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);

                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
            }

            .swal-dark-title {
                font-size: 13px !important;
                font-weight: 500;
                color: #e5e7eb;
            }

            .swal-dark-progress {
                background: linear-gradient(90deg, #f5c16c, #ffd86b) !important;
            }

            /* icon */
            .swal2-icon.swal2-success {
                border-color: rgba(245, 193, 108, 0.5);
            }

            .swal2-icon.swal2-success [class^=swal2-success-line] {
                background-color: #f5c16c !important;
            }

            .swal2-icon.swal2-success .swal2-success-ring {
                border: 4px solid rgba(245, 193, 108, 0.2);
            }

/* ================= PROMOTION MENU CLEAN FINAL ================= */

            .menu-group {
                margin-bottom: 6px;
            }

            /* 主菜单 */
            .menu-parent {
                display: flex;
                justify-content: space-between;
                align-items: center;

                padding: 14px 6px;
                border-bottom: 1px solid rgba(255, 255, 255, .06);

                font-size: 14px;
                color: #fff;

                cursor: pointer;
            }

            .menu-parent:hover {
                background: rgba(255, 255, 255, .05);
            }

            /* 箭头 */
            .promo-arrow {
                font-size: 12px;
                color: #9ca3af;
                transition: transform .25s ease;
            }

            .menu-group.open .promo-arrow {
                transform: rotate(180deg);
            }

            /* 子菜单 */
            .menu-sub {
                display: none;
                flex-direction: column;
            }

            .menu-group.open .menu-sub {
                display: flex;
            }

            /* 🔥 子菜单项（完全无边线） */
            .menu-sub-item {
                display: flex;
                align-items: center;
                gap: 10px;

                padding: 10px 10px;
                margin: 6px 0;

                border-radius: 10px;

                font-size: 13px;
                color: #d1d5db;

                background: rgba(255, 255, 255, 0.02);

                transition: all 0.2s ease;
            }

            /* hover */
            .menu-sub-item:hover {
                background: rgba(245, 193, 108, 0.08);
                transform: translateX(3px);
            }

            /* icon */
            .menu-sub-item i {
                color: #f5c16c;
                font-size: 14px;
            }

            /* title */
            .sub-title {
                font-size: 12.5px;
                font-weight: 600;
            }

            /* desc */
            .sub-desc {
                font-size: 10px;
                color: #9ca3af;
                margin-top: 2px;
            }

/* ==========================================
   PROMOTION
========================================== */

        .menu-group {
            margin-bottom: 6px;
        }

        .menu-group .menu-sub {
            display: none;
            flex-direction: column;
        }

        .menu-group.open .menu-sub {
            display: flex;
        }

        /* ==========================================
   SUPPORT
========================================== */

        .support-group {
            margin-bottom: 6px;
        }

        .support-group .menu-sub {
            display: none;
            flex-direction: column;
        }

        .support-group.open .menu-sub {
            display: flex;
        }

        /* ==========================================
   ARROW ROTATE
========================================== */

        .menu-group.open .promo-arrow,
        .support-group.open .promo-arrow {
            transform: rotate(180deg);
        }

/* =========================================================
                🔥 OFFCANVAS STRUCTURE（终极版）
                ========================================================= */

        .offcanvas-platform {
            background: #000;

            display: flex;
            flex-direction: column;

            height: auto;
            /* ✅ 不锁死 */
            min-height: 100vh;
            /* ✅ 至少一屏 */
        }

        /* 🔥 不再内部scroll（关键） */
        .offcanvas-body {
            flex: unset;
            overflow: visible;
            /* ✅ 取消内部滚动 */
            padding-bottom: 20px;
        }

        /* 🔥 整体滚动交给外层 */
        .offcanvas {
            overflow-y: auto;
        }


        /* =========================================================
                MENU
                ========================================================= */

        .offcanvas-platform .menu-item {
            padding: 14px 6px;
            border-bottom: 1px solid rgba(255, 255, 255, .06);

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

            text-decoration: none;
            color: #fff;
        }

        .offcanvas-platform .menu-item:hover {
            background: rgba(255, 255, 255, .05);
        }

        .offcanvas-platform .menu-item i {
            width: 18px;
        }


        /* =========================================================
                LANGUAGE
                ========================================================= */

        .offcanvas .dropdown-toggle {
            background: #0b0f14;
            border: 1px solid rgba(255, 255, 255, .1);
            color: #e5e7eb !important;
        }

        .offcanvas .dropdown-menu {
            background: #111;
            border: 1px solid rgba(255, 255, 255, .1);
        }

        .offcanvas .dropdown-item {
            color: #e5e7eb !important;
        }

        .offcanvas .dropdown-item:hover {
            background: rgba(255, 255, 255, .08);
        }


        /* =========================================================
                🔥 SHARE BUTTONS
                ========================================================= */

        .share-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 12px;
        }

        /* Copy */
        .btn-copy-link {
            width: 100%;
            box-sizing: border-box;

            padding: 10px 12px;

            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);

            background: linear-gradient(90deg, #1e293b, #0f172a);
            color: #e5e7eb;

            font-size: 13px;

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

            overflow: hidden;

            transition: all .2s ease;
        }

        .btn-copy-link:hover {
            background: linear-gradient(90deg, #334155, #1e293b);
        }

        .btn-copy-link:active {
            transform: scale(0.96);
        }

        /* Share QR */
        .btn-share-qr {
            width: 100%;
            padding: 11px;

            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);

            background: linear-gradient(90deg, #0ea5e9, #2563eb);
            color: #fff;

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

        .copy-link-wrap {
            margin-top: 12px;
        }


        /* =========================================================
                🔥 QR + FOOTER（终极版）
                ========================================================= */

        .mobile-share-footer {

            margin-top: 20px;
            /* ✅ 不再强制顶到底 */

            padding: 16px 12px;
            text-align: center;

            background: linear-gradient(180deg,
                    rgba(2, 6, 23, .7),
                    rgba(2, 6, 23, .95));

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

        /* TEXT */
        .mobile-share-footer .share-text {
            font-size: 12px;
            color: #9ca3af;
            margin-bottom: 10px;
        }

        /* QR */
        .mobile-share-footer .share-qr img {
            width: 100px;
            height: 100px;

            border-radius: 10px;
            background: #0b0f14;
            padding: 6px;
        }

        /* DIVIDER */
        .mobile-share-footer .menu-divider {
            height: 1px;
            background: rgba(255, 255, 255, .08);
            margin: 10px 0;
        }

        /* COPYRIGHT */
        .mobile-copy {
            font-size: 11px;
            color: #6b7280;
        }

        .mobile-sub {
            font-size: 10px;
            color: #64748b;
        }

/* =========================================================
        BASE（优化版）
        ========================================================= */

        html,
        body {
            touch-action: manipulation;
            overscroll-behavior-y: auto;
            /* ✅ 修复滑动 */
            background: #000;
            color: #fff;
            font-family:
                Inter,
                'Noto Sans',
                system-ui,
                -apple-system,
                "Segoe UI Emoji",
                "Apple Color Emoji",
                "Noto Color Emoji",
                sans-serif;
        }


        /* =========================================================
            BODY OFFSET
            ========================================================= */

        body {
            padding-top: 92px;
        }

        @media (max-width:768px) {
            body {
                padding-top: 110px;
            }
        }


        /* =========================================================
                NAVBAR
                ========================================================= */

        .navbar-platform {
            background: rgba(0, 0, 0, .94);
            border-bottom: 1px solid rgba(255, 193, 7, .35);
            min-height: 60px;
        }

        .navbar-platform .nav-link,
        .navbar-platform .menu-item,
        .navbar-platform .dropdown .btn {
            display: flex;
            align-items: center;
            height: 40px;
            padding: 0 12px;
            font-size: 14px;
        }

        .nav-platform .nav-link {
            color: #fff !important;
            font-weight: 500;
        }

        .nav-platform .nav-link:hover {
            color: #f5c16c;
        }


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

        .logo-text {
            font-weight: 900;
            letter-spacing: 0.6px;
            display: inline-flex;
            align-items: center;

            background: linear-gradient(90deg, #3b82f6, #6366f1, #ef4444);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;

            text-shadow: 0 0 8px rgba(99, 102, 241, .35);
        }

        .logo-best,
        .logo-2,
        .logo-wins {
            font-size: 26px;
        }

        @media (max-width:768px) {

            .logo-best,
            .logo-wins,
            .logo-2 {
                font-size: 21px;
            }
        }


        /* =========================================================
                MENU
                ========================================================= */

        .menu-item {
            cursor: pointer;
        }

        .menu-item i {
            margin-right: 6px;
        }


        /* =========================================================
                LANGUAGE
            ========================================================= */

        .dropdown-menu .dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            height: 40px;
            font-size: 14px;
            padding: 0 12px;
        }

        .lang-flag {
            width: 22px;
        }

        .dropdown-item.active {
            background: rgba(245, 193, 108, .15);
            color: #f5c16c;
        }

        /* 🔥 强制语言按钮白色 */
        .lang-btn {
            color: #e5e7eb !important;
        }

        /* hover */
        .lang-btn:hover {
            color: #ffffff !important;
        }

        /* 点击 / focus */
        .lang-btn:focus,
        .lang-btn:active {
            color: #ffffff !important;
            box-shadow: none !important;
        }

        /* =========================================================
ICON COLORS
========================================================= */

        .bi-telegram {
            color: #2AABEE !important;
        }

        .bi-gift {
            color: #f5c16c !important;
        }

        .bi-controller {
            color: #9ca3af !important;
        }

        .bi-headset {
            color: #22c55e !important;
        }


        /* =========================================================
🔥 REMOVE FIXED FOOTER（关键）
========================================================= */

        .fixed-footer {
            position: relative;
            /* ✅ 不再固定 */
        }


        /* =========================================================
QR SIZE
========================================================= */

        .mobile-share-footer .share-qr img {
            width: 140px;
            height: auto;
        }

/* 🔥 防止任何情况爆宽 */
        .swal2-popup {
            max-width: 100% !important;
            box-sizing: border-box;
        }

        /* 只锁定 Telegram Popup */
        .swal-telegram-popup {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        /* WRAP */
        .swal-telegram-wrap {
            text-align: left;
            font-size: 13px;
            line-height: 1.6;
            word-break: break-word;
        }

        /* HEADLINE */
        .swal-telegram-headline {
            font-weight: 600;
            margin-bottom: 6px;
        }

        /* INTRO */
        .swal-telegram-intro {
            margin-bottom: 6px;
        }

        /* LIST */
        .swal-telegram-list {
            padding-left: 16px;
            margin: 6px 0 10px;
        }

        /* BRAND */
        .b2w-brand {
            color: #f5c16c;
            font-weight: 600;
            text-shadow: 0 0 6px rgba(245, 193, 108, .3);
        }

        /* B2W */
        .swal-telegram-b2w {
            font-size: 12px;
            color: #94a3b8;
            margin-bottom: 8px;
        }

        /* NOTE */
        .swal-telegram-note {
            color: #94a3b8;
            font-size: 12px;
        }

        /* DIVIDER */
        .swal-telegram-divider {
            height: 1px;
            background: rgba(255, 255, 255, .08);
            margin: 10px 0;
        }

        /* ASK */
        .swal-telegram-ask {
            font-size: 13px;
        }

        /* TITLE */
        .swal-telegram-title {
            font-size: 15px !important;
        }

        /* BUTTON BASE */
        .swal-telegram-btn,
        .swal-telegram-btn-cancel {
            font-size: 13px !important;
            padding: 8px 14px !important;
            margin: 0 !important;
            white-space: nowrap;
        }

        /* 🔥 桌面也保持左右 */
        .swal2-popup.swal-telegram-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;
            margin: 1.25em 0 0 !important;
        }

        .swal2-popup.swal-telegram-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) {

            /* 🔥 只针对 Telegram，不给别的 Swal 影响 */
            .swal2-popup.swal-telegram-popup .swal2-actions {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                align-items: stretch !important;
                justify-content: center !important;
                gap: 8px !important;
                width: 100% !important;
            }

            .swal2-popup.swal-telegram-popup .swal2-actions .swal2-styled,
            .swal2-popup.swal-telegram-popup .swal-telegram-btn,
            .swal2-popup.swal-telegram-popup .swal-telegram-btn-cancel {
                flex: 1 1 0 !important;
                width: auto !important;
                min-width: 0 !important;
                margin: 0 !important;
                padding: 8px 10px !important;
                font-size: 12px !important;
            }
        }
