/* ===== 全局重置 & 基础样式 ===== */
        * {
            -webkit-tap-highlight-color: transparent;
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            min-height: -webkit-fill-available;
        }

        body {
            background: #0b0d18;
            color: #eeeaff;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            padding-bottom: env(safe-area-inset-bottom);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
 
        /* ===== 玻璃卡片 ===== */
        .glass-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .active-glass {
            border: 1px solid rgba(0, 219, 231, 0.3);
            background: rgba(255, 255, 255, 0.08);
        }

        .glow-blue {
            box-shadow: 0 0 20px rgba(0, 219, 231, 0.3);
        }

        /* ===== 导航栏 ===== */
        .nav-blur {
            background: rgba(2, 6, 23, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .safe-bottom {
            padding-bottom: env(safe-area-inset-bottom, 16px);
        }

        /* ===== 脉冲动画 ===== */
        @keyframes pulse-glow {
            0%, 100% {
                box-shadow: 0 0 10px rgba(0, 219, 231, 0.2);
                border-color: rgba(0, 219, 231, 0.2);
            }
            50% {
                box-shadow: 0 0 30px rgba(0, 219, 231, 0.5);
                border-color: rgba(0, 219, 231, 0.7);
            }
        }
        .animate-pulse-glow {
            animation: pulse-glow 2.5s infinite ease-in-out;
        }

        /* ===== 加载遮罩 ===== */
        #loadingMask {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            height: -webkit-fill-available;
            background: rgba(0, 0, 0, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 20px;
            transition: opacity 0.6s ease, visibility 0.6s ease;
        }

        #loadingMask.hide {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .tip-text {
            font-size: 16px;
            color: #ffdd00;
            letter-spacing: 2px;
            font-weight: 500;
            text-align: center;
            padding: 0 20px;
        }

        .circle-wrap {
            position: relative;
            width: 90px;
            height: 90px;
        }

        .circle-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.15);
            stroke-width: 5;
        }

        .circle-progress {
            fill: none;
            stroke: #ffdd00;
            stroke-width: 5;
            stroke-linecap: round;
            transform: rotate(-90deg);
            transform-origin: center;
            transition: stroke-dashoffset 0.15s linear;
        }

        .count-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 30px;
            color: #ffdd00;
            font-weight: 700;
            font-family: 'Space Grotesk', monospace;
        }

        /* ===== 语言选择弹窗 ===== */
        .lang-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 99998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .lang-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .lang-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #171827;
            border-radius: 24px 24px 0 0;
            padding: 20px 20px 30px;
            z-index: 99999;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 70vh;
            overflow-y: auto;
            padding-bottom: env(safe-area-inset-bottom, 20px);
        }

        .lang-sheet.open {
            transform: translateY(0);
        }

        .lang-sheet-handle {
            width: 36px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            margin: 0 auto 16px;
        }

        .lang-sheet-title {
            font-size: 16px;
            font-weight: 600;
            color: #eeeaff;
            text-align: center;
            margin-bottom: 16px;
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 12px;
            transition: background 0.15s;
            cursor: pointer;
            color: #eeeaff;
            font-size: 15px;
        }

        .lang-option:active {
            background: rgba(255, 255, 255, 0.08);
        }

        .lang-option .fi {
            width: 24px !important;
            height: 24px !important;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .lang-option .check {
            margin-left: auto;
            color: #a78bfa;
            opacity: 0;
        }

        .lang-option.active .check {
            opacity: 1;
        }

        /* ============================================================
           Toast — 精致小标签风格
           ============================================================ */
        #toast {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%) translateY(20px) scale(0.92);
            z-index: 999999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
            background: rgba(26, 31, 46, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 30px;
            padding: 6px 16px 6px 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            max-width: 88vw;
            white-space: nowrap;
        }

        #toast.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
            pointer-events: auto;
        }

        #toast.success {
            border-color: rgba(0, 228, 117, 0.2);
        }
        #toast.success .toast-icon {
            color: #34e7b1;
        }

        #toast.error {
            border-color: rgba(255, 107, 107, 0.2);
        }
        #toast.error .toast-icon {
            color: #ff6b6b;
        }

        #toast .toast-icon {
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        #toast .toast-text {
            font-size: 13px;
            font-weight: 500;
            color: #eeeaff;
            letter-spacing: 0.2px;
            line-height: 1.4;
            padding: 4px 0;
        }

        /* ============================================================
           领取成功弹窗 (Claim Success Modal)
           ============================================================ */
        .claim-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .claim-modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .claim-modal {
            background: #171827;
            border-radius: 28px;
            max-width: 400px;
            width: 100%;
            padding: 28px 24px 24px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
            transform: scale(0.9) translateY(20px);
            transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .claim-modal-overlay.show .claim-modal {
            transform: scale(1) translateY(0);
        }

        /* 成功头部 */
        .claim-modal-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .claim-modal-header .success-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: rgba(0, 228, 117, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            font-size: 32px;
            color: #34e7b1;
        }

        .claim-modal-header .title {
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
            font-family: 'Space Grotesk', sans-serif;
        }

        .claim-modal-header .subtitle {
            font-size: 14px;
            color: #b9cacb;
            margin-top: 4px;
        }

        /* 钱包列表 */
        .wallet-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 20px;
        }

        .wallet-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            transition: all 0.2s ease;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .wallet-item:active {
            transform: scale(0.97);
            background: rgba(255, 255, 255, 0.08);
        }

        .wallet-item .wallet-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .wallet-item .wallet-info {
            flex: 1;
        }

        .wallet-item .wallet-name {
            font-size: 15px;
            font-weight: 600;
            color: #eeeaff;
        }

        .wallet-item .wallet-desc {
            font-size: 12px;
            color: #b9cacb;
        }

        .wallet-item .wallet-arrow {
            color: #b9cacb;
            font-size: 20px;
        }

        /* 底部按钮 */
        .claim-modal-footer {
            display: flex;
            gap: 10px;
        }

        .claim-modal-footer button {
            flex: 1;
            padding: 14px;
            border-radius: 14px;
            font-weight: 600;
            font-size: 14px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }

        .claim-modal-footer button:active {
            transform: scale(0.97);
        }

        .btn-primary {
            background: linear-gradient(135deg, #a78bfa, #8b5cf6);
            color: #24133d;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: #b9cacb;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        /* ===== Claim 按钮进度条 ===== */
        .claim-progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 10px;
            display: none;
        }
        .claim-progress-bar.active {
            display: block;
        }
        .claim-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #a78bfa, #34e7b1);
            border-radius: 4px;
            transition: width 0.3s ease;
        }
        .claim-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .claim-status-text {
            font-size: 12px;
            color: #b9cacb;
            text-align: center;
            margin-top: 6px;
            min-height: 20px;
        }
        .claim-success {
            color: #34e7b1 !important;
            font-weight: 600;
        }

        /* ===== 工具类 ===== */
        .touch-target {
            min-height: 44px;
            min-width: 44px;
        }

        .text-balance {
            text-wrap: balance;
        }

        .tap-feedback:active {
            transform: scale(0.97);
        }
