﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
        :root { --primary: #00d4ff; --secondary: #00ff88; --accent: #a855f7; --warning: #f59e0b; --danger: #ef4444; --info: #3b82f6; --dark-bg: #0a0a0f; --panel-bg: rgba(15, 15, 25, 0.95); }
        :root { --app-vh: 100dvh; }
        @supports not (height: 100dvh) { :root { --app-vh: 100vh; } }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Inter', 'JetBrains Mono', sans-serif; background: var(--dark-bg); background-image: radial-gradient(ellipse at 0% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(0, 255, 136, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 70%); color: #e2e8f0; min-height: var(--app-vh); overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }
        .login-page { position: fixed; inset: 0; min-height: var(--app-vh); background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%); display: flex; z-index: 99999; overflow: hidden; }
        .dashboard-loading-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(5, 8, 20, 0.9); backdrop-filter: blur(8px); }
        .dashboard-loading-card { width: min(420px, 92vw); border-radius: 16px; border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(15, 23, 42, 0.88); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); padding: 1.2rem 1.15rem; text-align: center; }
        .dashboard-loading-spinner { width: 44px; height: 44px; margin: 0 auto 0.85rem; border-radius: 999px; border: 3px solid rgba(56, 189, 248, 0.18); border-top-color: #38bdf8; border-right-color: #22d3ee; animation: dashboardSpin 0.85s linear infinite; }
        .dashboard-loading-message { color: #dbeafe; font-size: 0.9rem; line-height: 1.5; }
        .dashboard-loading-retry-btn { margin-top: 0.95rem; padding: 0.55rem 1rem; border-radius: 10px; border: 1px solid rgba(56, 189, 248, 0.45); color: #e0f2fe; background: rgba(14, 116, 144, 0.25); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease; }
        .dashboard-loading-retry-btn:hover { background: rgba(14, 116, 144, 0.4); }
        .dashboard-loading-lock { pointer-events: none; user-select: none; }
        @keyframes dashboardSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .login-page::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 40%), radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%); animation: loginGlow 8s ease-in-out infinite; }
        @keyframes loginGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
        .login-container { display: flex; width: 100%; height: 100%; position: relative; z-index: 10; }
        .login-left { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4rem; position: relative; }
        .login-brand { text-align: center; }
        .login-logo-large { width: 180px; height: 180px; margin: 0 auto 2rem; padding: 0.75rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 80px rgba(239, 68, 68, 0.28); animation: float 3s ease-in-out infinite; }
        .login-logo-large img { width: 100%; height: 100%; object-fit: contain; }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        .login-brand-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(90deg, #00d4ff, #a855f7, #00ff88); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.02em; }
        .login-brand-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 3rem; }
        .login-features { display: flex; gap: 2rem; margin-top: 2rem; }
        .login-feature { text-align: center; padding: 1.5rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; min-width: 140px; }
        .login-feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }
        .login-feature-text { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
        .login-right { width: 550px; display: flex; flex-direction: column; justify-content: center; padding: 3rem; background: rgba(15, 15, 25, 0.7); backdrop-filter: blur(20px); border-left: 1px solid rgba(255, 255, 255, 0.08); }
        .login-card { width: 100%; }
        .login-header { margin-bottom: 2rem; }
        .login-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: white; }
        .login-subtitle { color: rgba(255, 255, 255, 0.5); font-size: 1rem; }
        .login-tabs { display: flex; gap: 0.5rem; background: rgba(255, 255, 255, 0.05); padding: 0.375rem; border-radius: 12px; margin-bottom: 1.5rem; }
        .login-tab { flex: 1; padding: 0.875rem; border: none; background: transparent; color: rgba(255, 255, 255, 0.5); font-size: 0.9375rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.3s; }
        .login-tab.active { background: rgba(0, 212, 255, 0.15); color: var(--primary); }
        .login-input-group { margin-bottom: 1rem; }
        .login-input { width: 100%; padding: 1rem 1.25rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: white; font-size: 1rem; transition: all 0.3s; }
        .login-input:focus { outline: none; border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); }
        .login-input::placeholder { color: rgba(255, 255, 255, 0.3); }
        .login-code-row { display: flex; gap: 0.6rem; align-items: center; }
        .login-code-row .login-input { flex: 1; min-width: 0; }
        .login-code-btn { padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.12); color: #dbeafe; font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.25s; }
        .login-code-btn:hover { background: rgba(0, 212, 255, 0.2); }
        .login-code-btn:disabled { opacity: 0.55; cursor: not-allowed; }
        .login-code-hint { margin-top: 0.4rem; font-size: 0.78rem; color: rgba(191, 219, 254, 0.8); }
        .login-btn { width: 100%; padding: 1rem; background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2)); border: 1px solid rgba(0, 212, 255, 0.4); border-radius: 12px; color: white; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
        .login-btn:hover { background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3)); box-shadow: 0 0 30px rgba(0, 212, 255, 0.2); transform: translateY(-1px); }
        .wallet-detect-panel { margin-bottom: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: linear-gradient(135deg, rgba(255, 77, 77, 0.16), rgba(255, 77, 77, 0.04)); padding: 0.7rem 0.8rem; }
        .wallet-detect-label { font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.25rem; }
        .wallet-detect-main { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
        .wallet-detect-primary { font-size: 0.93rem; font-weight: 600; color: #f8fafc; }
        .wallet-detect-count { min-width: 1.55rem; height: 1.55rem; border-radius: 999px; border: 1px solid rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.15); color: #34d399; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
        .wallet-detect-hint { margin-top: 0.28rem; font-size: 0.74rem; color: rgba(148, 163, 184, 0.9); }
        .wallet-options { display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1.15rem; }
        .wallet-option { width: 100%; padding: 0.75rem 0.8rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; text-align: left; cursor: pointer; transition: all 0.25s; display: flex; align-items: center; gap: 0.75rem; color: #f8fafc; }
        .wallet-option:hover { background: rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.3); }
        .wallet-option.selected { background: rgba(0, 212, 255, 0.16); border-color: var(--primary); box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3); }
        .wallet-icon { width: 2.15rem; height: 2.15rem; border-radius: 0.62rem; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
        .wallet-icon img { width: 1.45rem; height: 1.45rem; object-fit: contain; }
        .wallet-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.12rem; }
        .wallet-name { font-size: 0.86rem; color: rgba(255, 255, 255, 0.94); font-weight: 600; line-height: 1.2; }
        .wallet-desc { font-size: 0.72rem; color: rgba(148, 163, 184, 0.9); line-height: 1.2; }
        .wallet-detected-tag { border-radius: 999px; border: 1px solid rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.16); color: #34d399; font-size: 0.64rem; font-weight: 700; padding: 0.14rem 0.42rem; white-space: nowrap; }
        .wallet-chevron { color: rgba(148, 163, 184, 0.92); font-size: 0.9rem; line-height: 1; }
        .wallet-option.selected .wallet-chevron { color: var(--primary); }
        .login-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: rgba(255, 255, 255, 0.4); font-size: 0.875rem; }
        .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }
        .login-footer { text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 0.8125rem; margin-top: 1.5rem; }
        .panel { background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; display: flex; flex-direction: column; }
        .panel:hover { border-color: rgba(0, 212, 255, 0.15); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.05); }
        .panel-header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
        .panel-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }
        .panel-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .panel-content { flex: 1; padding: 1rem; display: flex; flex-direction: column; overflow: hidden; }
        .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
        .status-online { background: var(--secondary); box-shadow: 0 0 8px var(--secondary); }
        .status-scanning { background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: pulse 1.5s infinite; }
        .status-executing { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1s infinite; }
        .status-learning { background: var(--warning); box-shadow: 0 0 8px var(--warning); animation: pulse 2s infinite; }
        .status-offline { background: #666; }
        .status-inactive { background: var(--danger); box-shadow: 0 0 8px var(--danger); animation: pulse 2s infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.9); } }
        .btn { padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); border: none; font-family: inherit; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; }
        .btn:active { transform: scale(0.95); }
        .btn-primary { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05)); border: 1px solid rgba(0, 212, 255, 0.3); color: var(--primary); }
        .btn-primary:hover { background: rgba(0, 212, 255, 0.25); box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); transform: translateY(-1px); }
        .btn-success { background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05)); border: 1px solid rgba(0, 255, 136, 0.3); color: var(--secondary); }
        .btn-success:hover { background: rgba(0, 255, 136, 0.25); box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
        .btn-danger { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); }
        .btn-danger:hover { background: rgba(239, 68, 68, 0.25); box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
        .btn-warning { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
        .btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
        .card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 1rem; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
        .card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(0, 212, 255, 0.25); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
        .product-card-static { cursor: default !important; pointer-events: none; }
        .product-card-static:hover { transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.03); }
        .scan-surface { border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 10px; background: linear-gradient(180deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.35)); padding: 0.4rem 0.55rem; }
        .scan-svg { width: 100%; height: 32px; display: block; }
        :root { --ai-orders-fixed-height: 360px; }
        .ai-orders-section { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; display: flex; flex-direction: column; flex: 1; min-height: 0; }
        .ai-orders-compact { display: block; height: var(--ai-orders-fixed-height) !important; min-height: var(--ai-orders-fixed-height) !important; max-height: var(--ai-orders-fixed-height) !important; overflow: hidden !important; flex: 0 0 var(--ai-orders-fixed-height) !important; }
        .ai-orders-compact .order-card { margin-bottom: 0; padding: 0.75rem 0.875rem; }
        .ai-orders-empty { display: flex; align-items: center; justify-content: center; min-height: 6rem; color: rgba(148, 163, 184, 0.92); font-size: 0.875rem; border: 1px dashed rgba(148, 163, 184, 0.35); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
        .ai-order-scroll { position: relative; overflow: hidden !important; height: 100% !important; min-height: 0 !important; max-height: 100% !important; }
        .ai-order-track { display: flex; flex-direction: column; gap: 0.75rem; animation: aiOrderScroll 18s linear infinite; will-change: transform; }
        .ai-order-scroll:hover .ai-order-track { animation-play-state: paused; }
        @keyframes aiOrderScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
        .ai-intent-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; }
        .ai-intent-chip.up { color: #34d399; background: rgba(52, 211, 153, 0.16); border: 1px solid rgba(52, 211, 153, 0.4); }
        .ai-intent-chip.down { color: #f87171; background: rgba(248, 113, 113, 0.16); border: 1px solid rgba(248, 113, 113, 0.4); }
        .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(20px); display: none; align-items: center; justify-content: center; z-index: 10000; opacity: 0; transition: opacity 0.3s ease; padding: 1rem; overflow-y: auto; }
        .modal-overlay.show { display: flex; opacity: 1; }
        .modal-content { background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; width: 100%; max-width: 1200px; max-height: min(90vh, calc(var(--app-vh) - 2rem)); overflow: hidden; display: flex; flex-direction: column; transform: scale(0.95) translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .modal-overlay.show .modal-content { transform: scale(1) translateY(0); }
        .modal-header { padding: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent); flex-shrink: 0; }
        .modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
        .data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
        .data-table th { text-align: left; padding: 0.875rem 1rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
        .data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .data-table tr:hover { background: rgba(255, 255, 255, 0.03); }
        .progress-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
        .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 3px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
        .badge { padding: 0.25rem 0.625rem; border-radius: 6px; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
        .badge-legend { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
        .badge-master { background: rgba(168, 85, 247, 0.2); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
        .badge-expert { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
        .badge-elite { background: rgba(0, 255, 136, 0.2); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.3); }
        .badge-novice { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); }
        .tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
        .tabs::-webkit-scrollbar { display: none; }
        .tab-btn { padding: 0.75rem 1rem; background: transparent; border: none; color: rgba(255, 255, 255, 0.5); font-size: 0.8125rem; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
        .tab-btn:hover { color: rgba(255, 255, 255, 0.8); }
        .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
        .stream-item { padding: 0.625rem 0.875rem; border-radius: 8px; margin-bottom: 0.375rem; font-size: 0.8125rem; animation: slideIn 0.3s ease; }
        @keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
        .telegram-message { padding: 0.5rem 0.75rem; background: rgba(255, 255, 255, 0.06); border-radius: 8px; margin: 0.375rem 0; font-size: 0.75rem; animation: messageIn 0.3s ease; }
        @keyframes messageIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .order-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 1rem; margin-bottom: 0.75rem; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
        .order-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(0, 212, 255, 0.25); transform: translateX(4px); }
        .activation-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.6875rem; font-weight: 600; }
        .activation-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
        .activation-active { background: rgba(0, 255, 136, 0.15); color: var(--secondary); border: 1px solid rgba(0, 255, 136, 0.3); }
        .activation-expired { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
        .code-block { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #a5b4fc; word-break: break-all; }
        .toast-container { position: fixed; top: calc(1rem + env(safe-area-inset-top)); right: calc(1rem + env(safe-area-inset-right)); z-index: 10001; display: flex; flex-direction: column; gap: 0.5rem; }
        .toast { padding: 1rem 1.25rem; background: var(--panel-bg); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transform: translateX(150%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); max-width: 90vw; }
        .toast.show { transform: translateX(0); }
        .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
        @media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
        .model-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(0, 212, 255, 0.15); border-radius: 10px; padding: 1rem; cursor: pointer; transition: all 0.25s; }
        .model-card:hover { border-color: rgba(0, 212, 255, 0.4); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1); }
        .model-card.active { border-color: var(--primary); background: rgba(0, 212, 255, 0.1); }
        .lobster-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(168, 85, 247, 0.15); border-radius: 10px; padding: 0.75rem; cursor: pointer; transition: all 0.25s; }
        .lobster-card:hover { border-color: rgba(168, 85, 247, 0.4); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1); }
        .lobster-mini-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 0.5rem; cursor: pointer; transition: all 0.25s; font-size: 0.75rem; }
        .lobster-mini-card:hover { border-color: rgba(0, 212, 255, 0.4); transform: translateY(-2px); }
        .lobster-mini-card.inactive { opacity: 0.5; border-color: rgba(239, 68, 68, 0.3); }
        .lobster-mini-card.not-activated { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.05); }
        .dialog-bubble { padding: 0.875rem 1rem; border-radius: 12px; margin-bottom: 0.75rem; max-width: 85%; font-size: 0.8125rem; line-height: 1.5; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .dialog-big { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05)); border: 1px solid rgba(0, 212, 255, 0.3); margin-right: auto; border-bottom-left-radius: 4px; }
        .dialog-small { background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05)); border: 1px solid rgba(0, 255, 136, 0.3); margin-left: auto; border-bottom-right-radius: 4px; text-align: right; }
        .tab-content.hidden { display: none; }
        .countdown-timer { display: inline-flex; align-items: center; gap: 0.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--warning); }
        .countdown-timer.expired { color: var(--danger); }
        .qr-container { background: white; padding: 1rem; border-radius: 12px; display: inline-block; }
        .learning-interface { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; line-height: 1.6; max-height: 300px; overflow-y: auto; }
        .learning-line { padding: 0.25rem 0; border-left: 2px solid transparent; padding-left: 0.75rem; margin-left: -0.75rem; }
        .learning-line.new { border-left-color: var(--primary); animation: highlightLine 2s ease; }
        @keyframes highlightLine { 0% { background: rgba(0, 212, 255, 0.2); } 100% { background: transparent; } }
        .module-content-wrapper { flex: 1; display: flex; flex-direction: column; min-height: 280px; max-height: 280px; overflow: hidden; }
        .module-scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; }
        .module-action-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05)); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 10px; color: var(--primary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.25s; width: 100%; margin-top: auto; }
        .module-action-btn:hover { background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.1)); box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); transform: translateY(-2px); }
        .lobster-status-panel { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05)); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
        .lobster-status-item { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
        .lobster-status-item:last-child { border-bottom: none; }
        .subscription-info { background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05)); border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
        .subscription-info.expired { background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05)); border-color: rgba(239, 68, 68, 0.2); }
        .token-usage-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; background: rgba(255, 255, 255, 0.03); border-radius: 6px; margin-bottom: 0.25rem; }
        .pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1rem; }
        .pagination-btn { padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: rgba(255, 255, 255, 0.7); cursor: pointer; transition: all 0.2s; }
        .pagination-btn:hover { background: rgba(0, 212, 255, 0.15); border-color: rgba(0, 212, 255, 0.3); color: var(--primary); }
        .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .pagination-info { padding: 0.5rem 1rem; color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; }
        .openclaw-desktop-only { display: none !important; }
        .openclaw-mobile-only { display: grid !important; }
        @media (min-width: 1024px) {
          .openclaw-desktop-only { display: flex !important; flex-direction: column; }
          .openclaw-mobile-only { display: none !important; }
        }
        .hidden { display: none !important; }
        @media (max-width: 1024px) { .login-left { display: none; } .login-right { width: 100%; } }
        @media (max-width: 768px) {
          body { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
          .login-right { padding: 1.25rem; }
          .login-title { font-size: 1.5rem; }
          .wallet-options { grid-template-columns: 1fr; }
          .panel-header { padding: 0.75rem 0.875rem; }
          .panel-content, .modal-body { padding: 0.75rem; }
          .module-content-wrapper { min-height: 220px; max-height: 220px; }
          .btn { min-height: 40px; }
        }
        @media (max-width: 480px) {
          .wallet-options { grid-template-columns: 1fr; }
          .login-tab { padding: 0.75rem; }
          .toast-container { top: calc(0.75rem + env(safe-area-inset-top)); left: calc(0.75rem + env(safe-area-inset-left)); right: calc(0.75rem + env(safe-area-inset-right)); }
          .toast { max-width: none; }
        }
        .activation-entry-card { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 12px; padding: 1rem; cursor: pointer; transition: all 0.25s; }
        .activation-entry-card:hover { background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1)); box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); transform: translateY(-2px); }
        .master-lobster-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgba(0, 212, 255, 0.24); background: linear-gradient(120deg, rgba(0, 212, 255, 0.08), rgba(10, 10, 20, 0.8) 50%, rgba(168, 85, 247, 0.08)); overflow: hidden; }
        .master-lobster-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 10% 50%, rgba(0, 212, 255, 0.12), transparent 55%), radial-gradient(ellipse at 92% 25%, rgba(168, 85, 247, 0.12), transparent 45%); }
        .master-lobster-meta { position: relative; z-index: 1; min-width: 0; }
        .master-lobster-tag { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #67e8f9; border: 1px solid rgba(103, 232, 249, 0.36); background: rgba(8, 145, 178, 0.18); }
        .master-lobster-title { margin-top: 0.55rem; font-size: 1.05rem; line-height: 1.35; font-weight: 700; color: #f8fafc; }
        .master-lobster-sub { margin-top: 0.35rem; font-size: 0.78rem; color: rgba(226, 232, 240, 0.8); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
        .master-lobster-sub .mono { font-family: 'JetBrains Mono', monospace; color: #7dd3fc; font-weight: 600; }
        .master-lobster-sub .state { font-family: 'JetBrains Mono', monospace; padding: 0.14rem 0.45rem; border-radius: 6px; border: 1px solid rgba(16, 185, 129, 0.45); color: #34d399; background: rgba(16, 185, 129, 0.15); }
        .master-lobster-sub .state.warn { border-color: rgba(245, 158, 11, 0.5); color: #f59e0b; background: rgba(245, 158, 11, 0.18); }
        .master-lobster-sub .state.offline { border-color: rgba(239, 68, 68, 0.5); color: #f87171; background: rgba(239, 68, 68, 0.16); }
        .master-lobster-timezone { margin-top: 0.32rem; font-size: 0.72rem; color: rgba(103, 232, 249, 0.92); }
        .master-lobster-hint { margin-top: 0.4rem; font-size: 0.74rem; color: rgba(148, 163, 184, 0.92); }
        .master-electric-wrap { position: relative; z-index: 1; flex: 0 0 auto; text-align: right; }
        .master-electric-svg { width: 220px; height: 90px; }
        .master-electric-svg .shell { fill: rgba(15, 23, 42, 0.78); stroke: rgba(148, 163, 184, 0.45); stroke-width: 1.4; }
        .master-electric-svg .core { fill: rgba(2, 132, 199, 0.14); stroke: rgba(56, 189, 248, 0.55); stroke-width: 1.2; }
        .master-electric-svg .vent { fill: rgba(59, 130, 246, 0.38); opacity: 0.85; }
        .master-electric-svg .bolt { fill: none; stroke-linecap: round; stroke-linejoin: round; filter: url(#electricGlow); stroke-dasharray: 130; stroke-dashoffset: 130; }
        .master-electric-svg .bolt-a { stroke: #67e8f9; stroke-width: 2.8; animation: boltRun 2.1s linear infinite; }
        .master-electric-svg .bolt-b { stroke: #a78bfa; stroke-width: 2.2; animation: boltRun 1.8s linear infinite 0.45s; opacity: 0.85; }
        .master-electric-svg .bolt-c { stroke: #34d399; stroke-width: 1.9; animation: boltRun 2.4s linear infinite 0.8s; opacity: 0.72; }
        .master-electric-svg .spark { fill: #67e8f9; filter: url(#electricGlow); animation: sparkBlink 1.7s steps(2, end) infinite; }
        .master-electric-svg .spark.s2 { animation-delay: 0.45s; fill: #a78bfa; }
        .master-electric-svg .spark.s3 { animation-delay: 0.9s; fill: #34d399; }
        .master-electric-caption { margin-top: 0.3rem; font-size: 0.68rem; color: rgba(125, 211, 252, 0.9); letter-spacing: 0.03em; }
        @keyframes boltRun {
          0% { stroke-dashoffset: 130; opacity: 0.05; }
          12% { opacity: 1; }
          45% { opacity: 0.95; }
          65% { opacity: 0.35; }
          100% { stroke-dashoffset: 0; opacity: 0.05; }
        }
        @keyframes sparkBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
        @media (max-width: 768px) {
          .master-lobster-hero { flex-direction: column; align-items: flex-start; }
          .master-electric-wrap { width: 100%; text-align: left; }
          .master-electric-svg { width: 100%; max-width: 320px; height: auto; }
        }
