        :root {
            --text-main: #ffffff;
            --text-muted: #a0a5b5;
            --card-bg: rgba(17, 26, 30, 0.75);
            --panel-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);

            /* Cyber-Hamster Mint Neon */
            --bg-gradient: radial-gradient(circle at center, #111a1e 0%, #090e12 70%, #05070a 100%);
            --accent-color: #00ffcc;
            --accent-glow: rgba(0, 255, 204, 0.3);
            --card-border: 1px solid rgba(0, 255, 204, 0.18);
            --clicker-grad: radial-gradient(circle, #6effe5 0%, #00ffcc 70%, #00b38f 100%);
            --clicker-shadow: #004d3d;
            --gold: #ffcc00;
            --app-vh: 100vh;
            --safe-bottom: env(safe-area-inset-bottom, 0px);
        }

        html {
            width: 100%;
            min-height: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior-y: auto;
            -webkit-text-size-adjust: 100%;
            touch-action: manipulation;
        }

        body {
            font-family: 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-gradient);
            color: var(--text-main);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: var(--app-vh, 100vh);
            user-select: none;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior-y: auto;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
            touch-action: manipulation;
            box-sizing: border-box;
        }

        body.modal-open {
            overflow: hidden !important;
            overscroll-behavior: none !important;
            touch-action: none !important;
        }

        body.modal-open .modal-overlay.is-open {
            touch-action: auto !important;
        }

        .modal-overlay[aria-hidden="true"] {
            pointer-events: none;
        }

        .modal-overlay.is-open {
            pointer-events: auto;
        }

        .copy-link-btn.is-busy,
        .fixed-nav-btn.is-busy,
        .top-btn.is-busy,
        .modal-close.is-busy,
        .bonus-btn.is-busy,
        .withdraw-floating.is-busy,
        .hamster-clicker-btn.is-busy,
        .support-link-btn.is-busy,
        .support-input-row button.is-busy {
            opacity: .72;
            cursor: wait;
            pointer-events: none;
        }
        .copy-link-btn.is-pressed,
        .fixed-nav-btn.is-pressed,
        .top-btn.is-pressed,
        .modal-close.is-pressed,
        .bonus-btn.is-pressed,
        .withdraw-floating.is-pressed,
        .hamster-clicker-btn.is-pressed,
        .support-link-btn.is-pressed,
        .support-input-row button.is-pressed {
            transform: scale(0.985);
        }
        .copy-link-btn.is-busy i,
        .fixed-nav-btn.is-busy i,
        .top-btn.is-busy i,
        .modal-close.is-busy i,
        .bonus-btn.is-busy i,
        .withdraw-floating.is-busy i,
        .support-link-btn.is-busy i,
        .support-input-row button.is-busy i {
            animation: actionSpin .9s linear infinite;
        }
        .frontend-action-ready {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        @keyframes actionSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .runtime-status-toast {
            position: fixed;
            left: 50%;
            bottom: 92px;
            transform: translateX(-50%);
            z-index: 5200;
            max-width: min(92vw, 420px);
            padding: 12px 18px;
            border-radius: 999px;
            background: rgba(0,255,204,.16);
            border: 1px solid rgba(0,255,204,.45);
            color: #fff;
            font-size: 12px;
            font-weight: 900;
            line-height: 1.35;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,.35);
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s ease, transform .18s ease;
        }
        .runtime-status-toast.is-visible {
            opacity: 1;
            transform: translateX(-50%) translateY(-4px);
        }
        .runtime-status-toast.is-error {
            background: rgba(239,68,68,.18);
            border-color: rgba(239,68,68,.55);
        }
        .runtime-status-toast.is-warn {
            background: rgba(245,158,11,.18);
            border-color: rgba(245,158,11,.55);
        }
        .qr-code,
        .qrcode,
        canvas[data-payment-qr] {
            display: none !important;
        }
        .wallet-activation-card {
            margin-top: 14px;
            padding: 14px;
            border-radius: 18px;
            border: 1px solid rgba(0, 255, 204, 0.22);
            background:
                linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(5, 8, 13, 0.98));
            box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
        }
        .wallet-flow-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            margin: 12px 0;
        }
        .wallet-flow-item {
            min-height: 66px;
            padding: 10px 8px;
            border-radius: 14px;
            border: 1px solid rgba(96, 165, 250, 0.2);
            background: rgba(96, 165, 250, 0.08);
            text-align: center;
            box-sizing: border-box;
        }
        .wallet-flow-item b {
            display: block;
            color: #00ffcc;
            font-size: 15px;
            line-height: 1.1;
        }
        .wallet-flow-item span {
            display: block;
            color: #cbd5e1;
            font-size: 10px;
            font-weight: 800;
            margin-top: 5px;
            line-height: 1.25;
        }
        .wallet-pay-card {
            margin-top: 12px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid rgba(59, 130, 246, 0.32);
            background: rgba(2, 6, 23, 0.75);
        }
        .wallet-pay-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
            color: #ffffff;
            font-weight: 900;
            line-height: 1.25;
        }
        .wallet-network-pill {
            flex: 0 0 auto;
            border-radius: 999px;
            padding: 6px 9px;
            color: #00ffcc;
            background: rgba(0, 255, 204, 0.1);
            border: 1px solid rgba(0, 255, 204, 0.24);
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0;
        }
        .wallet-address-label {
            color: #94a3b8;
            font-size: 11px;
            font-weight: 900;
            margin-bottom: 6px;
            text-transform: uppercase;
        }
        .wallet-help-text {
            color: #cbd5e1;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.45;
            margin-top: 10px;
        }
        .withdraw-wallet-input {
            width: 100%;
            box-sizing: border-box;
            padding: 14px;
            border-radius: 14px;
            border: 1px solid rgba(0,255,204,.18);
            background: #05070a;
            color: #fff;
            font-weight: 800;
            margin-bottom: 10px;
        }
        .withdraw-wallet-input[readonly] {
            color: #00ffcc;
            border-color: rgba(0, 255, 204, 0.34);
            background: rgba(0, 255, 204, 0.06);
        }
        .withdraw-wallet-input.is-invalid {
            color: #fecaca;
            border-color: rgba(239, 68, 68, 0.62);
            background: rgba(239, 68, 68, 0.08);
        }
        @media (max-width: 420px) {
            .wallet-flow-row { grid-template-columns: 1fr; }
            .modal-close {
                width: 44px;
                height: 44px;
                top: 10px;
                right: 10px;
                z-index: 5;
            }
            #withdrawModal .modal-content,
            #withdrawHistoryModal .modal-content {
                padding-left: 22px;
                padding-right: 22px;
            }
            .receipt-value,
            .withdraw-wallet-input {
                overflow-wrap: anywhere;
            }
        }

        /* TOP NAVBAR */
        .top-navbar {
            width: 100%;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            background: rgba(9, 14, 18, 0.85);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 255, 204, 0.15);
        }

        .nav-left { flex: 1; display: flex; justify-content: flex-start; }
        .nav-center { flex: 2; display: flex; justify-content: center; }
        .nav-right-group { flex: 1; display: flex; justify-content: flex-end; gap: 14px; }

        .top-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 255, 204, 0.2);
            color: var(--accent-color);
            width: 75px;
            height: 75px;
            font-size: 30px;
            border-radius: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: all 0.2s ease;
        }

        .top-btn:active {
            transform: scale(0.9);
            background: rgba(0, 255, 204, 0.1);
        }

        .badge {
            position: absolute;
            top: -2px; right: -2px;
            background-color: #ef4444;
            color: white;
            font-size: 9px;
            padding: 2px 5px;
            border-radius: 50%;
            font-weight: bold;
        }

        .app-title {
            font-size: 30px;
            font-weight: 900;
            letter-spacing: 0px;
            color: #ffffff;
            text-shadow: 0 0 15px var(--accent-glow);
            font-family: 'Arial Black', Gadget, sans-serif;
        }

        /* MAIN CONTAINER */
        .main-container {
            width: 100%;
            padding: 0 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-grow: 1;
        }

        /* BALANCE CARD */
        .balance-card {
            background: var(--card-bg);
            border: var(--card-border);
            box-shadow: var(--panel-shadow);
            width: 100%;
            border-radius: 24px;
            padding: 20px;
            text-align: center;
            margin-top: 25px;
            box-sizing: border-box;
            background: linear-gradient(135deg, #121e24 0%, #0a1217 100%);
        }

        .balance-label {
            font-size: 14px;
            color: var(--accent-color);
            font-weight: 800;
            letter-spacing: 2px;
            margin-bottom: 6px;
        }

        .balance-amount-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .balance-coin-icon {
            width: 32px;
            height: 32px;
            background: var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #05070a;
            font-weight: 900;
            font-size: 18px;
            box-shadow: 0 0 10px var(--accent-glow);
        }

        .balance-amount {
            font-size: 46px;
            font-weight: 900;
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.4);
        }

        /* CLICKER */
        .clicker-box {
            margin: 40px 0;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hamster-clicker-btn {
            background: var(--clicker-grad);
            border: 6px solid #060b0e;
            cursor: pointer;
            outline: none;
            width: 210px;
            height: 210px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 14px 0 var(--clicker-shadow), 0 20px 30px rgba(0,0,0,0.6);
            transition: transform 0.05s ease;
            position: relative;
        }

        .hamster-clicker-btn::after {
            content: '';
            position: absolute;
            width: 65px;
            height: 65px;
            font-size: 26px;
            border-radius: 20px;
            border: 2px dashed rgba(255,255,255,0.4);
            border-radius: 50%;
        }

        .hamster-clicker-btn img {
            width: 110px;
            height: auto;
            z-index: 2;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
        }

        .hamster-clicker-btn:active {
            transform: translateY(10px);
            box-shadow: 0 4px 0 var(--clicker-shadow), 0 10px 20px rgba(0,0,0,0.6);
        }

        /* FLOATING TEXT ANIMATION */
        .floating-text {
            position: absolute;
            color: var(--accent-color);
            font-size: 28px;
            font-weight: 900;
            text-shadow: 0 0 8px var(--accent-glow);
            pointer-events: none;
            animation: floatUp 0.6s ease-out forwards;
            z-index: 10;
        }

        @keyframes floatUp {
            0% { opacity: 1; transform: translateY(0) scale(1); }
            100% { opacity: 0; transform: translateY(-100px) scale(1.2); }
        }

        /* DATA PANEL */
        .stats-panel {
            background: var(--card-bg);
            border: var(--card-border);
            box-shadow: var(--panel-shadow);
            border-radius: 24px;
            width: 100%;
            padding: 20px;
            box-sizing: border-box;
            margin-bottom: 40px;
        }

        .stat-card-row {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 20px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(0, 255, 204, 0.03);
            border-radius: 16px;
            padding: 15px 18px;
            margin-bottom: 12px;
        }

        .stat-card-row:last-child { margin-bottom: 0; }
        .stat-title { font-size: 16px; color: var(--text-muted); font-weight: 600; }
        .stat-main-val { font-size: 20px; font-weight: 700; }

        .glow-cyan .stat-main-val { color: var(--accent-color); text-shadow: 0 0 10px var(--accent-glow); }
        .glow-gold .stat-main-val { color: var(--gold); text-shadow: 0 0 10px rgba(255, 204, 0, 0.2); }

        /* BOTTOM NAV BAR */
        .bottom-actions-container {
            width: 100%;
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(9, 14, 18, 0.5);
            backdrop-filter: blur(5px);
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.03);
        }

        .bottom-action-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            flex: 1;
            position: relative;
        }

        .bottom-icon-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 255, 204, 0.2);
            font-size: 26px;
            width: 65px;
            height: 65px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            position: relative;
        }

        .lock-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: #111a1e;
            border: 1px solid #ef4444;
            font-size: 11px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bottom-action-item:active .bottom-icon-btn {
            transform: scale(0.9);
            background: rgba(0, 255, 204, 0.1);
        }

        .bottom-action-item span {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
        }

        .btn-withdraw-item .bottom-icon-btn { color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
        .btn-invite-item .bottom-icon-btn { color: #22c55e; border-color: rgba(34, 197, 94, 0.2); }

        /* MODALS */
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(5, 7, 10, 0.95);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 20px;
            box-sizing: border-box;
        }

        .modal-content {
            background-color: #0e181f;
            border: 1px solid rgba(0, 255, 204, 0.25);
            border-radius: 28px;
            width: 100%;
            max-width: 460px;
            max-height: calc(var(--app-vh, 100vh) - 32px);
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 40px 35px;
            box-sizing: border-box;
            position: relative;
            text-align: center;
            animation: fadeIn 0.3s ease-out;
            box-shadow: 0 20px 40px rgba(0,0,0,0.7);
        }

        @keyframes fadeIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-close {
            position: absolute;
            top: 16px; right: 16px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            color: #ffffff;
            font-size: 14px;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 20px;
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-glow);
        }

        .info-sub-block {
            background-color: #05070a;
            border-radius: 16px;
            padding: 15px;
            font-size: 13px;
            color: #8fa0b5;
            text-align: left;
            line-height: 1.6;
            border: 1px solid rgba(0, 255, 204, 0.1);
        }

        /* SETTINGS SECTION SEPARATORS */
        .settings-row-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 15px 0;
        }
        .settings-row-item:last-child {
            border-bottom: none;
        }

        /* LANGUAGE SELECTOR STYLING WITH USA \ RUS FLAGS */
        .lang-select-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-align: left;
        }
        .lang-label {
            font-size: 12px;
            font-weight: bold;
            color: var(--text-muted);
            letter-spacing: 1px;
        }
        .lang-btn-row {
            display:flex;
            flex-direction:column;
            gap:10px;
        }
        .lang-opt-btn {
            flex: 1;
            padding: 12px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(0, 255, 204, 0.15);
            color: white;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
        }
        .lang-opt-btn.active {
            background: rgba(0, 255, 204, 0.15);
            border-color: var(--accent-color);
            color: var(--accent-color);
            box-shadow: 0 0 8px var(--accent-glow);
        }

        /* SUPPORT BUTTON */
        .support-link-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(0, 255, 204, 0.1);
            padding: 12px 16px;
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .support-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            margin-left: 8px;
            background-color: #ef4444;
            color: white;
            font-size: 11px;
            font-weight: bold;
            border-radius: 999px;
        }
        .support-link-btn:active {
            background: rgba(0, 255, 204, 0.08);
        }

        /* PROFILE FIELD DETAILS */
        .profile-data-field {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 12px 14px;
            border-radius: 12px;
            margin-top: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }
        .profile-data-label {
            color: var(--text-muted);
            font-weight: 600;
        }
        .profile-data-value {
            color: #fff;
            font-family: monospace;
            font-size: 14px;
            font-weight: bold;
        }

        /* APPLICATION VERSION VALUE TEXT */
        .app-version-badge {
            float: right;
            font-size: 11px;
            color: var(--accent-color);
            opacity: 0.7;
            background: rgba(0, 255, 204, 0.1);
            padding: 2px 8px;
            border-radius: 6px;
            font-family: monospace;
            font-weight: bold;
        }

        /* COUNTDOWN STYLING */
        .countdown-container {
            margin: 15px 0;
            text-align: center;
        }
        .timer-display {
            font-size: 24px;
            font-weight: 900;
            color: #ef4444;
            letter-spacing: 1px;
            text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
            font-family: monospace;
            margin-top: 10px;
        }

        .tier-panel{
            width:100%;
            margin-top:20px;
            margin-bottom:30px;
            display:flex;
            flex-direction:column;
            gap:12px;
        }
        .tier-card{
            background:var(--card-bg);
            border:var(--card-border);
            border-radius:18px;
            padding:15px;
            box-shadow:var(--panel-shadow);
        }
        .tier-title{
            color:var(--accent-color);
            font-size:17px;
            font-weight:900;
            margin-bottom:10px;
            text-align:center;
        }
        .tier-list{
            font-size:15px;
            line-height:1.7;
            text-align:center;
            color:white;
        }

        /* === FINAL REQUESTED CHANGES === */
        .balance-bonus-row {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            gap: 18px;
            margin-top: 25px;
        }

        .balance-bonus-row .balance-card {
            width: calc(100% - 135px);
            margin-top: 0;
            min-height: 110px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .bonus-btn {
            width: 118px;
            min-width: 118px;
            min-height: 110px;
            border-radius: 24px;
            border: 1px solid rgba(255, 204, 0, 0.35);
            background: linear-gradient(135deg, rgba(255,204,0,0.18), rgba(0,255,204,0.06));
            color: var(--gold);
            box-shadow: var(--panel-shadow), 0 0 18px rgba(255, 204, 0, 0.12);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            font-weight: 900;
            font-size: 16px;
            letter-spacing: 1px;
            transition: all 0.2s ease;
        }

        .bonus-btn i {
            font-size: 32px;
        }

        .bonus-btn:active {
            transform: scale(0.92);
            background: rgba(255, 204, 0, 0.14);
        }

        .top-btn {
            width: 75px !important;
            height: 75px !important;
            font-size: 30px !important;
            border-radius: 20px !important;
        }

        .modal-content {
            max-width: 620px !important;
            padding: 50px 42px !important;
        }

        .hamster-clicker-btn:active {
            transform: scale(0.92) !important;
            box-shadow: 0 8px 0 var(--clicker-shadow), 0 16px 24px rgba(0,0,0,0.6) !important;
        }

        .withdraw-floating {
            position: absolute;
            top: -8px;
            right: -18px;
            width: 54px;
            height: 54px;
            border: none;
            outline: none;
            background: transparent;
            color: #ef4444;
            font-size: 34px;
            cursor: pointer;
            z-index: 30;
            filter: drop-shadow(0 0 10px rgba(239,68,68,0.35));
            transition: transform 0.2s ease;
        }

        .withdraw-floating:active {
            transform: scale(0.86);
        }

        .stat-card-row {
            justify-content: space-between !important;
            text-align: left !important;
            align-items: flex-start !important;
        }

        .stat-title {
            text-align: left !important;
            flex: 1;
        }

        .stat-main-val {
            text-align: right;
            white-space: nowrap;
        }

        .tier-card {
            position: relative;
            overflow: hidden;
        }

        .tier-card.locked-tier {
            pointer-events: none;
        }

        .tier-card.locked-tier::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.48);
            z-index: 5;
            border-radius: 18px;
        }

        .tier-card.locked-tier::after {
            content: "\f023";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 13px;
            top: 12px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(5, 7, 10, 0.85);
            border: 1px solid rgba(239, 68, 68, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 6;
            font-size: 15px;
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
        }

        .bottom-actions-container {
            justify-content: center !important;
        }

        .bottom-actions-container .btn-withdraw-item {
            display: none !important;
        }

        .bottom-actions-container .btn-invite-item {
            flex: 0 0 auto;
            min-width: 130px;
        }

        .referral-box {
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(0, 255, 204, 0.15);
            border-radius: 14px;
            padding: 14px;
            color: #ffffff;
            font-family: monospace;
            font-size: 14px;
            word-break: break-all;
            margin-bottom: 14px;
        }

        .copy-link-btn {
            width: 100%;
            min-height: 44px;
            border: 1px solid rgba(0, 255, 204, 0.35);
            background: rgba(0, 255, 204, 0.12);
            color: var(--accent-color);
            border-radius: 14px;
            padding: 14px;
            font-weight: 900;
            cursor: pointer;
            letter-spacing: 1px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .copy-link-btn:active {
            transform: scale(0.96);
            background: rgba(0, 255, 204, 0.2);
        }

        @media (max-width: 430px) {
            .top-navbar {
                padding: 14px 14px;
            }
            .top-btn {
                width: 62px !important;
                height: 62px !important;
                font-size: 25px !important;
                border-radius: 18px !important;
            }
            .nav-right-group {
                gap: 10px;
            }
            .app-title {
                font-size: 24px;
            }
            .balance-bonus-row {
                gap: 12px;
            }
            .balance-bonus-row .balance-card {
                width: calc(100% - 106px);
                padding: 16px 12px;
            }
            .bonus-btn {
                width: 94px;
                min-width: 94px;
                min-height: 96px;
                font-size: 13px;
            }
            .balance-amount {
                font-size: 34px;
            }
            .modal-content {
                padding: 44px 24px !important;
            }
        }


        /* === LATEST LAYOUT FIXES === */
        .nav-left {
            gap: 14px;
            align-items: center;
            flex: 1.35;
        }

        .nav-center {
            flex: 1.3;
        }

        .app-title {
            letter-spacing: 0 !important;
            white-space: nowrap;
        }

        .balance-bonus-row {
            width: 100%;
            border: var(--card-border);
            box-shadow: var(--panel-shadow);
            border-radius: 24px;
            padding: 14px;
            box-sizing: border-box;
            background: linear-gradient(135deg, #121e24 0%, #0a1217 100%);
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 14px;
            margin-top: 25px;
        }

        .balance-bonus-row .balance-card {
            order: 2;
            width: auto !important;
            flex: 1;
            margin: 0 !important;
            padding: 10px 12px !important;
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
            min-height: 88px;
            text-align: center;
        }

        .bonus-btn {
            order: 1;
            width: 112px !important;
            min-width: 112px !important;
            min-height: 88px !important;
            border: none !important;
            border-right: 1px solid rgba(0,255,204,0.14) !important;
            border-radius: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        .withdraw-floating {
            right: -55px !important;
            top: -2px !important;
        }

        .tier-card.locked-tier::after {
            left: auto !important;
            right: 13px !important;
        }

        .bottom-actions-container {
            display: none !important;
        }

        .stat-card-row {
            justify-content: space-between !important;
            text-align: left !important;
            align-items: center !important;
        }

        .stat-title {
            text-align: left !important;
        }

        @media (max-width: 430px) {
            .nav-left { gap: 8px; flex: 1.45; }
            .nav-center { flex: 1.1; }
            .top-invite-btn { display: flex; }
            .balance-bonus-row { gap: 10px; padding: 12px; }
            .bonus-btn { width: 92px !important; min-width: 92px !important; font-size: 12px !important; }
            .withdraw-floating { right: -42px !important; }
        }


        /* === BONUS / WITHDRAW CORNER FIX FROM SKETCH === */
        .balance-bonus-row {
            width: 100% !important;
            display: block !important;
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
            padding: 0 !important;
            margin-top: 25px !important;
        }

        .balance-bonus-row .balance-card {
            width: 100% !important;
            min-height: 112px !important;
            margin: 0 !important;
            padding: 20px !important;
            border: var(--card-border) !important;
            box-shadow: var(--panel-shadow) !important;
            border-radius: 24px !important;
            background: linear-gradient(135deg, #121e24 0%, #0a1217 100%) !important;
            box-sizing: border-box !important;
        }

        .clicker-box {
            width: 100% !important;
            min-height: 330px !important;
            margin: 26px 0 30px !important;
            position: relative !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .clicker-box .hamster-clicker-btn {
            margin-top: 68px !important;
        }

        .bonus-corner-btn,
        .withdraw-floating {
            position: absolute !important;
            top: 0 !important;
            width: 94px !important;
            min-width: 94px !important;
            height: 94px !important;
            min-height: 94px !important;
            border: none !important;
            border-radius: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            padding: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 7px !important;
            z-index: 35 !important;
            cursor: pointer !important;
            filter: drop-shadow(0 0 10px rgba(0,255,204,0.18)) !important;
        }

        .bonus-corner-btn {
            left: 0 !important;
            right: auto !important;
            color: var(--gold) !important;
        }

        .withdraw-floating {
            right: 0 !important;
            left: auto !important;
            color: #ef4444 !important;
            font-size: 34px !important;
        }

        .bonus-corner-btn i,
        .withdraw-floating i {
            font-size: 36px !important;
            line-height: 1 !important;
        }

        .bonus-corner-btn span,
        .withdraw-floating span {
            display: block !important;
            font-size: 12px !important;
            line-height: 1 !important;
            font-weight: 900 !important;
            letter-spacing: 0.6px !important;
            color: #ffffff !important;
            text-shadow: 0 0 8px rgba(0,0,0,0.7) !important;
        }

        .bonus-corner-btn:active,
        .withdraw-floating:active {
            transform: scale(0.9) !important;
        }

        @media (max-width: 430px) {
            .clicker-box {
                min-height: 300px !important;
            }
            .clicker-box .hamster-clicker-btn {
                margin-top: 62px !important;
            }
            .bonus-corner-btn,
            .withdraw-floating {
                width: 78px !important;
                min-width: 78px !important;
                height: 78px !important;
                min-height: 78px !important;
            }
            .bonus-corner-btn i,
            .withdraw-floating i {
                font-size: 30px !important;
            }
            .bonus-corner-btn span,
            .withdraw-floating span {
                font-size: 10px !important;
            }
        }


        /* === USER REQUEST UPDATE V4 === */
        .nav-left { gap: 12px; align-items: center; }
        .account-profile-btn {
            width: 190px !important;
            height: 75px !important;
            padding: 8px 12px !important;
            gap: 10px;
            justify-content: flex-start !important;
        }
        .account-profile-btn i { font-size: 30px; min-width: 32px; }
        .top-user-info { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; line-height: 1.1; }
        .top-user-name { color: #fff; font-size: 14px; font-weight: 900; max-width: 122px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .top-user-id { color: var(--accent-color); font-size: 11px; font-weight: 800; opacity: .9; max-width: 122px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .notification-list { max-height: 360px; overflow-y: auto; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 2px 4px 2px 0; text-align: left; }
        .notification-item { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.035); border: 1px solid rgba(0,255,204,.12); border-radius: 14px; padding: 12px; display: grid; gap: 6px; align-items: start; overflow: hidden; }
        .notification-title { color: #fff; font-size: 14px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }
        .notification-date { color: var(--accent-color); font-size: 11px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
        .notification-body { color: #cbd5e1; font-size: 13px; font-weight: 700; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
        .support-chat-box { max-height: 340px; overflow-y: auto; display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
        .chat-msg { border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
        .chat-msg.user { align-self:flex-end; background: rgba(0,255,204,.14); color:#fff; border:1px solid rgba(0,255,204,.2); }
        .chat-msg.support { align-self:flex-start; background: rgba(255,255,255,.055); color:#cbd5e1; border:1px solid rgba(255,255,255,.08); }
        .chat-msg span { display:block; white-space:pre-wrap; overflow-wrap:anywhere; }
        .support-message-time { display:block; margin-top:5px; color:#82909a; font-size:10px; line-height:1.2; }
        .chat-msg.user .support-message-time { color:rgba(255,255,255,.62); text-align:right; }
        .support-input-row { display:flex; gap:8px; }
        .support-input-row input { flex:1; background:#05070a; color:#fff; border:1px solid rgba(0,255,204,.18); border-radius:12px; padding:12px; outline:none; }
        .support-input-row button { width:48px; border-radius:12px; border:1px solid rgba(0,255,204,.3); background:rgba(0,255,204,.12); color:var(--accent-color); cursor:pointer; }
        .support-chat-status { min-height:18px; margin-top:8px; color:var(--text-muted); font-size:11px; line-height:1.4; }
        .support-chat-status[data-status="error"] { color:#fca5a5; }
        .support-chat-status[data-status="ok"] { color:#86efac; }
        .support-link-btn { width: 100%; box-sizing: border-box; }
        .bonus-stat-grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin: 12px 0; }
        .bonus-stat-card { background:rgba(0,0,0,.3); border:1px solid rgba(255,204,0,.18); border-radius:14px; padding:12px; text-align:center; }
        .bonus-stat-card .num { color:var(--gold); font-size:22px; font-weight:900; }
        .bonus-stat-card .lbl { color:#a0a5b5; font-size:12px; font-weight:700; }
        .bonus-rate-box { background:rgba(255,204,0,.1); border:1px solid rgba(255,204,0,.28); border-radius:14px; padding:12px; color:#fff; font-weight:800; text-align:center; }
        .withdraw-extra-row { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; color: #a0a5b5; font-weight: 700; text-align: center; }
        .tier-card.locked-tier::after { left: auto !important; right: 13px !important; }
        .tier-card.unlocked-tier { pointer-events: auto; }
        .tier-card.unlocked-tier::after {
            content: "\f09c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 13px;
            top: 12px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(0, 255, 120, 0.16);
            border: 1px solid rgba(0, 255, 120, 0.65);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 6;
            font-size: 15px;
            box-shadow: 0 0 12px rgba(0, 255, 120, 0.35);
        }
        @media (max-width: 430px) {
            .account-profile-btn { width: 150px !important; padding: 6px 8px !important; }
            .top-user-name { font-size: 12px; max-width: 90px; }
            .top-user-id { font-size: 10px; max-width: 90px; }
            .nav-left { gap: 8px; }
            .bonus-stat-grid { grid-template-columns: 1fr; }
        }



        /* === RESPONSIVE MOBILE FIX V5 === */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden !important;
        }

        body {
            align-items: stretch !important;
        }

        .top-navbar {
            width: 100% !important;
            max-width: 100vw !important;
            display: grid !important;
            grid-template-columns: minmax(108px, 1fr) 54px minmax(70px, auto) 54px 54px;
            gap: 6px !important;
            align-items: center !important;
            padding: 8px 10px !important;
            overflow: hidden !important;
        }

        .nav-left,
        .nav-center,
        .nav-right-group {
            display: contents !important;
        }

        .top-btn,
        .top-invite-btn,
        .nav-right-group .top-btn {
            width: 54px !important;
            height: 54px !important;
            min-width: 54px !important;
            min-height: 54px !important;
            border-radius: 16px !important;
            font-size: 23px !important;
            padding: 0 !important;
        }

        .account-profile-btn {
            width: 100% !important;
            min-width: 0 !important;
            height: 54px !important;
            min-height: 54px !important;
            padding: 6px 8px !important;
            gap: 7px !important;
            justify-content: flex-start !important;
        }

        .account-profile-btn i {
            font-size: 24px !important;
            min-width: 24px !important;
        }

        .top-user-info {
            min-width: 0 !important;
            max-width: 100% !important;
        }

        .top-user-name {
            max-width: 72px !important;
            font-size: 12px !important;
            line-height: 1.08 !important;
        }

        .top-user-id {
            max-width: 72px !important;
            font-size: 9px !important;
            line-height: 1.08 !important;
        }

        .app-title {
            font-size: 21px !important;
            letter-spacing: 0 !important;
            white-space: nowrap !important;
            justify-self: center !important;
            align-self: center !important;
            max-width: 100% !important;
            overflow: hidden !important;
        }

        .badge {
            top: -4px !important;
            right: -4px !important;
            font-size: 10px !important;
            min-width: 18px !important;
            height: 18px !important;
            padding: 0 !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .main-container {
            width: 100% !important;
            max-width: 520px !important;
            margin: 0 auto !important;
            padding: 0 14px !important;
            overflow-x: hidden !important;
        }

        .balance-bonus-row {
            width: 100% !important;
            max-width: 100% !important;
            margin-top: 22px !important;
        }

        .balance-bonus-row .balance-card {
            width: 100% !important;
            min-height: 100px !important;
            padding: 18px 14px !important;
        }

        .balance-label {
            font-size: 13px !important;
            letter-spacing: 1.6px !important;
        }

        .balance-amount {
            font-size: 44px !important;
        }

        .balance-coin-icon {
            width: 34px !important;
            height: 34px !important;
            font-size: 18px !important;
        }

        .clicker-box {
            width: 100% !important;
            max-width: 100% !important;
            min-height: clamp(270px, 72vw, 340px) !important;
            margin: 24px 0 28px !important;
            overflow: visible !important;
        }

        .clicker-box .hamster-clicker-btn {
            width: clamp(178px, 55vw, 210px) !important;
            height: clamp(178px, 55vw, 210px) !important;
            margin-top: clamp(54px, 16vw, 70px) !important;
        }

        .hamster-clicker-btn img {
            width: clamp(92px, 29vw, 110px) !important;
        }

        .bonus-corner-btn,
        .withdraw-floating {
            top: 4px !important;
            width: clamp(70px, 20vw, 92px) !important;
            min-width: clamp(70px, 20vw, 92px) !important;
            height: clamp(70px, 20vw, 92px) !important;
            min-height: clamp(70px, 20vw, 92px) !important;
        }

        .bonus-corner-btn {
            left: 0 !important;
        }

        .withdraw-floating {
            right: 0 !important;
        }

        .bonus-corner-btn i,
        .withdraw-floating i {
            font-size: 32px !important;
        }

        .bonus-corner-btn span,
        .withdraw-floating span {
            font-size: 11px !important;
        }

        .stats-panel {
            width: 100% !important;
            max-width: 100% !important;
            padding: 16px !important;
            border-radius: 24px !important;
            margin-bottom: 28px !important;
        }

        .stat-card-row {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) auto !important;
            gap: 10px !important;
            align-items: center !important;
            padding: 14px !important;
            width: 100% !important;
        }

        .stat-title {
            min-width: 0 !important;
            font-size: 14px !important;
            line-height: 1.25 !important;
            white-space: normal !important;
        }

        .stat-main-val {
            font-size: 22px !important;
            line-height: 1.15 !important;
            white-space: nowrap !important;
            text-align: right !important;
        }

        .tier-panel,
        .tier-card {
            width: 100% !important;
            max-width: 100% !important;
        }

        .tier-title {
            padding: 0 34px !important;
            font-size: 16px !important;
        }

        .tier-list {
            font-size: 14px !important;
            line-height: 1.55 !important;
        }

        .modal-overlay {
            padding: 14px !important;
        }

        .modal-content {
            width: 100% !important;
            max-width: min(620px, calc(100vw - 28px)) !important;
            padding: 44px 22px !important;
        }

        @media (max-width: 360px) {
            .top-navbar {
                grid-template-columns: minmax(92px, 1fr) 46px minmax(58px, auto) 46px 46px;
                gap: 4px !important;
                padding: 8px 8px !important;
            }

            .top-btn,
            .top-invite-btn,
            .nav-right-group .top-btn {
                width: 46px !important;
                height: 46px !important;
                min-width: 46px !important;
                min-height: 46px !important;
                font-size: 20px !important;
                border-radius: 14px !important;
            }

            .account-profile-btn {
                height: 46px !important;
                min-height: 46px !important;
                padding: 5px 6px !important;
                gap: 5px !important;
            }

            .account-profile-btn i {
                font-size: 21px !important;
                min-width: 21px !important;
            }

            .top-user-name {
                max-width: 56px !important;
                font-size: 10.5px !important;
            }

            .top-user-id {
                max-width: 56px !important;
                font-size: 8px !important;
            }

            .app-title {
                font-size: 17px !important;
            }

            .main-container {
                padding: 0 10px !important;
            }

            .stats-panel {
                padding: 12px !important;
            }

            .stat-card-row {
                padding: 12px !important;
                gap: 8px !important;
            }

            .stat-title {
                font-size: 13px !important;
            }

            .stat-main-val {
                font-size: 17px !important;
            }
        }



        /* === FINAL MOBILE HEADER FIX V6 === */
        .top-navbar {
            width: 100% !important;
            max-width: 100vw !important;
            display: grid !important;
            grid-template-columns: clamp(46px, 13vw, 62px) clamp(46px, 13vw, 62px) minmax(76px, 1fr) clamp(46px, 13vw, 62px) clamp(46px, 13vw, 62px) !important;
            gap: clamp(6px, 2vw, 12px) !important;
            align-items: center !important;
            padding: 10px 14px !important;
            overflow: hidden !important;
        }

        .nav-left,
        .nav-center,
        .nav-right-group {
            display: contents !important;
        }

        .top-btn,
        .top-invite-btn,
        .nav-right-group .top-btn,
        .account-profile-btn {
            width: clamp(46px, 13vw, 62px) !important;
            height: clamp(46px, 13vw, 62px) !important;
            min-width: clamp(46px, 13vw, 62px) !important;
            min-height: clamp(46px, 13vw, 62px) !important;
            border-radius: 16px !important;
            font-size: 24px !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .account-profile-btn {
            grid-column: 1 !important;
            gap: 0 !important;
        }

        .account-profile-btn i {
            font-size: 24px !important;
            min-width: 0 !important;
            margin: 0 !important;
        }

        .account-profile-btn .top-user-info,
        .account-profile-btn .top-user-name,
        .account-profile-btn .top-user-id {
            display: none !important;
        }

        .top-invite-btn {
            grid-column: 2 !important;
        }

        .app-title {
            grid-column: 3 !important;
            justify-self: center !important;
            align-self: center !important;
            text-align: center !important;
            width: 100% !important;
            max-width: 100% !important;
            overflow: hidden !important;
            white-space: nowrap !important;
            font-size: 24px !important;
            letter-spacing: 0 !important;
        }

        .nav-right-group .top-btn:nth-of-type(1) {
            grid-column: 4 !important;
        }

        .nav-right-group .top-btn:nth-of-type(2) {
            grid-column: 5 !important;
        }

        @media (max-width: 360px) {
            .top-navbar {
                padding: 8px 8px !important;
                gap: 5px !important;
                grid-template-columns: 46px 46px minmax(64px, 1fr) 46px 46px !important;
            }
            .top-btn,
            .top-invite-btn,
            .nav-right-group .top-btn,
            .account-profile-btn {
                width: 46px !important;
                height: 46px !important;
                min-width: 46px !important;
                min-height: 46px !important;
                font-size: 20px !important;
                border-radius: 14px !important;
            }
            .app-title {
                font-size: 17px !important;
            }
        }

        /* === LANGUAGE + WITHDRAW UPDATE V7 === */
        .lang-btn-row {
            max-height: 360px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .withdraw-red-title {
            color: #ef4444 !important;
            text-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
        }

        #lock-timer {
            color: #ef4444 !important;
            text-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
        }

        .window-date-card {
            margin: 12px 0 6px;
            padding: 12px;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,.08);
            background: rgba(255,255,255,.035);
            text-align: center;
        }

        .window-date-label {
            color: #8fa0b5;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0;
            margin-bottom: 4px;
        }

        .window-date-value {
            color: #fff;
            font-size: 15px;
            font-weight: 900;
            line-height: 1.4;
        }

        .withdraw-open-card {
            border-color: rgba(34,197,94,.35) !important;
            background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(0,255,204,.08)) !important;
            box-shadow: 0 0 24px rgba(34,197,94,.12);
        }

        .withdraw-open-card #lock-timer {
            color: #22c55e !important;
            text-shadow: 0 0 16px rgba(34,197,94,.45) !important;
        }

        .watch-screen {
            align-items: stretch !important;
            padding: 0 !important;
        }

        .watch-screen .modal-content {
            max-width: none !important;
            width: 100% !important;
            min-height: 100vh !important;
            border-radius: 0 !important;
            padding: 54px 16px 24px !important;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .withdraw-usdt-row {
            margin-top: 14px;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid rgba(0, 255, 204, 0.16);
            background: rgba(0, 255, 204, 0.06);
            color: #ffffff;
            font-weight: 800;
            text-align: center;
        }

        .withdraw-locked-row {
            margin-top: 12px;
            padding: 14px 44px 14px 14px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(0, 0, 0, 0.42);
            color: rgba(255,255,255,0.55);
            font-weight: 900;
            position: relative;
            text-align: left;
            pointer-events: none;
        }

        .withdraw-locked-row::after {
            content: "\f023";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(5,7,10,.85);
            border: 1px solid rgba(239,68,68,.45);
            font-size: 13px;
        }

        /* [FIX] The withdraw modal's info row shared this same lock-badge
           decoration purely because it reused the .withdraw-locked-row class —
           it read as confusing/redundant there (the row is just informational
           text, not itself a locked control).
           Remove the badge specifically for that row. */
        #withdraw-locked-row.withdraw-locked-row::after {
            content: none;
        }
        #withdraw-locked-row.withdraw-locked-row {
            padding-right: 14px;
        }

        /* === USER REQUEST V8: FIXED BOTTOM NAV, TIMERS, MODAL SCROLL LOCK === */
        body {
            padding-bottom: 96px !important;
        }

        .modal-overlay {
            overscroll-behavior: contain !important;
            touch-action: auto !important;
            overflow-y: auto !important;
            align-items: flex-start !important;
        }
        .modal-overlay.is-open {
            min-height: var(--app-vh, 100vh) !important;
        }

        .modal-content {
            max-height: calc(var(--app-vh, 100vh) - 32px) !important;
            overflow-y: auto !important;
            overscroll-behavior: contain !important;
            -webkit-overflow-scrolling: touch !important;
            touch-action: pan-y !important;
        }

        .bonus-corner-btn,
        .withdraw-floating {
            display: none !important;
        }

        .fixed-bottom-nav {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            height: 82px;
            padding: 10px 12px calc(10px + var(--safe-bottom));
            background: rgba(9, 14, 18, 0.94);
            backdrop-filter: blur(14px);
            border-top: 1px solid rgba(0, 255, 204, 0.16);
            display: grid;
            /* [2026-10-12] WALLET button removed: 3 buttons. */
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            z-index: 999;
            box-shadow: 0 -10px 30px rgba(0,0,0,0.45);
        }

        .fixed-nav-btn {
            border: 1px solid rgba(0, 255, 204, 0.2);
            background: rgba(255,255,255,0.035);
            color: var(--accent-color);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            font-weight: 900;
            font-size: 10px;
            letter-spacing: .4px;
            transition: transform .18s ease, background .18s ease;
            position: relative;
        }

        .fixed-nav-btn i {
            font-size: 24px;
            line-height: 1;
        }

        .fixed-nav-btn:active {
            transform: scale(.92);
            background: rgba(0,255,204,.12);
        }

        .fixed-nav-btn.bonus-nav { color: var(--gold); border-color: rgba(255,204,0,.24); }
        .fixed-nav-btn.withdraw-nav { color: #ef4444; border-color: rgba(239,68,68,.24); }
        .fixed-nav-btn.wallet-nav { color: #22c55e; border-color: rgba(34,197,94,.24); }
        .fixed-nav-btn.history-nav { color: #60a5fa; border-color: rgba(96,165,250,.24); }

        .locked-action {
            opacity: .48 !important;
            filter: grayscale(.35);
            cursor: not-allowed !important;
        }

        /* [2026-10-19] "Invite a friend" message (not a lock, just an invitation). */
        .invite-prompt {
            display: block;
            width: calc(100% - 32px);
            margin: 4px auto 14px;
            border: 1px solid rgba(0, 255, 204, 0.32);
            background: rgba(0, 255, 204, 0.08);
            color: var(--accent-color);
            border-radius: 14px;
            padding: 12px;
            font: inherit;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.45;
            text-align: center;
            cursor: pointer;
        }

        .bonus-timer-title {
            color: #ef4444 !important;
            text-shadow: 0 0 12px rgba(239,68,68,.35) !important;
        }

        /* [2026-10-19] !important removed: JS sets the color according to the withdrawal window state
           (open — green). Previously the bonus timer always looked red. */
        #bonus-timer {
            color: #ef4444;
            text-shadow: 0 0 12px rgba(239,68,68,.35);
        }

        .history-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 390px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .history-item {
            background: rgba(0,0,0,.34);
            border: 1px solid rgba(0,255,204,.12);
            border-radius: 14px;
            padding: 12px;
            color: #d1d5db;
            font-size: 13px;
            line-height: 1.45;
        }

        .history-item b {
            color: #fff;
            display: block;
            margin-bottom: 4px;
        }

        .receipt-head {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .receipt-type {
            color: var(--accent-color);
            font-weight: 900;
            font-size: 12px;
            text-transform: uppercase;
        }

        .receipt-status {
            border-radius: 999px;
            padding: 4px 8px;
            font-size: 10px;
            font-weight: 900;
            background: rgba(255,255,255,.08);
            line-height: 1.2;
            text-align: center;
            max-width: 48%;
            overflow-wrap: anywhere;
        }

        .receipt-status.verified,
        .receipt-status.approved,
        .receipt-status.completed,
        .receipt-status.paid,
        .receipt-status.auto_paid,
        .receipt-status.success {
            color: #22c55e;
            background: rgba(34,197,94,.12);
        }

        .receipt-status.pending,
        .receipt-status.processing,
        .receipt-status.queued,
        .receipt-status.requested {
            color: #f59e0b;
            background: rgba(245,158,11,.12);
        }

        .receipt-status.rejected,
        .receipt-status.failed,
        .receipt-status.error,
        .receipt-status.cancelled {
            color: #ef4444;
            background: rgba(239,68,68,.12);
        }

        .receipt-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            border-top: 1px dashed rgba(255,255,255,.08);
            padding-top: 8px;
            margin-top: 8px;
        }

        .receipt-label { color: #8fa0b5; font-weight: 800; }
        .receipt-value { color: #fff; font-weight: 900; text-align: right; word-break: break-word; }

        .history-empty {
            text-align: center;
            color: var(--text-muted);
            font-weight: 800;
            padding: 18px 10px;
        }

        @media (max-width: 380px) {
            .fixed-bottom-nav { height: 76px; gap: 7px; padding-left: 8px; padding-right: 8px; }
            .fixed-nav-btn { border-radius: 14px; font-size: 9px; }
            .fixed-nav-btn i { font-size: 21px; }
        }

        /* === MOBILE TOUCH STABILITY HARD OVERRIDE === */
        html,
        body {
            height: auto !important;
            min-height: 100% !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            position: static !important;
            touch-action: auto !important;
            /* [FIX] Do NOT set overscroll-behavior here. body has no internal
               scroll range on this page (it grows to fit its content; html is
               the actual scrolling element - document.scrollingElement).
               "contain" on an element with zero scroll range of its own tells
               the browser not to chain the gesture to its parent, which
               silently killed ALL page scrolling since the gesture terminated
               at body and never reached html. Modal background-scroll-bleed
               is already handled by body.modal-open{overflow:hidden} and
               .modal-content{overscroll-behavior:contain} below; it never
               needed to be set here too, and doing so broke scrolling on
               every screen, modal or not. */
            -webkit-overflow-scrolling: touch !important;
        }

        body {
            display: block !important;
            padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
        }

        .main-container,
        .tier-panel,
        .stats-panel {
            min-height: auto !important;
            overflow: visible !important;
        }

        .modal-overlay {
            display: none !important;
            pointer-events: none !important;
            overflow-y: auto !important;
            touch-action: auto !important;
            overscroll-behavior: contain !important;
            -webkit-overflow-scrolling: touch !important;
        }

        .modal-overlay.is-open {
            display: flex !important;
            pointer-events: auto !important;
        }

        .modal-content {
            touch-action: auto !important;
            overscroll-behavior: contain !important;
            -webkit-overflow-scrolling: touch !important;
        }

/* [2026-10-20] The watch modal must not shift: content starts from the top, not the screen center
   (previously 100vh + vertical centering: when Telegram changed the visible height or the status
   text got longer, the whole modal jumped together with the video). Height - the real visible area. */
.watch-screen .modal-content{justify-content:flex-start !important;min-height:var(--app-vh,100vh) !important;padding-top:calc(54px + env(safe-area-inset-top, 0px)) !important;}
.watch-screen{overflow-anchor:none;}

/* [2026-10-20] Fullscreen video: browser fullscreen doesn't work in the Telegram WebView, and Telegram's
   own fullscreen only hides the header. So the video box takes up the screen
   itself; if the phone is upright, the video is rotated 90 degrees (watched with the phone turned sideways). */
.modal-overlay.watch-pseudo-fullscreen{position:fixed !important;inset:0 !important;padding:0 !important;z-index:9999;background:#000 !important;overflow:hidden !important;}
.modal-overlay.watch-pseudo-fullscreen .modal-content{position:fixed !important;inset:0 !important;width:100vw !important;height:var(--app-vh,100vh) !important;min-height:0 !important;max-height:none !important;max-width:none !important;padding:0 !important;margin:0 !important;border-radius:0 !important;overflow:hidden !important;background:#000 !important;}
.modal-overlay.watch-pseudo-fullscreen .modal-content > :not(.info-sub-block),
.modal-overlay.watch-pseudo-fullscreen .info-sub-block > :not(.watch-player-frame){display:none !important;}
.modal-overlay.watch-pseudo-fullscreen .watch-player-frame{position:fixed !important;inset:0 !important;width:100vw !important;height:var(--app-vh,100vh) !important;aspect-ratio:auto !important;border-radius:0 !important;z-index:10000;background:#000 !important;}
@media (orientation: portrait){
  .modal-overlay.watch-pseudo-fullscreen .watch-player-frame{inset:auto !important;top:50% !important;left:50% !important;width:var(--app-vh,100vh) !important;height:100vw !important;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center center;}
}
.modal-overlay.watch-pseudo-fullscreen .watch-fullscreen-btn{width:42px !important;height:42px !important;right:14px !important;bottom:14px !important;}

/* [2026-10-23] Friend frames (between the main balance and the YouTube button). Each active friend lights up one
   frame (neon mint); the rest are locked and dim. Tap shows a translucent info note below. */
.friend-boost{position:relative;z-index:40;width:100%;margin-top:14px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
.friend-boost + .clicker-box{margin-top:18px !important;}
.fb-cell{all:unset;box-sizing:border-box;position:relative;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font:800 clamp(11px,3.6vw,14px)/1 'Segoe UI',Roboto,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease,color .25s ease;}
.fb-cell:active{transform:scale(.94);}
.fb-cell:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.fb-cell.is-active{color:#00ffcc;background:rgba(0,255,204,.06);border:1.5px solid rgba(0,255,204,.62);box-shadow:0 0 10px rgba(0,255,204,.22),inset 0 0 10px rgba(0,255,204,.08);text-shadow:0 0 8px rgba(0,255,204,.45);}
.fb-cell.is-locked{color:rgba(0,255,204,.32);background:rgba(255,255,255,.02);border:1.5px solid rgba(0,255,204,.16);box-shadow:none;text-shadow:none;}
.fb-cell[aria-expanded="true"]{border-color:#00ffcc;box-shadow:0 0 16px rgba(0,255,204,.5),inset 0 0 12px rgba(0,255,204,.14);}
.fb-cell.is-locked[aria-expanded="true"]{border-color:rgba(0,255,204,.55);box-shadow:0 0 10px rgba(0,255,204,.22);}
.fb-cur{font-size:.86em;opacity:.9;margin-left:1px;}
.fb-lock{position:absolute;top:3px;right:4px;font-size:8px;color:rgba(255,255,255,.42);}
.fb-tip{position:absolute;z-index:30;top:calc(100% + 12px);left:0;right:0;padding:13px 14px 11px;border-radius:16px;background:rgba(8,16,20,.74);-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);border:1px solid rgba(0,255,204,.38);box-shadow:0 12px 30px rgba(0,0,0,.5);color:#f4fffd;font:500 13.5px/1.45 'Segoe UI',Roboto,sans-serif;text-align:left;text-shadow:0 1px 2px rgba(0,0,0,.55);animation:fbTipIn .16s ease-out;}
.fb-tip[hidden]{display:none;}
@keyframes fbTipIn{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:none;}}
.fb-tip::before{content:"";position:absolute;top:-7px;left:calc(var(--arrow-x,24px) - 7px);width:12px;height:12px;background:inherit;border-left:inherit;border-top:inherit;transform:rotate(45deg);-webkit-backdrop-filter:none;backdrop-filter:none;}
.fb-tip-title{font-weight:800;font-size:14.5px;margin:0 0 8px;color:#00ffcc;}
.fb-tip-row{display:flex;gap:10px;align-items:flex-start;margin:0 0 7px;}
.fb-tip-row i{width:18px;text-align:center;margin-top:2px;color:#00ffcc;}
.fb-tip-row.gift i{color:#ffcc00;}
.fb-tip-row b{color:#fff;font-weight:800;}
.fb-tip-progress{margin:4px 0 6px;padding:7px 10px;border-radius:10px;background:rgba(0,255,204,.10);border:1px solid rgba(0,255,204,.25);font-weight:700;color:#bffff2;}
.fb-tip-hint{margin-top:4px;font-size:11.5px;color:rgba(244,255,253,.7);}
.bonus-boost-info{margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(0,255,204,.07);border:1px solid rgba(0,255,204,.28);color:#dffcf6;font-size:13px;font-weight:700;line-height:1.45;text-align:left;}
.bonus-boost-info b{color:#00ffcc;}
.notification-empty{color:#a0a5b5;font-size:13px;font-weight:700;text-align:center;padding:18px 6px;}

/* =============================================================================================
   [2026-10-24] MINT GLASS DESIGN — owner-approved sample A 1:1 (the values of the sample file app-designs.css).
   Visual only: JS logic unchanged. Because earlier layers used !important, this layer also
   uses !important in many places. Fonts: Inter (text) + Manrope (numbers, headings), from our own server.
   Colors: text ~15:1, mint 76% saturated, background not pitch black; crisp 1px borders, no blurry glow.
   ============================================================================================= */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("./assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("./assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("./assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
    --font: "Inter", "Noto Sans Devanagari", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-num: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 20px;
    --page: radial-gradient(120% 60% at 50% -8%, #173337 0%, #0F1B1E 48%, #0B1416 100%);
    --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    --surface2: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #E6EFEC;
    --muted: #A8B8B4;
    --faint: #8A9C99;
    --accent: #45E6C4;
    --acc-rgb: 69, 230, 196;
    --ink: #052019;
    --pos: #45E6C4;
    --gold: #EFC14F;
    --gold-rgb: 239, 193, 79;
    --badge: #EF5F78;
    --warn: #F2BB4F;
    --bad: #F07A8C;
    --edge: #0F1B1E;
    --grad: linear-gradient(135deg, #7FEFD8 0%, #45E6C4 50%, #23C4A3 100%);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 20px rgba(0, 0, 0, 0.12);
    --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.40), 0 1px 0 rgba(0, 0, 0, 0.30), 0 6px 14px rgba(0, 0, 0, 0.28);
    --nav-bg: linear-gradient(180deg, rgba(15, 27, 30, 0.94), rgba(11, 20, 22, 0.98));
    /* old variables mapped to the new palette (inline style="" attributes use them) */
    --accent-color: #45E6C4;
    --accent-glow: rgba(69, 230, 196, 0.16);
    --text-main: #E6EFEC;
    --text-muted: #A8B8B4;
}

/* ---------- page ---------- */
html { background: #0B1416; }
body {
    font: 400 14px/1.45 var(--font) !important;
    color: var(--text);
    background: var(--page) fixed !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(36% 24% at 18% 18%, rgba(69, 230, 196, 0.09), transparent 70%),
        radial-gradient(34% 24% at 88% 56%, rgba(90, 170, 240, 0.05), transparent 70%),
        radial-gradient(40% 22% at 30% 90%, rgba(69, 230, 196, 0.05), transparent 70%);
    animation: mgDrift 24s ease-in-out infinite alternate;
}
button, input, textarea, select { font-family: inherit; }
.mg-hidden { display: none !important; }
.ic { flex: none; display: block; }
.mg-t-lock { display: inline-flex; color: var(--faint); }

/* ---------- top section: avatar + name + ID, icons on the right ---------- */
.top-navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto;
    padding: 20px 16px 0 !important;
    gap: 10px !important;
    background: none !important;
    border: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible !important;
}
.nav-left, .nav-right-group { display: flex !important; align-items: center; gap: 8px !important; }
.nav-left { min-width: 0; flex: 1 1 auto !important; }
.nav-right-group { flex: none !important; }
.nav-center { display: none !important; }
.top-btn,
.top-invite-btn,
.nav-right-group .top-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 17px !important;
    color: var(--text) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transition: transform 0.18s ease !important;
    grid-column: auto !important;
}
.top-btn:active { transform: scale(0.96) !important; background: var(--surface) !important; }
.account-profile-btn {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 42px !important;
    padding: 0 !important;
    gap: 11px !important;
    justify-content: flex-start !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-align: left;
}
.mg-ava {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad);
    color: var(--ink);
    display: grid;
    place-items: center;
    font: 800 17px/1 var(--font-num);
    box-shadow: 0 0 0 2px var(--edge), 0 0 0 3px rgba(var(--acc-rgb), 0.45);
}
.mg-ava.xl { width: 88px; height: 88px; font-size: 34px; margin-bottom: 8px; }
.account-profile-btn .top-user-info {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.account-profile-btn .top-user-name {
    display: block !important;
    max-width: 52vw !important;
    color: var(--text) !important;
    font: 600 15.5px/1.25 var(--font) !important;
    letter-spacing: -0.01em;
}
.account-profile-btn .top-user-id {
    display: block !important;
    max-width: 52vw !important;
    color: var(--muted) !important;
    font: 400 12px/1.3 var(--font) !important;
    letter-spacing: 0.01em;
    opacity: 1 !important;
    font-variant-numeric: tabular-nums;
}
.badge {
    top: -4px !important;
    right: -4px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 9px !important;
    text-align: center;
    background: var(--badge) !important;
    color: #fff !important;
    font: 700 10px/17px var(--font) !important;
    box-shadow: 0 0 0 2px var(--edge);
}
.badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid var(--badge);
    opacity: 0;
    animation: mgBadge 3.4s ease-out 1s infinite;
}

/* ---------- main screen ---------- */
.main-container {
    max-width: 520px !important;
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
}
.balance-bonus-row { margin-top: 20px !important; }
.balance-bonus-row .balance-card {
    position: relative !important;
    overflow: hidden !important;
    text-align: left !important;
    min-height: 0 !important;
    padding: 18px 18px 16px !important;
    border-radius: 24px !important;
    border: 1px solid var(--line) !important;
    background:
        radial-gradient(120% 95% at 100% 0%, rgba(var(--acc-rgb), 0.10) 0%, transparent 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 62%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 1px 2px rgba(0, 0, 0, 0.30), 0 14px 30px rgba(0, 0, 0, 0.22) !important;
}
.balance-bonus-row .balance-card::after {
    content: "";
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: 0;
    width: 34%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09) 50%, transparent);
    transform: translateX(-130%) skewX(-14deg);
    animation: mgSweep 7.5s cubic-bezier(0.45, 0, 0.25, 1) 1.4s infinite;
}
.balance-label {
    font: 600 10.5px/1.2 var(--font) !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: var(--muted) !important;
    margin: 0 !important;
}
.balance-amount-wrapper {
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    align-items: baseline !important;
    gap: 3px !important;
    margin: 8px 0 2px;
}
.balance-amount {
    font: 800 44px/1.08 var(--font-num) !important;
    letter-spacing: -0.035em;
    color: var(--text) !important;
    text-shadow: none !important;
    font-variant-numeric: tabular-nums;
}
.balance-amount.mg-bump { animation: mgMoneyIn 1.2s ease-out; }
.balance-coin-icon {
    width: auto !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--muted) !important;
    font: 600 22px/1 var(--font-num) !important;
}
.mg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mg-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font: 500 12px/1 var(--font);
    color: var(--muted);
    white-space: nowrap;
}
.mg-chip i { font-size: 11px; }
.mg-chip.up { color: var(--pos); background: rgba(var(--acc-rgb), 0.10); border-color: rgba(var(--acc-rgb), 0.28); font-weight: 600; }
.mg-money-float {
    position: absolute;
    right: 18px;
    top: 16px;
    font: 700 15px/1 var(--font-num);
    color: var(--accent);
    pointer-events: none;
    animation: mgFloat 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* friend frames card */
.mg-frames {
    padding: 12px 12px 11px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--glass-shadow);
}
.friend-boost { margin: 0 !important; gap: 6px !important; z-index: 40; }
.friend-boost + .clicker-box { margin-top: 0 !important; }
.mg-fr-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.fb-cell {
    position: relative;
    height: 40px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font: 700 12px/1 var(--font-num) !important;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-shadow: none !important;
    font-variant-numeric: tabular-nums;
    transition: transform 0.18s ease, color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease !important;
}
.fb-cell.is-active {
    color: var(--accent) !important;
    background: rgba(var(--acc-rgb), 0.12) !important;
    border: 1px solid rgba(var(--acc-rgb), 0.78) !important;
    box-shadow: none !important;
}
.fb-cell.is-locked {
    color: rgba(255, 255, 255, 0.34) !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    box-shadow: none !important;
}
.fb-cell[aria-expanded="true"] { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(var(--acc-rgb), 0.25) !important; }
.fb-cell.is-locked[aria-expanded="true"] { border-color: rgba(var(--acc-rgb), 0.55) !important; }
.fb-cur { font-size: 0.9em; margin-left: 1px; opacity: 0.85; }
.fb-lock { position: absolute; top: 4px; right: 4px; font-size: 7px !important; color: rgba(255, 255, 255, 0.45) !important; }
.fb-sh { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.fb-cell.is-active::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 15px;
    border: 1px solid rgba(var(--acc-rgb), 0.40);
    opacity: 0;
    pointer-events: none;
    animation: mgBreath 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.6s);
}
.fb-cell.is-active .fb-sh::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26) 50%, transparent);
    transform: translateX(-130%);
    animation: mgFrSweep 6s ease-in-out infinite;
    animation-delay: calc(1.6s + var(--i, 0) * 0.14s);
}
.fb-cell.is-locked.is-next { animation: mgInvite 3s ease-in-out infinite; }
.fb-cell.fb-unlock { animation: mgUnlock 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both !important; }
.fb-ring {
    position: absolute;
    z-index: 2;
    border-radius: 12px;
    border: 1.5px solid rgba(var(--acc-rgb), 0.85);
    pointer-events: none;
    animation: mgRing 0.9s ease-out forwards;
}
.fb-float {
    position: absolute;
    z-index: 2;
    font: 700 12px/1 var(--font-num);
    font-style: normal;
    color: var(--pos);
    white-space: nowrap;
    pointer-events: none;
    animation: mgFloatUp 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.mg-fr-cap, .mg-fr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 400 12px/1.4 var(--font); color: var(--muted); margin-top: 10px; }
.mg-fr-head { margin: 0 0 10px; font: 600 13.5px/1.3 var(--font); color: var(--text); }
.mg-fr-cap b, .mg-fr-head b { color: var(--accent); font: 700 13px/1.3 var(--font-num); white-space: nowrap; }
.mg-frames.big .fb-cell { height: 48px !important; font-size: 13px !important; }
.fb-tip {
    background: rgba(17, 30, 33, 0.97) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(var(--acc-rgb), 0.30) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 30px rgba(0, 0, 0, 0.45) !important;
    color: var(--text) !important;
    font: 400 13.5px/1.5 var(--font) !important;
    text-shadow: none !important;
}
.fb-tip-title { color: var(--text) !important; font: 700 14.5px/1.3 var(--font-num) !important; }
.fb-tip-row i { color: var(--accent) !important; }
.fb-tip-row.gift i { color: var(--gold) !important; }
.fb-tip-progress { background: rgba(var(--acc-rgb), 0.08) !important; border-color: rgba(var(--acc-rgb), 0.22) !important; color: var(--text) !important; font-weight: 600 !important; }
.fb-tip-hint { color: var(--muted) !important; }
/* the info note sits above the logo (the frames card is on its own layer) */
.mg-frames { position: relative; z-index: 45; }
.fb-tip-row .ic { flex: none; margin-top: 2px; color: var(--accent); }
.fb-tip-row.gift .ic { color: var(--gold); }
/* In the bonus modal the info note opens below the frames and pushes the card down */
.fb-tip.mg-bonus-tip { position: relative !important; top: auto; left: auto; right: auto; margin-top: 12px; z-index: auto; }
/* [2026-10-25] "Tier 1 only" — one short line (does not wrap onto several lines) */
.fb-tip-tier { display: block; max-width: 100%; margin: -2px 0 9px; padding: 4px 10px; border-radius: 12px; background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.35); color: var(--gold); font: 700 12px/1.35 var(--font); white-space: normal; overflow-wrap: anywhere; }
.fb-tip-tier:empty { display: none; }
@media (max-width: 360px) { .fb-tip-tier { font-size: 11px; padding: 4px 8px; letter-spacing: -0.01em; } }
#mg-watch-fr-rate.is-off { color: var(--muted); font-weight: 600; }

/* central button: round glass logo + label */
.clicker-box {
    position: relative !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 18px 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.clicker-box::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 184px;
    height: 184px;
    margin: -92px 0 0 -92px;
    border-radius: 50%;
    border: 1px solid rgba(var(--acc-rgb), 0.30);
    opacity: 0.35;
    pointer-events: none;
    animation: mgBreath 3.8s ease-in-out infinite;
}
.clicker-box .hamster-clicker-btn,
.hamster-clicker-btn {
    position: relative !important;
    width: 170px !important;
    height: 170px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    display: grid !important;
    place-items: center;
    border-radius: 50% !important;
    border: 1.5px solid rgba(var(--acc-rgb), 0.48) !important;
    background:
        radial-gradient(ellipse 42% 26% at 34% 18%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(circle at 50% 56%, rgba(var(--acc-rgb), 0.30) 0%, rgba(var(--acc-rgb), 0.11) 42%, rgba(10, 80, 70, 0.42) 78%, rgba(6, 38, 34, 0.6) 100%) !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35), 0 16px 34px rgba(0, 0, 0, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.26), inset 0 -22px 40px rgba(0, 0, 0, 0.30) !important;
    transition: transform 0.2s ease !important;
}
.hamster-clicker-btn:active,
.clicker-box .hamster-clicker-btn:active {
    transform: scale(0.96) !important;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.26), inset 0 -22px 40px rgba(0, 0, 0, 0.30) !important;
}
.hamster-clicker-btn::after {
    content: "" !important;
    position: absolute !important;
    width: auto !important;
    height: auto !important;
    inset: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: conic-gradient(from 0deg, transparent 0 62%, rgba(var(--acc-rgb), 0.75) 76%, transparent 90%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: mgSpin 6s linear infinite;
    pointer-events: none;
}
.hamster-clicker-btn .vp-hero-logo {
    grid-area: 1 / 1;
    width: 116px;
    height: 116px;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), 0.22));
}
.hamster-clicker-btn .vp-hero-logo path, .hamster-clicker-btn .vp-hero-logo circle:not(:first-child) { }
.hamster-clicker-btn .vp-hero-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.hamster-clicker-btn .vp-hero-shine::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.20) 50%, transparent);
    transform: translateX(-120%) skewX(-14deg);
    animation: mgSweep 5.5s cubic-bezier(0.45, 0, 0.25, 1) 0.8s infinite;
}
.floating-text {
    font: 800 22px/1 var(--font-num) !important;
    color: var(--accent) !important;
    text-shadow: none !important;
}
.mg-hero-cap { display: grid; justify-items: center; gap: 2px; margin-top: 10px; text-align: center; }
.mg-hero-cap b { font: 700 17px/1.25 var(--font-num); letter-spacing: -0.01em; color: var(--text); }
.mg-hero-cap small { font: 400 12.5px/1.4 var(--font); color: var(--muted); }

.invite-prompt {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: var(--radius) !important;
    border: 1px solid rgba(var(--acc-rgb), 0.28) !important;
    background: rgba(var(--acc-rgb), 0.07) !important;
    color: var(--accent) !important;
    font: 600 13px/1.45 var(--font) !important;
}

/* stats: Today / Total / Income */
.stats-panel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 6px 0 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.stat-card-row {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 11px 8px 10px !important;
    width: auto !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow);
}
.stat-title {
    flex: none !important;
    text-align: center !important;
    font: 500 11.5px/1.2 var(--font) !important;
    color: var(--muted) !important;
    white-space: normal !important;
}
.stat-main-val {
    text-align: center !important;
    font: 700 16px/1.15 var(--font-num) !important;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--text) !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}
.glow-gold .stat-main-val { color: var(--pos) !important; }

/* daily goal */
.mg-goal {
    padding: 13px 14px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--glass-shadow);
}
.mg-goal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 400 13px/1.3 var(--font); color: var(--muted); }
.mg-goal-top > span { display: inline-flex; gap: 7px; align-items: center; }
.mg-goal-top b { color: var(--accent); font: 700 13.5px/1.3 var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-goal small { display: block; color: var(--muted); font: 400 12px/1.4 var(--font); }
.mg-prog { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); margin: 10px 0 8px; overflow: hidden; }
.mg-prog i { position: relative; display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); overflow: hidden; transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mg-prog i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-100%); animation: mgBarGloss 3.6s ease-in-out 1.8s infinite; }

/* [2026-11-14] The Earth row and its sheet (owner's choice; drawing: vidipay-globe.js, photographs: assets/globe - NASA, public
   domain). The row stands where the decoration row stood, at about the same height. Display only. */
.vp-globe-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 48px; padding: 4px 12px 4px 5px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glass-shadow); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-globe-row:focus-visible { outline: 2px solid rgba(var(--acc-rgb), 0.7); outline-offset: 2px; }
.vp-globe-row:active { transform: scale(0.99); }
.vp-globe-c { flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #2f78bd, #0d2f52 62%, #071a2e); box-shadow: 0 0 10px 1px rgba(90, 170, 255, 0.38), 0 0 26px rgba(var(--acc-rgb), 0.14); }
.vp-globe-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.vp-globe-tx small { color: var(--muted); font: 600 10px/1.1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-globe-tx b { color: var(--text); font: 700 14px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-globe-chip { flex: none; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--muted); font: 700 11.5px/1 var(--font); letter-spacing: 0.03em; white-space: nowrap; }
.vp-globe-chip.is-on { border-color: transparent; background: var(--grad); color: var(--ink); }
html.vp-globe-open { overflow: hidden !important; }
.vp-globe-sheet { position: fixed; inset: 0; z-index: 10040; display: flex; align-items: flex-end; justify-content: center; }
.vp-globe-sheet[hidden] { display: none; }
.vp-globe-bg { position: absolute; inset: 0; background: rgba(5, 12, 14, 0.7); opacity: 0; transition: opacity 0.22s ease; touch-action: none; }
.vp-globe-card { position: relative; box-sizing: border-box; width: 100%; max-width: 480px; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: #0d171a; border: 1px solid var(--line); border-bottom: 0; transform: translateY(104%); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-globe-sheet.is-open .vp-globe-bg { opacity: 1; }
.vp-globe-sheet.is-open .vp-globe-card { transform: none; }
.vp-globe-x { all: unset; position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-globe-head { display: flex; align-items: center; gap: 10px; padding-right: 44px; }
.vp-globe-head .vp-globe-tx b { font-size: 17px; }
.vp-globe-view { position: relative; margin-top: 14px; height: min(300px, 44vh); min-height: 200px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
    background: radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%), radial-gradient(1px 1px at 82% 12%, rgba(255, 255, 255, 0.55), transparent 60%), radial-gradient(1px 1px at 68% 82%, rgba(255, 255, 255, 0.5), transparent 60%), radial-gradient(1px 1px at 22% 86%, rgba(255, 255, 255, 0.45), transparent 60%), radial-gradient(1px 1px at 92% 56%, rgba(255, 255, 255, 0.5), transparent 60%), radial-gradient(1px 1px at 6% 58%, rgba(255, 255, 255, 0.4), transparent 60%), radial-gradient(90% 70% at 50% 40%, #0d1a22 0, #070c10 75%); }
.vp-globe-view canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.vp-globe-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.vp-globe-zoom button { all: unset; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(13, 23, 26, 0.8); border: 1px solid var(--line-strong); color: var(--text); font: 600 21px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-globe-zoom button:active { background: rgba(var(--acc-rgb), 0.22); }
.vp-globe-focus { min-height: 20px; margin-top: 10px; text-align: center; color: var(--muted); font: 500 13px/1.5 var(--font); }
.vp-globe-focus b { color: var(--text); font-weight: 700; }
.vp-globe-focus i { font-style: normal; font-weight: 700; color: var(--accent); }
.vp-globe-hint { display: block; text-align: center; color: var(--faint); font: 400 11px/1.4 var(--font); }
.vp-globe-list-h { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); font: 600 11px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-globe-list-h span { flex: 1; min-width: 0; }
.vp-globe-list-h .ic { flex: none; transition: transform 0.2s ease; }
.vp-globe-list-h.is-open .ic { transform: rotate(180deg); }
.vp-globe-list-h small { color: var(--accent); font: 700 12px/1 var(--font-num); letter-spacing: 0; }
.vp-globe-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vp-globe-list[hidden] { display: none; }
.vp-globe-item { all: unset; box-sizing: border-box; padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); font: 500 12.5px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-globe-item { display: inline-flex; align-items: center; }
.vp-globe-flag { margin-right: 7px; font-size: 15px; line-height: 1; }
.vp-globe-item.is-me { border-color: rgba(var(--acc-rgb), 0.55); }
.vp-globe-item.is-sel { border-color: transparent; background: var(--grad); color: var(--ink); font-weight: 700; }
.vp-globe-item:disabled { opacity: 0.55; cursor: default; }
@media (prefers-reduced-motion: reduce) { .vp-globe-bg, .vp-globe-card { transition: none; } }

/* tiers */
.tier-panel { display: grid !important; gap: 8px !important; width: 100% !important; margin: 4px 0 18px !important; }
.mg-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 6px 2px; }
.mg-sec-h span { font: 600 10.5px/1 var(--font); letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.mg-sec-h small { font: 400 11.5px/1 var(--font); color: var(--faint); }
.tier-card {
    position: relative !important;
    padding: 12px 14px !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow) !important;
    pointer-events: auto !important;
}
.tier-card.locked-tier::before, .tier-card::after, .tier-card.locked-tier::after, .tier-card.unlocked-tier::after { display: none !important; content: none !important; }
.tier-card .tier-title { display: none !important; }
.mg-t-top { display: flex; justify-content: space-between; align-items: center; color: var(--faint); }
.mg-t-name { font: 700 13px/1.3 var(--font-num); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.mg-t-lock { font-size: 13px; color: var(--faint); }
.mg-t-on { display: none; gap: 4px; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 700 10.5px/1 var(--font); }
.mg-t-on i { font-size: 10px; }
.tier-card.unlocked-tier .mg-t-on { display: inline-flex; }
.tier-card.unlocked-tier .mg-t-lock { display: none; }
.tier-list { margin: 5px 0 0 !important; text-align: left !important; font: 400 12px/1.45 var(--font) !important; color: var(--faint) !important; }
.tier-card.unlocked-tier {
    background: linear-gradient(180deg, rgba(var(--acc-rgb), 0.09), rgba(var(--acc-rgb), 0.03)) !important;
    border-color: rgba(var(--acc-rgb), 0.70) !important;
}
.tier-card.unlocked-tier .mg-t-name { color: var(--accent); }
.tier-card.unlocked-tier .tier-list { color: var(--muted) !important; }
#tier-status-text.withdraw-usdt-row {
    display: flex !important;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    background: none !important;
    border: none !important;
    color: var(--muted) !important;
    font: 400 12px/1.45 var(--font) !important;
}
#tier-status-text b { color: var(--text); font-weight: 600; }

/* ---------- bottom menu ---------- */
.fixed-bottom-nav {
    z-index: 1100 !important;
    height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 8px env(safe-area-inset-bottom, 0px) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: var(--nav-bg) !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.fixed-nav-btn {
    position: relative;
    width: 66px;
    flex: 0 1 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 0 8px !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--muted) !important;
    font: 500 10.5px/1 var(--font) !important;
    letter-spacing: 0 !important;
}
.fixed-nav-btn i { font-size: 20px !important; color: inherit !important; }
.fixed-nav-btn span { display: block; text-transform: lowercase; }
.fixed-nav-btn span::first-letter { text-transform: uppercase; }
.fixed-nav-btn:active { transform: scale(0.94) !important; background: none !important; }
.fixed-nav-btn.mg-active { color: var(--accent) !important; font-weight: 600 !important; }
.fixed-nav-btn.mg-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 22px;
    height: 3px;
    margin-left: -11px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
}
.fixed-nav-btn.locked-action { opacity: 1 !important; filter: none !important; }
body[data-mg-screen="sheet"] .fixed-bottom-nav { display: none !important; }

/* ---------- pages (modals are fullscreen) ---------- */
.modal-overlay {
    padding: 0 !important;
    /* [2026-10-24] flex-start: the page grows with its content and the modal scrolls down (stretch pinned it to the screen
       height, and the bottom blocks ended up hidden under the menu). A short page is still full
       screen: .modal-content min-height = screen height. */
    align-items: flex-start !important;
    justify-content: center !important;
    background: var(--page) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow-y: auto !important;
}
.modal-content {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 64px;
    align-content: start;
    align-items: center;
    gap: 12px 6px;
    width: 100% !important;
    max-width: 520px !important;
    min-height: var(--app-vh, 100vh) !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 24px !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-align: left !important;
    color: var(--text);
    animation: mgPageIn 0.18s ease-out !important;
}
body[data-mg-screen="bonus-nav"] .modal-content,
body[data-mg-screen="withdraw-nav"] .modal-content,
body[data-mg-screen="history-nav"] .modal-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
.modal-close {
    position: static !important;
    grid-column: 1;
    grid-row: 1;
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text) !important;
    font-size: 15px !important;
    display: grid !important;
    place-items: center;
}
.modal-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    text-align: center !important;
    font: 700 17px/1.2 var(--font-num) !important;
    letter-spacing: -0.01em;
    color: var(--text) !important;
    text-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mg-bar-link, .mg-live, .mg-online { grid-column: 3; grid-row: 1; justify-self: end; }
.mg-bar-link { all: unset; grid-column: 3; grid-row: 1; justify-self: end; cursor: pointer; color: var(--accent); font: 600 12.5px/1.2 var(--font); white-space: nowrap; }
.mg-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(239, 95, 120, 0.12);
    color: var(--bad);
    font: 700 10.5px/1 var(--font);
    letter-spacing: 0.12em;
}
.mg-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--badge); animation: mgBlink 1.4s ease-in-out infinite; }
.mg-online { display: inline-flex; gap: 6px; align-items: center; font: 600 11.5px/1 var(--font); color: var(--pos); white-space: nowrap; }
.mg-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); }
.info-sub-block {
    grid-column: 1 / -1;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    font: 400 14px/1.45 var(--font) !important;
    text-align: left !important;
}
.mg-card, .mg-reward, .mg-avail, .mg-count, .mg-mini-row, .mg-feat {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--glass-shadow);
}
.mg-status, #profile-action-status, #main-withdraw-form-status, #bonus-claim-status, #watch-result-status {
    margin: 0 !important;
    color: var(--muted) !important;
    font: 500 12.5px/1.45 var(--font) !important;
}
.mg-status:empty, #bonus-claim-status:empty, #main-withdraw-form-status:empty, #profile-action-status:empty { display: none; }
.mg-note { display: flex; gap: 7px; align-items: flex-start; margin: 0; color: var(--muted) !important; font: 400 12px/1.45 var(--font) !important; }
.mg-note i { margin-top: 2px; color: var(--faint); font-size: 12px; }
#watch-session-status.mg-note::before { content: "\f05a"; font: 900 12px/1.45 "Font Awesome 6 Free"; color: var(--faint); margin-top: 0; }

/* buttons */
.copy-link-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    height: 50px;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 16px;
    border: none;
    background: var(--grad);
    color: var(--ink);
    font: 700 14.5px/1 var(--font) !important;
    letter-spacing: -0.005em !important;
    box-shadow: var(--btn-shadow);
    transition: transform 0.18s ease;
}
.copy-link-btn i { margin: 0 !important; color: inherit !important; font-size: 16px; }
.copy-link-btn:active { transform: scale(0.97); background: var(--grad); }
.copy-link-btn.mg-btn-ghost {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-weight: 600 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.copy-link-btn.mg-btn-warn { background: rgba(242, 187, 79, 0.06); border: 1px solid rgba(242, 187, 79, 0.36); color: var(--warn); box-shadow: none; font-weight: 600 !important; }
.copy-link-btn.mg-btn-danger { background: rgba(240, 122, 140, 0.06); border: 1px solid rgba(240, 122, 140, 0.36); color: var(--bad); box-shadow: none; font-weight: 600 !important; }
.copy-link-btn.locked-action,
.copy-link-btn:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    font-weight: 600 !important;
}
.mg-row2, .watch-video-controls { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin: 0 !important; }
.watch-video-controls .copy-link-btn { font-size: 14.5px !important; padding: 0 10px !important; }

/* fields */
.mg-fld-lbl, .mg-fld small { display: block; color: var(--muted); font: 500 12px/1.2 var(--font); margin: 0 0 -5px 2px; }
.mg-fld small { margin: 0 0 7px 2px; }
.referral-box {
    height: 42px;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
    font: 400 12.5px/40px var(--font) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal !important;
    cursor: pointer;
}
.withdraw-wallet-input,
.support-input-row input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--text) !important;
    font: 600 15px var(--font-num) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.30);
    outline: none;
}
.withdraw-wallet-input[type="text"], .support-input-row input { font: 400 14px var(--font) !important; }
.withdraw-wallet-input:focus,
.support-input-row input:focus {
    border-color: rgba(var(--acc-rgb), 0.80) !important;
    box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.30);
}
.withdraw-wallet-input::placeholder, .support-input-row input::placeholder { color: var(--faint); font: 400 14px var(--font); }
.withdraw-wallet-input.is-invalid { border-color: rgba(240, 122, 140, 0.7) !important; }
.mg-inp-wrap { position: relative; }
.mg-inp-wrap input { padding-right: 70px !important; }
.mg-max {
    all: unset;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(var(--acc-rgb), 0.12);
    color: var(--accent);
    font: 700 10.5px/1 var(--font);
    letter-spacing: 0.08em;
    cursor: pointer;
}
.mg-fee { display: flex; justify-content: space-between; gap: 8px; padding: 0 2px; font: 400 12.5px/1.3 var(--font); color: var(--muted); }
.mg-fee b { color: var(--text); font: 700 13px var(--font-num); }
.mg-form { display: flex; flex-direction: column; gap: 12px; }
/* JS sets style="display:block" on this box (flex gap doesn't work) — spacing via margin */
#main-withdraw-form-box > * + * { margin-top: 12px; }
/* [2026-10-25] The button and the status text below it stuck to the text above/below (.copy-link-btn and .mg-status
   had margin: 0 !important) — now they are clearly separated. */
#main-withdraw-form-box > #main-withdraw-submit-btn { margin-top: 16px !important; }
#main-withdraw-form-box > #main-withdraw-form-status { margin-top: 12px !important; text-align: center; }
#withdraw-status-card #lock-timer, .withdraw-open-card #lock-timer { color: var(--text) !important; text-shadow: none !important; }

/* profile */
.mg-prof { display: grid; justify-items: center; gap: 4px; padding: 4px 0 2px; }
.mg-prof > b { font: 700 20px/1.25 var(--font-num); letter-spacing: -0.015em; color: var(--text); }
.mg-idrow { display: flex; gap: 8px; align-items: center; color: var(--muted); font: 500 13px/1.3 var(--font); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.mg-ib-sm { all: unset; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.mg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-data-field {
    display: block !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow);
}
.profile-data-label { display: block; color: var(--muted) !important; font: 500 11.5px/1.2 var(--font) !important; }
.profile-data-value { display: block; margin-top: 4px; color: var(--text) !important; font: 700 19px/1.15 var(--font-num) !important; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.profile-data-field.mg-pos .profile-data-value { color: var(--pos) !important; }
#watchResultModal .profile-data-field { display: flex !important; justify-content: space-between; align-items: baseline; }
#watchResultModal .profile-data-value { margin: 0; font-size: 17px !important; }

/* notifications */
.notification-list { display: grid !important; gap: 8px !important; max-height: none !important; overflow: visible !important; padding: 0 !important; }
.notification-item {
    position: relative;
    display: grid !important;
    grid-template-columns: 40px 1fr;
    gap: 12px !important;
    padding: 13px 14px !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow);
}
.notification-title { display: block; color: var(--text) !important; font: 600 14px/1.3 var(--font) !important; padding-right: 10px; }
.notification-body { color: var(--muted) !important; font: 400 13px/1.45 var(--font) !important; margin: 3px 0 6px; }
.notification-date { color: var(--faint) !important; font: 400 11.5px/1.3 var(--font) !important; }
.notification-empty, .history-empty { color: var(--muted) !important; font: 500 13px/1.45 var(--font) !important; text-align: center; padding: 18px 6px !important; }
.mg-n-ic, .mg-li-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(var(--acc-rgb), 0.08);
    color: var(--accent);
    border: 1px solid rgba(var(--acc-rgb), 0.12);
    font-size: 16px;
}
.mg-n-ic.gold, .mg-li-ic.gold { background: rgba(var(--gold-rgb), 0.08); color: var(--gold); border-color: rgba(var(--gold-rgb), 0.14); }
.mg-n-ic.blue { background: rgba(110, 185, 235, 0.08); color: #7CC0EC; border-color: rgba(110, 185, 235, 0.14); }

/* settings */
.mg-sec-lbl, .lang-label { display: block; color: var(--faint) !important; font: 600 10.5px/1 var(--font) !important; letter-spacing: 0.14em !important; text-transform: uppercase; margin: 2px 0 -4px 6px !important; }
.mg-opts, .lang-btn-row {
    display: grid !important;
    gap: 2px !important;
    padding: 5px !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--glass-shadow);
}
.lang-opt-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px !important;
    height: 40px;
    min-height: 40px;
    padding: 0 10px !important;
    border-radius: 12px !important;
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font: 500 14px var(--font) !important;
    box-shadow: none !important;
    text-align: left;
}
.mg-code { width: 30px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.06); font: 700 10.5px/1 var(--font); letter-spacing: 0.04em; color: var(--muted); }
.lang-opt-btn.active { background: rgba(var(--acc-rgb), 0.08) !important; box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.20) !important; color: var(--text) !important; }
.lang-opt-btn.active .mg-code { background: rgba(var(--acc-rgb), 0.14); color: var(--accent); }
.lang-opt-btn.active::after { content: "\f00c"; margin-left: auto; font: 900 13px/1 "Font Awesome 6 Free"; color: var(--accent); }
.mg-toggles, .mg-links { padding: 2px 14px; }
.mg-tg { display: flex; justify-content: space-between; align-items: center; height: 48px; font: 500 14px var(--font); color: var(--text); cursor: pointer; }
.mg-tg + .mg-tg { border-top: 1px solid var(--line); }
.mg-sw {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 44px;
    height: 26px;
    margin: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.25s ease;
}
.mg-sw::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.mg-sw:checked { background: var(--accent); }
.mg-sw:checked::after { transform: translateX(18px); }
.mg-sw:disabled { opacity: 0.6; }
.support-link-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--text) !important;
    font: 500 14px var(--font) !important;
}
.mg-links .support-link-btn + .support-link-btn { border-top: 1px solid var(--line) !important; }
.mg-link-main { display: flex; align-items: center; gap: 12px; }
.mg-link-main i, #lbl-support-btn i { color: var(--muted) !important; margin-right: 6px; }
.mg-chev { color: var(--faint) !important; font-size: 12px !important; }
.support-badge { background: var(--badge) !important; }
.support-link-btn.mg-card { padding: 0 14px !important; border-radius: var(--radius) !important; border: 1px solid var(--line) !important; background: var(--surface) !important; }

/* about */
.mg-about { align-items: stretch; gap: 10px !important; }
.mg-about-logo { width: 68px; height: 68px; margin: 4px auto 0; filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), 0.18)); }
.mg-word { text-align: center; font: 800 19px/1 var(--font-num); letter-spacing: 0.24em; margin: 6px -0.24em 0 0; color: var(--text); }
.mg-ver { display: block; text-align: center; color: var(--faint); font: 500 12px var(--font); margin-top: -2px; }
.mg-lead { margin: 2px 0 4px; text-align: center; font: 400 14.5px/1.5 var(--font); color: var(--muted); padding: 0 10px; }
.mg-feat { list-style: none; margin: 0; padding: 4px 14px; }
.mg-feat li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.mg-feat li + li { border-top: 1px solid var(--line); }
.mg-feat .mg-li-ic { font-size: 14px; }
.mg-feat b { display: block; font: 600 14px/1.3 var(--font); color: var(--text); }
.mg-feat small { display: block; color: var(--muted); font: 400 12.5px/1.45 var(--font); }

/* support chat */
.support-chat-box { display: flex !important; flex-direction: column; gap: 8px !important; max-height: none !important; min-height: calc(var(--app-vh, 100vh) - 190px); overflow: visible !important; margin: 0 !important; padding-top: 4px; }
.chat-msg { max-width: 82%; padding: 10px 13px !important; border-radius: 18px !important; font: 400 13.5px/1.45 var(--font) !important; }
.chat-msg.support { align-self: flex-start; background: rgba(255, 255, 255, 0.07) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-bottom-left-radius: 6px !important; }
.chat-msg.user { align-self: flex-end; background: var(--grad) !important; color: var(--ink) !important; font-weight: 500 !important; border: none !important; border-bottom-right-radius: 6px !important; }
.chat-msg.user .support-message-time { color: rgba(5, 32, 25, 0.62) !important; }
.support-message-time { color: var(--faint) !important; }
.support-input-row { display: grid !important; grid-template-columns: 1fr 48px; gap: 8px !important; position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.support-input-row input { border-radius: 24px !important; padding: 0 18px !important; }
.support-input-row button { width: 48px !important; height: 48px; border-radius: 50% !important; border: none !important; background: var(--grad) !important; color: var(--ink) !important; box-shadow: var(--btn-shadow); }
.support-chat-status { color: var(--muted) !important; font: 500 11.5px/1.4 var(--font) !important; margin: -4px 0 0 !important; }
/* [2026-10-28] Support — stays still like a regular SMS chat: the modal is fixed at screen height, the page doesn't scroll, only
   the message list scrolls, the input row is always at the bottom. Previously the page itself scrolled: when the list refreshed,
   the keyboard appeared or the Telegram window size changed (--app-vh), the page jumped as if rising again from the bottom. */
#supportChatModal.modal-overlay { overflow: hidden !important; overscroll-behavior: none; }
#supportChatModal .modal-content {
    height: var(--app-vh, 100vh);
    min-height: 0 !important;
    grid-template-rows: auto minmax(0, 1fr);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
    animation: none !important;
}
#supportChatModal .info-sub-block { min-height: 0; height: 100%; gap: 8px; }
#supportChatModal .support-chat-box {
    flex: 1 1 auto;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 6px;
}
#supportChatModal .chat-msg { flex-shrink: 0; }
#supportChatModal .support-input-row { position: static !important; flex: 0 0 auto; }

/* video page */
.watch-screen .modal-content { padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important; justify-content: initial !important; display: grid !important; }
.watch-player-frame { border-radius: var(--radius) !important; border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35); background: #000 !important; }
.modal-overlay:not(.watch-pseudo-fullscreen) .watch-fullscreen-btn { display: none !important; }
/* [2026-11-09] iPhone (owner's IMG_5045 video) and Android: while a video was open, everything except the player kept disappearing and reappearing every second
   — the compositor alternately painted the scroll-container layer (which contains the YouTube iframe) as empty on every "Подтверждено Ns" update.
   The layer is promoted to its own plane (translateZ + backface); the player frame is a separate stacking context. */
.watch-screen:not(.watch-pseudo-fullscreen) .modal-content { -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.watch-player-frame { isolation: isolate; -webkit-transform: translateZ(0); transform: translateZ(0); }
.mg-reward { padding: 14px 16px 13px; text-align: center; }
.mg-reward > small { display: block; color: var(--accent); font: 600 10.5px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.mg-reward-amt { margin: 6px 0 2px; font: 800 42px/1.08 var(--font-num); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.mg-rw { display: flex; justify-content: center; gap: 16px; font: 400 12px/1.3 var(--font); color: var(--muted); }
.mg-rw > span { display: inline-flex; gap: 5px; align-items: center; font-variant-numeric: tabular-nums; }
.mg-rw i { font-size: 11px; }
.mg-mini-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font: 400 13px/1.3 var(--font); }
.mg-mini-row > span { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); }
.mg-mini-row b { color: var(--accent); font: 700 13.5px/1.3 var(--font-num); white-space: nowrap; }
.mg-upnext > small { display: block; color: var(--faint); font: 600 10.5px/1 var(--font); letter-spacing: 0.14em; margin: 2px 0 8px 4px; }
.mg-un {
    all: unset;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}
.mg-un b { font: 600 13.5px/1.3 var(--font); color: var(--text); }
.mg-th { width: 74px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 13px; background-color: #0a1014; background-size: cover; background-position: center; box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.25); }

/* bonus page */
.bonus-stat-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin: 0 !important; }
.bonus-stat-card {
    padding: 12px 14px !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow);
    text-align: left !important;
}
.bonus-stat-card .lbl { display: block; color: var(--muted) !important; font: 500 11.5px/1.2 var(--font) !important; }
.bonus-stat-card .num { display: block; margin-top: 4px; color: var(--text) !important; font: 700 19px/1.15 var(--font-num) !important; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.mg-count { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.mg-count > small { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font: 400 13px/1.3 var(--font); }
.mg-count > small i { color: var(--gold); }
.mg-count .countdown-container { margin: 0 !important; }
.timer-display, #lock-timer, #bonus-timer {
    margin: 0 !important;
    color: var(--text) !important;
    text-shadow: none !important;
    font: 700 21px/1.1 var(--font-num) !important;
    letter-spacing: 0.02em !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#mg-bonus-frames .fb-cell { cursor: default; }

/* withdrawal page */
.mg-win {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: rgba(240, 122, 140, 0.06);
    border: 1px solid rgba(240, 122, 140, 0.28);
}
.mg-win-title { display: block; color: var(--bad) !important; font: 600 14px/1.3 var(--font); }
.mg-win small { display: block; color: var(--muted); font: 400 12px/1.4 var(--font); }
.mg-pulse { position: relative; width: 10px; height: 10px; flex: none; margin: 0 2px; border-radius: 50%; background: var(--bad); }
.mg-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: mgPing 2.2s ease-out infinite; }
#withdraw-status-card.withdraw-open-card { border: none !important; background: none !important; box-shadow: none !important; }
#withdraw-status-card.withdraw-open-card .mg-win { background: rgba(var(--acc-rgb), 0.07); border-color: rgba(var(--acc-rgb), 0.28); }
#withdraw-status-card.withdraw-open-card .mg-win-title { color: var(--pos) !important; }
#withdraw-status-card.withdraw-open-card .mg-pulse { background: var(--pos); }
.window-date-card { margin: 0 !important; text-align: left !important; }
.window-date-card .window-date-label { display: block; color: var(--muted) !important; font: 400 12px/1.3 var(--font) !important; letter-spacing: 0 !important; text-transform: none !important; margin: 0 !important; }
.window-date-card .window-date-value { display: block; color: var(--text) !important; font: 700 13.5px/1.35 var(--font-num) !important; }
.mg-avail { padding: 14px 16px; }
.mg-avail > small:first-child { display: block; color: var(--muted); font: 600 10.5px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.mg-avail-amt { margin: 6px 0 0; font: 800 32px/1.08 var(--font-num); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.mg-unit { font: 600 0.5em var(--font-num); color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.mg-avail .mg-prog { margin: 8px 0 6px; }
.mg-avail-note { display: block; color: var(--muted); font: 500 12px/1.4 var(--font); }
.withdraw-usdt-row { margin: 0 !important; padding: 12px 14px !important; border-radius: var(--radius) !important; background: rgba(var(--acc-rgb), 0.06) !important; border: 1px solid rgba(var(--acc-rgb), 0.22) !important; color: var(--text) !important; font: 500 13px/1.45 var(--font) !important; }
.withdraw-locked-row, .withdraw-extra-row {
    margin: 0 !important;
    padding: 0 2px !important;
    border: none !important;
    background: none !important;
    color: var(--muted) !important;
    font: 400 12.5px/1.45 var(--font) !important;
    text-align: left !important;
}
.withdraw-locked-row::after { display: none !important; }
#main-withdraw-form-box[style*="display: none"], #main-withdraw-form-box[style*="display:none"] { display: none !important; }

/* history page */
.mg-fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-fchips button {
    all: unset;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font: 500 13px/1 var(--font);
    color: var(--muted);
    cursor: pointer;
}
.mg-fchips button.on { background: var(--text); color: var(--edge); border-color: transparent; font-weight: 600; }
.history-list { display: grid !important; gap: 8px !important; max-height: none !important; overflow: visible !important; padding: 0 !important; }
.history-item {
    padding: 11px 12px !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}
.mg-h-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.mg-h-main b { display: block; margin: 0 !important; color: var(--text) !important; font: 600 14px/1.3 var(--font); }
.mg-h-main small { color: var(--faint); font: 400 12px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.mg-h-r { display: grid; gap: 5px; justify-items: end; text-align: right; }
.mg-h-r b { display: block; margin: 0 !important; color: var(--text) !important; font: 700 14.5px/1.2 var(--font-num); letter-spacing: -0.01em; white-space: nowrap; }
.mg-h-r b.mg-pos { color: var(--pos) !important; }
.mg-h-details { display: none; margin-top: 8px; }
.history-item.mg-open .mg-h-details { display: block; }
.receipt-row { border-top: 1px solid rgba(255, 255, 255, 0.07) !important; padding-top: 7px !important; margin-top: 7px !important; font: 400 12px/1.4 var(--font); }
.receipt-label { color: var(--muted) !important; font-weight: 500 !important; }
.receipt-value { color: var(--text) !important; font: 600 12px/1.4 var(--font) !important; overflow-wrap: anywhere; }
.receipt-status {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    height: 20px;
    max-width: none !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font: 600 10.5px/1 var(--font) !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}
.receipt-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.receipt-status.verified, .receipt-status.approved, .receipt-status.completed,
.receipt-status.paid, .receipt-status.auto_paid, .receipt-status.success { color: var(--pos) !important; background: rgba(var(--acc-rgb), 0.10) !important; }
.receipt-status.pending, .receipt-status.processing, .receipt-status.queued, .receipt-status.requested { color: var(--warn) !important; background: rgba(242, 187, 79, 0.11) !important; }
.receipt-status.rejected, .receipt-status.failed, .receipt-status.error, .receipt-status.cancelled { color: var(--bad) !important; background: rgba(240, 122, 140, 0.11) !important; }

/* other */
#copy-status { color: var(--accent) !important; font-weight: 600 !important; text-align: center; }

/* ---------- motion ---------- */
@keyframes mgDrift { from { transform: translate3d(-4%, -2%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(6deg); } }
@keyframes mgSpin { to { transform: rotate(360deg); } }
@keyframes mgBlink { 50% { opacity: 0.25; } }
@keyframes mgBreath { 50% { opacity: 1; } }
@keyframes mgSweep { 0% { transform: translateX(-130%) skewX(-14deg); } 24%, 100% { transform: translateX(330%) skewX(-14deg); } }
@keyframes mgFrSweep { 0% { transform: translateX(-130%); } 16%, 100% { transform: translateX(230%); } }
@keyframes mgInvite { 50% { border-color: rgba(69, 230, 196, 0.42); color: rgba(255, 255, 255, 0.5); } }
@keyframes mgUnlock { 0% { transform: scale(1); } 35% { transform: scale(0.9); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes mgRing { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
@keyframes mgFloatUp { 0% { opacity: 0; transform: translate(-50%, 8px); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -24px); } }
@keyframes mgFloat { 0% { opacity: 0; transform: translateY(8px); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
@keyframes mgMoneyIn { 25% { color: var(--accent); } }
@keyframes mgRise { from { opacity: 0; transform: translateY(12px); } }
/* [2026-10-29] Fade-in only: previously it rose from 10px below — when switching between modals in the bottom menu
   the whole page seemed to jump down (pages are fullscreen). The content doesn't move. */
@keyframes mgPageIn { from { opacity: 0; } }
@keyframes mgBadge { 0% { transform: scale(1); opacity: 0.8; } 60%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mgPing { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes mgBarGloss { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
/* on open the cards appear softly one after another (once) */
.main-container > * { animation: mgRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.main-container > :nth-child(2) { animation-delay: 0.05s; }
.main-container > :nth-child(3) { animation-delay: 0.10s; }
.main-container > :nth-child(4) { animation-delay: 0.15s; }
.main-container > :nth-child(5) { animation-delay: 0.20s; }
.main-container > :nth-child(6) { animation-delay: 0.25s; }
.main-container > :nth-child(n+7) { animation-delay: 0.30s; }
@media (prefers-reduced-motion: reduce) {
    body::before, .main-container > *, .balance-bonus-row .balance-card::after, .fb-cell, .fb-cell::before, .fb-sh::before,
    .hamster-clicker-btn::after, .vp-hero-shine::before, .clicker-box::before, .badge::after, .modal-content, .balance-amount,
    .fb-ring, .fb-float, .mg-money-float, .mg-prog i::after, .mg-pulse::after, .mg-live i {
        animation: none !important;
    }
}
@media (max-width: 360px) {
    .balance-amount { font-size: 38px !important; }
    .account-profile-btn .top-user-name, .account-profile-btn .top-user-id { max-width: 40vw !important; }
    .fb-cell { font-size: 11px !important; }
}

/* [2026-10-24] No blue rectangular frame on tap: the button itself gets pressed (:active). */
html, body, body * { -webkit-tap-highlight-color: transparent !important; }
*:focus, *:focus-visible { outline: none !important; }
.mg-un:active, .mg-seg button:active, .mg-dlg-btn:active, .mg-auth-btn:active, .mg-link-btn:active,
.referral-box[data-vp-click]:active, .watch-fullscreen-btn:active, .mg-ib-sm:active, .mg-bar-link:active,
.mg-fchips button:active, .lang-opt-btn:active, .mg-tg:active, .receipt-item:active, .history-item:active {
    transform: scale(0.97);
}
.mg-un, .mg-seg button, .mg-dlg-btn, .mg-auth-btn, .mg-link-btn, .referral-box[data-vp-click], .mg-ib-sm, .mg-bar-link,
.mg-fchips button, .lang-opt-btn, .mg-tg { transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease; }

/* Bonus modal: users who came via the link and active friends (no limit) */
.mg-friend-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-fstat { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glass-shadow); }
.mg-fstat small { display: block; color: var(--muted); font: 500 11.5px/1.2 var(--font); }
.mg-fstat b { display: block; margin-top: 4px; color: var(--text); font: 700 19px/1.15 var(--font-num); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.mg-fstat.on b { color: var(--accent); }
.mg-no-limit { display: flex; gap: 7px; align-items: center; margin: -2px 2px 0; color: var(--muted); font: 400 12.5px/1.4 var(--font); }
.mg-no-limit .ic { color: var(--accent); }

.referral-box.mg-ref-tap { cursor: pointer; }

/* [2026-10-24] The 0.50 frames on the main screen: a soft light wave passes over all cells from left to right in turn
   (every ~6 s), brighter on active cells; the locked "0.50" and the lock icon
   breathe slowly. Only opacity/transform — crisp, doesn't heat the phone; turned off under reduced-motion. */
#friend-boost .fb-cell .fb-sh::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 55%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.10) 50%, transparent);
    transform: translateX(-130%);
    animation: mgFrWave 6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
    animation-delay: calc(var(--i, 0) * 0.16s);
}
#friend-boost .fb-cell.is-active .fb-sh::before {
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.30) 50%, transparent);
}
#friend-boost .fb-cell.is-locked .fb-lock {
    animation: mgLockBreath 3.2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}
@keyframes mgFrWave {
    0%, 60% { transform: translateX(-130%); }
    85%, 100% { transform: translateX(240%); }
}
@keyframes mgLockBreath {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
    #friend-boost .fb-cell .fb-sh::before, #friend-boost .fb-cell.is-locked .fb-lock { animation: none !important; }
}

/* Bonus modal: each friend — active, or how many minutes they watched */
.mg-flist { padding: 2px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glass-shadow); }
.mg-flist[hidden] { display: none !important; }
.mg-fl-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.mg-fl-row + .mg-fl-row { border-top: 1px solid var(--line); }
.mg-fl-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--acc-rgb), 0.12); color: var(--accent); font: 800 14px/1 var(--font-num); border: 1px solid rgba(var(--acc-rgb), 0.3); }
.mg-fl-txt { display: grid; gap: 3px; flex: 1; min-width: 0; }
.mg-fl-txt b { font: 600 14px/1.25 var(--font); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-fl-txt small { color: var(--muted); font: 400 12px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.mg-fl-bar { display: block; height: 4px; margin-top: 2px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mg-fl-bar > i { position: relative; display: block; height: 100%; border-radius: inherit; background: var(--gold); overflow: hidden; transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* [2026-10-25] The friend bar also "fills up": a soft light passes through it. */
.mg-fl-bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: translateX(-100%); animation: mgBarGloss 2.8s ease-in-out 0.6s infinite; }

/* [2026-10-28] Bonus modal: friend bonus by tier. The current tier row has a green border and a "Your tier" badge. */
.mg-tier-bonus { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glass-shadow); }
.mg-tb-head { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; color: var(--text); font: 600 13.5px/1.3 var(--font); }
.mg-tb-head .ic { color: var(--accent); flex: none; }
.mg-tb-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; }
.mg-tb-row + .mg-tb-row { margin-top: 4px; }
.mg-tb-name { color: var(--text); font: 600 13.5px/1.2 var(--font); }
.mg-tb-you { display: none; padding: 2px 7px; border-radius: 999px; background: rgba(var(--acc-rgb), 0.14); color: var(--accent); font: 600 10.5px/1.3 var(--font); font-style: normal; white-space: nowrap; }
.mg-tb-amt { margin-left: auto; color: var(--text); font: 700 15px/1.2 var(--font-num); font-variant-numeric: tabular-nums; }
.mg-tb-row.is-current { background: rgba(var(--acc-rgb), 0.07); border-color: rgba(var(--acc-rgb), 0.35); }
.mg-tb-row.is-current .mg-tb-you { display: inline-block; }
.mg-tb-row.is-current .mg-tb-amt { color: var(--accent); }
.mg-tb-note { margin: 8px 2px 0; color: var(--muted); font: 400 12px/1.45 var(--font); }
.mg-fl-tier { color: var(--accent); font-weight: 600; }

/* [2026-10-25] Daily goal / available balance bars: a slow "flow" is visible even in the empty part (live),
   the filled part grows smoothly (vidipay-app.js animateMintBar). */
.mg-prog { position: relative; }
.mg-prog::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), 0.10), transparent); transform: translateX(-100%); animation: mgBarGloss 4.2s ease-in-out infinite; pointer-events: none; }
.mg-prog i { z-index: 1; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.mg-prog i::after { animation-duration: 2.8s; animation-delay: 0.9s; }

/* [2026-10-25] No fee: "You receive" stays on the right side. */
.mg-fee > span:last-child { margin-left: auto; }
.mg-fee > span[hidden], #mg-fee-label[hidden] { display: none !important; }

/* [2026-10-25] History — bank statement row (tap -> receipt) */
.mg-h-row.has-chev { grid-template-columns: 40px minmax(0, 1fr) auto 10px; }
.mg-h-main { min-width: 0; }
.mg-h-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-h-chev { color: var(--faint); font: 600 18px/1 var(--font); justify-self: end; }
.history-item.mg-h-tap { transition: transform 0.12s ease, border-color 0.15s ease; }
.history-item.mg-h-tap:active { transform: scale(0.985); border-color: rgba(var(--acc-rgb), 0.35) !important; }

/* [2026-10-25] Receipt (B — app style): header, large amount, perforated line, rows, Copy / Share */
.mg-rcpt-ov { align-items: center; }
.mg-rcpt {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px 18px 16px;
    border-radius: 22px;
    background: linear-gradient(170deg, #15262D 0%, #0F1C21 100%);
    border: 1px solid rgba(var(--acc-rgb), 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    color: var(--text);
    animation: mgRcptIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes mgRcptIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.mg-rcpt-x { all: unset; position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.mg-rcpt-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding-right: 38px; }
.mg-rcpt-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: var(--ink); }
.mg-rcpt-logo.gold { background: linear-gradient(135deg, #F7D77E 0%, #EFC14F 60%, #D9A532 100%); color: #2A1E02; }
.mg-rcpt-t { display: grid; gap: 2px; min-width: 0; }
.mg-rcpt-t b { font: 700 15.5px/1.25 var(--font-num); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-rcpt-t small { color: var(--muted); font: 400 12px/1.3 var(--font); }
.mg-rcpt-st { padding: 4px 10px; border-radius: 999px; font: 700 11.5px/1.2 var(--font); white-space: nowrap; color: var(--warn); background: rgba(var(--gold-rgb), 0.12); }
.mg-rcpt-st.completed, .mg-rcpt-st.verified { color: var(--accent); background: rgba(var(--acc-rgb), 0.12); }
.mg-rcpt-st.rejected { color: var(--bad); background: rgba(240, 122, 140, 0.12); }
.mg-rcpt-lbl { margin-top: 18px; color: var(--muted); font: 500 12px/1.3 var(--font); }
.mg-rcpt-amt { margin-top: 2px; font: 800 34px/1.1 var(--font-num); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.mg-rcpt-amt.pos { color: var(--accent); }
.mg-rcpt-amt.muted { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.mg-rcpt-date { margin-top: 4px; color: var(--muted); font: 400 12.5px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.mg-rcpt-perf { position: relative; height: 0; margin: 16px -18px; border-top: 1.5px dashed rgba(var(--acc-rgb), 0.28); }
.mg-rcpt-perf::before, .mg-rcpt-perf::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: #070D10; }
.mg-rcpt-perf::before { left: -8px; }
.mg-rcpt-perf::after { right: -8px; }
.mg-rcpt-rows { display: grid; gap: 2px; }
.mg-rcpt-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 6px 0; font: 400 13px/1.4 var(--font); }
.mg-rcpt-row span { color: var(--muted); flex: none; }
.mg-rcpt-row b { color: var(--text); font: 600 13px/1.4 var(--font); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.mg-rcpt-row b.mono { font: 600 12px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.01em; }
.mg-rcpt-row.strong span { color: var(--text); font-weight: 600; }
.mg-rcpt-row.strong b { font: 800 14.5px/1.3 var(--font-num); }
.mg-rcpt-row b.acc { color: var(--accent); }
.mg-rcpt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mg-rcpt-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: 14px; font: 700 14px/1.2 var(--font); color: var(--text); border: 1px solid rgba(var(--acc-rgb), 0.3); cursor: pointer; text-align: center; }
.mg-rcpt-btn.pri { background: var(--grad); color: var(--ink); border-color: transparent; box-shadow: var(--btn-shadow); }
.mg-rcpt-btn:active, .mg-rcpt-x:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
    .mg-rcpt, .mg-prog::before, .mg-fl-bar > i::after { animation: none !important; }
}
.mg-fl-st { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font: 700 12px/1 var(--font-num); color: var(--gold); background: rgba(var(--gold-rgb), 0.1); border: 1px solid rgba(var(--gold-rgb), 0.3); font-variant-numeric: tabular-nums; }
.mg-fl-st.on { color: var(--accent); background: rgba(var(--acc-rgb), 0.1); border-color: rgba(var(--acc-rgb), 0.35); }
.mg-fl-more, .mg-fl-empty { padding: 11px 0; color: var(--muted); font: 400 12.5px/1.45 var(--font); text-align: center; }
.mg-fl-row + .mg-fl-more { border-top: 1px solid var(--line); }

/* Profile picture: tappable round avatar + camera icon */
.mg-ava-edit { all: unset; position: relative; display: block; border-radius: 50%; cursor: pointer; margin-bottom: 8px; }
.mg-ava-edit .mg-ava.xl { margin-bottom: 0; }
.mg-ava-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #16262A; color: var(--accent); border: 1px solid rgba(var(--acc-rgb), 0.45); box-shadow: 0 0 0 3px var(--edge); }
.mg-ava-edit.is-busy { opacity: 0.6; pointer-events: none; }
.mg-ava-edit.is-busy .mg-ava-cam { animation: mgPulseCam 0.9s ease-in-out infinite alternate; }
.mg-ava-edit:active { transform: scale(0.97); }
.mg-ava.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; color: transparent; }
@keyframes mgPulseCam { from { opacity: 0.45; } to { opacity: 1; } }

/* Watch modal: previously watched videos and income from each */
.mg-wb { cursor: default; }
.mg-wb-txt { display: grid; gap: 3px; min-width: 0; flex: 1; }
.mg-wb-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-wb-txt small { color: var(--muted); font: 400 12px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.mg-wb em { flex: none; font: 700 14px/1 var(--font-num); font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; padding-right: 4px; }

/* Confirmation modals (delete account, log out) */
.mg-dlg-ov { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(3, 6, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: mgFadeIn 0.18s ease-out; }
.mg-dlg-ov[hidden] { display: none !important; }
.mg-dlg { width: 100%; max-width: 400px; box-sizing: border-box; background: linear-gradient(160deg, #15222a 0%, #0b1418 100%); border: 1px solid rgba(240, 122, 140, 0.45); border-radius: 22px; padding: 22px 18px 16px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); color: var(--text); }
.mg-dlg.info { border-color: rgba(var(--acc-rgb), 0.45); }
.mg-dlg > .ic { margin: 0 auto; }
.mg-dlg h4 { margin: 8px 0; font: 700 19px/1.25 var(--font-num); color: #fff; }
.mg-dlg p { margin: 0 0 12px; color: #cbd5e1; font: 400 14px/1.5 var(--font); white-space: pre-wrap; text-align: left; }
.mg-dlg-amt { display: inline-block; margin: 2px 0 12px; padding: 6px 12px; border-radius: 10px; background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.4); color: var(--gold); font: 800 22px var(--font-num); font-variant-numeric: tabular-nums; }
.mg-dlg-acts { display: grid; gap: 8px; }
.mg-dlg-btn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 13px; border-radius: 14px; font: 700 14.5px/1.2 var(--font); text-align: center; cursor: pointer; }
.mg-dlg-btn.yes { background: #ef4444; color: #fff; }
.mg-dlg-btn.out { background: #f59e0b; color: #1a1205; }
.mg-dlg-btn.no { border: 1px solid rgba(var(--acc-rgb), 0.45); color: var(--accent); }
.mg-dlg-btn[disabled] { opacity: 0.6; pointer-events: none; }
.mg-idc { margin: 4px 0 12px; padding: 12px; border-radius: 14px; background: rgba(var(--acc-rgb), 0.08); border: 1px dashed rgba(var(--acc-rgb), 0.55); }
.mg-idc small { color: var(--accent); font: 800 12px/1.2 var(--font); letter-spacing: 0.04em; }
.mg-idc div { font: 800 26px/1.2 var(--font-num); letter-spacing: 0.1em; margin: 4px 0 8px; color: #fff; font-variant-numeric: tabular-nums; word-break: break-all; }
.mg-idc .mg-dlg-btn { padding: 9px; border-radius: 11px; background: rgba(var(--acc-rgb), 0.16); color: var(--accent); font-weight: 800; }
.mg-dlg-status { margin: 0 0 10px !important; text-align: center !important; color: var(--bad) !important; }
.mg-dlg-status:empty { display: none; }
.mg-dlg-status.ok { color: var(--accent) !important; }

/* Login modal (sample: Log in / First time) */
.mg-auth { position: fixed; inset: 0; z-index: 9400; overflow-y: auto; background: var(--page); padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px); animation: mgFadeIn 0.2s ease-out; }
.mg-auth[hidden] { display: none !important; }
.mg-auth-in { display: flex; flex-direction: column; gap: 10px; min-height: 100%; max-width: 440px; margin: 0 auto; box-sizing: border-box; }
.mg-auth-lg { width: 84px; height: 84px; margin: 0 auto; filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), 0.18)); }
.mg-auth-lg svg { width: 100%; height: 100%; display: block; }
.mg-auth-word { text-align: center; font: 800 23px/1 var(--font-num); letter-spacing: 0.24em; margin: 6px -0.24em 0 0; color: var(--text); }
.mg-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 15px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); margin: 10px 0 4px; }
.mg-seg button { all: unset; box-sizing: border-box; text-align: center; height: 38px; border-radius: 11px; font: 600 13.5px/38px var(--font); color: var(--muted); cursor: pointer; }
.mg-seg button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.25); }
.mg-auth-pane { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mg-auth-pane[hidden] { display: none !important; }
.mg-auth h3 { margin: 8px 0 0; text-align: center; font: 700 24px/1.2 var(--font-num); letter-spacing: -0.02em; color: var(--text); }
.mg-auth p { margin: 0; text-align: center; font: 400 13.5px/1.5 var(--font); color: var(--muted); }
.mg-auth-fld small { display: block; color: var(--muted); font: 500 12px/1.2 var(--font); margin: 0 0 7px 2px; }
.mg-auth-input { width: 100%; box-sizing: border-box; height: 58px; padding: 0 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-strong); color: var(--text); font: 700 24px var(--font-num); letter-spacing: 0.12em; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.30); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.mg-auth-input::placeholder { color: var(--faint); letter-spacing: 0.04em; font-weight: 600; font-size: 18px; }
.mg-auth-input:focus { border-color: rgba(var(--acc-rgb), 0.80); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.30); }
.mg-auth-input.bad { border-color: rgba(240, 122, 140, 0.8); box-shadow: 0 0 0 3px rgba(240, 122, 140, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.30); }
.mg-auth .mg-auth-err { color: var(--bad); font-size: 12.5px; }
.mg-auth .mg-auth-err:empty { display: none; }
.mg-auth-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 16px; background: var(--grad); color: var(--ink); font: 700 14.5px/1 var(--font); box-shadow: var(--btn-shadow); cursor: pointer; }
.mg-auth-pt { padding: 11px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glass-shadow); font: 400 13.5px/1.45 var(--font); color: var(--text); text-align: left; }
.mg-link-btn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 4px 0; text-align: center; color: var(--accent); font: 700 13.5px/1.5 var(--font); cursor: pointer; }
.mg-auth .mg-auth-hint { margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 12px; }
body.mg-auth-open { overflow: hidden !important; }
#copy-toast { width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center; z-index: 9600 !important; }
@keyframes mgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mg-dlg-ov, .mg-auth { animation: none !important; } }

/* [2026-10-25] USDT (TRC20) withdrawal: the up-to-3-business-days note and the "Action in progress, please wait" card. */
.mg-wd-eta { display: flex; gap: 7px; align-items: flex-start; margin: 0; padding: 0 2px; color: var(--muted); font: 400 12px/1.45 var(--font); }
.mg-wd-eta .ic { flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
/* [2026-10-31] Money earned in Tier 1 only via Tier 1: warning and a dimmed form (not clickable). */
.mg-wd-tier1-gate { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: rgba(var(--gold-rgb), 0.12); border: 1px solid rgba(var(--gold-rgb), 0.38); color: var(--gold); font: 600 13px/1.45 var(--font); }
.mg-wd-tier1-gate[hidden] { display: none; }
.mg-wd-tier1-gate .ic { flex: 0 0 auto; margin-top: 1px; }
#main-withdraw-form-box.is-tier1-locked .mg-fld,
#main-withdraw-form-box.is-tier1-locked .mg-fee,
#main-withdraw-form-box.is-tier1-locked #main-withdraw-submit-btn { opacity: 0.38; filter: grayscale(0.6); pointer-events: none; user-select: none; }
.mg-wd-proc { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 13px 14px; border-radius: 16px; background: rgba(var(--gold-rgb), 0.08); border: 1px solid rgba(var(--gold-rgb), 0.38); animation: mgFadeIn 0.25s ease-out; }
.mg-wd-proc[hidden] { display: none !important; }
.mg-wd-spin { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2.5px solid rgba(var(--gold-rgb), 0.25); border-top-color: var(--gold); animation: mgWdSpin 0.9s linear infinite; }
.mg-wd-proc-body { min-width: 0; flex: 1 1 auto; display: grid; gap: 5px; }
.mg-wd-proc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.mg-wd-proc-head b { color: var(--gold); font: 700 14px/1.3 var(--font); }
.mg-wd-proc-head span { color: var(--text); font: 700 13.5px/1.3 var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-wd-proc small { color: var(--muted); font: 400 12.5px/1.45 var(--font); overflow-wrap: anywhere; }
@keyframes mgWdSpin { to { transform: rotate(360deg); } }
/* [2026-11-19] Withdrawal card after a request (owner): the circle spins for 15 seconds, then a check mark is drawn in its
   place and goes away too. vidipay-app.js applyMainWithdrawIcon sets data-icon = spin | tick | none on the card. The mark
   lives 3.4 s (MAIN_WITHDRAW_TICK_MS): drawn, held, then it fades and its place closes so the words do not jump. */
.mg-wd-tick { display: none; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); overflow: visible; }
.mg-wd-tick path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.mg-wd-proc[data-icon="tick"] .mg-wd-spin, .mg-wd-proc[data-icon="none"] .mg-wd-spin { display: none; }
.mg-wd-proc[data-icon="tick"] .mg-wd-tick { display: block; animation: mgWdTickLife 3.4s ease-out forwards; }
.mg-wd-proc[data-icon="tick"] .mg-wd-tick path { animation: mgWdTickDraw 0.5s ease-out 0.12s forwards; }
@keyframes mgWdTickDraw { to { stroke-dashoffset: 0; } }
@keyframes mgWdTickLife { 0% { opacity: 0; transform: scale(0.6); width: 20px; margin-right: 0; } 8% { opacity: 1; transform: scale(1.14); } 15% { transform: scale(1); } 86% { opacity: 1; width: 20px; margin-right: 0; } 100% { opacity: 0; width: 0; margin-right: -12px; } }
@media (prefers-reduced-motion: reduce) { .mg-wd-proc[data-icon="tick"] .mg-wd-tick { animation: none !important; } .mg-wd-proc[data-icon="tick"] .mg-wd-tick path { animation: none !important; stroke-dashoffset: 0; } }

/* [2026-10-25] "Are you still here?" — over the video, also visible over fullscreen video. */
.mg-presence-ov { z-index: 10050; }
.mg-presence { text-align: center; }
.mg-presence p { text-align: center; }
.mg-presence-ring { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid rgba(var(--acc-rgb), 0.55); box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0.10); color: var(--accent); font: 800 22px/1 var(--font-num); font-variant-numeric: tabular-nums; animation: mgPresencePulse 1.6s ease-in-out infinite; }
.mg-presence-btn { background: var(--grad); color: var(--ink); box-shadow: var(--btn-shadow); }
.mg-presence-ov.paused .mg-presence-ring { border-color: rgba(var(--gold-rgb), 0.6); box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0.12); color: var(--gold); animation: none; }
.mg-presence-ov.paused .mg-presence-ring::before { content: ""; width: 16px; height: 20px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; box-sizing: border-box; }
.mg-presence-ov.paused #mg-presence-count { display: none; }
@keyframes mgPresencePulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0.10); } 50% { box-shadow: 0 0 0 10px rgba(var(--acc-rgb), 0.04); } }
@media (prefers-reduced-motion: reduce) { .mg-wd-spin, .mg-presence-ring, .mg-wd-proc { animation: none !important; } }

/* [2026-10-25] If the video won't open: an overlay on top of the YouTube error screen (switching / "Retry"). */
.watch-retry-ov { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: #05070a; color: #fff; }
.watch-retry-ov[hidden] { display: none !important; }
.watch-retry-ov p { margin: 0; max-width: 320px; color: #e2e8f0; font: 500 13.5px/1.45 var(--font); }
.watch-retry-ov .watch-retry-btn { width: auto; min-width: 160px; padding: 0 22px; }
.watch-retry-spin { display: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(var(--acc-rgb), 0.25); border-top-color: var(--accent); animation: mgWdSpin 0.9s linear infinite; }
.watch-retry-ov.is-switching { pointer-events: none; background: rgba(5, 7, 10, 0.94); }
.watch-retry-ov.is-switching .watch-retry-spin { display: block; }
.watch-retry-ov.is-switching .watch-retry-btn { display: none; }
@media (prefers-reduced-motion: reduce) { .watch-retry-spin { animation: none !important; } }

/* [2026-10-28] Withdrawal window open and a claimable friend bonus exists: the "Claim bonus" button says "tap me" —
   soft grow-and-shrink, an expanding ring around it and a shiny glint passing over it. */
#claim-bonus-btn.mg-claim-ready {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: mgClaimBreath 1.6s ease-in-out infinite, mgClaimRing 1.6s ease-out infinite;
}
#claim-bonus-btn.mg-claim-ready::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    animation: mgClaimShine 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes mgClaimBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes mgClaimRing {
    0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(var(--acc-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0); }
}
@keyframes mgClaimShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* [2026-10-31] Tier 1 countries: full names in plain small text, but clearly readable (not dim even when Tier 1 is inactive). */
.tier-card .tier-list { font: 500 12px/1.55 var(--font) !important; color: var(--muted, #A8B8B4) !important; }
/* Tier 1 inactive: marker off (gray). */
.mg-chip.is-tier-off, .is-tier-off { color: var(--muted, #A8B8B4) !important; opacity: 0.85; }

/* [2026-10-31] Maintenance mode: a lightly animated overlay over the whole app (buttons underneath are not clickable). */
.vp-maint {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--page, #0B1416);
    color: var(--text, #E6EFEC);
    overflow: hidden;
    touch-action: none;
}
.vp-maint[hidden] { display: none; }
.vp-maint::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--acc-rgb, 69, 230, 196), 0.16) 0%, rgba(var(--acc-rgb, 69, 230, 196), 0) 68%);
    animation: vpMaintGlow 5s ease-in-out infinite;
    pointer-events: none;
}
.vp-maint-card {
    position: relative;
    width: min(100%, 360px);
    text-align: center;
    animation: vpMaintRise 0.6s cubic-bezier(.2, .8, .2, 1) 0.05s both;
}
.vp-maint-icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent, #45E6C4);
    background: rgba(var(--acc-rgb, 69, 230, 196), 0.12);
    box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb, 69, 230, 196), 0.28);
    animation: vpMaintFloat 3.6s ease-in-out infinite;
}
.vp-maint-icon::before,
.vp-maint-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(var(--acc-rgb, 69, 230, 196), 0.38);
    animation: vpMaintRing 2.8s ease-out infinite;
}
.vp-maint-icon::after { animation-delay: 1.4s; }
.vp-maint-icon svg { width: 40px; height: 40px; }
.vp-maint-title {
    margin: 0 0 10px;
    font: 800 21px/1.25 var(--font-num, var(--font, system-ui));
    letter-spacing: -0.01em;
}
.vp-maint-text {
    margin: 0 auto 14px;
    max-width: 320px;
    color: var(--muted, #A8B8B4);
    font-size: 15px;
    line-height: 1.55;
}
/* [2026-11-03] Time chip ("Back in 30–60 min") — below the text, on its own line, centered. */
.vp-maint-eta {
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text, #EAF2F0);
    font: 700 14px/1.2 var(--font-num, var(--font, system-ui));
    letter-spacing: 0.01em;
}
.vp-maint-safe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--acc-rgb, 69, 230, 196), 0.10);
    color: var(--accent, #45E6C4);
    font-size: 12.5px;
    font-weight: 700;
}
/* [2026-11-03] Device lock overlay: remaining-time counter (server retry_after_seconds — 6 hours from the owner's last activity). */
.vp-dlock-wait {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 10px 22px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vp-dlock-wait[hidden] { display: none; }
.vp-dlock-wait > span { color: var(--muted, #A8B8B4); font-size: 12.5px; }
.vp-dlock-wait b {
    display: inline-flex;
    align-items: baseline;
    font: 800 30px/1.15 var(--font-num, var(--font, system-ui));
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: var(--text, #E6EFEC);
}
/* Live counter: digits bounce when they change, the colon blinks every second, the bar shrinks with the share of time remaining. */
.vp-dlock-wait b span { display: inline-block; min-width: 2ch; text-align: center; }
.vp-dlock-wait b span.vp-tick { animation: vpDlockTick 0.45s cubic-bezier(.2, .8, .2, 1); }
.vp-dlock-wait b i { font-style: normal; color: var(--accent, #45E6C4); animation: vpDlockBlink 1s steps(1, end) infinite; }
.vp-dlock-bar {
    position: relative;
    width: 100%;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.vp-dlock-bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent, #45E6C4), #8CF7E0);
    box-shadow: 0 0 10px rgba(var(--acc-rgb, 69, 230, 196), 0.55);
    transition: width 1s linear;
}
.vp-dlock-bar i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: vpDlockShimmer 2.2s linear infinite;
}
@keyframes vpDlockTick { from { transform: translateY(-34%); opacity: 0.3; } to { transform: none; opacity: 1; } }
@keyframes vpDlockBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.22; } }
@keyframes vpDlockShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .vp-dlock-wait b i, .vp-dlock-wait b span.vp-tick, .vp-dlock-bar i::after { animation: none; }
}
.vp-maint-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.vp-maint-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #45E6C4);
    opacity: 0.25;
    animation: vpMaintDot 1.5s ease-in-out infinite;
}
.vp-maint-dots i:nth-child(2) { animation-delay: 0.2s; }
.vp-maint-dots i:nth-child(3) { animation-delay: 0.4s; }
html.vp-maint-on, html.vp-maint-on body { overflow: hidden !important; }
/* [2026-11-03] Device lock overlay (another account is active on this device) — same look as the maintenance overlay. */
html.vp-dlock-on, html.vp-dlock-on body { overflow: hidden !important; }

/* [2026-11-03 evening] SMOOTHNESS (owner: "the app is stuttering, it must not stutter at all"): only transform/opacity animations in the row —
   no blur filter on the halo (just the soft gradient itself), no drop-shadow filter on the image, the shine is not a background shift but a line moved
   with transform (::before). While the sheet is open the row animations are paused (the background is dimmed — not redrawn).
   Weak devices (html.vp-lite — detected by JS): halo, sparkle, shine, sway off, only the slow wave. */
/* Info sheet: slides up from the bottom; the large image rotates gently in 3D (±22°), light passes over it; when switching to another bar
   via the dots, the image flips over to the new one; closes on background tap / X / Esc. */
/* [2026-11-03 evening] SMOOTHNESS: lighting and shine are not on the face itself (box-shadow / background shift — 46 faces were redrawn
   every frame, stuttering on the phone), but on inner layers: shade — opacity, shine — transform (compositor, no repaint). */
/* Sheet open: the background doesn't scroll (owner's requirement) — html overflow hidden, body pinned (JS keeps it in place with top = -scrollY). */
/* Doesn't start from transparent: even if the animation stalls (background mode) the modal is fully visible — only the slide. */
@keyframes vpMaintRise { from { transform: translateY(12px); } to { transform: none; } }
@keyframes vpMaintFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes vpMaintRing { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes vpMaintGlow { 0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes vpMaintDot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
    .vp-maint::before, .vp-maint-card, .vp-maint-icon, .vp-maint-icon::before, .vp-maint-icon::after, .vp-maint-dots i { animation: none !important; }
}

/* [2026-10-31] Balance chart (owner's request): income for the last 14 days below the balance, weekly change at top right.
   Space reserved in advance (56px) — the page doesn't jump when data arrives. Soft colors, crisp line (non-scaling-stroke). */
.balance-bonus-row .balance-card .vp-chart { display: block; width: calc(100% + 36px); height: 56px; margin: 10px -18px -16px; }
.vp-chart-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.vp-chart-area { fill: url(#vp-chart-fill); stroke: none; }
.vp-chart-pct { position: absolute; top: 18px; right: 18px; font: 700 12.5px/1 var(--font-num); letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.vp-chart-pct.down { color: #E3909E; }
.vp-chart-pct[hidden] { display: none; }

/* [2026-11-01] While a modal (fullscreen page) is open, the main screen is hidden (owner: "when going to the Bonus and History modals
   the main screen stays visible", Samsung / Telegram Android). If a heavy modal (friends list, history) didn't manage to render
   in the first frame, the browser showed the main screen behind it. Now behind it there is only the same background as the modal (body: var(--page)) —
   the main screen is not visible even for a moment; it returns immediately when the modal closes. State comes from the real DOM (.is-open); in old browsers
   that don't support :has the rule simply doesn't apply (as before). The bottom menu (fixed-bottom-nav) stays visible. */
body:has(> .modal-overlay.is-open) > .top-navbar,
body:has(> .modal-overlay.is-open) > .main-container { visibility: hidden; }

/* =====================================================================================================================
   [2026-11-03] WALLET LINKING (payout wallet) — a separate section at the bottom of the withdrawal modal (#vp-wl), the profile row
   (#vp-wl-prof) and the "linked wallet" marker in the withdrawal form. Three variants: data-variant="1" card (accordion),
   "2" ticket (side stripe, notched divider, flips open), "3" bottom sheet (round button + a slide-up-from-the-bottom
   sheet). Animations: opening (height), warning shine, shield wobble, address field shake,
   the "linked" check mark drawing itself, live countdown (digit bounce, colon, shrinking bar). In reduced
   motion mode everything is turned off. */
.vp-wl { position: relative; margin: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--glass-shadow); overflow: hidden; animation: mgFadeIn 0.3s ease-out; }
.vp-wl[hidden] { display: none !important; }
.vp-wl-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-wl-head:active { background: rgba(255, 255, 255, 0.03); }
.vp-wl-ico { position: relative; flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--acc-rgb), 0.12); color: var(--accent); }
.vp-wl-ico svg { width: 20px; height: 20px; }
.vp-wl:not(.is-linked) .vp-wl-ico::after { content: ""; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.55); animation: vpWlPing 1.8s ease-out infinite; }
.vp-wl-ht { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.vp-wl-ht b { color: var(--text); font: 600 14px/1.25 var(--font); }
.vp-wl-ht small { color: var(--muted); font: 400 12px/1.35 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-wl-chip { flex: none; max-width: 112px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); font: 600 10.5px/1.2 var(--font-num); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-wl.is-linked .vp-wl-chip { background: rgba(var(--acc-rgb), 0.10); border-color: rgba(var(--acc-rgb), 0.32); color: var(--accent); }
.vp-wl-chev { flex: none; width: 18px; height: 18px; color: var(--faint); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl-chev svg { width: 18px; height: 18px; }
.vp-wl.is-open .vp-wl-chev { transform: rotate(180deg); }
.vp-wl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl.is-open .vp-wl-body { grid-template-rows: 1fr; }
.vp-wl-inner { min-height: 0; overflow: hidden; }
.vp-wl-pad { display: grid; gap: 12px; padding: 2px 14px 14px; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease 0.08s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s; }
.vp-wl.is-open .vp-wl-pad { opacity: 1; transform: none; }
.vp-wl-form, .vp-wl-confirm, .vp-wl-linked { display: grid; gap: 12px; }
.vp-wl-form[hidden], .vp-wl-confirm[hidden], .vp-wl-linked[hidden], .vp-wl-cd[hidden], .vp-wl-change[hidden], .vp-wl-cancel[hidden] { display: none !important; }
.vp-wl-intro { margin: 0; color: var(--muted); font: 400 12.5px/1.5 var(--font); }
.vp-wl-warn { position: relative; display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: rgba(var(--gold-rgb), 0.10); border: 1px solid rgba(var(--gold-rgb), 0.40); color: var(--gold); font: 600 12.5px/1.45 var(--font); overflow: hidden; }
.vp-wl-warn .ic { flex: none; margin-top: 1px; transform-origin: 50% 40%; animation: vpWlShield 2.8s ease-in-out infinite; }
.vp-wl-warn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.10) 50%, transparent 65%); background-size: 250% 100%; animation: vpWlSheen 3.6s ease-in-out infinite; }
.vp-wl-field { position: relative; }
.vp-wl-field input { padding-right: 64px !important; font: 500 13.5px/1 var(--font-num) !important; letter-spacing: 0.01em; transition: border-color 0.2s, box-shadow 0.2s; }
.vp-wl-field input.is-valid { border-color: rgba(var(--acc-rgb), 0.75) !important; box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.30); }
.vp-wl-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font: 600 11px/1 var(--font-num); font-variant-numeric: tabular-nums; pointer-events: none; }
.vp-wl-field input.is-valid ~ .vp-wl-count { color: var(--accent); }
.vp-wl-field input.is-invalid ~ .vp-wl-count { color: var(--bad); }
/* [2026-11-03] TRC20 only: wrong network / short address — red field + reason; button disabled (copy-link-btn:disabled style). */
.vp-wl-field input.is-invalid { border-color: rgba(240, 122, 140, 0.85) !important; box-shadow: 0 0 0 3px rgba(240, 122, 140, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.30); }
.vp-wl-field-msg { display: flex; gap: 7px; align-items: flex-start; margin-top: -4px; padding: 0 2px; color: var(--bad); font: 600 12px/1.45 var(--font); animation: vpWlIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl-field-msg[hidden] { display: none !important; }
.vp-wl-field-msg .ic { flex: none; margin-top: 2px; }
.vp-wl-field.vp-wl-shake { animation: vpWlNudge 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.vp-wl-btn .ic { color: inherit; }
.vp-wl-confirm { text-align: center; padding-top: 2px; animation: vpWlIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl-confirm b { color: var(--text); font: 700 15px/1.3 var(--font); }
.vp-wl-confirm p { margin: 0; color: var(--muted); font: 400 12.5px/1.5 var(--font); }
.vp-wl-addr { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.30); border: 1px solid var(--line-strong); color: var(--text); font: 600 13px/1.45 var(--font-num); letter-spacing: 0.02em; overflow-wrap: anywhere; word-break: break-all; text-align: center; }
.vp-wl-confirm .vp-wl-addr { border-color: rgba(var(--gold-rgb), 0.55); animation: vpWlGlow 1.4s ease-in-out infinite alternate; }
.vp-wl-linked { text-align: center; }
.vp-wl-ok { width: 56px; height: 56px; margin: 2px auto 0; border-radius: 50%; }
.vp-wl-check { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vp-wl-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: vpWlDraw 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards; }
.vp-wl-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: vpWlDraw 0.45s cubic-bezier(0.65, 0, 0.45, 1) 0.65s forwards; }
.vp-wl-linked > small { color: var(--muted); font: 600 11px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.vp-wl-copy { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.30); border: 1px solid rgba(var(--acc-rgb), 0.35); color: var(--text); font: 600 13px/1.45 var(--font-num); letter-spacing: 0.02em; overflow-wrap: anywhere; word-break: break-all; text-align: center; -webkit-tap-highlight-color: transparent; transition: transform 0.15s; }
.vp-wl-copy:active { transform: scale(0.985); }
.vp-wl-copy i { display: block; margin-top: 5px; color: var(--faint); font: 600 10.5px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; font-style: normal; transition: color 0.2s; }
.vp-wl-copy i.is-copied { color: var(--accent); }
.vp-wl-meta { color: var(--muted); font: 400 12px/1.45 var(--font); }
.vp-wl-meta:empty { display: none; }
.vp-wl-now { color: var(--accent); font-weight: 600; }
.vp-wl-cd { display: grid; gap: 4px; justify-items: center; padding: 10px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.vp-wl-cd > span { color: var(--muted); font: 400 12px/1.3 var(--font); }
.vp-wl-cd > small { color: var(--faint); font: 400 11.5px/1.3 var(--font); }
.vp-wl-cd b { display: inline-flex; align-items: baseline; gap: 2px; color: var(--text); font: 800 24px/1 var(--font-num); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.vp-wl-cd b em { margin: 0 7px 0 2px; color: var(--muted); font: 600 12px/1 var(--font); font-style: normal; }
.vp-wl-cd b i { color: var(--accent); font-style: normal; animation: vpDlockBlink 1s steps(1) infinite; }
.vp-wl-cd b span { display: inline-block; }
.vp-wl-cd b span.vp-tick { animation: vpDlockTick 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl-bar { position: relative; width: 100%; height: 4px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.vp-wl-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #7FEFD8, #45E6C4 60%, #23C4A3); transition: width 1s linear; }
.vp-wl-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55) 50%, transparent); background-size: 200% 100%; animation: vpDlockShimmer 2.2s linear infinite; }
.vp-wl-status { text-align: center; }
.vp-wl-status[data-tone="ok"] { color: var(--pos) !important; }
.vp-wl-status[data-tone="warn"] { color: var(--warn) !important; }
.vp-wl-status[data-tone="error"] { color: var(--bad) !important; }
/* [2026-11-03 evening] OFFICIAL SEAL (owner's order: "as if the app had its own official seal"): at the bottom of the section a certificate-
   style card — on the left a round seal (two rings, "VIDIPAY • OFFICIAL • NO FEES" text around the circle, a shield icon in the middle,
   slightly tilted, "stamped" effect), warning text on the right. Visible even when the section is collapsed. */
.vp-wl-seal { position: relative; display: flex; gap: 12px; align-items: center; margin: 2px 14px 14px; padding: 12px 12px 12px 10px; border-radius: 16px; border: 1px dashed rgba(var(--acc-rgb), 0.55); background: linear-gradient(135deg, rgba(var(--acc-rgb), 0.08), rgba(var(--acc-rgb), 0.03) 60%, rgba(255, 255, 255, 0.02)); overflow: hidden; }
.vp-wl-seal::before { content: ""; position: absolute; inset: 3px; border-radius: 13px; border: 1px solid rgba(var(--acc-rgb), 0.18); pointer-events: none; }
.vp-wl-stamp { flex: none; width: 92px; height: 92px; transform: rotate(-11deg); animation: vpWlStamp 0.6s cubic-bezier(0.2, 1.4, 0.3, 1); filter: drop-shadow(0 0 7px rgba(var(--acc-rgb), 0.35)); }
.vp-wl-stamp svg { width: 100%; height: 100%; overflow: visible; opacity: 0.94; -webkit-mask-image: radial-gradient(circle at 42% 38%, #000 55%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.9) 100%); mask-image: radial-gradient(circle at 42% 38%, #000 55%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.9) 100%); }
.vp-wl-stamp-ring { fill: none; stroke: var(--accent); stroke-width: 2.6; }
.vp-wl-stamp-ring2 { stroke-width: 1; stroke-dasharray: 2 2.4; opacity: 0.85; }
.vp-wl-stamp-ring3 { stroke-width: 1.4; opacity: 0.9; }
.vp-wl-stamp-txt { fill: var(--accent); font: 800 8.6px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase; }
.vp-wl-stamp-mark path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vp-wl-stamp-mark path:first-child { fill: rgba(var(--acc-rgb), 0.14); }
.vp-wl-seal-txt { display: grid; gap: 5px; min-width: 0; }
.vp-wl-seal-txt b { color: var(--accent); font: 800 11px/1.25 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.vp-wl-seal-txt p { margin: 0; color: var(--text); font: 500 12px/1.45 var(--font); }
.vp-wl-seal-txt small { color: var(--muted); font: 700 11px/1.35 var(--font); }
@keyframes vpWlStamp { 0% { transform: rotate(-11deg) scale(1.6); opacity: 0; } 60% { transform: rotate(-11deg) scale(0.96); opacity: 1; } 100% { transform: rotate(-11deg) scale(1); opacity: 1; } }
/* withdrawal form (window open): on accounts that see wallet linking there is no address field — the linked wallet card
   ("will be paid to this wallet") or the "link a wallet first" notice (owner's order: the wallet must not be re-entered). */
#mg-wd-address-field[hidden], .vp-wl-payto[hidden], .vp-wl-need[hidden] { display: none !important; }
.vp-wl-payto { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(var(--acc-rgb), 0.07); border: 1px solid rgba(var(--acc-rgb), 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); animation: vpWlIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl-payto-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); box-shadow: var(--btn-shadow); }
.vp-wl-payto-ico svg { width: 21px; height: 21px; }
.vp-wl-payto-body { min-width: 0; flex: 1 1 auto; display: grid; gap: 3px; }
.vp-wl-payto-body small { color: var(--muted); font: 500 11px/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.vp-wl-payto-body b { color: var(--text); font: 700 13px/1.4 var(--font-num); letter-spacing: 0.02em; overflow-wrap: anywhere; word-break: break-all; }
.vp-wl-payto-net { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font: 600 11px/1.3 var(--font); }
.vp-wl-need { display: grid; gap: 10px; padding: 12px 12px 12px; border-radius: 14px; background: rgba(var(--gold-rgb), 0.10); border: 1px solid rgba(var(--gold-rgb), 0.40); animation: vpWlIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-wl-need-row { display: flex; gap: 9px; align-items: flex-start; color: var(--gold); font: 600 12.5px/1.45 var(--font); }
.vp-wl-need-row .ic { flex: none; margin-top: 1px; transform-origin: 50% 40%; animation: vpWlShield 2.8s ease-in-out infinite; }
.vp-wl-need-btn { min-height: 44px !important; height: 44px !important; border-color: rgba(var(--gold-rgb), 0.45) !important; color: var(--gold) !important; background: rgba(var(--gold-rgb), 0.06) !important; }
#main-withdraw-form-box.is-tier1-locked .vp-wl-payto, #main-withdraw-form-box.is-tier1-locked .vp-wl-need { opacity: 0.38; filter: grayscale(0.6); pointer-events: none; }
/* profile */
.vp-wl-prof { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vp-wl-prof[hidden] { display: none !important; }
.vp-wl-prof:active { transform: scale(0.99); }
.vp-wl-prof .profile-data-value { font-size: 15px !important; letter-spacing: 0.01em; }
.vp-wl-prof.is-none .profile-data-value { color: var(--muted) !important; font-weight: 600 !important; }
.vp-wl-prof-net { display: inline-flex; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: rgba(var(--acc-rgb), 0.10); border: 1px solid rgba(var(--acc-rgb), 0.28); color: var(--accent); font: 600 10px/1.2 var(--font-num); letter-spacing: 0.04em; vertical-align: middle; }
.vp-wl-prof-net[hidden] { display: none !important; }
.vp-wl-prof-sub { display: block; margin-top: 4px; color: var(--faint); font: 400 11.5px/1.35 var(--font); }
/* ---- variant 2: ticket ---- */
.vp-wl[data-variant="2"] { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)); border-color: rgba(var(--acc-rgb), 0.22); }
.vp-wl[data-variant="2"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.vp-wl[data-variant="2"] .vp-wl-head { padding-left: 18px; }
.vp-wl[data-variant="2"] .vp-wl-ico { border-radius: 50%; background: var(--grad); color: var(--ink); box-shadow: var(--btn-shadow); }
.vp-wl[data-variant="2"]:not(.is-linked) .vp-wl-ico::after { top: -1px; right: -1px; box-shadow: 0 0 0 2px #142321, 0 0 0 0 rgba(var(--gold-rgb), 0.55); animation: vpWlPing2 1.8s ease-out infinite; }
.vp-wl[data-variant="2"] .vp-wl-chip { border-radius: 6px; border-style: dashed; letter-spacing: 0.06em; }
.vp-wl[data-variant="2"] .vp-wl-pad { position: relative; margin: 0 14px 0 18px; padding: 16px 0 14px; border-top: 1px dashed rgba(255, 255, 255, 0.22); transform: perspective(700px) rotateX(-12deg); transform-origin: top; opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; }
.vp-wl[data-variant="2"].is-open .vp-wl-pad { transform: none; opacity: 1; }
.vp-wl[data-variant="2"] .vp-wl-pad::before, .vp-wl[data-variant="2"] .vp-wl-pad::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.vp-wl[data-variant="2"] .vp-wl-pad::before { left: -27px; }
.vp-wl[data-variant="2"] .vp-wl-pad::after { right: -23px; }
.vp-wl[data-variant="2"] .vp-wl-warn { background: rgba(240, 122, 140, 0.08); border-color: rgba(240, 122, 140, 0.42); color: var(--bad); }
.vp-wl[data-variant="2"] .vp-wl-warn::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%); background-size: 250% 100%; }
.vp-wl[data-variant="2"] .vp-wl-confirm .vp-wl-addr { border-color: rgba(240, 122, 140, 0.55); animation: vpWlGlow2 1.4s ease-in-out infinite alternate; }
.vp-wl[data-variant="2"] .vp-wl-ok { animation: vpWlStamp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
.vp-wl[data-variant="2"] .vp-wl-check circle, .vp-wl[data-variant="2"] .vp-wl-check path { stroke-dashoffset: 0; animation: none; }
.vp-wl[data-variant="2"] .vp-wl-check { stroke: var(--ink); background: var(--grad); border-radius: 50%; box-shadow: var(--btn-shadow); }
.vp-wl[data-variant="2"] .vp-wl-check circle { stroke: none; }
.vp-wl[data-variant="2"] .vp-wl-cd { border-radius: 12px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), 0.18); }
/* ---- variant 3: bottom sheet ---- */
.vp-wl[data-variant="3"] { background: none; border: none; box-shadow: none; overflow: visible; }
.vp-wl[data-variant="3"] .vp-wl-head { border-radius: 999px; padding: 9px 12px 9px 9px; background: rgba(var(--acc-rgb), 0.08); border: 1px solid rgba(var(--acc-rgb), 0.35); box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0.35); transition: background 0.25s, border-radius 0.35s; }
.vp-wl[data-variant="3"]:not(.is-linked):not(.is-open) .vp-wl-head { animation: vpWlHalo 2.4s ease-out infinite; }
.vp-wl[data-variant="3"].is-open .vp-wl-head { background: rgba(var(--acc-rgb), 0.13); }
.vp-wl[data-variant="3"] .vp-wl-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: var(--ink); }
.vp-wl[data-variant="3"] .vp-wl-ico::after { display: none; }
.vp-wl[data-variant="3"] .vp-wl-chip { background: none; border: none; color: var(--accent); padding: 0 2px; }
.vp-wl[data-variant="3"] .vp-wl-chev { color: var(--accent); }
.vp-wl[data-variant="3"] .vp-wl-inner { overflow: visible; }
.vp-wl[data-variant="3"] .vp-wl-body { overflow: hidden; margin-top: 0; transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), margin-top 0.3s; }
.vp-wl[data-variant="3"].is-open .vp-wl-body { margin-top: 10px; }
.vp-wl[data-variant="3"] .vp-wl-pad { position: relative; padding: 22px 14px 14px; border-radius: 22px 22px var(--radius) var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)); border: 1px solid var(--line-strong); box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22); transform: translateY(22px); opacity: 0; transition: transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; }
.vp-wl[data-variant="3"].is-open .vp-wl-pad { transform: none; opacity: 1; }
.vp-wl[data-variant="3"] .vp-wl-pad::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); }
.vp-wl[data-variant="3"] .vp-wl-warn { background: rgba(var(--gold-rgb), 0.07); border: none; border-left: 3px solid var(--gold); border-radius: 6px 12px 12px 6px; }
.vp-wl[data-variant="3"] .vp-wl-btn, .vp-wl[data-variant="3"] .vp-wl-cancel, .vp-wl[data-variant="3"] .vp-wl-change, .vp-wl[data-variant="3"] .vp-wl-confirm .copy-link-btn { border-radius: 999px; }
.vp-wl[data-variant="3"] .vp-wl-field input { border-radius: 999px !important; padding-left: 18px !important; }
.vp-wl[data-variant="3"] .vp-wl-count { right: 16px; }
.vp-wl[data-variant="3"] .vp-wl-addr, .vp-wl[data-variant="3"] .vp-wl-copy { border-radius: 16px; }
.vp-wl[data-variant="3"] .vp-wl-ok { width: 64px; height: 64px; box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0.10); animation: vpWlRing 2s ease-in-out infinite; }
.vp-wl[data-variant="3"] .vp-wl-check { width: 64px; height: 64px; }
.vp-wl[data-variant="3"] .vp-wl-cd { border-radius: 999px; padding: 10px 18px 12px; }
.vp-wl[data-variant="3"] .vp-wl-bar { width: 72%; }
@keyframes vpWlPing { 0% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--gold-rgb), 0); } }
@keyframes vpWlPing2 { 0% { box-shadow: 0 0 0 2px #142321, 0 0 0 0 rgba(var(--gold-rgb), 0.55); } 70%, 100% { box-shadow: 0 0 0 2px #142321, 0 0 0 9px rgba(var(--gold-rgb), 0); } }
@keyframes vpWlSheen { 0%, 55% { background-position: 200% 0; } 100% { background-position: -60% 0; } }
@keyframes vpWlShield { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-10deg) scale(1.06); } 90% { transform: rotate(9deg) scale(1.06); } 94% { transform: rotate(-5deg); } 97% { transform: rotate(3deg); } }
@keyframes vpWlNudge { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@keyframes vpWlIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes vpWlGlow { from { box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.08); } to { box-shadow: 0 0 0 7px rgba(var(--gold-rgb), 0.18); } }
@keyframes vpWlGlow2 { from { box-shadow: 0 0 0 3px rgba(240, 122, 140, 0.08); } to { box-shadow: 0 0 0 7px rgba(240, 122, 140, 0.18); } }
@keyframes vpWlDraw { to { stroke-dashoffset: 0; } }
@keyframes vpWlStamp { from { transform: scale(1.7) rotate(-16deg); opacity: 0; } 60% { transform: scale(0.94) rotate(3deg); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes vpWlHalo { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0.35); } 100% { box-shadow: 0 0 0 12px rgba(var(--acc-rgb), 0); } }
@keyframes vpWlRing { 0%, 100% { box-shadow: 0 0 0 6px rgba(var(--acc-rgb), 0.10); } 50% { box-shadow: 0 0 0 11px rgba(var(--acc-rgb), 0.04); } }
@media (prefers-reduced-motion: reduce) {
    .vp-wl, .vp-wl *, .vp-wl::before, .vp-wl *::before, .vp-wl *::after, .vp-wl-payto, .vp-wl-need, .vp-wl-need * { animation: none !important; transition: none !important; }
    .vp-wl-check circle, .vp-wl-check path { stroke-dashoffset: 0; }
}

/* [2026-11-14 e] the list of Tier 1 countries unfolds and folds (owner: "its opening and closing should look good").
   The height is animated by the browser (grid rows 0fr -> 1fr; an older WebView simply switches), the countries arrive
   one after another (class is-opening, set by the script for 0.9 s). */
.vp-globe-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vp-globe-fold.is-open { grid-template-rows: 1fr; }
.vp-globe-fold > .vp-globe-list { min-height: 0; overflow: hidden; margin-top: 0; opacity: 0; transition: opacity 0.18s ease; }
/* the space above the first line of countries is part of the folded content (padding or margin would stay when folded) */
.vp-globe-fold > .vp-globe-list::before { content: ""; flex: 0 0 100%; height: 4px; }
.vp-globe-fold.is-open > .vp-globe-list { opacity: 1; transition: opacity 0.26s ease 0.05s; }
.vp-globe-fold:not(.is-open) > .vp-globe-list { pointer-events: none; }
.vp-globe-list.is-opening > .vp-globe-item { animation: vpGlobeItemIn 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(0.06s + var(--i, 0) * 0.022s); }
@keyframes vpGlobeItemIn { from { opacity: 0; transform: translateY(8px) scale(0.92); } to { opacity: 1; transform: none; } }
.vp-globe-x { transition: background 0.15s ease; }
@media (prefers-reduced-motion: reduce) { .vp-globe-fold, .vp-globe-fold > .vp-globe-list { transition: none; } .vp-globe-list.is-opening > .vp-globe-item { animation: none; } }

/* [2026-11-16] Proven multi-account measure notice (vidipay-app.js applyAccountMeasure). Only shown to accounts the server
   lists; the app's CSP allows styles only from this file, so they live here. Covers the whole app; pause / block cannot be
   dismissed, a warning has "I understand". */
.vp-measure {
    position: fixed; inset: 0; z-index: 2147483000; display: grid; align-content: center; justify-items: center;
    padding: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    background: rgba(6, 14, 16, .94); overflow-y: auto; box-sizing: border-box;
}
.vp-measure[hidden] { display: none !important; }
.vp-measure-card {
    width: 100%; max-width: 420px; box-sizing: border-box; background: #14282c; color: #e8f2ef; border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px; padding: 20px 18px; display: grid; gap: 10px; font-family: Manrope, Inter, system-ui, sans-serif; text-align: left;
}
.vp-measure-icon { width: 56px; height: 56px; display: grid; place-items: center; }
.vp-measure-icon svg { display: block; transform-origin: 50% 60%; }
.vp-measure-pause .vp-measure-icon { color: #ffb84d; }
.vp-measure-warning .vp-measure-icon { color: #ffb84d; }
.vp-measure-block .vp-measure-icon { color: #ff7a6b; }
/* owner: "biroz animatsiyali, yengil" - the card rises in once, the triangle breathes softly with a warm glow */
.vp-measure-card { animation: vpMeasureIn .38s cubic-bezier(.2, .8, .2, 1) both; }
.vp-measure-icon svg { animation: vpMeasurePulse 2.6s ease-in-out .4s infinite; }
@keyframes vpMeasureIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vpMeasurePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 184, 77, 0)); }
    50% { transform: scale(1.07); filter: drop-shadow(0 0 9px rgba(255, 184, 77, .45)); }
}
@media (prefers-reduced-motion: reduce) { .vp-measure-card, .vp-measure-icon svg { animation: none; } }
.vp-measure-h { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; color: #ffffff; }
.vp-measure-p, .vp-measure-r, .vp-measure-s { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.vp-measure-r { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 8px 10px; }
.vp-measure-s { color: #9db4ae; font-size: 13px; }
/* the "do not do this again, or the account may be blocked" line - owner: every notice must say it clearly */
.vp-measure-w { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 700; color: #ffb84d; overflow-wrap: anywhere; }
.vp-measure-btn {
    appearance: none; -webkit-appearance: none; border: 0; border-radius: 12px; padding: 12px; font: 800 14px Manrope, Inter, system-ui, sans-serif;
    background: #2ee6c5; color: #062421; cursor: pointer;
}
.vp-measure-btn.ghost { background: transparent; color: #2ee6c5; border: 1px solid rgba(46, 230, 197, .45); }
.vp-measure-btn:disabled { opacity: .6; }
.vp-measure-btn:focus-visible { outline: 3px solid #2ee6c5; outline-offset: 2px; }

/* [2026-11-17] VidiPay Terms at the bottom of the First time pane + the full terms on a white sheet (admin preview now) */
.mg-auth .mg-auth-terms-wrap[hidden] { display: none !important; }
.mg-auth .mg-auth-terms { display: flex; gap: 10px; align-items: flex-start; margin: 16px 2px 4px; text-align: left; font: 500 12.5px/1.45 var(--font); color: var(--text); cursor: pointer; }
.mg-auth .mg-auth-terms input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.mg-auth .mg-auth-terms-read { all: unset; box-sizing: border-box; display: block; margin: 2px 0 0 30px; padding: 2px 0; text-align: left; font: 600 12.5px/1.4 var(--font); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mg-auth .mg-auth-btn:disabled { opacity: .45; cursor: default; }
.vp-terms-sheet { position: fixed; inset: 0; z-index: 10095; display: flex; flex-direction: column; background: #FFFFFF; color: #1C1C1C; }
.vp-terms-sheet[hidden] { display: none !important; }
.vp-terms-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; border-bottom: 1px solid #E5E5E5; background: #FFFFFF; }
.vp-terms-back { flex: none; padding: 6px 4px; border: 0; background: none; font: 500 14px/1 var(--font); color: #1C1C1C; cursor: pointer; }
.vp-terms-bar-t { flex: 1 1 auto; min-width: 0; text-align: center; margin-right: 52px; font: 500 14px/1.2 var(--font); color: #1C1C1C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-terms-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 18px calc(24px + env(safe-area-inset-bottom, 0px)); }
.vp-terms-text p { max-width: 560px; margin: 0 auto 6px; font: 400 11.5px/1.55 var(--font); color: #1C1C1C; text-align: left; }
/* [2026-11-18] Privacy Policy: the Settings row (hidden until allowed) and the link to the full terms at the end of the page */
#mg-privacy-row[hidden] { display: none !important; }
html[data-vpr] #mg-privacy-row .mg-link-main > svg.ic { box-sizing: content-box; flex: none; width: 17px; height: 17px; padding: 7.5px; margin-right: 0; border-radius: 10px; color: var(--accent); background: rgba(var(--acc-rgb), .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(var(--acc-rgb), .24), 0 4px 10px -6px rgba(var(--acc-rgb), .7); }
.vp-terms-link { all: unset; cursor: pointer; font: 500 11.5px/1.55 var(--font); color: #0B6B5C; text-decoration: underline; text-underline-offset: 2px; }
