
        @import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

        body {
            background-color: #000000;
            color: #e0f2fe;
            font-family: 'Rajdhani', sans-serif;
            overflow-x: hidden;
            position: relative;
            padding-top: 40px;
            /* Улучшение отзывчивости прокрутки на мобильных */
            touch-action: pan-y;
            -webkit-overflow-scrolling: touch;
        }

        .main-container {
            -webkit-overflow-scrolling: touch;
        }

        /* GO ARBY / HAND: активная кнопка режима */
        .mode-toggle-btn--active {
            border-color: rgba(6, 182, 212, 0.7);
            background: rgba(6, 182, 212, 0.15);
        }

        /* Neon Glow Effects */
        .neon-border {
            box-shadow: 0 0 20px rgba(6, 182, 212, 0.8), inset 0 0 10px rgba(6, 182, 212, 0.1);
            border: 2px solid #06b6d4;
            border-radius: 24px;
        }

        .cyber-input {
            background: rgba(5, 11, 20, 0.9);
            border: 1px solid rgba(6, 182, 212, 0.3);
            color: #fff;
            border-radius: 8px;
            outline: none;
            transition: all 0.3s ease;
        }

        .cyber-input:focus {
            border-color: #06b6d4;
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
        }

        /* TOKEN SELECTION: высота строки x1.5, выбранный токен — крупнее и жирный */
        .token-select-input {
            min-height: 2.25rem;
            font-size: 1rem;
            font-weight: 700;
        }

        /* Arbitrage Data Boxes */
        .data-box {
            background: rgba(6, 182, 212, 0.05);
            border: 1px solid rgba(6, 182, 212, 0.3);
            border-radius: 12px;
            padding: 10px;
            font-family: monospace;
        }

        .data-label { color: rgba(6, 182, 212, 0.7); font-size: 10px; text-transform: uppercase; }
        .data-value { color: #fff; float: right; font-weight: bold; }

        /* Buttons Style */
        .switch-mode-btn {
            border: 1px solid rgba(6, 182, 212, 0.3);
            background: rgba(5, 11, 20, 0.6);
            color: #e0f2fe;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .switch-mode-btn.active {
            border-color: #06b6d4;
            background: rgba(6, 182, 212, 0.2);
            color: #06b6d4;
            box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
        }

        .instruction-btn {
            font-size: 0.6rem;
            padding: 2px 8px;
            background: rgba(34, 197, 94, 0.2);
            border: 1px solid rgba(34, 197, 94, 0.5);
            border-radius: 9999px;
            color: #4ade80;
            cursor: pointer;
        }

        /* Order buttons Long / Short / EXIT — три визуальных состояния */
        .order-btn {
            transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
        }
        /* Можно нажать: средний ободок + лёгкое свечение (ждёт) */
        .order-btn--active-waiting {
            border: 2px solid rgba(6, 182, 212, 0.55);
            background-color: rgba(0, 0, 0, 0.5);
            box-shadow: 0 0 18px 5px rgba(6, 182, 212, 0.35);
        }
        .order-btn--active-waiting:hover:not(:disabled) {
            border-color: rgba(6, 182, 212, 0.75);
            box-shadow: 0 0 22px 6px rgba(6, 182, 212, 0.45);
        }
        /* В позиции: тоньше ободок, поле выделено, без контражура */
        .order-btn--in-position {
            border: 1px solid rgba(6, 182, 212, 0.6);
            background-color: rgba(6, 182, 212, 0.18);
            box-shadow: none;
        }
        /* Неактивна: тёмное тело, волосяной ободок */
        .order-btn--inactive {
            border: 1px solid rgba(6, 182, 212, 0.22);
            background-color: rgba(0, 0, 0, 0.78);
            box-shadow: none;
        }

        /* Тостовое уведомление без кнопки, автоскрытие 0.8 с */
        .app-toast {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            top: 20%;
            z-index: 9999;
            padding: 12px 20px;
            border-radius: 12px;
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            max-width: 90%;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
        }
        .app-toast.visible {
            opacity: 1;
        }
        .app-toast.toast-success {
            background: rgba(6, 182, 212, 0.25);
            border: 1px solid rgba(6, 182, 212, 0.5);
            color: #a5f3fc;
        }
        .app-toast.toast-error {
            background: rgba(239, 68, 68, 0.25);
            border: 1px solid rgba(239, 68, 68, 0.5);
            color: #fecaca;
        }

        /* Custom Range Slider */
        input[type="range"] { -webkit-appearance: none; background: rgba(6, 182, 212, 0.2); height: 4px; border-radius: 2px; width: 100%; }
        input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: #06b6d4; box-shadow: 0 0 10px #06b6d4; cursor: pointer; }

        .hour-step { font-size: 8px; color: rgba(6, 182, 212, 0.5); font-weight: bold; }

        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal.hidden {
            display: none;
        }

        /* Окно управления токенами: отступ от верха 90px */
        #manageTokensModal {
            align-items: flex-start;
            padding-top: 90px;
        }

        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
        }

        .modal-content {
            position: relative;
            background: rgba(5, 11, 20, 0.95);
            border: 2px solid rgba(6, 182, 212, 0.5);
            border-radius: 16px;
            padding: 20px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
            z-index: 1001;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(6, 182, 212, 0.3);
        }

        .modal-close-btn {
            background: transparent;
            border: none;
            color: #06b6d4;
            font-size: 20px;
            cursor: pointer;
            padding: 5px 10px;
            transition: all 0.3s ease;
        }

        .modal-close-btn:hover {
            color: #fff;
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 10px 0;
        }

        /* Custom Dropdown Styles */
        #tokenSelectDropdown li {
            padding: 8px 12px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.2s;
        }

        #tokenSelectDropdown li:hover {
            background-color: rgba(6, 182, 212, 0.2);
        }

        #tokenSelectDropdown li .delete-icon {
            opacity: 0;
            transition: opacity 0.2s;
            color: #ef4444;
            padding: 2px 6px;
            border-radius: 4px;
            cursor: pointer;
        }

        #tokenSelectDropdown li:hover .delete-icon {
            opacity: 1;
        }

        #tokenSelectDropdown li .delete-icon:hover {
            background-color: rgba(239, 68, 68, 0.2);
        }

        /* Кастомный dropdown - скрыт по умолчанию */
        #tokenSelectDropdown {
            display: none !important;
            visibility: hidden !important;
        }

        /* Открытый dropdown - видим */
        #tokenSelectDropdown.open {
            display: block !important;
            visibility: visible !important;
        }
        
        /* Переопределяем Tailwind hidden для dropdown */
        #tokenSelectDropdown.hidden {
            display: none !important;
            visibility: hidden !important;
        }

        #tokenSelectArrow.rotated {
            transform: rotate(180deg);
        }

        /* --- СТИЛИ ДЛЯ ВЫПАДАЮЩИХ МЕНЮ LANGUAGE --- */
        .language-trigger.active i {
            transform: rotate(180deg);
        }

        .language-dropdown {
            animation: fadeInDropdown 0.2s ease;
        }

        @keyframes fadeInDropdown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .language-dropdown-list::-webkit-scrollbar {
            width: 4px;
        }

        .language-dropdown-list::-webkit-scrollbar-track {
            background: rgba(6, 182, 212, 0.1);
            border-radius: 2px;
        }

        .language-dropdown-list::-webkit-scrollbar-thumb {
            background: rgba(6, 182, 212, 0.5);
            border-radius: 2px;
        }

        .language-dropdown-list::-webkit-scrollbar-thumb:hover {
            background: rgba(6, 182, 212, 0.7);
        }

        .language-item.selected {
            background: rgba(6, 182, 212, 0.2);
            color: #06b6d4;
            font-weight: bold;
        }

        /* --- СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО ОКНА TRADE HISTORY --- */
        .trade-history-trigger.active i {
            transform: rotate(180deg);
        }

        .trade-history-dropdown {
            animation: fadeInDropdownUp 0.2s ease;
        }

        @keyframes fadeInDropdownUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .trade-history-list::-webkit-scrollbar {
            width: 4px;
        }

        .trade-history-list::-webkit-scrollbar-track {
            background: rgba(6, 182, 212, 0.1);
            border-radius: 2px;
        }

        .trade-history-list::-webkit-scrollbar-thumb {
            background: rgba(6, 182, 212, 0.5);
            border-radius: 2px;
        }

        .trade-history-list::-webkit-scrollbar-thumb:hover {
            background: rgba(6, 182, 212, 0.7);
        }

        .trade-history-item {
            padding: 8px 12px;
            border-bottom: 1px solid rgba(6, 182, 212, 0.1);
            font-size: 11px;
        }

        .trade-history-item:last-child {
            border-bottom: none;
        }

        .trade-history-item:hover {
            background: rgba(6, 182, 212, 0.1);
        }

        .trade-history-direction {
            display: inline-block;
            width: 30px;
            text-align: center;
            font-weight: bold;
        }

        .trade-history-direction.in {
            color: #10b981; /* green */
        }

        .trade-history-direction.out {
            color: #ef4444; /* red */
        }

        .trade-history-exchange {
            display: inline-block;
            min-width: 80px;
            text-align: right;
        }

        .trade-history-exchange.long {
            color: #10b981; /* green */
        }

        .trade-history-exchange.short {
            color: #ef4444; /* red */
        }

        /* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА INSTRUCTION --- */
        .instruction-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            z-index: 10000;
            padding: 90px 1rem 1rem 1rem;
            animation: fadeIn 0.3s ease;
        }

        .instruction-modal-overlay.hidden {
            display: none;
        }

        .instruction-modal-content {
            background: linear-gradient(135deg, rgba(5, 11, 20, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
            border: 2px solid rgba(6, 182, 212, 0.5);
            border-radius: 12px;
            max-width: 90%;
            max-height: calc(100vh - 110px);
            width: 500px;
            box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: slideUp 0.3s ease;
        }

        .instruction-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid rgba(6, 182, 212, 0.3);
        }

        .instruction-modal-close {
            background: transparent;
            border: none;
            color: #06b6d4;
            cursor: pointer;
            padding: 4px 8px;
            font-size: 18px;
        }

        .instruction-modal-body {
            overflow-y: auto;
            padding: 1rem 1.5rem;
        }

        .instruction-text {
            color: rgba(224, 242, 254, 0.9);
            font-size: 14px;
            line-height: 1.5;
        }

        /* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА TOP UP --- */
        .top-up-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .top-up-modal-overlay.hidden {
            display: none;
        }

        /* TOP UP: отступ от верха 90px */
        #topUpModal.top-up-modal-overlay {
            align-items: flex-start;
            padding-top: 90px;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .top-up-modal-content {
            background: rgba(5, 11, 20, 0.95);
            border: 2px solid rgba(6, 182, 212, 0.5);
            border-radius: 16px;
            padding: 24px;
            max-width: 400px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 
                0 0 40px rgba(6, 182, 212, 0.6),
                0 0 80px rgba(6, 182, 212, 0.3),
                inset 0 0 20px rgba(6, 182, 212, 0.1);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .top-up-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border: 1px solid rgba(6, 182, 212, 0.4);
            background: rgba(6, 182, 212, 0.1);
            border-radius: 50%;
            color: #06b6d4;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 14px;
        }

        .top-up-modal-close:hover {
            background: rgba(6, 182, 212, 0.2);
            border-color: #06b6d4;
            transform: scale(1.1);
        }

        .top-up-info-box {
            background: rgba(6, 182, 212, 0.05);
            border: 1px solid rgba(6, 182, 212, 0.2);
            border-radius: 8px;
            padding: 12px;
        }

        .top-up-pricing-table {
            background: rgba(6, 182, 212, 0.05);
            border: 1px solid rgba(6, 182, 212, 0.2);
            border-radius: 8px;
            padding: 12px;
        }

        .top-up-packages-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 16px;
        }

        .top-up-package-btn {
            background: rgba(34, 197, 94, 0.8);
            border: 4px solid rgba(6, 182, 212, 1);
            border-radius: 16px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
        }

        .top-up-package-btn:hover {
            background: rgba(34, 197, 94, 0.95);
            border-color: rgba(6, 182, 212, 1);
            box-shadow: 0 0 25px rgba(34, 197, 94, 0.7), 0 0 40px rgba(34, 197, 94, 0.4);
            transform: translateY(-2px);
        }

        .top-up-package-btn:active {
            background: rgba(34, 197, 94, 1);
            border-width: 6px;
            box-shadow: 0 0 30px rgba(34, 197, 94, 0.9), 0 0 50px rgba(34, 197, 94, 0.5);
            transform: translateY(0);
        }

        .top-up-modal-content::-webkit-scrollbar {
            width: 4px;
        }

        .top-up-modal-content::-webkit-scrollbar-track {
            background: rgba(6, 182, 212, 0.1);
            border-radius: 2px;
        }

        .top-up-modal-content::-webkit-scrollbar-thumb {
            background: rgba(6, 182, 212, 0.5);
            border-radius: 2px;
        }

        .top-up-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(6, 182, 212, 0.7);
        }

        /* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПАРТНЕРОВ --- */
        .partners-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .partners-modal-overlay.hidden {
            display: none;
        }

        /* FOR PARTNERS: отступ от верха 90px */
        #partnersModal.partners-modal-overlay {
            align-items: flex-start;
            padding-top: 90px;
        }

        .partners-modal-content {
            background: rgba(5, 11, 20, 0.95);
            border: 2px solid rgba(6, 182, 212, 0.5);
            border-radius: 16px;
            padding: 32px 24px;
            max-width: 480px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 
                0 0 40px rgba(6, 182, 212, 0.6),
                0 0 80px rgba(6, 182, 212, 0.3),
                inset 0 0 20px rgba(6, 182, 212, 0.1);
            animation: slideUp 0.3s ease;
        }

        .partners-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border: 1px solid rgba(6, 182, 212, 0.4);
            background: rgba(6, 182, 212, 0.1);
            border-radius: 50%;
            color: #06b6d4;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 14px;
        }

        .partners-modal-close:hover {
            background: rgba(6, 182, 212, 0.2);
            border-color: #06b6d4;
            transform: scale(1.1);
        }

        .partners-content {
            color: #e0f2fe;
        }

        .partners-benefits {
            background: rgba(6, 182, 212, 0.05);
            border: 1px solid rgba(6, 182, 212, 0.2);
            border-radius: 12px;
            padding: 20px;
        }

        .partners-benefits ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .partners-benefits li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .partners-cta-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
            border: 2px solid #06b6d4;
            border-radius: 12px;
            color: #06b6d4;
            font-weight: bold;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
        }

        .partners-cta-btn:hover {
            background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.2));
            box-shadow: 
                0 0 30px rgba(6, 182, 212, 0.6),
                0 0 60px rgba(6, 182, 212, 0.3);
            transform: translateY(-2px);
        }

        .partners-cta-btn:active {
            transform: translateY(0);
        }

        .partners-modal-content::-webkit-scrollbar {
            width: 4px;
        }

        .partners-modal-content::-webkit-scrollbar-track {
            background: rgba(6, 182, 212, 0.1);
            border-radius: 2px;
        }

        .partners-modal-content::-webkit-scrollbar-thumb {
            background: rgba(6, 182, 212, 0.5);
            border-radius: 2px;
        }

        .partners-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(6, 182, 212, 0.7);
        }
    
