
        :root {
            --bg-base: #080c17;
            --bg-elevated: #0d1225;
            --bg-card: #111827;
            --bg-card-hover: #161e33;
            --bg-input: #0b101f;
            --bg-glass: rgba(17, 24, 39, 0.75);
            --border-subtle: #1c2538;
            --border-medium: #263148;
            --border-accent: #334155;
            --accent-primary: #00E5FF;
            --accent-primary-soft: #FFD166;
            --accent-primary-glow: rgba(0,229,255, 0.25);
            --accent-secondary: #38bdf8;
            --accent-secondary-soft: #7dd3fc;
            --accent-secondary-glow: rgba(56, 189, 248, 0.2);
            --success: #34d399;
            --success-soft: #a7f3d0;
            --success-glow: rgba(52, 211, 153, 0.2);
            --danger: #f87171;
            --danger-soft: #fecaca;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --text-dim: #64748b;
            --radius-xs: 6px;
            --radius-sm: 10px;
            --radius: 14px;
            --radius-lg: 18px;
            --radius-xl: 22px;
            --radius-2xl: 28px;
            --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
            --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
            --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --nav-height: 68px;
            --header-height: 52px;
            --safe-bottom: env(safe-area-inset-bottom, 8px);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font);
            background: var(--bg-base);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background: radial-gradient(ellipse at 50% 0%, #111b30 0%, #080c17 65%, #050810 100%);
        }

        .app-wrapper {
            width: 100%;
            max-width: 430px;
            height: 100vh;
            max-height: 900px;
            background: var(--bg-base);
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.04),
                0 25px 80px rgba(0, 0, 0, 0.7),
                0 0 120px rgba(0,229,255, 0.04);
        }

        @media (min-width: 440px) {
            .app-wrapper {
                border-radius: var(--radius-2xl);
                height: 92vh;
                max-height: 880px;
                margin: 0 12px;
            }
        }
        @media (max-width: 380px) {
            .app-wrapper {
                max-width: 100%;
                height: 100vh;
                max-height: 100vh;
                border-radius: 0;
            }
        }

        /* ── Splash Screen ── */
        .splash {
            position: absolute;
            inset: 0;
            z-index: 200;
            background: #080c17;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        .splash.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .splash-icon {
            width: 96px;
            height: 96px;
            border-radius: 24px;
            background: linear-gradient(135deg, #0A0E1A, #131829);
            border: 2px solid transparent;
            background-clip: padding-box;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 0 60px rgba(0,229,255,.45), 0 0 100px rgba(255,46,196,.25);
            animation: splashPulse 2s ease-in-out infinite;
        }
        .splash-icon::before{
            content:""; position:absolute; inset:-2px; border-radius:26px;
            background: linear-gradient(135deg,#00E5FF,#FF2EC4); z-index:-1;
        }
        @keyframes splashPulse {
            0%,100% { box-shadow: 0 0 50px rgba(0,229,255,.4), 0 0 90px rgba(255,46,196,.18); }
            50%     { box-shadow: 0 0 90px rgba(0,229,255,.7), 0 0 140px rgba(255,46,196,.35); }
        }
        .splash-icon svg { width: 56px; height: 56px; }
        .splash-title {
            font-size: 30px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.4px;
            background: linear-gradient(90deg,#00E5FF,#FF2EC4);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .splash-title span { background: none; -webkit-text-fill-color: inherit; }
        .splash-tagline {
            font-size: 11px;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .splash-bar {
            width: 200px;
            height: 4px;
            background: #1c2538;
            border-radius: 10px;
            overflow: hidden;
        }
        .splash-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #00E5FF, #FF2EC4);
            border-radius: 10px;
            transition: width 0.12s ease;
        }
        .splash-percent {
            font-size: 15px;
            font-weight: 700;
            color: #00E5FF;
            letter-spacing: 1px;
        }

        /* ── Header ── */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px 8px;
            padding-top: max(78px, env(safe-area-inset-top, 78px));
            flex-shrink: 0;
            z-index: 10;
        }
        .header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .header-logo-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: linear-gradient(135deg, #0A0E1A, #131829);
            border: 1px solid rgba(0,229,255,.4);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 20px rgba(0,229,255,.25);
        }
        .header-logo-icon img, .header-logo-icon svg { width: 26px; height: 26px; }
        .header-title {
            font-size: 17px;
            font-weight: 700;
            color: #fff;
            letter-spacing: -0.3px;
        }
        .header-title span {
            color: #00E5FF;
        }
        .header-right {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-shrink: 0;
        }
        .lang-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            color: #cbd5e1;
            font-weight: 800;
            font-size: 13px;
            border-radius: 22px;
            padding: 9px 16px;
            min-height: 36px;
            cursor: pointer;
            letter-spacing: 0.4px;
            transition: var(--transition-fast);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .lang-btn:active {
            background: rgba(0,229,255, 0.12);
            border-color: #00E5FF;
            color: #00E5FF;
        }
        .status-badge {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(52, 211, 153, 0.1);
            border: 1px solid rgba(52, 211, 153, 0.2);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 11px;
            color: #34d399;
            font-weight: 600;
            letter-spacing: 0.3px;
            flex-shrink: 0;
        }
        @media (max-width: 480px) {
            .status-badge { padding: 6px 8px; }
            .status-badge .status-text { display: none; }
        }
        .header-right { flex-wrap: nowrap; max-width: 100%; }
        .header { flex-wrap: nowrap; gap: 6px; }
        .header-left { min-width: 0; flex: 1; overflow: hidden; }
        .header-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        @media (max-width: 480px) {
            .header-title { font-size: 14px; }
            .lang-btn { padding: 7px 12px; font-size: 12px; min-height:32px; }
        }
        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #34d399;
            animation: dotPulse 2s ease-in-out infinite;
        }
        @keyframes dotPulse {
            0%,
            100% {
                box-shadow: 0 0 3px #34d399;
            }
            50% {
                box-shadow: 0 0 12px #34d399, 0 0 22px rgba(52, 211, 153, 0.5);
            }
        }

        /* ── Main Content ── */
        .main {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0 14px 16px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .main::-webkit-scrollbar {
            display: none;
        }

        .tab-panel {
            display: none;
            animation: panelIn 0.3s ease;
        }
        .tab-panel.active {
            display: block;
        }
        @keyframes panelIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Cards ── */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            padding: 16px;
            margin-bottom: 10px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
            transition: var(--transition);
        }
        .card-glow {
            border-color: rgba(0,229,255, 0.2);
            background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(13, 18, 37, 0.98));
            box-shadow: 0 0 30px rgba(0,229,255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.4);
        }
        .card-accent {
            border-left: 3px solid #38bdf8;
        }

        /* ── Balance ── */
        .balance-block {
            text-align: center;
            padding: 6px 0 14px;
        }
        .balance-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2.5px;
            color: #64748b;
            margin-bottom: 2px;
            font-weight: 600;
        }
        .balance-value {
            font-size: 42px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -1.5px;
            line-height: 1;
        }
        .balance-value .sym {
            font-size: 26px;
            color: #00E5FF;
            margin-right: 2px;
        }
        .balance-usd {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 2px;
        }

        /* ── Mining Card ── */
        .mining-card {
            background: linear-gradient(155deg, #111a2e 0%, #0d1525 60%);
            border: 1px solid rgba(0,229,255, 0.2);
            border-radius: var(--radius-xl);
            padding: 22px 18px;
            text-align: center;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 50px rgba(0,229,255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.5);
        }
        .mining-card::after {
            content: '';
            position: absolute;
            top: -60%;
            left: -60%;
            width: 220%;
            height: 220%;
            background: radial-gradient(circle at 50% 50%, rgba(0,229,255, 0.04) 0%, transparent 65%);
            animation: rotateGlow 10s linear infinite;
            pointer-events: none;
        }
        @keyframes rotateGlow {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        .mining-status-text {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: #34d399;
            font-weight: 700;
            margin-bottom: 6px;
            position: relative;
            z-index: 1;
        }
        .mining-amount {
            font-size: 34px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -1px;
            position: relative;
            z-index: 1;
        }
        .mining-power {
            font-size: 13px;
            color: #00E5FF;
            font-weight: 600;
            margin-top: 4px;
            position: relative;
            z-index: 1;
        }
        .btn-claim {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-top: 16px;
            padding: 14px 38px;
            background: linear-gradient(135deg, #00E5FF, #00FFA3);
            color: #1a1200;
            font-weight: 700;
            font-size: 15px;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            letter-spacing: 0.3px;
            position: relative;
            z-index: 1;
            box-shadow: 0 8px 32px rgba(0,229,255, 0.35);
            transition: var(--transition);
        }
        .btn-claim:active {
            transform: scale(0.95);
            box-shadow: 0 4px 16px rgba(0,229,255, 0.45);
        }
        .btn-claim svg {
            width: 18px;
            height: 18px;
        }

        /* ── Amount Presets ── */
        .preset-row {
            display: flex;
            gap: 7px;
            flex-wrap: wrap;
            margin: 10px 0;
        }
        .preset-btn {
            flex: 1;
            min-width: 50px;
            padding: 11px 6px;
            background: var(--bg-card);
            border: 2px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            text-align: center;
            color: #cbd5e1;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            transition: var(--transition-fast);
            white-space: nowrap;
        }
        .preset-btn.selected {
            border-color: #00E5FF;
            background: rgba(0,229,255, 0.1);
            color: #00E5FF;
            box-shadow: 0 0 20px rgba(0,229,255, 0.15);
        }
        .preset-btn:active {
            transform: scale(0.94);
        }

        /* ── Bonus Tiers ── */
        .bonus-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 7px;
            margin: 10px 0;
        }
        @media (min-width: 400px) {
            .bonus-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        .bonus-item {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 11px 8px;
            text-align: center;
            transition: var(--transition-fast);
            cursor: default;
        }
        .bonus-item.highlight {
            border-color: #00E5FF;
            background: rgba(0,229,255, 0.07);
            box-shadow: 0 0 18px rgba(0,229,255, 0.12);
        }
        .bonus-item .pct {
            font-size: 20px;
            font-weight: 800;
            color: #00E5FF;
        }
        .bonus-item .lbl {
            font-size: 10px;
            color: #94a3b8;
            margin-top: 2px;
        }

        /* ── Calculator ── */
        .calc-row {
            display: flex;
            justify-content: space-between;
            padding: 7px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            font-size: 12px;
        }
        .calc-row .l {
            color: #94a3b8;
        }
        .calc-row .v {
            color: #e2e8f0;
            font-weight: 600;
        }
        .calc-row .v.green {
            color: #34d399;
        }

        /* ── Tasks ── */
        .task-section-title {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #64748b;
            margin: 14px 0 6px;
            font-weight: 700;
        }
        .task-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: var(--bg-card);
            border-radius: var(--radius);
            margin-bottom: 6px;
            border: 1px solid var(--border-subtle);
            transition: var(--transition-fast);
            cursor: pointer;
            position: relative;
        }
        .task-row:hover { border-color: rgba(0,229,255,0.55); box-shadow: 0 4px 14px rgba(0,229,255,0.10); transform: translateY(-1px); }
        .task-row .task-reward { transition: transform .15s, box-shadow .15s; }
        .task-row:hover .task-reward { transform: scale(1.06); box-shadow: 0 0 10px rgba(0,229,255,0.35); }
        .task-row:active {
            background: var(--bg-card-hover);
            transform: scale(0.995);
        }
        .task-row.done {
            opacity: 0.6;
            border-color: rgba(52, 211, 153, 0.25);
        }
        .task-row {
            overflow: hidden;
        }
        .task-row.partner {
            background: linear-gradient(135deg, rgba(245,158,11,0.18) 0%, rgba(168,85,247,0.10) 50%, rgba(0,229,255,0.10) 100%);
            border: 1.5px solid transparent;
            background-clip: padding-box;
            box-shadow: 0 6px 22px rgba(245,158,11,0.20), inset 0 0 0 1px rgba(245,158,11,0.45);
            padding-top: 16px;
            position: relative;
        }
        .task-row.partner::after {
            content: "";
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            padding: 1.5px;
            background: linear-gradient(135deg, #f59e0b, #a855f7, #00E5FF, #f59e0b);
            background-size: 300% 300%;
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
                    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
                    mask-composite: exclude;
            animation: mhcPartnerBorder 4s linear infinite;
            pointer-events: none;
        }
        @keyframes mhcPartnerBorder { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
        .task-row.partner::before {
            content: "⭐ PARTNER";
            position: absolute;
            top: -1px;
            right: 10px;
            font-size: 9px;
            font-weight: 900;
            letter-spacing: 1.2px;
            background: linear-gradient(135deg, #f59e0b, #ef4444);
            color: #fff;
            padding: 3px 9px;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 3px 10px rgba(239,68,68,0.45);
            animation: mhcPartnerPulse 2.2s ease-in-out infinite;
        }
        @keyframes mhcPartnerPulse {
            0%, 100% { box-shadow: 0 3px 10px rgba(239,68,68,0.45); transform: translateY(0); }
            50%      { box-shadow: 0 5px 16px rgba(239,68,68,0.80); transform: translateY(1px); }
        }
        .task-row.partner .task-icon-slot {
            background: linear-gradient(135deg, rgba(245,158,11,0.30), rgba(168,85,247,0.25));
            box-shadow: 0 0 14px rgba(245,158,11,0.40);
        }
        .task-row.partner .task-name { color: #fef3c7; text-shadow: 0 0 8px rgba(251,191,36,0.30); }
        .task-icon-slot {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: #1a2540;
        }
        .task-row.done .task-icon-slot {
            background: rgba(52, 211, 153, 0.15);
        }
        .task-icon-slot svg {
            width: 16px;
            height: 16px;
            color: #94a3b8;
        }
        .task-row.done .task-icon-slot svg {
            color: #34d399;
        }
        .task-name {
            font-size: 13.5px;
            color: #e2e8f0;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .task-desc {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 2px;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .task-adprog{display:flex;align-items:center;gap:8px;margin-top:6px}
        .task-adprog-bar{flex:1;height:5px;background:#0b1228;border:1px solid #1e293b;border-radius:3px;overflow:hidden}
        .task-adprog-fill{height:100%;background:linear-gradient(90deg,#22c55e,#0ea5e9);transition:width .3s}
        .task-adprog-lbl{font-size:10px;color:#94a3b8;font-weight:700;flex-shrink:0;min-width:48px;text-align:right}
        .task-row.done .task-name { color: #94a3b8; }
        .task-reward {
            font-size: 11px;
            color: #00E5FF;
            font-weight: 800;
            flex-shrink: 0;
            background: rgba(0,229,255,0.1);
            border: 1px solid rgba(0,229,255,0.3);
            border-radius: 8px;
            padding: 4px 8px;
        }
        .task-row.partner .task-reward {
            color: #fef3c7;
            background: linear-gradient(135deg, rgba(245,158,11,0.28), rgba(168,85,247,0.22));
            border-color: rgba(251,191,36,0.7);
            box-shadow: 0 0 12px rgba(251,191,36,0.35);
        }
        .task-check {
            font-size: 14px;
            color: #34d399;
            font-weight: 700;
            flex-shrink: 0;
        }

        /* ── Milestones ── */
        .milestone-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 14px;
            background: var(--bg-card);
            border-radius: var(--radius);
            margin-bottom: 5px;
            border: 1px solid var(--border-subtle);
            font-size: 13px;
            transition: var(--transition-fast);
        }
        .milestone-row.done {
            border-color: rgba(52, 211, 153, 0.3);
            background: rgba(52, 211, 153, 0.03);
        }
        .milestone-row .cnt {
            font-weight: 700;
            color: #fff;
            min-width: 65px;
        }
        .milestone-row .rew {
            color: #00E5FF;
            font-weight: 700;
            flex: 1;
        }
        .milestone-row .prog {
            font-size: 11px;
            color: #94a3b8;
            flex-shrink: 0;
        }
        .milestone-row .chk {
            color: #34d399;
            font-size: 16px;
            flex-shrink: 0;
        }

        /* ── Team ── */
        .invite-link-box {
            background: #0b101f;
            border: 1px dashed var(--border-medium);
            border-radius: var(--radius-sm);
            padding: 11px 14px;
            word-break: break-all;
            font-size: 11px;
            color: #94a3b8;
            margin: 8px 0;
        }
        .btn-sm {
            padding: 10px 18px;
            background: transparent;
            border: 2px solid var(--border-medium);
            color: #cbd5e1;
            font-weight: 600;
            font-size: 12px;
            border-radius: 25px;
            cursor: pointer;
            transition: var(--transition-fast);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-sm:active {
            background: rgba(255, 255, 255, 0.04);
            border-color: #00E5FF;
            color: #00E5FF;
        }
        .btn-sm svg {
            width: 14px;
            height: 14px;
        }
        .btn-full {
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, #38bdf8, #0ea5e9);
            color: #0c1a2b;
            font-weight: 700;
            font-size: 14px;
            border: none;
            border-radius: 28px;
            cursor: pointer;
            letter-spacing: 0.3px;
            box-shadow: 0 6px 22px rgba(56, 189, 248, 0.3);
            transition: var(--transition-fast);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
        }
        .btn-full:active {
            transform: scale(0.96);
        }
        .btn-full svg {
            width: 16px;
            height: 16px;
        }
        .btn-gold {
            background: linear-gradient(135deg, #00E5FF, #00FFA3);
            color: #1a1200;
            box-shadow: 0 6px 24px rgba(0,229,255, 0.35);
        }
        .friend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: var(--bg-card);
            border-radius: var(--radius-sm);
            margin-bottom: 4px;
            border: 1px solid var(--border-subtle);
            font-size: 12px;
        }
        .friend-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00E5FF, #FF2EC4);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1a1200;
            font-weight: 700;
            font-size: 13px;
            flex-shrink: 0;
        }

        /* ── Input ── */
        .input {
            width: 100%;
            padding: 13px 15px;
            background: var(--bg-input);
            border: 2px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            color: #e2e8f0;
            font-size: 14px;
            font-family: var(--font);
            outline: none;
            transition: var(--transition-fast);
        }
        .input:focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
        }
        .info-row {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            font-size: 12px;
        }
        .info-row .lbl {
            color: #94a3b8;
        }
        .info-row .val {
            color: #e2e8f0;
            font-weight: 500;
        }

        /* ── Bottom Nav ── */
        .bottom-nav {
            display: flex;
            align-items: center;
            justify-content: space-around;
            background: rgba(10, 14, 23, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border-subtle);
            padding: 8px 6px;
            padding-bottom: calc(8px + var(--safe-bottom));
            flex-shrink: 0;
            z-index: 10;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            cursor: pointer;
            padding: 20px 4px;
            border-radius: 12px;
            transition: var(--transition-fast);
            background: none;
            border: none;
            color: #64748b;
            font-family: var(--font);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.2px;
            position: relative;
            flex: 1;
            min-width: 0;
        }
        .nav-item svg { width: 40px !important; height: 40px !important; }
        .nav-item.active {
            color: #00E5FF;
        }
        .nav-item.active::before {
            content: '';
            position: absolute;
            top: -6px;
            width: 18px;
            height: 2.5px;
            background: #00E5FF;
            border-radius: 0 0 4px 4px;
        }
        .nav-item svg {
            width: 40px;
            height: 40px;
        }

        /* ── Toast ── */
        .toast {
            position: fixed;
            bottom: 110px;
            left: 50%;
            transform: translateX(-50%) translateY(18px);
            background: #1e293b;
            color: #f1f5f9;
            padding: 11px 26px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 13px;
            z-index: 300;
            opacity: 0;
            pointer-events: none;
            transition: all 0.35s ease;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
            white-space: nowrap;
        }
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .toast.success {
            background: #34d399;
            color: #0a1a10;
            font-weight: 700;
        }

        /* ── Responsive fine-tuning ── */
        @media (max-width: 360px) {
            .balance-value {
                font-size: 34px;
            }
            .mining-amount {
                font-size: 26px;
            }
            .btn-claim {
                padding: 12px 28px;
                font-size: 13px;
            }
            .preset-btn {
                padding: 9px 5px;
                font-size: 11px;
            }
            .bonus-item .pct {
                font-size: 17px;
            }
            .header-title {
                font-size: 14px;
            }
            .nav-item {
                font-size: 13px;
                padding: 18px 4px;
            }
            .nav-item svg {
                width: 36px !important;
                height: 36px !important;
            }
        }
    

/* --- next block --- */


.mhc-sub-btn{background:linear-gradient(135deg,#00E5FF,#FF2EC4);border:none;color:#0A0E1A;font-weight:800;padding:7px 14px;border-radius:10px;cursor:pointer;font-size:12px;flex-shrink:0;box-shadow:0 4px 12px rgba(0,229,255,.25)}
.mhc-sub-btn:active{transform:scale(.96)}


/* --- next block --- */


.adsgram-task-wrap{position:relative;display:block;width:100%;margin-top:6px;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 4px 14px rgba(34,197,94,0.35);cursor:pointer;user-select:none}
.adsgram-task-wrap:hover{filter:brightness(1.08)}
.adsgram-task-wrap:active{transform:translateY(1px)}
.adsgram-task-wrap .adsgram-task-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px;letter-spacing:.2px;text-shadow:0 1px 2px rgba(0,0,0,.25);pointer-events:none;z-index:2}
.adsgram-task-wrap adsgram-task{display:block;width:100%;min-height:44px;opacity:0.001;position:relative;z-index:1}
.adsgram-task-wrap adsgram-task *{opacity:0 !important}


/* --- next block --- */


.mhc-modal-overlay{position:fixed;inset:0;background:rgba(5,8,16,.85);backdrop-filter:blur(8px);z-index:9999;display:none;align-items:center;justify-content:center;padding:14px}
.mhc-modal-overlay.show{display:flex}
.mhc-modal{background:linear-gradient(180deg,#0A0E1A 0%, #131829 100%);border:1px solid rgba(0,229,255,.35);border-radius:18px;max-width:430px;width:100%;max-height:88vh;overflow-y:auto;box-shadow:0 0 40px rgba(0,229,255,.15)}
.mhc-modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #1e2d47;position:sticky;top:0;background:#0A0E1A;z-index:1}
.mhc-modal-title{font-weight:800;background:linear-gradient(90deg,#00E5FF,#FF2EC4);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:18px}
.mhc-modal-wrap{position:fixed;inset:0;z-index:9998;background:rgba(0,0,0,0.94);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:max(env(safe-area-inset-top,16px),20px) 12px 130px;overscroll-behavior:contain}
.mhc-modal-body{background:#0d1220;border-radius:18px;padding:18px 18px 24px;max-width:420px;margin:0 auto;position:relative;border:1px solid rgba(255,255,255,0.08)}
.mhc-modal-close{position:absolute;top:10px;right:10px;z-index:10001;width:36px;height:36px;border-radius:50%;background:rgba(30,41,59,0.85);border:1px solid rgba(255,255,255,0.15);color:#cbd5e1;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;font-weight:700;backdrop-filter:blur(6px)}
.mhc-modal-close:active{transform:scale(0.92);background:rgba(60,80,110,0.95)}
.mhc-modal-body{padding-top:50px}
.mhc-modal-bottom-close{position:fixed;left:0;right:0;bottom:0;z-index:10002;display:flex;justify-content:center;padding:12px 14px max(env(safe-area-inset-bottom,12px),16px);background:linear-gradient(0deg,rgba(10,14,26,0.96) 60%,rgba(10,14,26,0));pointer-events:none}
.mhc-modal-bottom-close button{pointer-events:auto;width:100%;max-width:380px;background:linear-gradient(135deg,#00E5FF,#FF2EC4);border:none;color:#0A0E1A;font-weight:900;font-size:15px;letter-spacing:0.5px;padding:15px;border-radius:14px;cursor:pointer;box-shadow:0 8px 24px rgba(0,229,255,0.35);font-family:var(--font)}
.mhc-modal-bottom-close button:active{transform:scale(0.97)}
/* FAQ overlay (different markup) — keep its own light styling */
.mhc-modal .mhc-modal-body{background:none;padding:14px 18px;border-radius:0;max-width:none}
.mhc-modal .mhc-modal-close{position:static;width:auto;height:auto;background:none;border:0;color:#cbd5e1;font-size:24px;box-shadow:none;font-weight:400;backdrop-filter:none}
.mhc-faq-item{background:#0f172a;border:1px solid #1e2d47;border-radius:12px;padding:12px 14px;margin-bottom:8px}
.mhc-faq-q{font-weight:700;color:#FFD166;font-size:13px;margin-bottom:6px}
.mhc-faq-a{color:#cbd5e1;font-size:12px;line-height:1.5}
.mhc-jp-bar{position:fixed;left:50%;transform:translateX(-50%);top:64px;background:linear-gradient(90deg,#00E5FF,#FF2EC4);color:#0A0E1A;font-weight:800;padding:8px 16px;border-radius:30px;font-size:12px;z-index:9998;box-shadow:0 6px 18px rgba(255,46,196,.4);display:none}
.mhc-jp-bar.show{display:block;animation:mhcJpIn .35s ease-out}
@keyframes mhcJpIn{from{opacity:0;transform:translate(-50%,-12px)}to{opacity:1;transform:translate(-50%,0)}}


/* --- next block --- */


.ad-tab{flex:1;padding:9px 0;background:#0b101f;border:1px solid #1e293b;color:#94a3b8;border-radius:10px;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s}
.ad-tab-active{background:linear-gradient(135deg,#1a2540,#1e3a5f);border-color:#22c55e;color:#22c55e;box-shadow:0 0 12px rgba(34,197,94,0.2)}
.adKindBtn{cursor:pointer;padding:10px 8px;background:#0b101f;border:1px solid #1e293b;border-radius:10px;color:#94a3b8;font-size:12px;font-weight:700;text-align:center;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:4px}
.adKindBtn input{display:none}
.adKindBtn:hover{border-color:#22c55e55}
.adKindBtn.adKindActive{background:linear-gradient(135deg,#1a2540,#1e3a5f);border-color:#22c55e;color:#22c55e;box-shadow:0 2px 10px rgba(34,197,94,0.18)}
.adQuickBtn{flex:1;min-width:60px;padding:7px 6px;background:#0b101f;border:1px solid #1e293b;border-radius:8px;color:#94a3b8;font-size:11px;font-weight:700;cursor:pointer;transition:all .15s}
.adQuickBtn:hover{border-color:#22c55e;color:#22c55e}
/* push ad-modal body lower on mobile for thumb reach */
@media (max-width:480px){
  #ad-modal{padding-top:max(env(safe-area-inset-top,20px),60px) !important;}
  #ad-modal .mhc-modal-body{margin-top:8vh}
}


/* ═══════════════════════════════════════════════════════════════
   REDESIGN OVERLAY (palette: violet+cyan+lime, no yellow/orange)
   Appended last → wins specificity for matching selectors.
   ═══════════════════════════════════════════════════════════════ */
:root {
    --bg-base: #0B0F1A;
    --bg-elevated: #0F1428;
    --bg-card: #131830;
    --bg-card-hover: #1a2148;
    --primary: #6C5CFF;
    --primary-soft: rgba(108,92,255,0.18);
    --primary-glow: rgba(108,92,255,0.45);
    --cyan: #00E5FF;
    --cyan-glow: rgba(0,229,255,0.45);
    --accent: #00FFA3;
    --accent-glow: rgba(0,255,163,0.40);
    --danger: #ff4d6d;
    --text-primary: #f1f5f9;
}
body, html { background: var(--bg-base); }
.mhc-bg-glow, body::before { background: radial-gradient(ellipse at 50% 0%, #131830 0%, #0B0F1A 65%, #050810 100%) !important; }

/* gold button → violet/lime gradient (kills cheap yellow look) */
.btn-gold {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #0a0a18 !important;
    box-shadow: 0 6px 22px rgba(108,92,255,0.40), inset 0 1px 0 rgba(255,255,255,0.15);
    border: none;
}
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 8px 30px rgba(108,92,255,0.55), 0 0 24px rgba(0,255,163,0.35); }

/* universal button effects: glow + ripple + scale */
.btn, .btn-sm, .btn-full, .btn-claim, .btn-gold, .btn-p, .btn-sec, button.lang-btn, .ad-tab {
    position: relative;
    overflow: hidden;
    transition: transform .12s ease-out, box-shadow .18s ease-out, filter .15s ease-out;
}
.btn:hover, .btn-sm:hover, .btn-full:hover, .btn-claim:hover, .btn-gold:hover, .btn-p:hover, .ad-tab:hover {
    filter: brightness(1.08);
}
.btn:active, .btn-sm:active, .btn-full:active, .btn-claim:active, .btn-gold:active, .btn-p:active, .ad-tab:active {
    transform: scale(0.97);
}
.btn-full:hover { box-shadow: 0 8px 28px rgba(108,92,255,0.35), 0 0 18px rgba(0,229,255,0.25); }

/* ripple keyframe used by JS-injected span.mhc-ripple */
@keyframes mhc-ripple-kf {
    to { transform: scale(4); opacity: 0; }
}
.mhc-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255,255,255,0.45);
    pointer-events: none;
    animation: mhc-ripple-kf .6s ease-out forwards;
    mix-blend-mode: overlay;
    z-index: 5;
}

/* balance counter: subtle glow pulse when changing */
.mhc-pow-flash { animation: mhc-pow-flash-kf .55s ease-out; }
@keyframes mhc-pow-flash-kf {
    0% { text-shadow: 0 0 0 rgba(0,255,163,0); }
    40% { text-shadow: 0 0 18px rgba(0,255,163,0.65); }
    100% { text-shadow: 0 0 0 rgba(0,255,163,0); }
}


/* ─── Game polish ─── */
#crash-multiplier, [id$="-multiplier"] {
    animation: mhc-mult-pulse 1.6s ease-in-out infinite;
}
@keyframes mhc-mult-pulse {
    0%,100% { text-shadow: 0 0 8px rgba(0,255,163,0.25), 0 0 16px rgba(108,92,255,0.18); }
    50%     { text-shadow: 0 0 14px rgba(0,255,163,0.55), 0 0 28px rgba(108,92,255,0.35); }
}
.tab-panel#tab-mine .game-card, /* placeholder hooks */
[onclick*="OpenSetup"], [onclick="openAdModal()"] {
    transition: transform .15s ease-out, box-shadow .25s ease-out, filter .2s;
}
[onclick*="OpenSetup"]:hover, [onclick="openAdModal()"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(0,229,255,0.18), 0 0 26px rgba(108,92,255,0.20);
    filter: brightness(1.05);
}
[onclick*="OpenSetup"]:active { transform: scale(0.985); }

/* RTL */
html[dir="rtl"] body{direction:rtl;text-align:right}
html[dir="rtl"] .bottom-nav{direction:ltr}


/* Season 2 hero */
.mhc-s2-hero{position:relative;overflow:hidden;border-radius:24px;padding:18px 16px;margin:0 0 12px;background:radial-gradient(circle at 15% 0%,rgba(0,229,255,.24),transparent 36%),radial-gradient(circle at 95% 12%,rgba(255,46,196,.20),transparent 34%),linear-gradient(145deg,#08111f 0%,#111827 54%,#050814 100%);border:1px solid rgba(0,229,255,.30);box-shadow:0 20px 46px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.08);isolation:isolate}
.mhc-s2-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(0,229,255,.055) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(110deg,#000,transparent 72%);z-index:-2}
.mhc-s2-hero::after{content:"";position:absolute;right:-44px;bottom:-54px;width:150px;height:150px;border-radius:50%;background:conic-gradient(from 20deg,rgba(0,229,255,.38),rgba(255,46,196,.26),rgba(0,255,163,.24),rgba(0,229,255,.38));filter:blur(.2px);opacity:.42;z-index:-1}
.mhc-s2-orbit{position:absolute;right:18px;top:18px;width:76px;height:76px;border-radius:50%;border:1px solid rgba(0,229,255,.30);box-shadow:0 0 0 10px rgba(0,229,255,.035),inset 0 0 24px rgba(0,229,255,.14)}
.mhc-s2-orbit::before{content:"S2";position:absolute;inset:13px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#00E5FF,#FF2EC4);color:#06111f;font-weight:1000;font-size:18px;letter-spacing:-.8px}
.mhc-s2-kicker{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:1.7px;color:#00E5FF;font-weight:1000;margin-bottom:8px}
.mhc-s2-title{max-width:72%;font-size:27px;line-height:.95;font-weight:1000;letter-spacing:-1.2px;color:#fff;text-shadow:0 0 24px rgba(0,229,255,.18)}
.mhc-s2-desc{max-width:84%;margin-top:9px;font-size:12px;line-height:1.5;color:#cbd5e1}
.mhc-s2-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.mhc-s2-chips span{display:inline-flex;align-items:center;min-height:25px;border-radius:999px;padding:5px 9px;background:rgba(8,13,26,.58);border:1px solid rgba(148,163,184,.18);color:#e2e8f0;font-size:10px;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.mhc-s2-chips span:nth-child(1){border-color:rgba(0,229,255,.36);color:#7dd3fc}.mhc-s2-chips span:nth-child(2){border-color:rgba(0,255,163,.32);color:#86efac}.mhc-s2-chips span:nth-child(3){border-color:rgba(255,46,196,.34);color:#f0abfc}.mhc-s2-chips span:nth-child(4){border-color:rgba(251,191,36,.34);color:#fde68a}
.mhc-s2-hub-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 12% -10%,rgba(0,229,255,.22),transparent 36%),radial-gradient(circle at 100% 12%,rgba(0,255,163,.13),transparent 34%),linear-gradient(145deg,rgba(12,22,40,.96),rgba(8,13,26,.98))!important;border-color:rgba(0,229,255,.30)!important}
.mhc-s2-hub-hero .growth-hero-icon{width:46px!important;height:46px!important;background:linear-gradient(135deg,#00E5FF,#FF2EC4)!important;color:#06111f!important;font-weight:1000;font-size:18px!important}
.mhc-s2-chips-compact{margin-top:9px}.mhc-s2-chips-compact span{min-height:22px;padding:4px 8px;font-size:9.5px}
@media (max-width:380px){.mhc-s2-hero{padding:16px 13px;border-radius:21px}.mhc-s2-title{font-size:23px;max-width:76%}.mhc-s2-desc{font-size:11px;max-width:90%}.mhc-s2-orbit{width:62px;height:62px;right:13px;top:14px}.mhc-s2-orbit::before{inset:10px;font-size:15px}.mhc-s2-chips span{font-size:9.3px;padding:4px 7px}}

.mhc-command-deck{position:relative;overflow:hidden;border-radius:22px;margin:0 0 12px;padding:13px;background:radial-gradient(circle at 10% 0%,rgba(0,229,255,.18),transparent 34%),radial-gradient(circle at 92% 10%,rgba(255,46,196,.14),transparent 34%),linear-gradient(145deg,rgba(9,16,31,.98),rgba(5,8,18,.98));border:1px solid rgba(0,229,255,.22);box-shadow:0 18px 42px rgba(0,0,0,.27),inset 0 1px 0 rgba(255,255,255,.055)}
.mhc-command-deck:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.055),transparent);transform:translateX(-100%);animation:mhcDeckScan 5.5s ease-in-out infinite;pointer-events:none}
@keyframes mhcDeckScan{0%,62%{transform:translateX(-110%)}100%{transform:translateX(110%)}}
.mhc-command-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px;position:relative}
.mhc-command-kicker{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:#38bdf8;font-weight:1000}
.mhc-command-title{margin-top:3px;font-size:18px;line-height:1.05;color:#fff;font-weight:1000;letter-spacing:-.5px}
.mhc-command-balance{flex:0 0 auto;border-radius:999px;padding:6px 9px;background:rgba(0,255,163,.09);border:1px solid rgba(0,255,163,.24);color:#86efac;font-size:10px;font-weight:1000}
.mhc-command-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;position:relative}
.mhc-command-card{min-height:86px;text-align:left;border:1px solid rgba(148,163,184,.14);border-radius:16px;padding:9px;background:linear-gradient(145deg,rgba(15,23,42,.86),rgba(8,13,26,.96));color:#e2e8f0;display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:start;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.mhc-command-card:active{transform:scale(.975)}
.mhc-command-num{width:27px;height:27px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);font-size:10px;font-weight:1000;color:#fff}
.mhc-command-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.mhc-command-copy b{font-size:11.5px;line-height:1.12;color:#fff;font-weight:1000}
.mhc-command-copy small{font-size:9.5px;line-height:1.25;color:#94a3b8;font-weight:650}
.mhc-command-stat{grid-column:1/-1;justify-self:start;margin-top:1px;border-radius:999px;padding:4px 7px;background:rgba(255,255,255,.045);border:1px solid rgba(148,163,184,.12);font-size:9.5px;font-weight:1000;color:#cbd5e1}
.mhc-command-card.cyan{border-color:rgba(0,229,255,.24)}.mhc-command-card.cyan .mhc-command-num,.mhc-command-card.cyan .mhc-command-stat{color:#7dd3fc;border-color:rgba(0,229,255,.28);background:rgba(0,229,255,.08)}
.mhc-command-card.green{border-color:rgba(0,255,163,.22)}.mhc-command-card.green .mhc-command-num,.mhc-command-card.green .mhc-command-stat{color:#86efac;border-color:rgba(0,255,163,.24);background:rgba(0,255,163,.08)}
.mhc-command-card.violet{border-color:rgba(167,139,250,.26)}.mhc-command-card.violet .mhc-command-num,.mhc-command-card.violet .mhc-command-stat{color:#c4b5fd;border-color:rgba(167,139,250,.28);background:rgba(167,139,250,.09)}
.mhc-command-card.pink{border-color:rgba(255,46,196,.24)}.mhc-command-card.pink .mhc-command-num,.mhc-command-card.pink .mhc-command-stat{color:#f0abfc;border-color:rgba(255,46,196,.26);background:rgba(255,46,196,.08)}
.mhc-command-card.gold{border-color:rgba(251,191,36,.25)}.mhc-command-card.gold .mhc-command-num,.mhc-command-card.gold .mhc-command-stat{color:#fde68a;border-color:rgba(251,191,36,.28);background:rgba(251,191,36,.08)}
@media (max-width:370px){.mhc-command-grid{grid-template-columns:1fr}.mhc-command-card{min-height:74px}.mhc-command-title{font-size:16px}}

/* MegaHash visual polish layer */
:root {
    --mhc-polish-ink: #050814;
    --mhc-polish-panel: rgba(9, 15, 31, 0.94);
    --mhc-polish-panel-2: rgba(15, 23, 42, 0.88);
    --mhc-polish-line: rgba(148, 163, 184, 0.16);
    --mhc-polish-cyan: rgba(0, 229, 255, 0.46);
    --mhc-polish-green: rgba(0, 255, 163, 0.34);
    --mhc-polish-pink: rgba(255, 46, 196, 0.30);
    --mhc-polish-violet: rgba(124, 58, 237, 0.32);
    --mhc-polish-gold: rgba(251, 191, 36, 0.32);
    --mhc-polish-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

@keyframes mhcPolishRise {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mhcPolishSweep {
    0%, 58% { transform: translateX(-120%) rotate(9deg); opacity: 0; }
    68% { opacity: 0.55; }
    100% { transform: translateX(120%) rotate(9deg); opacity: 0; }
}
@keyframes mhcPolishPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.14)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 255, 163, 0.26)); }
}
@keyframes mhcPolishBar {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

html body {
    background:
        radial-gradient(circle at 50% -8%, rgba(0, 229, 255, 0.12), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(255, 46, 196, 0.10), transparent 28%),
        linear-gradient(180deg, #050814 0%, #090f1f 58%, #030610 100%) !important;
}
body .app-wrapper {
    max-width: 480px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: var(--tg-vh, 100dvh) !important;
    height: var(--tg-vh, 100dvh) !important;
    max-height: var(--tg-vh, 100dvh) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #081021 0%, #060a15 100%) !important;
}
body .main {
    padding-inline: clamp(10px, 3.4vw, 16px) !important;
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
}
body .bottom-nav {
    max-width: 480px !important;
    border-top-color: rgba(0, 229, 255, 0.18) !important;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
body .nav-item.active {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.10), rgba(124, 58, 237, 0.06)) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12) !important;
}

body .tab-panel.active {
    animation: mhcPolishRise 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
}

body #msw-hub [onclick^="openCase"],
body #msw-hub [onclick="mswOpenSetup()"],
body #msw-hub [onclick="openAdModal()"],
body #tab-minesweeper .mhc-game-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border-radius: 22px !important;
    border-color: rgba(0, 229, 255, 0.24) !important;
    box-shadow: var(--mhc-polish-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateZ(0);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.24s ease, filter 0.18s ease !important;
}
body #msw-hub [onclick^="openCase"]::before,
body #msw-hub [onclick="mswOpenSetup()"]::before,
body #msw-hub [onclick="openAdModal()"]::before,
body #tab-minesweeper .mhc-game-card::before {
    content: "";
    position: absolute;
    inset: -42% auto -42% -38%;
    width: 48%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-120%) rotate(9deg);
    animation: mhcPolishSweep 5.4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
body #msw-hub [onclick="mswOpenSetup()"] {
    background:
        radial-gradient(circle at 16% 0%, rgba(0, 229, 255, 0.25), transparent 36%),
        radial-gradient(circle at 100% 78%, rgba(255, 46, 196, 0.17), transparent 35%),
        linear-gradient(135deg, #071426, #121936 66%, #070b17) !important;
}
body #msw-hub [onclick="openAdModal()"],
body #adsTaskCard,
body #adsBannerCard {
    background:
        radial-gradient(circle at 16% 0%, rgba(0, 255, 163, 0.22), transparent 34%),
        radial-gradient(circle at 94% 88%, rgba(0, 229, 255, 0.18), transparent 38%),
        linear-gradient(145deg, #071e1a, #081426 58%, #060914) !important;
    border-color: rgba(0, 255, 163, 0.34) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30), 0 0 28px rgba(0, 255, 163, 0.10) !important;
}
body #msw-hub [onclick^="openCase"] {
    min-height: 132px !important;
    display: grid !important;
    align-content: center !important;
    background:
        radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.12), transparent 35%),
        linear-gradient(150deg, rgba(16, 28, 52, 0.98), rgba(8, 13, 26, 0.98)) !important;
}
body #msw-hub [onclick^="openCase"] svg,
body #tab-minesweeper .mhc-game-card > div:first-child,
body #msw-hub [onclick="mswOpenSetup()"] > div:first-child,
body #msw-hub [onclick="openAdModal()"] [style*="width:60px"] {
    animation: mhcPolishPulse 3s ease-in-out infinite;
}
body #msw-hub > div[style*="dashed"] {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.76), rgba(8, 13, 26, 0.88)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body #msw-setup,
body #msw-game,
body #msw-result,
body #crash-main,
body #spin-setup,
body #spin-game,
body #sj-main {
    animation: mhcPolishRise 0.28s ease both !important;
}
body #msw-setup .card,
body #crash-bet-panel,
body #spin-setup .card,
body #spin-result-block,
body #sj-main .card {
    background: linear-gradient(145deg, var(--mhc-polish-panel-2), rgba(7, 12, 25, 0.98)) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
body #msw-board {
    gap: clamp(7px, 2.5vw, 10px) !important;
}
body #msw-board > div {
    aspect-ratio: 1 / 1;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
body #msw-board > div:active {
    transform: scale(0.94);
}
body #crash-main .mhc-crash-stage,
body .mhc-wheel-stage-wrap,
body #sj-main > div[style*="position:relative"] {
    border-color: rgba(0, 229, 255, 0.22) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
body #crash-multiplier,
body #msw-g-mult,
body #sj-bank {
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.40), 0 0 42px rgba(255, 46, 196, 0.18) !important;
}

body #tab-growth .growth-hero-card,
body .mhc-command-deck,
body #growth-hub-card .card,
body #today-card .card,
body #trust-card .card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border-radius: 22px !important;
    border-color: rgba(0, 229, 255, 0.22) !important;
    box-shadow: var(--mhc-polish-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
body #tab-growth .growth-hero-card::after,
body .mhc-command-deck::after,
body #growth-hub-card .card::after,
body #today-card .card::after,
body #trust-card .card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -62px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: conic-gradient(from 40deg, var(--mhc-polish-cyan), var(--mhc-polish-pink), var(--mhc-polish-green), var(--mhc-polish-cyan));
    opacity: 0.24;
    pointer-events: none;
    z-index: -1;
}
body .mhc-command-card {
    background: linear-gradient(145deg, rgba(18, 27, 52, 0.92), rgba(7, 12, 25, 0.98)) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 0, 0, 0.16) !important;
}
body .mhc-command-card:active,
body #growth-hub-card button:active,
body .growth-hero-action:active {
    transform: scale(0.975) !important;
}

body #tab-nftmarket > div:first-child {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 8px 0 10px !important;
    background: linear-gradient(180deg, rgba(8, 12, 23, 0.98), rgba(8, 12, 23, 0.78) 78%, transparent) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body #tab-nftmarket select,
body #sell-nft-modal select,
body #sell-nft-modal input,
body #bid-modal input {
    min-height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 229, 255, 0.18) !important;
    background: linear-gradient(145deg, rgba(10, 16, 31, 0.98), rgba(15, 23, 42, 0.92)) !important;
    color: #e2e8f0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
body #nft-market-list > div,
body #my-nft-inventory > div[style*="position:relative"],
body #nft-slots-preview > div {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    border-width: 1px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
body #nft-market-list > div::before,
body #my-nft-inventory > div[style*="position:relative"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(120deg, #000, transparent 78%);
    pointer-events: none;
}
body #nft-market-list svg,
body #my-nft-inventory svg,
body #my-nft-slots svg {
    filter: drop-shadow(0 0 12px currentColor);
}
body #nft-market-list button,
body #my-nft-inventory button,
body #tab-nftmarket .btn-full,
body #sell-nft-modal button,
body #bid-modal button {
    min-height: 38px !important;
    border-radius: 13px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(0, 229, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
body #my-nft-slots > div:nth-child(2) > div {
    min-width: 62px !important;
    border-radius: 15px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 20px rgba(0, 0, 0, 0.18) !important;
}

body #adsTaskCard,
body #adsBannerCard {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    padding: 15px !important;
}
body #adsTaskCard::before,
body #adsBannerCard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 163, 0.58), transparent);
}
body #adsBar,
body .task-adprog-fill,
body #adMyList > div div[style*="width:"] {
    background: linear-gradient(90deg, #00ffa3, #00e5ff, #7c3aed, #00ffa3) !important;
    background-size: 200% 100% !important;
    animation: mhcPolishBar 3.5s linear infinite;
}
body #adsWatchBtn,
body #adsBannerBtn,
body #adPayBtn,
body #adVerifyBtn,
body #adStep3 button,
body .adsgram-task-wrap {
    border-radius: 15px !important;
    background: linear-gradient(135deg, #00ffa3, #00e5ff 56%, #7c3aed) !important;
    color: #06111f !important;
    box-shadow: 0 14px 28px rgba(0, 229, 255, 0.18), 0 0 24px rgba(0, 255, 163, 0.14) !important;
}
body #ad-modal {
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 255, 163, 0.16), transparent 34%),
        rgba(3, 6, 16, 0.90) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
body #ad-modal .mhc-modal-body {
    max-width: min(440px, calc(100vw - 20px)) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 255, 163, 0.16), transparent 34%),
        radial-gradient(circle at 100% 14%, rgba(0, 229, 255, 0.12), transparent 32%),
        linear-gradient(160deg, rgba(10, 18, 34, 0.98), rgba(5, 8, 18, 0.98)) !important;
    border-color: rgba(0, 255, 163, 0.34) !important;
    border-radius: 24px !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 42px rgba(0, 255, 163, 0.10) !important;
}
body #adKindHelp,
body #adQuoteBox,
body #adMyList > div,
body #adOptsBox .adOptRow {
    border-radius: 16px !important;
    border-color: rgba(0, 255, 163, 0.20) !important;
    background: linear-gradient(145deg, rgba(13, 22, 40, 0.94), rgba(7, 12, 25, 0.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
body .ad-tab,
body #adKindGrid .adKindBtn,
body .adQuickBtn {
    border-radius: 14px !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    background: linear-gradient(145deg, rgba(13, 22, 40, 0.96), rgba(7, 12, 25, 0.98)) !important;
}
body .ad-tab-active,
body #adKindGrid .adKindBtn.adKindActive {
    color: #00ffa3 !important;
    border-color: rgba(0, 255, 163, 0.46) !important;
    box-shadow: 0 0 18px rgba(0, 255, 163, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body .mhc-modal-wrap,
body #mhcFaq.mhc-modal-overlay {
    background:
        radial-gradient(circle at 50% -8%, rgba(0, 229, 255, 0.14), transparent 36%),
        rgba(3, 6, 16, 0.90) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
body .mhc-modal-wrap .mhc-modal-body,
body #mhcFaq .mhc-modal {
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 14% 0%, rgba(0, 229, 255, 0.14), transparent 35%),
        radial-gradient(circle at 96% 8%, rgba(255, 46, 196, 0.10), transparent 34%),
        linear-gradient(160deg, rgba(12, 18, 36, 0.98), rgba(5, 8, 18, 0.98)) !important;
    border-color: rgba(0, 229, 255, 0.24) !important;
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
body #mhcFaq.show .mhc-modal,
body .mhc-modal-wrap[style*="block"] .mhc-modal-body,
body .mhc-modal-wrap[style*="flex"] .mhc-modal-body {
    animation: mhcPolishRise 0.28s ease both;
}
body #mhcFaq .mhc-modal-head {
    background: rgba(5, 8, 18, 0.82) !important;
    border-bottom-color: rgba(0, 229, 255, 0.16) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body #mhcFaq .mhc-modal-body {
    padding: 16px !important;
}
body #mhcFaq .mhc-faq-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px !important;
    padding: 14px 14px 14px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(8, 13, 26, 0.96)) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
body #mhcFaq .mhc-faq-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #00e5ff, #ff2ec4);
}
body #mhcFaq .mhc-faq-q {
    color: #7dd3fc !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
}
body #mhcFaq .mhc-faq-a {
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.62 !important;
}
body .mhc-modal-close {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}
body .mhc-modal-bottom-close {
    background: linear-gradient(0deg, rgba(5, 8, 18, 0.98) 60%, rgba(5, 8, 18, 0)) !important;
}
body .mhc-modal-bottom-close button {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #00e5ff, #ff2ec4) !important;
    box-shadow: 0 16px 34px rgba(0, 229, 255, 0.24) !important;
}

body .mhc-splash-season {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 46, 196, 0.18));
    border: 1px solid rgba(0, 229, 255, 0.38);
    color: #e0f2fe;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 2px;
}
body .mhc-splash-lang {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
body .mhc-splash-lang button {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(15, 23, 42, 0.78);
    color: #e2e8f0;
    font-weight: 1000;
    font-size: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body .mhc-splash-lang button.active {
    background: linear-gradient(135deg, #00e5ff, #ff2ec4);
    color: #06111f;
}
body .mhc-language-gate {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 18%, rgba(0, 229, 255, 0.22), transparent 34%),
        radial-gradient(circle at 85% 82%, rgba(255, 46, 196, 0.18), transparent 38%),
        rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(16px);
}
body .mhc-language-gate.show {
    display: flex;
}
body .mhc-language-card {
    position: relative;
    width: min(390px, 100%);
    overflow: hidden;
    border-radius: 28px;
    padding: 22px;
    background:
        radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.26);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255,255,255,0.06);
}
body .mhc-language-orbit {
    position: absolute;
    right: -36px;
    top: -42px;
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow: inset 0 0 30px rgba(255, 46, 196, 0.18), 0 0 36px rgba(0, 229, 255, 0.16);
}
body .mhc-language-card h3 {
    margin: 7px 0 6px;
    color: #fff;
    font-size: 25px;
    font-weight: 1000;
    letter-spacing: -0.5px;
}
body .mhc-language-card p {
    margin: 0;
    max-width: 280px;
    color: #aab6cc;
    font-size: 13px;
    line-height: 1.45;
}
body .mhc-language-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 18px 0 14px;
}
body .mhc-language-grid button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 0 14px;
    background: rgba(8, 13, 26, 0.76);
    color: #e2e8f0;
    font-weight: 1000;
    text-align: left;
}
body .mhc-language-grid button span {
    font-size: 22px;
}
body .mhc-language-grid button.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(255, 46, 196, 0.18));
    border-color: rgba(0, 229, 255, 0.58);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.16);
}
body .mhc-language-continue {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #00e5ff, #ff2ec4);
    color: #06111f;
    font-weight: 1000;
    box-shadow: 0 18px 34px rgba(0, 229, 255, 0.22);
}
body .mhc-language-hint {
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}
body .mhc-balance-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px !important;
    flex: 1 1 auto;
    min-width: 0;
}
body .mhc-top-bal {
    min-width: 0;
    padding: 6px 7px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 26, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body .mhc-top-bal span {
    display: block;
    color: #64748b;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: 0.8px;
}
body .mhc-top-bal b {
    display: block;
    margin-top: 1px;
    color: #e2e8f0;
    font-size: 11px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body .mhc-top-bal.vein {
    border-color: rgba(255, 46, 196, 0.28);
    background: radial-gradient(circle at 100% 0, rgba(255, 46, 196, 0.20), transparent 46%), linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 26, 0.98));
}
body #vein-market-mount {
    margin: 0 0 12px;
}
body .vein-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 15px;
    background: radial-gradient(circle at 15% 0, rgba(0, 229, 255, 0.18), transparent 34%), radial-gradient(circle at 100% 80%, rgba(255, 46, 196, 0.14), transparent 34%), linear-gradient(145deg, rgba(8, 13, 26, 0.98), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(0, 229, 255, 0.24);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body .vein-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.70), rgba(255, 46, 196, 0.55), transparent);
}
body .vein-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
body .vein-kicker {
    color: #00e5ff;
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
body .vein-title {
    margin-top: 2px;
    color: #fff;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -0.3px;
}
body .vein-sub {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.45;
}
body .vein-pill {
    padding: 7px 9px;
    border-radius: 999px;
    color: #07101f;
    background: linear-gradient(135deg, #00e5ff, #ff2ec4);
    font-size: 10px;
    font-weight: 1000;
    white-space: nowrap;
}
body .vein-chart {
    width: 100%;
    height: 132px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 18, 0.84));
    border: 1px solid rgba(148, 163, 184, 0.12);
}
body .vein-tabs,
body .vein-side-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}
body .vein-tabs button,
body .vein-side-tabs button {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.84);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 1000;
}
body .vein-tabs button.active,
body .vein-side-tabs button.active {
    background: linear-gradient(135deg, #00e5ff, #7c3aed);
    color: #06111f;
    border-color: transparent;
}
body .vein-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0;
}
body .vein-stat {
    border-radius: 14px;
    padding: 9px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
body .vein-stat small {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 1000;
    text-transform: uppercase;
}
body .vein-stat b {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 13px;
}
body .vein-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
body .vein-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 13px;
    background: #070d1a;
    color: #fff;
    padding: 0 11px;
    font-weight: 900;
}
body .vein-form button,
body .vein-full-btn {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #00e5ff, #ff2ec4);
    color: #06111f;
    font-weight: 1000;
    box-shadow: 0 14px 28px rgba(0, 229, 255, 0.18);
}
body .vein-order {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 7px;
    padding: 9px;
    border-radius: 14px;
    background: rgba(8, 13, 26, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
}
body .vein-order b {
    color: #fff;
    font-size: 12px;
}
body .vein-order small {
    display: block;
    color: #64748b;
    font-size: 10px;
    margin-top: 2px;
}
body .vein-rules-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 12%, rgba(0, 229, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.94));
    backdrop-filter: blur(14px);
    padding: max(env(safe-area-inset-top, 12px), 12px) 12px max(env(safe-area-inset-bottom, 12px), 12px);
}
body .vein-rules-modal.show {
    display: flex;
}
body .vein-rules-box {
    width: min(440px, 100%);
    max-height: min(82vh, 620px);
    overflow: hidden;
    border-radius: 24px;
    padding: 14px;
    background: radial-gradient(circle at 18% 0, rgba(0, 229, 255, 0.18), transparent 34%), linear-gradient(145deg, #0b1223, #050816);
    border: 1px solid rgba(0, 229, 255, 0.24);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}
body .vein-rules-grip {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    margin: 0 auto 10px;
    background: rgba(148, 163, 184, 0.45);
}
body .vein-rules-box h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}
body .vein-rules-box p,
body .vein-rules-box li {
    color: #cbd5e1;
    font-size: 11.5px;
    line-height: 1.42;
}
body .vein-rules-box p {
    margin: 6px 0 9px;
    color: #94a3b8;
}
body .vein-rules-scroll {
    max-height: min(42vh, 330px);
    overflow: auto;
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.10);
    padding: 8px 10px;
    margin: 9px 0 11px;
}
body .vein-rules-box ul {
    padding-left: 16px;
    margin: 0;
}
body .vein-rules-box li + li {
    margin-top: 5px;
}
body .vein-rules-lang {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}
body .vein-rules-lang button {
    flex: 1;
    min-height: 32px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 1000;
}
body .vein-rules-box button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #00e5ff, #ff2ec4);
    color: #06111f;
    font-weight: 1000;
}

body .mhc-app-gated {
    visibility: hidden;
    pointer-events: none;
}

body .splash.language-mode .splash-bar,
body .splash.language-mode .splash-percent {
    display: none;
}

body .splash.language-mode .mhc-splash-brand {
    transform: translateY(-12px) scale(0.9);
    transition: transform 0.3s ease;
}

body .mhc-splash-choice {
    width: min(390px, calc(100vw - 32px));
    margin-top: 6px;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 0 0, rgba(0, 229, 255, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(3, 7, 18, 0.96));
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: mhcSplashChoiceIn 0.34s ease both;
}

body .mhc-splash-choice h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 22px;
    font-weight: 1000;
    letter-spacing: -0.4px;
}

body .mhc-splash-choice p {
    margin: 0 0 14px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

body .mhc-splash-choice-grid {
    display: grid;
    gap: 9px;
}

body .mhc-splash-choice-grid button {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 13, 26, 0.92), rgba(15, 23, 42, 0.78));
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 1000;
    text-align: left;
    padding: 0 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 20px rgba(0, 229, 255, 0.06);
}

body .mhc-splash-choice-grid button span {
    font-size: 24px;
}

body .mhc-splash-choice-grid button:active {
    transform: scale(0.98);
}

@keyframes mhcSplashChoiceIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body .mhc-toast-stack {
    position: fixed;
    top: max(env(safe-area-inset-top, 10px), 10px);
    right: max(10px, calc((100vw - 480px) / 2 + 10px));
    z-index: 10050;
    display: grid;
    gap: 9px;
    width: min(330px, calc(100vw - 20px));
    pointer-events: none;
}

body .mhc-toast {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 17px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    transform: translateX(18px) translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow: hidden;
}

body .mhc-toast.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

body .mhc-toast.hide {
    opacity: 0;
    transform: translateX(18px) translateY(-6px);
}

body .mhc-toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(0, 229, 255, 0.16);
}

body .mhc-toast-success { border-color: rgba(0, 255, 163, 0.36); }
body .mhc-toast-success .mhc-toast-icon { background: rgba(0, 255, 163, 0.16); color: #00FFA3; }
body .mhc-toast-error { border-color: rgba(248, 113, 113, 0.42); }
body .mhc-toast-error .mhc-toast-icon { background: rgba(248, 113, 113, 0.16); color: #f87171; }
body .mhc-toast-info { border-color: rgba(0, 229, 255, 0.34); }
body .mhc-toast-info .mhc-toast-icon { background: rgba(0, 229, 255, 0.16); color: #00E5FF; }
body .mhc-toast-reward {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 18px 46px rgba(251, 191, 36, 0.12), 0 18px 42px rgba(0,0,0,0.38);
}
body .mhc-toast-reward .mhc-toast-icon { background: rgba(251, 191, 36, 0.18); color: #fbbf24; font-size: 9px; font-weight: 1000; }

body .vein-listing-banner {
    position: relative;
    overflow: hidden;
    margin: 8px 0 12px;
    padding: 13px 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 18%, rgba(251, 191, 36, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(255, 46, 196, 0.20), rgba(0, 229, 255, 0.16), rgba(3, 7, 18, 0.96));
    border: 1px solid rgba(251, 191, 36, 0.38);
    box-shadow: 0 16px 36px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}

body .vein-listing-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,0.12) 44%, transparent 58% 100%);
    transform: translateX(-120%);
    animation: veinListingSweep 3.2s ease-in-out infinite;
}

body .vein-listing-banner > * {
    position: relative;
    z-index: 1;
}

body .vein-listing-title {
    color: #fff;
    font-weight: 1000;
    font-size: 13px;
    letter-spacing: 0.2px;
}

body .vein-listing-time {
    margin-top: 5px;
    font-size: 22px;
    line-height: 1;
    font-weight: 1000;
    color: #fbbf24;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.36);
}

body .vein-listing-sub {
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.35;
}

@keyframes veinListingSweep {
    0%, 48% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}

@media (hover: hover) {
    body #msw-hub [onclick^="openCase"]:hover,
    body #msw-hub [onclick="mswOpenSetup()"]:hover,
    body #msw-hub [onclick="openAdModal()"]:hover,
    body #tab-minesweeper .mhc-game-card:hover,
    body .mhc-command-card:hover,
    body #nft-market-list > div:hover,
    body #my-nft-inventory > div[style*="position:relative"]:hover,
    body #adsTaskCard:hover,
    body #adsBannerCard:hover {
        transform: translateY(-3px) scale(1.01) !important;
        filter: brightness(1.06);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38), 0 0 30px rgba(0, 229, 255, 0.14) !important;
    }
    body #nft-market-list button:hover,
    body #my-nft-inventory button:hover,
    body .adQuickBtn:hover,
    body .ad-tab:hover,
    body #adKindGrid .adKindBtn:hover {
        filter: brightness(1.10);
        transform: translateY(-1px);
    }
}

@media (max-width: 420px) {
    body .app-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }
    body .main {
        height: calc(var(--tg-vh, 100dvh) - 134px) !important;
        padding-inline: 9px !important;
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body .bottom-nav {
        padding-inline: 3px !important;
        gap: 1px !important;
    }
    body .nav-item {
        min-height: 66px !important;
        padding: 10px 0 !important;
        font-size: 9.6px !important;
        letter-spacing: -0.45px !important;
    }
    body .nav-item svg {
        width: 27px !important;
        height: 27px !important;
    }
    body #tab-nftmarket > div:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 7px !important;
    }
    body #nftSort {
        grid-column: 1 / -1;
    }
    body #nft-market-list > div {
        gap: 10px !important;
        padding: 12px !important;
    }
    body #nft-market-list > div > div:last-child {
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100%;
    }
    body #adsBannerCard {
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }
    body #adsBannerBtn {
        width: 100% !important;
    }
    body #ad-modal {
        padding: max(env(safe-area-inset-top, 12px), 12px) 10px 96px !important;
    }
    body #ad-modal .mhc-modal-body {
        margin-top: 0 !important;
        max-height: calc(var(--tg-vh, 100dvh) - 112px) !important;
    }
}

@media (max-width: 360px) {
    body .main {
        height: calc(var(--tg-vh, 100dvh) - 128px) !important;
        padding-inline: 8px !important;
    }
    body .nav-item {
        min-height: 61px !important;
        font-size: 8.8px !important;
    }
    body .nav-item svg {
        width: 24px !important;
        height: 24px !important;
    }
    body .mhc-command-grid,
    body #growth-hub-card [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    body #msw-hub [onclick^="openCase"] {
        min-height: 118px !important;
        padding-inline: 6px !important;
    }
    body #crash-multiplier {
        font-size: 52px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body *,
    body *::before,
    body *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}


/* Season 2 frontend completion: splash, games, exchange and balance polish */
@keyframes borderGlow {
    0%,100% { box-shadow: 0 18px 42px rgba(0,0,0,.30), 0 0 0 rgba(0,229,255,0); border-color: rgba(0,229,255,.24); }
    50% { box-shadow: 0 24px 58px rgba(0,0,0,.38), 0 0 34px rgba(0,229,255,.16); border-color: rgba(255,46,196,.42); }
}
@keyframes shimmer {
    0% { transform: translateX(-130%) rotate(8deg); opacity: 0; }
    18%,70% { opacity: .8; }
    100% { transform: translateX(230%) rotate(8deg); opacity: 0; }
}
@keyframes pulseScale {
    0%,100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.12); }
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    18% { transform: translateX(-6px); }
    36% { transform: translateX(5px); }
    54% { transform: translateX(-3px); }
    72% { transform: translateX(2px); }
}
@keyframes coinFly {
    0% { opacity: 0; transform: translate(-50%, 8px) scale(.86); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -58px) scale(1.12); }
}
.borderGlow { animation: borderGlow 4.2s ease-in-out infinite; }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ""; position: absolute; inset: -30% auto -30% -35%; width: 42%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); animation: shimmer 3.6s ease-in-out infinite; pointer-events: none; }
.pulseScale { animation: pulseScale 2.8s ease-in-out infinite; }
.fadeSlideUp { animation: fadeSlideUp .42s ease both; }
.shake { animation: shake .48s ease both; }
.mhc-coin-fly { position: fixed; z-index: 10050; pointer-events: none; padding: 6px 10px; border-radius: 999px; color: #06111f; background: linear-gradient(135deg,#00E5FF,#FF2EC4,#fbbf24); font-size: 12px; font-weight: 1000; box-shadow: 0 12px 30px rgba(0,0,0,.32); animation: coinFly .9s ease forwards; }

body .bottom-nav { grid-template-columns: repeat(9, minmax(0, 1fr)) !important; }
body .mhc-top-bal b.mhc-balance-bump { animation: mhcTopBalanceBump .62s ease both; }
@keyframes mhcTopBalanceBump {
    0% { text-shadow: 0 0 0 rgba(0,229,255,0); transform: scale(1); }
    38% { text-shadow: 0 0 18px rgba(0,229,255,.65), 0 0 12px rgba(255,46,196,.35); transform: scale(1.08); }
    100% { text-shadow: 0 0 0 rgba(0,229,255,0); transform: scale(1); }
}
body .mhc-games-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 0 0 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(0,229,255,.28);
    background:
        radial-gradient(circle at 12% 8%, rgba(0,229,255,.24), transparent 34%),
        radial-gradient(circle at 92% 86%, rgba(255,46,196,.18), transparent 36%),
        linear-gradient(145deg, rgba(7,16,31,.98), rgba(15,23,42,.94));
    box-shadow: 0 20px 46px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
}
body .mhc-games-banner::before {
    content: "";
    position: absolute;
    inset: -35% auto -35% -38%;
    width: 44%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    animation: shimmer 4.4s ease-in-out infinite;
    z-index: -1;
}
body .mhc-games-banner-orb {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: conic-gradient(from 40deg, #00E5FF, #FF2EC4, #fbbf24, #00FFA3, #00E5FF);
    opacity: .22;
    filter: blur(.2px);
    animation: pulseScale 3.6s ease-in-out infinite;
}
body .mhc-games-kicker,
body .mhc-exchange-kicker {
    color: #00E5FF;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 1.7px;
}
body .mhc-games-title,
body .mhc-exchange-title {
    margin-top: 5px;
    color: #fff;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -0.5px;
    max-width: 84%;
}
body .mhc-games-desc,
body .mhc-exchange-desc {
    margin-top: 7px;
    color: #b6c3d6;
    font-size: 11.5px;
    line-height: 1.45;
    max-width: 92%;
}
body .mhc-games-pills,
body .mhc-exchange-row {
    margin-top: 12px;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
body .mhc-games-pills span,
body .mhc-exchange-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15,23,42,.72);
    border: 1px solid rgba(148,163,184,.16);
    font-size: 10px;
    font-weight: 900;
}
body .mhc-exchange-hero {
    position: relative;
    overflow: hidden;
    margin: 4px 0 12px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,46,196,.30);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,46,196,.22), transparent 36%),
        radial-gradient(circle at 100% 70%, rgba(0,229,255,.17), transparent 34%),
        linear-gradient(145deg, #0b1020, #070b17 72%);
    box-shadow: 0 20px 46px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.06);
}
body .mhc-exchange-hero::after {
    content: "";
    position: absolute;
    right: -26px;
    top: -34px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,.22), transparent 62%);
    pointer-events: none;
}
body .vein-rules-box {
    max-height: min(72vh, 540px) !important;
    display: flex !important;
    flex-direction: column !important;
}
body .vein-rules-scroll {
    flex: 1 1 auto !important;
    min-height: 92px !important;
    max-height: min(34vh, 260px) !important;
}
body .splash.language-mode {
    padding: max(env(safe-area-inset-top, 12px), 12px) 12px max(env(safe-area-inset-bottom, 12px), 12px);
}
body .mhc-splash-choice {
    max-height: min(48vh, 360px);
    overflow: auto;
}
@media (max-width: 420px) {
    body .nav-item { min-height: 64px !important; font-size: 8.8px !important; }
    body .nav-item svg { width: 24px !important; height: 24px !important; }
    body .mhc-games-title, body .mhc-exchange-title { font-size: 18px; max-width: 88%; }
    body .vein-form { grid-template-columns: 1fr !important; }
    body .vein-head { display: grid !important; }
    body .vein-pill { width: fit-content; }
}

/* Readability pass: keep the neon style, but stop small text from blending into dark cards. */
body [style*="color:#64748b"],
body [style*="color: #64748b"] {
    color: #aebcd2 !important;
}
body [style*="color:#94a3b8"],
body [style*="color: #94a3b8"] {
    color: #c7d2e7 !important;
}
body .calc-row .l,
body .info-row .lbl,
body .mhc-task-meta,
body .vein-sub,
body .mhc-games-desc,
body .mhc-exchange-desc,
body .calc-note,
body .deposit-calc-selected,
body .deposit-custom-row span {
    color: #d6e0f2 !important;
}
body .card,
body .card-glow,
body .mhc-task-card,
body .vein-card,
body .market-card,
body .growth-hero-card,
body #deposit-modal > div > div {
    border-color: rgba(148, 211, 255, 0.28) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body input,
body textarea,
body select {
    background: #081426 !important;
    color: #f8fbff !important;
    border-color: rgba(148, 211, 255, 0.28) !important;
}
body input::placeholder,
body textarea::placeholder {
    color: #91a3bd !important;
}
body .deposit-custom-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px solid rgba(0,229,255,.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,229,255,.10), rgba(124,58,237,.08));
}
body .deposit-custom-row input {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 12px;
    font-weight: 900;
    text-align: center;
}
body .deposit-custom-row span {
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
body .deposit-calc-selected {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0,229,255,.10);
    border: 1px solid rgba(0,229,255,.26);
    font-size: 12px;
    font-weight: 800;
}
body .calc-note {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.45;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(251,191,36,.10);
    border: 1px solid rgba(251,191,36,.24);
}
body button,
body .btn-sm,
body .btn-full,
body .preset-btn,
body .tcAmtPill {
    text-shadow: 0 1px 1px rgba(255,255,255,.18);
}
@media (max-width: 380px) {
    body .deposit-custom-row {
        grid-template-columns: 1fr;
    }
    body .deposit-custom-row span {
        text-align: center;
    }
}

/* Season 2 Agent 2 completion layer */
body .vein-rules-modal { background: radial-gradient(circle at 50% 8%, rgba(0,229,255,.22), transparent 34%), linear-gradient(180deg, rgba(2,6,23,.96), rgba(2,6,23,.99)); }
body .vein-rules-box { width:min(460px, calc(100vw - 22px)); max-height:calc(var(--tg-vh, 100dvh) - 24px); }

/* Stage 2.1 onboarding guard: language appears only after 100%, rules do not leak over the app. */
body .splash.language-mode {
    justify-content: center !important;
    gap: 10px !important;
    overflow-y: auto !important;
}
body .splash.language-mode .mhc-splash-brand {
    flex-shrink: 0 !important;
}
body .splash.language-mode .mhc-splash-choice {
    flex-shrink: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
body .vein-rules-modal:not(.show) {
    display: none !important;
    pointer-events: none !important;
}
body .vein-rules-modal.show {
    display: flex !important;
    pointer-events: auto !important;
}
body .vein-rules-modal .vein-rules-box {
    width: min(460px, calc(100vw - 22px)) !important;
    max-height: calc(var(--tg-vh, 100dvh) - 24px) !important;
}
body .vein-rules-modal .vein-rules-scroll {
    max-height: min(42vh, 330px) !important;
    overflow-y: auto !important;
}
body .mhc-exchange-tabs, body .mhc-nft-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:0 0 12px; }
body .mhc-nft-tabs { grid-template-columns:1fr 1fr; }
body .mhc-exchange-tabs button, body .mhc-nft-tabs button { min-height:44px; border-radius:15px; border:1px solid rgba(148,163,184,.18); background:linear-gradient(145deg,rgba(15,23,42,.9),rgba(8,13,26,.96)); color:#cbd5e1; font-size:12px; font-weight:1000; }
body .mhc-exchange-tabs button.active, body .mhc-nft-tabs button.active { background:linear-gradient(135deg,#00E5FF,#FF2EC4); color:#06111f; border-color:transparent; box-shadow:0 14px 28px rgba(0,229,255,.18); }
body .mhc-exchange-pane, body .mhc-nft-pane { display:none; }
body .mhc-exchange-pane.active, body .mhc-nft-pane.active { display:block; animation:fadeSlideUp .28s ease both; }
body .mhc-nft-badge { display:inline-flex; margin-left:6px; padding:2px 7px; border-radius:999px; background:rgba(0,229,255,.18); color:#e0f2fe; font-size:10px; }
body .mhc-p2p-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 10px; }
body .mhc-p2p-actions button { min-height:40px; border:1px solid rgba(0,229,255,.25); border-radius:13px; background:rgba(0,229,255,.09); color:#00E5FF; font-size:11px; font-weight:1000; }
body .mhc-nft-summary, body .mhc-empty-card { margin-bottom:10px; padding:13px; border-radius:18px; background:radial-gradient(circle at 0 0,rgba(168,85,247,.18),transparent 34%),linear-gradient(145deg,#0b1020,#070d1a); border:1px solid rgba(168,85,247,.25); color:#e2e8f0; }
body .mhc-nft-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; }
body .mhc-nft-summary span, body .mhc-empty-card span { color:#94a3b8; font-size:11px; line-height:1.45; }
body .mhc-empty-card { display:grid; gap:8px; text-align:center; }
body .mhc-empty-card button { justify-self:center; border:0; border-radius:999px; padding:9px 18px; background:linear-gradient(135deg,#00E5FF,#7c3aed); color:#06111f; font-size:12px; font-weight:1000; }
.mhc-bounce-in { animation:mhcBounceIn .58s cubic-bezier(.2,1.35,.34,1) both; }
@keyframes mhcBounceIn { 0%{transform:scale(.86) translateY(10px);opacity:0} 58%{transform:scale(1.045) translateY(-3px);opacity:1} 100%{transform:scale(1) translateY(0);opacity:1} }
@media (max-width:380px){ body .mhc-exchange-tabs button, body .mhc-nft-tabs button { min-height:40px; font-size:10.5px; } body .mhc-p2p-actions { grid-template-columns:1fr; } }

/* Stage 1 readability polish: lift low-contrast text and make dense game/market cards feel clearer. */
body {
    --mhc-readable-panel: linear-gradient(145deg, rgba(13, 22, 42, .98), rgba(5, 10, 22, .99));
    --mhc-readable-panel-soft: linear-gradient(145deg, rgba(18, 31, 58, .94), rgba(8, 14, 29, .98));
    --mhc-readable-border: rgba(151, 215, 255, .34);
    --mhc-readable-copy: #e7eefb;
    --mhc-readable-muted: #b8c7dc;
    --mhc-readable-dim: #98aac4;
}

body [style*="color:#475569"],
body [style*="color: #475569"],
body [style*="color:#334155"],
body [style*="color: #334155"] {
    color: var(--mhc-readable-dim) !important;
}

body [style*="font-size:9px"],
body [style*="font-size:10px"],
body [style*="font-size:11px"],
body small {
    line-height: 1.45 !important;
}

body .card,
body .mining-card,
body .bonus-item,
body .preset-btn,
body .mhc-command-card,
body .vein-stat,
body .vein-order,
body #crash-bet-panel,
body #spin-result-block,
body #nft-market-list > div,
body #my-nft-inventory > div[style*="position:relative"],
body #nft-slots-preview > div {
    background: var(--mhc-readable-panel-soft) !important;
    border-color: var(--mhc-readable-border) !important;
    color: var(--mhc-readable-copy) !important;
}

body .card p,
body .card span,
body .card div,
body .vein-order small,
body .vein-stat small,
body .mhc-nft-summary span,
body .mhc-empty-card span,
body .mhc-command-desc,
body .mhc-command-stat,
body .mhc-games-desc,
body .vein-sub,
body .market-card small {
    color: var(--mhc-readable-muted);
}

body .card b,
body .card strong,
body .vein-order b,
body .vein-stat b,
body .mhc-command-title,
body .market-card b,
body #nft-market-list b,
body #my-nft-inventory b {
    color: #ffffff !important;
}

body .vein-card,
body #tab-nftmarket > div:first-child,
body .mhc-nft-summary,
body .mhc-empty-card,
body #msw-setup .card,
body #spin-setup .card,
body #sj-main .card,
body #today-card .card,
body #trust-card .card,
body #next-step-card .card {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 229, 255, .18), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(255, 46, 196, .12), transparent 38%),
        var(--mhc-readable-panel) !important;
    border-color: var(--mhc-readable-border) !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .09) !important;
}

body .vein-form input,
body #veinQuote,
body #bidAmt,
body #lwAmt,
body #lwAmtVein,
body .input,
body input,
body textarea,
body select {
    background: #071326 !important;
    border-color: rgba(151, 215, 255, .38) !important;
    color: #fbfdff !important;
    caret-color: #00e5ff;
}

body .vein-form input:focus,
body .input:focus,
body input:focus,
body textarea:focus,
body select:focus {
    border-color: rgba(0, 229, 255, .72) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

body button,
body .btn-sm,
body .btn-full,
body .btn-claim,
body .btn-gold,
body .preset-btn,
body .vein-form button,
body .vein-full-btn,
body .mhc-p2p-actions button {
    letter-spacing: .02em;
}

body button:disabled,
body .btn-sm:disabled,
body .btn-full:disabled,
body .btn-claim:disabled {
    color: #d8e4f5 !important;
    background: linear-gradient(145deg, rgba(51, 65, 85, .82), rgba(15, 23, 42, .94)) !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    opacity: .82 !important;
    text-shadow: none !important;
}

body .preset-btn {
    min-height: 42px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 20px rgba(0, 0, 0, .18) !important;
}

body .preset-btn.selected,
body .bonus-item.highlight,
body .mhc-exchange-tabs button.active,
body .mhc-nft-tabs button.active {
    color: #04111f !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .24) !important;
}

body .bonus-item .lbl,
body .calc-row .l,
body .info-row .lbl,
body .deposit-calc-selected,
body .calc-note {
    color: var(--mhc-readable-copy) !important;
}

body .toast,
body .mhc-toast {
    background:
        radial-gradient(circle at 0 0, rgba(0, 229, 255, .16), transparent 34%),
        linear-gradient(145deg, rgba(14, 23, 43, .98), rgba(4, 9, 20, .99)) !important;
    border-color: rgba(151, 215, 255, .42) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

body .mhc-toast span:last-child {
    color: #f8fbff;
}

@media (max-width: 420px) {
    body .main {
        padding-left: 12px;
        padding-right: 12px;
    }

    body .card,
    body .vein-card,
    body .mining-card,
    body #nft-market-list > div,
    body #my-nft-inventory > div[style*="position:relative"] {
        border-radius: 18px !important;
        padding: 13px !important;
    }

    body .vein-head,
    body .mhc-nft-summary {
        gap: 8px;
    }

    body .vein-grid,
    body .bonus-grid,
    body .preset-row {
        gap: 8px;
    }

    body .vein-order {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 360px) {
    body .main {
        padding-left: 10px;
        padding-right: 10px;
    }

    body .preset-row,
    body .vein-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    body .vein-stat,
    body .bonus-item,
    body .preset-btn {
        padding: 9px 8px !important;
    }
}
