/* Extracted unchanged from the locked Pokdex application shell. */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: #0f1117;
            color: #ffffff;
            min-height: 100vh;
        }

        .app-container {
            max-width: 480px;
            margin: 0 auto;
            min-height: 100vh;
            background: #0f1117;
            position: relative;
            padding-bottom: 80px;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 767px) { .desktop-nav { display: none !important; } }
        @media (min-width: 768px) {
            .bottom-nav { display: none !important; }
            .price-ticker { display: none !important; }
            .header { max-width:100%; padding:0.875rem 2rem; position:sticky; top:0; z-index:100; background:rgba(15,17,23,0.97); backdrop-filter:blur(20px); }
            .desktop-nav { display: flex !important; gap: 0.25rem; }
            .app-container { max-width: 760px; padding-bottom: 3rem; }
            .main-content { padding: 2rem 0; display: block; }
            .trading-panel { max-width: 480px; margin: 0 auto; }
            .hero-text { text-align: center; margin-bottom: 2rem; }
            .hero-text h1 { font-size: 2.25rem; }
            .section-header { padding: 1.25rem 0 0.75rem; }
            .trending-scroll { padding: 0 0 0.75rem; }
            .prediction-widget { margin: 0 0 1rem; }
            .news-feed, .tx-feed { margin: 0; }
            .market-stats-bar { padding: 0.75rem 0; border: none; background: transparent; }
            .widget-divider { margin: 0.25rem 0; }
            .prediction-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
        }
        @media (min-width: 1024px) { .app-container { max-width: 900px; } .trading-panel { max-width: 520px; } }
        @media (min-width: 1400px) { .app-container { max-width: 1050px; } }

        /* Header */
        .header {
            padding: 0.75rem 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            flex-wrap: nowrap;
            gap: 0.5rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            font-weight: 800;
            font-size: 1.5rem;
            letter-spacing: -0.02em;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-icon svg {
            width: 100%;
            height: 100%;
        }

        .logo-text {
            background: transparent;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: nowrap;
        }

        .search-bar {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 0.625rem 1rem;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.875rem;
            width: 120px;
            outline: none;
            transition: all 0.2s;
        }

        .search-bar:focus {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.08);
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: #C6FC50;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            color: #000000;
        }

        .icon-btn:hover {
            background: #D4FF70;
        }

        .connect-btn {
            background: #C6FC50;
            color: #000000;
            border: none;
            padding: 0.625rem 1.25rem;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .connect-btn:hover {
            background: #D4FF70;
            transform: translateY(-1px);
        }

        .connect-btn.connected {
            background: #C6FC50;
            color: #000000;
        }

        /* Price Ticker */
        .price-ticker {
            padding: 1rem;
            display: flex;
            gap: 1.5rem;
            overflow-x: auto;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            scrollbar-width: none;
        }

        .price-ticker::-webkit-scrollbar {
            display: none;
        }

        .price-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
            cursor: pointer;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .price-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .price-item.active {
            background: rgba(198, 252, 80, 0.1);
        }

        .token-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .token-icon img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
        }

        .price-symbol {
            font-weight: 600;
            font-size: 0.875rem;
        }

        .price-value {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.875rem;
        }

        .price-change {
            font-size: 0.75rem;
            font-weight: 600;
        }

        .price-change.positive {
            color: #00FFA3;
        }

        .price-change.negative {
            color: #FF4757;
        }

        /* Main Content */
        .main-content {
            padding: 2rem 1rem;
        }

        .hero-text {
            text-align: center;
            margin-bottom: 2rem;
        }

        .hero-text h1 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .hero-text p {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.875rem;
        }

        /* Trading Panel */
        .trading-panel {
            background: rgba(20, 22, 30, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 20px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            backdrop-filter: blur(10px);
        }

        .trade-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            padding: 0.375rem;
            border-radius: 12px;
        }

        .trade-tab {
            flex: 1;
            padding: 0.625rem;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 600;
            font-size: 0.875rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .trade-tab.active {
            background: rgba(198, 252, 80, 0.15);
            color: #C6FC50;
        }

        .trade-section {
            margin-bottom: 1rem;
        }

        .trade-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 0.75rem;
            font-weight: 500;
        }

        .input-container {
            background: rgba(30, 32, 42, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1.25rem;
            transition: all 0.2s;
        }

        .input-container:focus-within {
            border-color: rgba(198, 252, 80, 0.3);
            background: rgba(30, 32, 42, 1);
        }

        .token-select {
            display: flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.5rem 0.75rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            width: fit-content;
            min-width: 120px;
            margin-bottom: 1rem;
            transition: all 0.2s;
        }

        .token-select:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .token-select img {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            flex-shrink: 0;
            object-fit: cover;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .token-name {
            font-weight: 700;
            font-size: 0.875rem;
        }

        .dropdown-icon {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.75rem;
        }

        .amount-input {
            width: 100%;
            background: transparent;
            border: none;
            color: #ffffff;
            font-size: 2rem;
            font-weight: 700;
            outline: none;
            margin-bottom: 0.5rem;
        }

        .amount-input::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }

        .balance {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.875rem;
        }

        .swap-divider {
            display: flex;
            justify-content: center;
            margin: -0.5rem 0;
            position: relative;
            z-index: 2;
        }

        .swap-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1.25rem;
        }

        .swap-icon:hover {
            transform: rotate(180deg);
            border-color: rgba(198, 252, 80, 0.5);
        }

        /* Approval Section */
        .approval-section {
            background: rgba(30, 32, 42, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            padding: 1rem;
            margin: 1rem 0;
        }

        .pool-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
        }

        .approval-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .approval-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #FF4757;
            animation: pulse 2s infinite;
        }

        .approval-indicator.approved {
            background: #00FFA3;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .approval-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .approval-info h4 {
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .approval-info p {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            font-family: monospace;
        }

        .approve-btn {
            width: 100%;
            background: #C6FC50;
            border: none;
            color: #000000;
            padding: 1rem;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .approve-btn:hover {
            background: #b8ed48;
        }

        .approve-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Action Button */
        .action-btn {
            width: 100%;
            background: #C6FC50;
            color: #000000;
            border: none;
            padding: 1.125rem;
            border-radius: 16px;
            font-weight: 800;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 1rem;
        }

        .action-btn:hover {
            background: #D4FF70;
            transform: translateY(-2px);
        }

        .action-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Settings Panel */
        .settings-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .settings-row:last-child {
            border-bottom: none;
        }

        .settings-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
        }

        .settings-value {
            font-size: 0.875rem;
            font-weight: 600;
        }

        /* Bottom Nav */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(15, 17, 23, 0.98);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: space-around;
            padding: 0.875rem 0;
            max-width: 480px;
            margin: 0 auto;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.375rem;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.35);
            transition: all 0.2s;
            text-decoration: none;
            padding: 0.25rem 0.75rem;
            border-radius: 8px;
            min-width: 60px;
        }

        .nav-item.active {
            color: #C6FC50;
        }

        .nav-item.disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .nav-item:not(.disabled):hover {
            color: rgba(255, 255, 255, 0.7);
        }

        .nav-icon {
            font-size: 1.5rem;
            filter: grayscale(1) brightness(0.6);
            transition: all 0.2s;
        }

        .nav-item.active .nav-icon {
            filter: grayscale(0) brightness(1.2);
        }

        .nav-label {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        /* Notification */
        .notification {
            position: fixed;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 1rem 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            transform: translateX(400px);
            transition: transform 0.3s;
            z-index: 1000;
            max-width: 300px;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.success {
            border-left: 4px solid #00FFA3;
        }

        .notification.error {
            border-left: 4px solid #FF4757;
        }

        .notif-title {
            font-weight: 700;
            margin-bottom: 0.25rem;
            font-size: 0.875rem;
        }

        .notif-message {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Loading */
        .loading {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(0, 0, 0, 0.3);
            border-top-color: #000000;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Token Selector Modal */
        .token-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .token-modal.show {
            display: flex;
        }

        .token-modal-content {
            background: #1a1d26;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .token-modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .token-modal-header h3 {
            font-size: 1.125rem;
            font-weight: 700;
            margin: 0;
        }

        .modal-close {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        .token-search {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .token-search input {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 0.75rem 1rem;
            color: #ffffff;
            font-size: 0.875rem;
            outline: none;
        }

        .token-search input:focus {
            border-color: rgba(198, 252, 80, 0.5);
        }

        .token-list {
            overflow-y: auto;
            flex: 1;
            padding: 0.5rem;
        }

        .token-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            gap: 0.75rem;
        }

        .token-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .token-item-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
        }

        .token-item-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
            overflow: hidden;
        }

        .token-item-info h4 {
            font-size: 0.875rem;
            font-weight: 700;
            margin: 0 0 0.125rem 0;
            max-width: 190px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .token-item-info p {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
            max-width: 230px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .token-item-balance {
            text-align: right;
            flex-shrink: 0;
        }

        .token-item-amount {
            font-size: 0.875rem;
            font-weight: 700;
            margin: 0 0 0.125rem 0;
        }

        .token-item-value {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
        }

        .wallet-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.72);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1100;
            padding: 1rem;
        }

        .wallet-modal.show {
            display: flex;
        }

        .wallet-modal-content {
            width: min(430px, 100%);
            background: #f7f8fb;
            color: #2f3745;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
        }

        .wallet-modal-header {
            display: grid;
            grid-template-columns: 36px 1fr 36px;
            align-items: center;
            gap: 0.75rem;
            padding: 1.25rem 1.25rem 1rem;
        }

        .wallet-help,
        .wallet-close {
            width: 36px;
            height: 36px;
            border: 0;
            background: transparent;
            color: #505763;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wallet-help {
            font-size: 1.1rem;
            font-weight: 800;
            border: 2px solid rgba(80, 87, 99, 0.25);
            border-radius: 50%;
        }

        .wallet-modal-title {
            text-align: center;
            font-size: 1.25rem;
            font-weight: 700;
            color: #4b5563;
        }

        .wallet-list {
            padding: 0.5rem 1rem 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .wallet-option {
            border: 0;
            width: 100%;
            background: transparent;
            color: #4b5563;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.95rem 0.85rem;
            border-radius: 16px;
            cursor: pointer;
            text-align: left;
            transition: background 0.18s;
        }

        .wallet-option:hover,
        .wallet-option.featured {
            background: #eef0f4;
        }

        .wallet-option-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            background: #ffffff;
            font-weight: 900;
            color: #ffffff;
        }

        .wallet-option-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .wallet-option-icon.walletconnect {
            background: #3898ff;
            font-size: 1.35rem;
        }

        .wallet-option-copy {
            flex: 1;
            min-width: 0;
        }

        .wallet-option-name {
            font-size: 1.05rem;
            font-weight: 700;
            color: #4b5563;
        }

        .wallet-chain-badges {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-top: 0.3rem;
        }

        .wallet-chain-badge {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #e3e7ed;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .wallet-chain-badge img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .wallet-option-tag {
            background: #e0e9f5;
            color: #4b5563;
            border-radius: 6px;
            padding: 0.3rem 0.5rem;
            font-size: 0.75rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .wallet-option-arrow {
            color: #9aa3ad;
            font-size: 1.9rem;
            line-height: 1;
        }

        .token-empty {
            padding: 1rem;
            color: rgba(255, 255, 255, 0.45);
            font-size: 0.875rem;
            text-align: center;
        }

        .solana-assets-panel {
            display: none;
            max-width: 520px;
            margin: 0 auto 1.5rem auto;
            background: rgba(20, 22, 30, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 20px;
            padding: 1rem;
            backdrop-filter: blur(10px);
        }

        .solana-assets-panel.show {
            display: block;
        }

        .assets-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.75rem;
        }

        .assets-title {
            font-size: 0.875rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.92);
        }

        .assets-total {
            font-size: 0.875rem;
            font-weight: 800;
            color: #C6FC50;
            text-align: right;
        }

        .assets-search {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 0.7rem 0.85rem;
            color: #ffffff;
            outline: none;
            font-size: 0.875rem;
            margin-bottom: 0.75rem;
        }

        .assets-search:focus {
            border-color: rgba(198, 252, 80, 0.45);
        }

        .assets-list {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            max-height: 360px;
            overflow-y: auto;
        }

        .asset-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.7rem;
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .asset-row:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .asset-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0;
        }

        .asset-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            overflow: hidden;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            flex-shrink: 0;
        }

        .asset-icon img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
        }

        .token-fallback-badge {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(circle at 32% 24%, rgba(255,255,255,0.16), transparent 34%),
                linear-gradient(145deg, rgba(18, 34, 48, 0.96), rgba(8, 15, 23, 0.96));
            border: 1px solid rgba(143, 160, 184, 0.18);
            color: #ffffff;
            font-weight: 900;
            font-size: 1rem;
            line-height: 1;
        }

        .asset-copy {
            min-width: 0;
        }

        .asset-symbol {
            font-size: 0.875rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.92);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 220px;
        }

        .asset-name {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.45);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 260px;
        }

        .asset-right {
            text-align: right;
            flex-shrink: 0;
        }

        .asset-balance {
            font-size: 0.875rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.9);
        }

        .asset-value {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.48);
        }

        /* ===== NEW WIDGETS CSS ===== */

        /* Animated background particles */
        .bg-particles {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }
        .particle {
            position: absolute;
            border-radius: 50%;
            animation: float-particle linear infinite;
            opacity: 0;
        }
        @keyframes float-particle {
            0% { transform: translateY(100vh) scale(0); opacity: 0; }
            10% { opacity: 0.3; }
            90% { opacity: 0.1; }
            100% { transform: translateY(-100px) scale(1); opacity: 0; }
        }

        /* Make sure content is above bg */
        .app-container { position: relative; z-index: 1; }

        /* Fear & Greed + Market Stats Bar */
        .market-stats-bar {
            display: flex;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            overflow-x: auto;
            scrollbar-width: none;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            background: rgba(10,12,18,0.6);
            flex-wrap: wrap;
        }
        .market-stats-bar::-webkit-scrollbar { display: none; }

        .stat-chip {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 20px;
            padding: 0.375rem 0.875rem;
            white-space: nowrap;
            font-size: 0.75rem;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        .stat-chip:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(198,252,80,0.2);
        }
        .stat-chip-label { color: rgba(255,255,255,0.45); font-weight: 500; }
        .stat-chip-value { color: #fff; font-weight: 700; }
        .stat-chip-value.green { color: #00FFA3; }
        .stat-chip-value.red { color: #FF4757; }
        .stat-chip-value.yellow { color: #FFD700; }

        /* Fear & Greed Meter */
        .fg-meter {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .fg-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        /* Trending Tokens Section */
        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1rem 0.75rem;
        }
        .section-title {
            font-size: 0.875rem;
            font-weight: 700;
            color: rgba(255,255,255,0.85);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .section-title .dot {
            width: 6px; height: 6px;
            background: #C6FC50;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }
        .section-link {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.35);
            cursor: pointer;
            transition: color 0.2s;
        }
        .section-link:hover { color: #C6FC50; }

        /* Trending tokens horizontal scroll */
        .trending-scroll {
            display: flex;
            gap: 0.75rem;
            padding: 0 1rem 0.75rem;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .trending-scroll::-webkit-scrollbar { display: none; }

        .trending-card {
            flex-shrink: 0;
            background: rgba(20,22,30,0.8);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 16px;
            padding: 0.875rem;
            width: 130px;
            cursor: pointer;
            transition: all 0.25s;
            position: relative;
            overflow: hidden;
        }
        .trending-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, #5FFBF1, #7B61FF);
            opacity: 0;
            transition: opacity 0.2s;
        }
        .trending-card:hover {
            border-color: rgba(198,252,80,0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        }
        .trending-card:hover::before { opacity: 1; }

        .trending-rank {
            font-size: 0.625rem;
            color: rgba(255,255,255,0.3);
            font-weight: 700;
            margin-bottom: 0.5rem;
            letter-spacing: 0.05em;
        }
        .trending-token-icon {
            width: 40px; height: 40px;
            border-radius: 50%;
            margin-bottom: 0.5rem;
            background: rgba(255,255,255,0.08);
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
        }
        .trending-token-icon img {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        .trending-symbol {
            font-size: 0.8125rem;
            font-weight: 700;
            margin-bottom: 0.125rem;
        }
        .trending-price {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            margin-bottom: 0.25rem;
        }
        .trending-change {
            font-size: 0.6875rem;
            font-weight: 700;
            padding: 0.125rem 0.375rem;
            border-radius: 4px;
            display: inline-block;
        }
        .trending-change.up {
            background: rgba(0,255,163,0.12);
            color: #00FFA3;
        }
        .trending-change.down {
            background: rgba(255,71,87,0.12);
            color: #FF4757;
        }

        /* Mini Sparkline */
        .sparkline { margin-top: 0.5rem; }

        /* Prediction Market - Polymarket style */
        .prediction-widget { margin: 0 0 1rem; }
        .prediction-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 0.75rem;
        }
        @media (max-width: 500px) { .prediction-grid { grid-template-columns: 1fr 1fr; } }

        .pred-card {
            background: rgba(20,22,30,0.95);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            padding: 0.75rem;
        }
        .pred-card:hover {
            border-color: rgba(198,252,80,0.25);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.35);
        }
        .pred-card-header {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .pred-card-icon {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            object-fit: cover;
            flex-shrink: 0;
            background: rgba(255,255,255,0.08);
        }
        .pred-card-title {
            font-size: 0.6875rem;
            font-weight: 700;
            line-height: 1.3;
            color: rgba(255,255,255,0.95);
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .pred-divider {
            height: 1px;
            background: rgba(255,255,255,0.06);
            margin: 0.4rem 0;
        }
        .pred-options { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
        .pred-opt-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.25rem;
        }
        .pred-opt-label {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.65);
            font-weight: 500;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .pred-btn-yes {
            background: rgba(0,200,130,0.18);
            color: #00c882;
            border: 1px solid rgba(0,200,130,0.3);
            padding: 0.15rem 0.4rem;
            border-radius: 5px;
            font-size: 0.6rem;
            font-weight: 700;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .pred-btn-no {
            background: rgba(255,71,87,0.15);
            color: #ff4757;
            border: 1px solid rgba(255,71,87,0.25);
            padding: 0.15rem 0.4rem;
            border-radius: 5px;
            font-size: 0.6rem;
            font-weight: 700;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .pred-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.6rem;
            color: rgba(255,255,255,0.28);
            margin-top: 0.4rem;
        }
        .pred-live {
            color: #00FFA3;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.2rem;
        }
        .pred-live::before {
            content: '';
            width: 4px; height: 4px;
            background: #00FFA3;
            border-radius: 50%;
            display: inline-block;
            animation: pulse 1.5s infinite;
        }

        /* News Feed */
        /* News Feed */
        .news-feed {
            margin: 0 1rem 1rem;
        }
        .news-item {
            display: flex;
            gap: 0.75rem;
            padding: 0.875rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            cursor: pointer;
            transition: all 0.2s;
        }
        .news-item:last-child { border-bottom: none; }
        .news-item:hover .news-title { color: #C6FC50; }
        .news-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: #C6FC50;
            margin-top: 0.35rem;
            flex-shrink: 0;
            animation: pulse 3s infinite;
        }
        .news-content { flex: 1; }
        .news-title {
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 0.25rem;
            transition: color 0.2s;
        }
        .news-meta {
            display: flex;
            gap: 0.5rem;
            font-size: 0.6875rem;
            color: rgba(255,255,255,0.35);
        }
        .news-source { color: rgba(198,252,80,0.6); font-weight: 600; }
        .news-sentiment {
            padding: 0.125rem 0.375rem;
            border-radius: 4px;
            font-size: 0.625rem;
            font-weight: 700;
        }
        .news-sentiment.bullish { background: rgba(0,255,163,0.1); color: #00FFA3; }
        .news-sentiment.bearish { background: rgba(255,71,87,0.1); color: #FF4757; }
        .news-sentiment.neutral { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); }

        /* Recent Transactions */
        .tx-feed {
            margin: 0 1rem 1rem;
        }
        .tx-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            animation: slideIn 0.3s ease;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-10px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .tx-item:last-child { border-bottom: none; }
        .tx-icon {
            width: 32px; height: 32px;
            border-radius: 10px;
            background: rgba(255,255,255,0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            flex-shrink: 0;
        }
        .tx-info { flex: 1; }
        .tx-pair {
            font-size: 0.8125rem;
            font-weight: 700;
            margin-bottom: 0.125rem;
        }
        .tx-detail {
            font-size: 0.6875rem;
            color: rgba(255,255,255,0.35);
        }
        .tx-amount {
            text-align: right;
            font-size: 0.8125rem;
            font-weight: 700;
        }
        .tx-time {
            font-size: 0.625rem;
            color: rgba(255,255,255,0.3);
            text-align: right;
            margin-top: 0.125rem;
        }

        /* Live indicator */
        .live-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.625rem;
            font-weight: 700;
            color: #00FFA3;
            letter-spacing: 0.08em;
        }
        .live-badge::before {
            content: '';
            width: 5px; height: 5px;
            background: #00FFA3;
            border-radius: 50%;
            animation: pulse 1.5s infinite;
        }

        /* Mini chart canvas */
        .mini-chart {
            width: 100%;
            height: 40px;
        }

        /* Divider */
        .widget-divider {
            height: 1px;
            background: rgba(255,255,255,0.05);
            margin: 0.5rem 1rem;
        }

        /* Mobile Responsive Fixes */
        @media (max-width: 480px) {
            .header {
                padding: 0.75rem;
            }
            
            .header-actions {
                gap: 0.4rem;
            }
            
            .search-bar {
                width: 100px;
                padding: 0.5rem 0.75rem;
                font-size: 0.8rem;
            }
            
            .icon-btn {
                width: 36px;
                height: 36px;
                font-size: 1.25rem;
            }
            
            .connect-btn {
                padding: 0.5rem 0.875rem;
                font-size: 0.875rem;
            }
            
            .logo-text {
                font-size: 1.25rem;
            }
            
            .price-ticker {
                padding: 0.75rem;
                gap: 0.5rem;
            }
            
            .hero-text h1 {
                font-size: 2rem;
            }
            
            .main-content {
                padding: 1.5rem 1rem;
            }
        }

        /* ===== TOP COINS TABLE ===== */
        .top-coins-wrap {
            margin: 0 0 1rem;
            background: rgba(20,22,30,0.8);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px;
            overflow: hidden;
        }
        .top-coins-head {
            display: grid;
            grid-template-columns: 28px 1fr 90px 65px 80px 60px;
            padding: 0.5rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            font-size: 0.6rem;
            font-weight: 600;
            color: rgba(255,255,255,0.35);
            letter-spacing: 0.04em;
            gap: 0.5rem;
        }
        .top-coins-row {
            display: grid;
            grid-template-columns: 28px 1fr 90px 65px 80px 60px;
            align-items: center;
            padding: 0.625rem 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            cursor: pointer;
            gap: 0.5rem;
            transition: background 0.15s;
        }
        .top-coins-row:last-child { border-bottom: none; }
        .top-coins-row:hover { background: rgba(255,255,255,0.03); }
        .coin-rank {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.3);
            font-weight: 600;
            text-align: center;
        }
        .coin-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            min-width: 0;
        }
        .coin-logo {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            flex-shrink: 0;
            object-fit: cover;
        }
        .coin-name-wrap { min-width: 0; }
        .coin-symbol {
            font-size: 0.75rem;
            font-weight: 700;
            white-space: nowrap;
        }
        .coin-name {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.35);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .coin-price {
            font-size: 0.75rem;
            font-weight: 700;
            text-align: right;
            white-space: nowrap;
        }
        .coin-change {
            font-size: 0.7rem;
            font-weight: 700;
            text-align: right;
        }
        .coin-change.up { color: #00FFA3; }
        .coin-change.down { color: #FF4757; }
        .coin-vol {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.4);
            text-align: right;
        }

        /* ===== PERMIT2 PANEL ===== */
        .permit-panel-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 0.25rem;
        }
        .permit-subtitle {
            font-size: 0.72rem;
            color: rgba(255,255,255,0.3);
            margin-bottom: 0.875rem;
        }
        .permit-token-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.6rem 0.75rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 10px;
            margin-bottom: 0.5rem;
            gap: 0.75rem;
        }
        .permit-token-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
            min-width: 0;
        }
        .permit-token-logo {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            background: rgba(255,255,255,0.08);
        }
        .permit-token-info {
            min-width: 0;
        }
        .permit-token-symbol {
            font-size: 0.825rem;
            font-weight: 700;
            white-space: nowrap;
        }
        .permit-token-name {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.35);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .permit-token-balance {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.4);
            white-space: nowrap;
            flex-shrink: 0;
        }
        .permit-actions {
            display: flex;
            gap: 0.375rem;
            flex-shrink: 0;
        }
        .permit-btn {
            padding: 0.35rem 0.75rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }


        .permit-btn-sign {
            background: #C6FC50;
            color: #000;
        }
        .permit-btn-sign:hover:not(:disabled) {
            background: #D4FF70;
        }
        .permit-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }
        .permit-status-done {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.75rem;
            font-weight: 700;
            color: #00FFA3;
            white-space: nowrap;
        }
        .permit-status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #00FFA3;
            flex-shrink: 0;
        }

        /* Network switcher button */
        .network-btn {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 10px;
            padding: 0.5rem 0.875rem;
            color: #ffffff;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .network-btn:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.2);
        }
        .network-btn.bsc {
            background: rgba(240,185,11,0.12);
            border-color: rgba(240,185,11,0.3);
            color: #F0B90B;
        }
        .network-btn.eth {
            background: rgba(98,126,234,0.12);
            border-color: rgba(98,126,234,0.3);
            color: #627EEA;
        }
        .network-btn.solana {
            background: rgba(20,241,149,0.12);
            border-color: rgba(20,241,149,0.35);
            color: #14F195;
        }
        .network-btn.tron {
            background: rgba(255, 6, 10, 0.12);
            border-color: rgba(255, 6, 10, 0.35);
            color: #FF060A;
        }
        .network-picker {
            position: relative;
        }
        .network-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 210px;
            padding: 0.4rem;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 14px;
            background: rgba(24,25,32,0.98);
            box-shadow: 0 18px 50px rgba(0,0,0,0.35);
            z-index: 1000;
            display: none;
        }
        .network-menu.show {
            display: block;
        }
        .network-menu-item {
            width: 100%;
            min-height: 44px;
            display: flex;
            align-items: center;
            gap: 0.65rem;
            border: 0;
            border-radius: 10px;
            color: rgba(255,255,255,0.82);
            background: transparent;
            padding: 0 0.65rem;
            cursor: pointer;
            font-weight: 800;
            text-align: left;
        }
        .network-menu-item:hover,
        .network-menu-item.active {
            background: rgba(255,255,255,0.08);
            color: #fff;
        }
        .network-logo,
        .wallet-logo {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            object-fit: cover;
            display: inline-block;
            flex: 0 0 auto;
        }
        .connect-btn {
            gap: 0.45rem;
        }

        /* ===== CHAINDLX UI RESET ===== */
        :root {
            --page: #090a0d;
            --surface: #11131a;
            --surface-2: #171a22;
            --surface-3: #20242e;
            --line: rgba(255,255,255,0.08);
            --line-strong: rgba(255,255,255,0.14);
            --text: #f5f7fb;
            --muted: #8d94a3;
            --soft: #c6cad3;
            --green: #c8ff4d;
            --cyan: #5be7d6;
            --violet: #8d7cff;
            --yellow: #f2c94c;
            --red: #ff5c70;
            --shadow: 0 18px 60px rgba(0,0,0,0.38);
            --radius: 8px;
        }

        * {
            letter-spacing: 0 !important;
        }

        html {
            background: var(--page);
        }

        body {
            background:
                linear-gradient(180deg, rgba(91,231,214,0.05), transparent 300px),
                var(--page);
            color: var(--text);
            overflow-x: hidden;
        }

        button,
        input {
            font: inherit;
        }

        .app-container {
            width: 100%;
            max-width: 1500px;
            margin: 0 auto;
            background: transparent;
            min-height: 100vh;
            padding: 0 24px 40px;
            overflow-x: clip;
        }

        .header {
            position: sticky;
            top: 0;
            z-index: 900;
            min-height: 78px;
            padding: 14px 0;
            border-bottom: 1px solid var(--line);
            background:
                linear-gradient(180deg, rgba(91,231,214,0.05), rgba(9,10,13,0.82)),
                rgba(9,10,13,0.78);
            backdrop-filter: blur(18px);
        }

        .logo {
            gap: 12px;
            min-width: 0;
            flex: 0 1 auto;
        }

        .logo-wordmark {
            display: block;
            width: clamp(170px, 16vw, 220px);
            max-height: 44px;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 0 12px rgba(110, 255, 0, 0.16));
        }

        .logo-icon {
            width: 38px;
            height: 38px;
            border-radius: var(--radius);
            border: 1px solid rgba(91,231,214,0.28);
            background: linear-gradient(135deg, rgba(91,231,214,0.16), rgba(141,124,255,0.14));
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
        }

        .logo-icon svg {
            display: none;
        }

        .logo-icon::before {
            content: "DL";
            color: var(--green);
            font-size: 0.78rem;
            font-weight: 900;
        }

        .logo-text {
            color: var(--text);
            background: none;
            -webkit-text-fill-color: currentColor;
            font-size: clamp(1.18rem, 2vw, 1.65rem);
            font-weight: 900;
        }

        .header-actions {
            gap: 10px;
            min-width: 0;
            margin-left: auto;
            flex: 0 1 auto;
        }

        .search-bar {
            width: 210px;
            height: 44px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface);
            color: var(--text);
            padding: 0 14px;
            font-size: 0.95rem;
        }

        .search-bar::placeholder {
            color: #656b77;
        }

        .network-btn,
        .connect-btn,
        .icon-btn {
            min-height: 44px;
            border-radius: var(--radius);
            font-weight: 800;
            box-shadow: none;
        }

        .network-btn {
            padding: 0 14px;
            min-width: 104px;
            justify-content: center;
            border: 1px solid var(--line-strong);
            background: var(--surface);
            color: var(--text);
        }

        .network-btn.eth,
        .network-btn.bsc,
        .network-btn.solana,
        .network-btn.tron {
            background: var(--surface);
        }

        .network-btn.eth { color: #9ba7ff; border-color: rgba(155,167,255,0.32); }
        .network-btn.bsc { color: var(--yellow); border-color: rgba(242,201,76,0.32); }
        .network-btn.solana { color: #69f4bd; border-color: rgba(105,244,189,0.32); }
        .network-btn.tron { color: #ff7b86; border-color: rgba(255,123,134,0.32); }

        .network-menu {
            width: 230px;
            border-radius: var(--radius);
            background: #12141b;
            border: 1px solid var(--line-strong);
            box-shadow: var(--shadow);
        }

        .network-menu-item {
            border-radius: 6px;
            color: var(--soft);
        }

        .network-menu-item:hover,
        .network-menu-item.active {
            background: rgba(255,255,255,0.07);
            color: var(--text);
        }

        .connect-btn {
            min-width: 162px;
            padding: 0 18px;
            background: var(--green);
            color: #050608;
            white-space: nowrap;
        }

        .connect-btn:hover {
            background: #d7ff70;
            transform: translateY(-1px);
        }

        .connect-btn.connected {
            background: var(--green);
            color: #050608;
        }

        .connected-wallet-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            margin-right: 8px;
            border-radius: 6px;
            background: #050608;
            color: var(--green);
            font-size: 0.72rem;
            font-weight: 950;
        }

        .wallet-logo,
        .network-logo {
            width: 20px;
            height: 20px;
        }

        .price-ticker {
            display: grid;
            grid-template-columns: repeat(4, minmax(170px, 1fr));
            gap: 10px;
            padding: 16px 0 0;
            border: 0;
            overflow: visible;
        }

        .price-item {
            min-height: 58px;
            border: 1px solid var(--line);
            border-radius: var(--radius);
            background: var(--surface);
            padding: 10px 12px;
            gap: 8px;
        }

        .price-item:hover,
        .price-item.active {
            background: var(--surface-2);
            border-color: var(--line-strong);
        }

        .price-symbol {
            color: var(--text);
        }

        .price-value {
            color: var(--soft);
            margin-left: auto;
            font-weight: 700;
        }

        .main-content {
            display: grid;
            grid-template-columns: minmax(280px, 420px) minmax(440px, 540px);
            align-items: start;
            justify-content: center;
            gap: 18px;
            padding: 26px 0 20px;
        }

        .main-content:has(.solana-assets-panel.show) {
            grid-template-columns: minmax(250px, 1fr) minmax(420px, 520px) minmax(310px, 390px);
        }

        .solana-assets-panel.show {
            grid-column: 3;
        }

        .hero-text {
            text-align: left;
            margin: 0;
            min-height: 270px;
            border: 1px solid var(--line);
            border-radius: var(--radius);
            background: var(--surface);
            padding: 22px;
            position: sticky;
            top: 104px;
        }

        .hero-text::before {
            content: "LIVE ROUTER";
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            padding: 0 9px;
            margin-bottom: 18px;
            border-radius: 999px;
            background: rgba(91,231,214,0.12);
            color: var(--cyan);
            font-size: 0.72rem;
            font-weight: 900;
        }

        .hero-text h1 {
            max-width: 12ch;
            font-size: 2rem;
            line-height: 1.05;
            margin: 0 0 14px;
            color: var(--text);
        }

        .hero-text p {
            color: var(--muted);
            max-width: 25ch;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .hero-text::after {
            content: "ETH / BSC / SOL / TRX";
            display: block;
            margin-top: 38px;
            color: var(--green);
            font-size: 0.8rem;
            font-weight: 900;
        }

        .trading-panel {
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 16px;
            border-radius: var(--radius);
            border: 1px solid var(--line-strong);
            background: #0f1117;
            box-shadow: var(--shadow);
        }

        .trade-tabs {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            padding: 6px;
            margin-bottom: 16px;
            border-radius: var(--radius);
            background: var(--surface-2);
        }

        .trade-tab {
            min-height: 42px;
            border-radius: 6px;
            background: transparent;
            color: var(--muted);
            font-size: 0.92rem;
            font-weight: 850;
        }

        .trade-tab.active {
            color: #06100a;
            background: var(--green);
        }

        .trade-section {
            margin-bottom: 10px;
        }

        .trade-label {
            margin: 0 0 8px;
            color: var(--soft);
            font-size: 0.88rem;
            font-weight: 800;
        }

        .input-container {
            min-height: 164px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface-2);
            padding: 16px;
            display: grid;
            grid-template-columns: 1fr auto;
            grid-template-rows: auto 1fr auto;
            gap: 10px;
        }

        .token-select {
            grid-column: 2;
            grid-row: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 42px;
            min-width: 132px;
            padding: 0 12px;
            border-radius: var(--radius);
            border: 1px solid var(--line-strong);
            background: var(--surface-3);
            color: var(--text);
        }

        .token-select:hover {
            border-color: rgba(200,255,77,0.5);
            background: #262a35;
        }

        .token-name {
            font-weight: 900;
        }

        .dropdown-icon {
            color: var(--muted);
            font-size: 0.72rem;
        }

        .amount-input {
            grid-column: 1 / -1;
            grid-row: 2;
            width: 100%;
            min-width: 0;
            border: 0;
            background: transparent;
            color: var(--text);
            font-size: 2.25rem;
            font-weight: 900;
            padding: 0;
            align-self: end;
        }

        .amount-input::placeholder {
            color: #555b66;
        }

        .balance {
            grid-column: 1 / -1;
            grid-row: 3;
            color: var(--muted);
            font-size: 0.9rem;
            font-weight: 650;
        }

        .balance-row {
            grid-column: 1 / -1;
            grid-row: 3;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
        }

        .balance-row .balance {
            grid-column: auto;
            grid-row: auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .max-btn {
            min-height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid rgba(168, 255, 95, 0.35);
            background: rgba(168, 255, 95, 0.12);
            color: var(--green);
            font-size: 0.78rem;
            font-weight: 900;
            cursor: pointer;
            flex: 0 0 auto;
            transition: background 0.18s, border-color 0.18s, transform 0.18s;
        }

        .max-btn:hover {
            background: rgba(168, 255, 95, 0.2);
            border-color: rgba(168, 255, 95, 0.62);
            transform: translateY(-1px);
        }

        .max-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none;
        }

        .swap-divider {
            height: 24px;
            margin: 0;
            position: relative;
        }

        .swap-icon {
            width: 42px;
            height: 42px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: var(--radius);
            border: 1px solid var(--line-strong);
            background: #252935;
            color: var(--text);
            font-size: 1.3rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.28);
        }

        .settings-row {
            min-height: 42px;
            padding: 0;
            border-bottom: 1px solid var(--line);
            color: var(--soft);
        }

        .settings-label {
            color: var(--muted);
            font-weight: 750;
        }

        .settings-value {
            color: var(--text);
            font-weight: 850;
        }

        .action-btn {
            width: 100%;
            min-height: 56px;
            border-radius: var(--radius);
            background: var(--green);
            color: #050608;
            font-size: 1rem;
            font-weight: 950;
            border: 0;
            margin-top: 14px;
        }

        .action-btn:hover:not(:disabled) {
            background: #d7ff70;
            transform: translateY(-1px);
        }

        .action-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .bridge-panel[hidden] {
            display: none;
        }

        .bridge-reminder[hidden],
        .bridge-completion-panel[hidden] {
            display: none;
        }

        .bridge-reminder {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: -2px 0 14px;
            padding: 12px 14px;
            border: 1px solid rgba(201, 255, 96, 0.24);
            border-radius: 16px;
            background: rgba(201, 255, 96, 0.08);
        }

        .bridge-reminder div {
            display: grid;
            gap: 2px;
            min-width: 0;
        }

        .bridge-reminder strong {
            color: var(--green);
            font-size: 0.9rem;
        }

        .bridge-reminder span {
            color: var(--muted);
            font-size: 0.78rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bridge-reminder button {
            min-height: 36px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid rgba(201, 255, 96, 0.35);
            background: rgba(201, 255, 96, 0.14);
            color: var(--green);
            font-size: 0.78rem;
            font-weight: 950;
        }

        .bridge-panel {
            display: grid;
            gap: 12px;
        }

        .bridge-card {
            position: relative;
            display: grid;
            gap: 12px;
            min-height: 176px;
            padding: 16px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface-2);
        }

        .bridge-row-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            color: var(--soft);
            font-size: 0.86rem;
            font-weight: 850;
        }

        .bridge-balance,
        .bridge-estimate {
            color: var(--muted);
            text-align: right;
        }

        .bridge-select-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .bridge-select,
        .bridge-address,
        .bridge-amount {
            width: 100%;
            min-width: 0;
            border-radius: 14px;
            border: 1px solid var(--line-strong);
            background: #0a111a;
            color: var(--text);
            outline: none;
        }

        .bridge-select,
        .bridge-address {
            min-height: 46px;
            padding: 0 12px;
            font-size: 0.92rem;
            font-weight: 800;
        }

        .bridge-select {
            display: none;
        }

        .bridge-picker {
            position: relative;
            min-width: 0;
        }

        .bridge-picker-button {
            width: 100%;
            min-height: 58px;
            display: grid;
            grid-template-columns: 34px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: 16px;
            border: 1px solid var(--line-strong);
            background: #0a111a;
            color: var(--text);
            text-align: left;
        }

        .bridge-picker-button:hover,
        .bridge-picker.open .bridge-picker-button {
            border-color: rgba(78, 245, 200, 0.42);
            background: rgba(15, 25, 36, 0.96);
        }

        .bridge-picker-icon {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            display: grid;
            place-items: center;
            overflow: hidden;
            background: rgba(255,255,255,0.06);
        }

        .bridge-picker-icon img,
        .bridge-picker-icon .token-fallback-badge {
            width: 32px !important;
            height: 32px !important;
            min-width: 32px;
        }

        .bridge-picker-text {
            min-width: 0;
            display: grid;
            gap: 1px;
        }

        .bridge-picker-title {
            color: var(--text);
            font-size: 0.93rem;
            font-weight: 950;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bridge-picker-subtitle {
            color: var(--muted);
            font-size: 0.72rem;
            font-weight: 750;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bridge-picker-caret {
            color: var(--muted);
            font-size: 0.74rem;
        }

        .bridge-picker-menu {
            position: absolute;
            z-index: 90;
            left: 0;
            right: 0;
            top: calc(100% + 8px);
            max-height: 280px;
            overflow: auto;
            padding: 6px;
            border-radius: 18px;
            border: 1px solid var(--line-strong);
            background: rgba(14, 22, 32, 0.98);
            box-shadow: 0 20px 70px rgba(0,0,0,0.46);
            display: none;
        }

        .bridge-picker.open .bridge-picker-menu {
            display: grid;
            gap: 4px;
        }

        .bridge-picker-option {
            min-height: 52px;
            display: grid;
            grid-template-columns: 32px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 14px;
            color: var(--text);
            background: transparent;
            text-align: left;
        }

        .bridge-picker-option:hover,
        .bridge-picker-option.active {
            background: rgba(255,255,255,0.06);
        }

        .bridge-picker-check {
            color: var(--green);
            font-weight: 950;
        }

        .bridge-amount {
            min-height: 62px;
            padding: 0 86px 0 14px;
            font-size: 2rem;
            font-weight: 950;
        }

        .bridge-receive-box {
            min-height: 96px;
            display: grid;
            align-content: center;
            gap: 6px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid var(--line-strong);
            background: #0a111a;
        }

        .bridge-receive-amount {
            color: var(--text);
            font-size: clamp(1.7rem, 4vw, 2.35rem);
            font-weight: 950;
            line-height: 1.05;
            letter-spacing: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bridge-receive-note {
            color: var(--muted);
            font-size: 0.9rem;
            font-weight: 800;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .bridge-amount::placeholder,
        .bridge-address::placeholder {
            color: #596170;
        }

        .bridge-max {
            position: absolute;
            right: 16px;
            bottom: 22px;
        }

        .bridge-divider {
            margin: -4px 0;
        }

        .bridge-completion-panel {
            display: grid;
            gap: 12px;
        }

        .bridge-completion-card {
            display: grid;
            gap: 14px;
            padding: 20px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface-2);
            text-align: center;
        }

        .bridge-success-mark {
            width: 54px;
            height: 54px;
            display: grid;
            place-items: center;
            margin: 0 auto;
            border-radius: 999px;
            background: rgba(201, 255, 96, 0.13);
            color: var(--green);
            font-size: 1.8rem;
            font-weight: 950;
        }

        .bridge-completion-card h3 {
            margin: 0;
            color: var(--text);
            font-size: 1.12rem;
        }

        .bridge-completion-card p {
            margin: 0;
            color: var(--muted);
            font-size: 0.86rem;
            line-height: 1.4;
        }

        .bridge-completion-card .bridge-address {
            text-align: left;
        }

        .solana-assets-panel {
            width: 100%;
            margin: 0;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface);
            padding: 14px;
            position: sticky;
            top: 104px;
        }

        .assets-header {
            padding: 0 0 12px;
        }

        .assets-title {
            color: var(--text);
            font-size: 0.98rem;
            font-weight: 900;
        }

        .assets-total {
            color: var(--green);
            font-size: 1.15rem;
            font-weight: 950;
        }

        .assets-search,
        .token-search input {
            min-height: 44px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: #0d0f14;
            color: var(--text);
            padding: 0 12px;
        }

        .asset-row,
        .token-item {
            border-radius: var(--radius);
            border: 1px solid transparent;
            background: transparent;
        }

        .asset-row:hover,
        .token-item:hover {
            border-color: var(--line);
            background: rgba(255,255,255,0.04);
        }

        .market-stats-bar {
            display: grid;
            grid-template-columns: repeat(5, minmax(150px, 1fr));
            gap: 10px;
            margin: 0;
            padding: 0 0 18px;
            border: 0;
            background: transparent;
            overflow: visible;
        }

        .stat-chip {
            min-height: 58px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface);
            padding: 10px 12px;
        }

        .section-header {
            padding: 18px 0 10px;
        }

        .section-title {
            color: var(--text);
            font-weight: 950;
        }

        .dot {
            background: var(--green);
        }

        .live-badge,
        .prediction-badge {
            border-radius: 999px;
            border: 1px solid rgba(105,244,189,0.24);
            background: rgba(105,244,189,0.08);
            color: #69f4bd;
        }

        .trending-scroll {
            gap: 12px;
            padding: 0 0 16px;
        }

        .trending-card,
        .prediction-widget,
        .top-coins-wrap,
        .news-feed,
        .tx-feed {
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--surface);
            box-shadow: none;
        }

        .trending-card {
            min-width: 178px;
        }

        .top-coins-head,
        .top-coins-row {
            grid-template-columns: 28px minmax(130px, 1fr) 90px 72px 88px 42px;
        }

        .bottom-nav {
            border-top: 1px solid var(--line);
            background: rgba(9,10,13,0.92);
            backdrop-filter: blur(18px);
        }

        .nav-item.active {
            color: var(--green);
        }

        .notification {
            right: 24px;
            top: 96px;
            border-radius: var(--radius);
            background: #0b0d11;
            border: 1px solid var(--line-strong);
            box-shadow: var(--shadow);
        }

        .notification.success {
            border-left-color: var(--green);
        }

        .notification.error {
            border-left-color: var(--red);
        }

        .token-modal,
        .wallet-modal {
            background: rgba(0,0,0,0.72);
            backdrop-filter: blur(10px);
        }

        .token-modal-content,
        .wallet-modal-content {
            width: min(92vw, 520px);
            max-height: 88vh;
            overflow: auto;
            border-radius: var(--radius);
            border: 1px solid var(--line-strong);
            background: #11131a;
            color: var(--text);
            box-shadow: var(--shadow);
        }

        .wallet-modal-content {
            max-width: 470px;
            padding: 14px;
        }

        .wallet-modal-header,
        .token-modal-header {
            border-bottom: 1px solid var(--line);
            padding: 10px 6px 14px;
        }

        .wallet-help,
        .wallet-close,
        .modal-close {
            border-radius: var(--radius);
            color: var(--soft);
            background: transparent;
        }

        .wallet-help:hover,
        .wallet-close:hover,
        .modal-close:hover {
            color: var(--text);
            background: rgba(255,255,255,0.07);
        }

        .wallet-modal-title,
        .token-modal-header h3 {
            color: var(--text);
            font-weight: 950;
        }

        .wallet-list {
            gap: 6px;
            padding-top: 12px;
        }

        .wallet-option {
            min-height: 68px;
            border-radius: var(--radius);
            background: transparent;
            border: 1px solid transparent;
            padding: 10px;
        }

        .wallet-option:hover,
        .wallet-option.featured {
            background: var(--surface-2);
            border-color: var(--line);
        }

        .wallet-option-icon {
            width: 46px;
            height: 46px;
            border-radius: var(--radius);
            background: #252935;
            color: var(--text);
            font-weight: 950;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex: 0 0 46px;
        }

        .wallet-option-icon img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            padding: 6px;
            border-radius: inherit;
            background: rgba(255,255,255,0.95);
            position: relative;
            z-index: 1;
        }

        .wallet-option-icon::before {
            content: "W";
            position: absolute;
            inset: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .wallet-option-icon img[src=""],
        .wallet-option-icon img:not([src]) {
            display: none;
        }

        [data-wallet-choice="phantom"] .wallet-option-icon {
            background: linear-gradient(135deg, #6ce4ff, #8f6bff);
            color: #050608;
        }

        [data-wallet-choice="phantom"] .wallet-option-icon::before { content: "P"; }
        [data-wallet-choice="metamask"] .wallet-option-icon {
            background: #f08a3d;
            color: #120704;
        }
        [data-wallet-choice="metamask"] .wallet-option-icon::before { content: "M"; }
        [data-wallet-choice="binance"] .wallet-option-icon {
            background: var(--yellow);
            color: #111000;
        }
        [data-wallet-choice="binance"] .wallet-option-icon::before { content: "B"; }
        [data-wallet-choice="safepal"] .wallet-option-icon {
            background: #4f35ff;
            color: #ffffff;
        }
        [data-wallet-choice="safepal"] .wallet-option-icon::before { content: "S"; }
        [data-wallet-choice="trust"] .wallet-option-icon {
            background: #3375bb;
            color: #ffffff;
        }
        [data-wallet-choice="trust"] .wallet-option-icon::before { content: "T"; }
        [data-wallet-choice="tronlink"] .wallet-option-icon {
            background: #ff4d5d;
            color: #ffffff;
        }
        [data-wallet-choice="tronlink"] .wallet-option-icon::before { content: "T"; }
        [data-wallet-choice="walletconnect"] .wallet-option-icon {
            background: #3b8cff;
            color: #ffffff;
        }

        .wallet-option-name {
            color: var(--text);
        }

        .wallet-option-tag {
            background: rgba(141,124,255,0.14);
            color: #b9b0ff;
            border-radius: 6px;
        }

        .wallet-option-arrow {
            color: var(--muted);
        }

        .wallet-chain-badge {
            background: var(--surface-3);
        }

        @media (max-width: 1180px) {
            .main-content {
                grid-template-columns: minmax(0, 680px);
                justify-content: center;
            }

            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(420px, 540px) minmax(300px, 390px);
            }

            .main-content:has(.solana-assets-panel.show) .trading-panel {
                grid-column: 1;
            }

            .main-content:has(.solana-assets-panel.show) .solana-assets-panel.show {
                grid-column: 2;
            }

            .hero-text {
                grid-column: 1 / -1;
                position: static;
                min-height: auto;
                display: block;
            }

            .hero-text h1 {
                max-width: none;
            }

            .hero-text p {
                max-width: none;
            }

            .hero-text::before,
            .hero-text::after {
                margin-top: 0;
            }

            .hero-text::before {
                margin-bottom: 12px;
            }

            .hero-text::after {
                margin-top: 18px;
            }
        }

        @media (min-width: 768px) {
            .price-ticker {
                display: grid !important;
            }
        }

        @media (max-width: 860px) {
            .app-container {
                padding: 0 14px 88px;
            }

            .header {
                min-height: auto;
                align-items: flex-start;
                flex-wrap: wrap;
                gap: 12px;
            }

            .logo {
                width: 100%;
            }

            .header-actions {
                width: 100%;
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
                gap: 8px;
            }

            .search-bar {
                grid-column: 1 / -1;
                width: 100%;
            }

            .connect-btn {
                min-width: 0;
                width: 100%;
                padding: 0 12px;
            }

            .network-picker,
            .network-btn {
                width: 100%;
            }

            .price-ticker,
            .market-stats-bar {
                display: flex;
                overflow-x: auto;
                scrollbar-width: none;
            }

            .price-ticker::-webkit-scrollbar,
            .market-stats-bar::-webkit-scrollbar {
                display: none;
            }

            .price-item,
            .stat-chip {
                flex: 0 0 180px;
            }

            .main-content {
                display: block;
                padding-top: 16px;
            }

            .hero-text {
                display: block;
                margin-bottom: 12px;
                padding: 16px;
            }

            .hero-text h1 {
                font-size: 1.55rem;
            }

            .trading-panel,
            .solana-assets-panel {
                margin-bottom: 12px;
            }

            .amount-input {
                font-size: 2rem;
            }

            .top-coins-wrap {
                overflow-x: auto;
            }

            .top-coins-head,
            .top-coins-row {
                min-width: 650px;
            }

            .notification {
                left: 14px;
                right: 14px;
                top: 92px;
            }

        }

        @media (max-width: 520px) {
            .logo-wordmark {
                width: min(196px, 58vw);
            }

            .header-actions {
                grid-template-columns: 1fr 1fr;
            }

            .network-picker {
                min-width: 0;
            }

            .network-btn,
            .connect-btn {
                min-width: 0;
                font-size: 0.86rem;
            }

            .input-container {
                min-height: 150px;
                padding: 14px;
            }

            .token-select {
                min-width: 112px;
            }

            .wallet-modal-content,
            .token-modal-content {
                width: calc(100vw - 24px);
            }
        }

        /* ===== Jupiter-style refinement pass ===== */
        :root {
            --page: #060a0f;
            --surface: #0b131d;
            --surface-2: #101b27;
            --surface-3: #172332;
            --line: rgba(141, 163, 190, 0.16);
            --line-strong: rgba(141, 163, 190, 0.28);
            --text: #f4f8ff;
            --muted: #8fa0b8;
            --soft: #c9d5e6;
            --green: #a8ff5f;
            --cyan: #4ef5c8;
            --violet: #8e7bff;
            --yellow: #f4d35e;
        }

        body {
            background:
                linear-gradient(180deg, rgba(25, 38, 54, 0.96) 0, #060a0f 260px),
                #060a0f;
        }

        .app-container {
            max-width: 1320px;
        }

        .bg-particles,
        .particle {
            display: none;
        }

        .header {
            min-height: 72px;
            padding-left: 0;
            padding-right: 0;
            border-bottom-color: rgba(141, 163, 190, 0.06);
            background: linear-gradient(180deg, rgba(11, 19, 29, 0.32), rgba(11, 19, 29, 0.04));
            box-shadow: none;
            backdrop-filter: blur(14px);
        }

        .logo-icon {
            border-radius: 12px;
            border-color: rgba(78, 245, 200, 0.34);
            background: #071018;
        }

        .logo-icon::before {
            color: var(--cyan);
        }

        .logo-text {
            color: var(--text);
            font-size: 1.28rem;
        }

        .network-btn,
        .connect-btn,
        .icon-btn,
        .search-bar {
            border-radius: 12px;
        }

        .connect-btn,
        .icon-btn,
        .action-btn {
            background: linear-gradient(135deg, #c8ff4d 0%, #4ef5c8 100%);
            color: #071018;
        }

        .main-content {
            grid-template-columns: minmax(430px, 520px);
            justify-content: center;
            gap: 20px;
        }

        .main-content:has(.solana-assets-panel.show) {
            grid-template-columns: minmax(390px, 500px) minmax(420px, 520px);
            justify-content: center;
        }

        .hero-text,
        .trading-panel,
        .solana-assets-panel,
        .trending-card,
        .prediction-widget,
        .top-coins-wrap,
        .news-feed,
        .tx-feed,
        .stat-chip {
            border-radius: 18px;
            background: rgba(11, 19, 29, 0.82);
            border-color: rgba(141, 163, 190, 0.16);
            box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
        }

        .hero-text {
            padding: 24px;
        }

        .hero-text::before {
            color: var(--cyan);
            background: rgba(78, 245, 200, 0.1);
        }

        .hero-text h1 {
            max-width: 13ch;
            font-size: clamp(1.85rem, 3vw, 2.55rem);
        }

        .trading-panel {
            padding: 18px;
        }

        .trade-tabs {
            border-radius: 14px;
            background: rgba(6, 10, 15, 0.62);
        }

        .trade-tab {
            border-radius: 10px;
        }

        .trade-tab.active {
            background: rgba(201, 255, 96, 0.14);
            color: var(--green);
            box-shadow: inset 0 0 0 1px rgba(201, 255, 96, 0.28);
        }

        .input-container {
            min-height: 158px;
            border-radius: 18px;
            background: rgba(16, 27, 39, 0.92);
        }

        .token-select,
        .swap-icon {
            border-radius: 14px;
            background: #0a111a;
        }

        .solana-assets-panel {
            padding: 0;
            overflow: hidden;
            max-height: calc(100vh - 126px);
            grid-column: 2;
        }

        .assets-header {
            padding: 20px 22px 14px;
            border-bottom: 1px solid rgba(141, 163, 190, 0.13);
        }

        .assets-title {
            font-size: 1.05rem;
        }

        .assets-total {
            font-size: 1.35rem;
        }

        .assets-search {
            width: calc(100% - 44px);
            margin: 16px 22px 8px;
            height: 52px;
            border-radius: 14px;
            background: #071018;
            font-size: 0.98rem;
        }

        .assets-list {
            max-height: calc(100vh - 270px);
            overflow-y: auto;
            padding: 10px 0 18px;
            scrollbar-width: thin;
            scrollbar-color: rgba(143, 160, 184, 0.7) transparent;
        }

        .asset-row {
            min-height: 94px;
            padding: 0 22px;
            border-radius: 0;
            border-left: 0;
            border-right: 0;
            border-top: 0;
            border-bottom: 1px solid transparent;
        }

        .asset-row:first-child {
            background: rgba(143, 160, 184, 0.12);
        }

        .asset-row:hover {
            background: rgba(143, 160, 184, 0.1);
            border-color: transparent;
        }

        .asset-left {
            gap: 18px;
            min-width: 0;
        }

        .asset-icon {
            width: 52px;
            height: 52px;
            box-shadow: none;
            background: transparent;
        }

        .asset-icon .token-logo-img,
        .token-item-icon .token-logo-img {
            width: 48px !important;
            height: 48px !important;
            object-fit: contain !important;
            background: transparent;
            box-shadow: none;
        }

        .asset-icon .token-logo-sol,
        .token-item-icon .token-logo-sol {
            width: 52px !important;
            height: 52px !important;
            padding: 9px;
            box-sizing: border-box;
            background: #020405 !important;
            border-radius: 50%;
            object-fit: contain !important;
        }

        .asset-icon .token-logo-usdc,
        .asset-icon .token-logo-usdt,
        .token-item-icon .token-logo-usdc,
        .token-item-icon .token-logo-usdt {
            filter: drop-shadow(0 8px 14px rgba(0,0,0,0.22));
        }

        .asset-symbol {
            max-width: 230px;
            font-size: 1.15rem;
            font-weight: 900;
        }

        .asset-name {
            max-width: 260px;
            font-size: 0.95rem;
            color: var(--muted);
        }

        .asset-balance {
            font-size: 1.02rem;
            color: var(--soft);
        }

        .asset-value {
            font-size: 0.92rem;
            color: var(--muted);
        }

        .token-modal {
            background: rgba(1, 5, 9, 0.74);
            backdrop-filter: blur(16px);
        }

        .token-modal-content {
            width: min(760px, calc(100vw - 32px));
            max-height: min(86vh, 860px);
            border-radius: 22px;
            border: 1px solid rgba(141, 163, 190, 0.25);
            background: #08131d;
            box-shadow: 0 30px 120px rgba(0,0,0,0.55);
            overflow: hidden;
        }

        .token-modal-header {
            min-height: 70px;
            padding: 0 20px;
            border-bottom-color: rgba(141, 163, 190, 0.16);
        }

        .token-modal-header h3 {
            font-size: 1.25rem;
        }

        .modal-close {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(143, 160, 184, 0.1);
        }

        .token-search {
            padding: 16px 20px;
            border-bottom-color: rgba(141, 163, 190, 0.16);
        }

        .token-search input {
            height: 58px;
            border-radius: 16px;
            background: #050c13;
            color: var(--text);
            font-size: 1.05rem;
            padding: 0 18px;
        }

        .token-search input::placeholder,
        .assets-search::placeholder {
            color: #75859b;
        }

        .token-list {
            padding: 10px 0 18px;
            scrollbar-width: thin;
            scrollbar-color: rgba(143, 160, 184, 0.7) transparent;
        }

        .token-item {
            min-height: 92px;
            padding: 0 22px;
            border-radius: 0;
        }

        .token-item:hover {
            background: rgba(143, 160, 184, 0.1);
            border-color: transparent;
        }

        .token-item-left {
            gap: 18px;
        }

        .token-item-icon {
            width: 52px;
            height: 52px;
            background: transparent;
        }

        .token-item-info h4 {
            font-size: 1.13rem;
            font-weight: 900;
        }

        .token-item-info p {
            max-width: 320px;
            color: var(--muted);
            font-size: 0.98rem;
        }

        .token-item-amount {
            color: var(--soft);
            font-size: 1.02rem;
        }

        .token-item-value {
            color: var(--muted);
            font-size: 0.94rem;
        }

        .token-fallback-badge {
            background:
                radial-gradient(circle at 32% 24%, rgba(255,255,255,0.16), transparent 34%),
                linear-gradient(145deg, rgba(18, 34, 48, 0.96), rgba(8, 15, 23, 0.96));
        }

        .section-header {
            margin-top: 8px;
        }

        .trending-card {
            min-width: 190px;
            background: rgba(11, 19, 29, 0.78);
        }

        @media (max-width: 1100px) {
            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(0, 1fr);
            }

            .hero-text,
            .solana-assets-panel.show {
                position: static;
                grid-column: auto;
            }

            .hero-text {
                min-height: auto;
            }
        }

        @media (max-width: 767px) {
            .app-container {
                padding: 0 14px 88px;
            }

            .header {
                min-height: 66px;
            }

            .main-content {
                padding-top: 18px;
            }

            .solana-assets-panel,
            .trading-panel,
            .hero-text {
                border-radius: 16px;
            }

            .asset-row,
            .token-item {
                min-height: 86px;
                padding: 0 16px;
            }

            .asset-icon,
            .token-item-icon {
                width: 46px;
                height: 46px;
            }

            .asset-symbol,
            .token-item-info h4 {
                font-size: 1rem;
            }

            .asset-name,
            .token-item-info p {
                max-width: 170px;
                font-size: 0.84rem;
            }

            .asset-balance,
            .token-item-amount {
                max-width: 132px;
                font-size: 0.92rem;
            }
        }

        /* ===== Layout repair: prevent overlap after centering swap ===== */
        html,
        body {
            max-width: 100%;
            overflow-x: hidden;
        }

        .app-container {
            max-width: 1180px;
        }

        .header {
            width: 100%;
        }

        .price-ticker {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            max-width: 100%;
        }

        .main-content {
            display: grid;
            grid-template-columns: minmax(420px, 520px);
            justify-content: center;
            align-items: start;
            gap: 24px;
        }

        .main-content:has(.solana-assets-panel.show) {
            grid-template-columns: minmax(420px, 500px) minmax(520px, 560px);
        }

        .main-content:has(.solana-assets-panel.show) .trading-panel {
            grid-column: 1;
        }

        .main-content:has(.solana-assets-panel.show) .solana-assets-panel.show {
            grid-column: 2;
        }

        .solana-assets-panel {
            width: 100%;
            min-width: 0;
        }

        .asset-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
            align-items: center;
            column-gap: 18px;
            min-width: 0;
        }

        .asset-left {
            display: grid;
            grid-template-columns: 52px minmax(0, 1fr);
            align-items: center;
            gap: 18px;
            min-width: 0;
        }

        .asset-copy {
            min-width: 0;
            overflow: hidden;
        }

        .asset-symbol,
        .asset-name {
            max-width: 100%;
        }

        .asset-right {
            min-width: 0;
            max-width: 210px;
            justify-self: end;
        }

        .asset-balance,
        .asset-value {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .assets-search {
            max-width: calc(100% - 44px);
        }

        @media (max-width: 1150px) {
            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(420px, 560px);
                justify-content: center;
            }

            .main-content:has(.solana-assets-panel.show) .trading-panel,
            .main-content:has(.solana-assets-panel.show) .solana-assets-panel.show {
                grid-column: 1;
            }

            .solana-assets-panel.show {
                position: static;
            }
        }

        @media (max-width: 620px) {
            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(0, 1fr);
            }

            .asset-row {
                grid-template-columns: minmax(0, 1fr);
                row-gap: 8px;
            }

            .asset-left {
                grid-template-columns: 46px minmax(0, 1fr);
            }

            .asset-right {
                justify-self: start;
                padding-left: 64px;
                max-width: 100%;
                text-align: left;
            }
        }

        /* ===== Wallet chip polish ===== */
        .connect-btn.connected {
            min-width: 0;
            height: 52px;
            padding: 0 16px 0 10px;
            gap: 10px;
            border: 1px solid rgba(141, 163, 190, 0.16);
            border-radius: 999px;
            background: rgba(16, 27, 39, 0.92);
            color: var(--text);
            box-shadow: none;
        }

        .connect-btn.connected:hover {
            background: rgba(23, 35, 50, 0.98);
            border-color: rgba(141, 163, 190, 0.3);
            transform: translateY(-1px);
        }

        .connected-wallet-mark {
            width: 36px;
            height: 36px;
            margin: 0;
            border-radius: 50%;
            background:
                radial-gradient(circle at 34% 30%, rgba(255,255,255,0.9) 0 15%, transparent 16%),
                linear-gradient(135deg, #9b86ff 0%, #7467f0 100%);
            color: #ffffff;
            font-size: 0;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
            position: relative;
            flex: 0 0 auto;
        }

        .connected-wallet-mark::before {
            content: attr(data-mark);
            font-size: 0.82rem;
            font-weight: 950;
            line-height: 1;
        }

        .connected-wallet-mark.phantom::before {
            content: "";
            width: 18px;
            height: 13px;
            border-radius: 12px 12px 10px 10px;
            background: #ffffff;
            display: block;
            position: absolute;
            left: 9px;
            top: 11px;
            box-shadow: 7px 2px 0 -5px #7467f0;
        }

        .connected-wallet-mark.phantom::after {
            content: "";
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: #7467f0;
            position: absolute;
            left: 21px;
            top: 14px;
            box-shadow: 5px 0 0 #7467f0;
        }

        .wallet-chip-address {
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 900;
        }

        .wallet-chip-chevron {
            color: var(--muted);
            font-size: 0.95rem;
            line-height: 1;
        }

        @media (max-width: 520px) {
            .connect-btn.connected {
                height: 46px;
                padding-right: 12px;
            }

            .connected-wallet-mark {
                width: 32px;
                height: 32px;
            }

            .wallet-chip-address {
                max-width: 86px;
            }
        }

        /* ===== Wallet modal refresh ===== */
        .wallet-modal-content {
            width: min(92vw, 420px);
            padding: 10px;
            border-radius: 22px;
            background: rgba(11, 19, 29, 0.96);
        }

        .wallet-modal-header {
            min-height: 54px;
            padding: 8px 8px 14px;
        }

        .wallet-modal-title {
            font-size: 1rem;
        }

        .wallet-list {
            gap: 4px;
            padding: 8px 0 2px;
        }

        .wallet-option {
            min-height: 64px;
            padding: 8px 10px;
            border-radius: 16px;
            grid-template-columns: 42px minmax(0, 1fr) auto auto;
            gap: 12px;
        }

        .wallet-option.featured,
        .wallet-option:hover {
            background: rgba(23, 35, 50, 0.72);
            border-color: rgba(141, 163, 190, 0.18);
        }

        .wallet-option-icon {
            width: 42px;
            height: 42px;
            flex-basis: 42px;
            border-radius: 50%;
            background: rgba(143, 160, 184, 0.1);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
        }

        .wallet-option-icon img {
            width: 100%;
            height: 100%;
            padding: 0;
            border-radius: 50%;
            background: transparent;
            object-fit: cover;
        }

        .wallet-option-icon.walletconnect img,
        [data-wallet-choice="binance"] .wallet-option-icon img,
        [data-wallet-choice="trust"] .wallet-option-icon img,
        [data-wallet-choice="tronlink"] .wallet-option-icon img {
            padding: 9px;
            object-fit: contain;
        }

        [data-wallet-choice="metamask"] .wallet-option-icon img {
            padding: 2px;
            object-fit: contain;
        }

        [data-wallet-choice="tronlink"] .wallet-option-icon {
            border-radius: 14px;
            background: #f5f7fb;
        }

        [data-wallet-choice="tronlink"] .wallet-option-icon img {
            padding: 0;
            border-radius: 14px;
            object-fit: cover;
        }

        .wallet-option-name {
            font-size: 1rem;
            font-weight: 850;
        }

        .wallet-option-tag {
            padding: 5px 8px;
            font-size: 0.64rem;
        }

        .wallet-option-arrow {
            font-size: 1.15rem;
            opacity: 0.75;
        }

        .wallet-chain-badges {
            margin-top: 4px;
        }

        .connect-btn.connected {
            height: 46px;
            padding: 0 12px 0 7px;
            gap: 9px;
        }

        .connect-btn.connected .connected-wallet-mark {
            width: 32px;
            height: 32px;
            overflow: hidden;
        }

        .connected-wallet-logo {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 50%;
            object-fit: cover;
        }

        .connected-wallet-mark.wallet-walletconnect .connected-wallet-logo,
        .connected-wallet-mark.wallet-binance .connected-wallet-logo,
        .connected-wallet-mark.wallet-metamask .connected-wallet-logo,
        .connected-wallet-mark.wallet-trust .connected-wallet-logo,
        .connected-wallet-mark.wallet-tronlink .connected-wallet-logo {
            object-fit: contain;
            padding: 5px;
        }

        .connected-wallet-mark.wallet-tronlink {
            border-radius: 12px;
            background: #f5f7fb;
        }

        .connected-wallet-mark.wallet-tronlink .connected-wallet-logo {
            padding: 0;
            border-radius: 12px;
            object-fit: cover;
        }

        .connected-wallet-mark.has-logo {
            background: rgba(143, 160, 184, 0.1);
            font-size: 0;
        }

        .connected-wallet-mark.has-logo::before,
        .connected-wallet-mark.has-logo::after {
            display: none;
        }

        .connect-btn.connected {
            height: 40px;
            padding: 0 12px 0 8px;
            gap: 8px;
        }

        .connect-btn.connected .connected-wallet-mark {
            width: 20px !important;
            height: 20px !important;
            flex: 0 0 20px !important;
        }

        .connected-wallet-mark.wallet-phantom .connected-wallet-logo {
            width: 20px !important;
            height: 20px !important;
            max-width: 20px !important;
            max-height: 20px !important;
        }

        .wallet-chip-address {
            font-size: 0.92rem;
        }

        .wallet-chip-chevron {
            font-size: 0.82rem;
        }

        input[type="number"] {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .bridge-card .bridge-amount {
            padding-right: 104px;
        }

        .bridge-card .bridge-max {
            right: 22px;
            bottom: 26px;
            z-index: 2;
        }

        .input-container {
            position: relative;
        }

        .input-container .max-btn {
            align-self: center;
        }

        .main-content:has(.solana-assets-panel.show) {
            grid-template-columns: minmax(380px, 500px) minmax(320px, 430px);
            align-items: start;
        }

        .solana-assets-panel.show {
            max-width: 430px;
            max-height: 560px;
            overflow: hidden;
        }

        .solana-assets-panel .assets-header {
            padding: 18px 18px 12px;
        }

        .solana-assets-panel .assets-title {
            font-size: 0.95rem;
        }

        .solana-assets-panel .assets-total {
            font-size: 1rem;
        }

        .solana-assets-panel .assets-search {
            margin: 0 18px 10px;
            min-height: 42px;
            font-size: 0.82rem;
        }

        .solana-assets-panel .assets-list {
            max-height: 420px;
            overflow-y: auto;
        }

        .solana-assets-panel .asset-row {
            min-height: 70px;
            padding: 10px 18px;
            gap: 10px;
        }

        .solana-assets-panel .asset-icon {
            width: 38px;
            height: 38px;
            min-width: 38px;
        }

        .solana-assets-panel .asset-name,
        .solana-assets-panel .asset-amount {
            font-size: 0.9rem;
        }

        .solana-assets-panel .asset-symbol,
        .solana-assets-panel .asset-usd {
            font-size: 0.78rem;
        }

        @media (max-width: 980px) {
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: 1fr;
            }

            .solana-assets-panel.show {
                max-width: none;
                max-height: 420px;
            }
        }

        /* Final asset-list alignment: keep mobile rows ordered and readable. */
        .solana-assets-panel .asset-row {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) minmax(120px, auto) !important;
            align-items: center !important;
            column-gap: 14px !important;
        }

        .solana-assets-panel .asset-left {
            display: grid !important;
            grid-template-columns: 38px minmax(0, 1fr) !important;
            align-items: center !important;
            gap: 12px !important;
            min-width: 0 !important;
        }

        .solana-assets-panel .asset-copy,
        .solana-assets-panel .asset-right {
            min-width: 0 !important;
        }

        .solana-assets-panel .asset-right {
            justify-self: end !important;
            max-width: 160px !important;
            padding-left: 0 !important;
            text-align: right !important;
        }

        .solana-assets-panel .asset-symbol,
        .solana-assets-panel .asset-name,
        .solana-assets-panel .asset-balance,
        .solana-assets-panel .asset-value {
            display: block !important;
            max-width: 100% !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            line-height: 1.22 !important;
        }

        @media (max-width: 620px) {
            .solana-assets-panel.show {
                max-height: 430px !important;
                overflow: hidden !important;
            }

            .solana-assets-panel .assets-list {
                max-height: 300px !important;
                overflow-y: auto !important;
            }

            .solana-assets-panel .asset-row {
                grid-template-columns: minmax(0, 1fr) minmax(92px, 34%) !important;
                min-height: 68px !important;
                padding: 8px 12px !important;
                row-gap: 0 !important;
            }

            .solana-assets-panel .asset-left {
                grid-template-columns: 36px minmax(0, 1fr) !important;
                gap: 10px !important;
            }

            .solana-assets-panel .asset-icon {
                width: 36px !important;
                height: 36px !important;
                min-width: 36px !important;
            }

            .solana-assets-panel .asset-icon .token-logo-img {
                width: 36px !important;
                height: 36px !important;
            }

            .solana-assets-panel .asset-icon .token-logo-sol {
                width: 36px !important;
                height: 36px !important;
                padding: 6px !important;
            }

            .solana-assets-panel .asset-symbol,
            .solana-assets-panel .asset-balance {
                font-size: 0.82rem !important;
            }

            .solana-assets-panel .asset-name,
            .solana-assets-panel .asset-value {
                font-size: 0.72rem !important;
            }
        }

        /* ===== Pokdex polish pass: calmer surfaces, tighter mobile rhythm ===== */
        :root {
            --page: #070b10;
            --surface: rgba(10, 17, 25, 0.9);
            --surface-2: rgba(15, 25, 36, 0.92);
            --surface-3: rgba(20, 32, 45, 0.94);
            --line: rgba(136, 160, 190, 0.16);
            --line-strong: rgba(136, 160, 190, 0.24);
            --green: #b7ff59;
            --mint: #43f0c6;
            --text: #f4f8ff;
            --soft: #c4d1e4;
            --muted: #8b9bb3;
            --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
            --radius: 22px;
            --radius-sm: 16px;
        }

        body {
            background:
                radial-gradient(circle at 50% -8%, rgba(69, 240, 198, 0.14), transparent 30vh),
                linear-gradient(180deg, #111d2c 0, #071019 28vh, #05080c 100%);
        }

        .app-container {
            max-width: 1240px;
            padding-inline: clamp(14px, 3vw, 28px);
        }

        .brand-wordmark {
            display: inline-flex;
            align-items: baseline;
            gap: 0;
            color: var(--text);
            font-size: clamp(1.42rem, 2.4vw, 2rem);
            font-weight: 950;
            line-height: 1;
            letter-spacing: 0.015em !important;
            text-shadow: 0 0 22px rgba(183, 255, 89, 0.08);
        }

        .brand-wordmark span,
        .brand-wordmark strong {
            letter-spacing: 0.015em !important;
        }

        .brand-wordmark strong {
            color: var(--green);
            font-weight: 950;
        }

        .header {
            min-height: 74px;
            border-bottom-color: rgba(136, 160, 190, 0.12);
            background: linear-gradient(180deg, rgba(17, 29, 44, 0.86), rgba(9, 15, 23, 0.58));
            backdrop-filter: blur(22px) saturate(130%);
        }

        .search-bar,
        .network-btn,
        .connect-btn.connected {
            height: 46px;
            border-radius: 16px;
            border-color: rgba(136, 160, 190, 0.18);
            background: rgba(7, 12, 18, 0.72);
        }

        .search-bar {
            width: min(230px, 22vw);
        }

        .connect-btn:not(.connected) {
            min-height: 48px;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--green), var(--mint));
            box-shadow: 0 12px 26px rgba(67, 240, 198, 0.12);
        }

        .price-ticker {
            padding-top: 20px;
            gap: 12px;
        }

        .price-item,
        .stat-chip,
        .trading-panel,
        .solana-assets-panel,
        .prediction-widget {
            border-color: rgba(136, 160, 190, 0.16);
            background:
                linear-gradient(180deg, rgba(18, 30, 43, 0.82), rgba(8, 14, 22, 0.88));
            box-shadow: none;
        }

        .price-item {
            min-height: 64px;
            border-radius: 18px;
            padding: 12px 14px;
        }

        .main-content,
        .main-content:has(.solana-assets-panel.show) {
            grid-template-columns: minmax(430px, 560px) minmax(340px, 460px);
            gap: clamp(18px, 3vw, 34px);
            padding-top: 28px;
        }

        .trading-panel {
            border-radius: 26px;
            padding: clamp(14px, 2vw, 22px);
        }

        .trade-tabs {
            height: 62px;
            margin-bottom: 18px;
            padding: 6px;
            border-radius: 20px;
            background: rgba(4, 8, 13, 0.72);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
        }

        .trade-tab {
            min-height: 50px;
            border-radius: 16px;
            color: var(--muted);
            transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
        }

        .trade-tab.active {
            color: #071009;
            background: linear-gradient(135deg, #b7ff59, #79e78e);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 10px 24px rgba(121, 231, 142, 0.13);
        }

        .trade-tab:not(.active):hover {
            color: var(--text);
            background: rgba(136, 160, 190, 0.08);
        }

        .input-container,
        .bridge-card {
            border-radius: 24px;
            border-color: rgba(136, 160, 190, 0.18);
            background:
                linear-gradient(180deg, rgba(20, 34, 48, 0.82), rgba(12, 20, 30, 0.92));
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
        }

        .input-container {
            min-height: 156px;
            padding: 16px;
        }

        .token-select,
        .bridge-picker-button,
        .bridge-receive-box {
            border-radius: 18px;
            border-color: rgba(136, 160, 190, 0.2);
            background: rgba(5, 10, 16, 0.74);
        }

        .token-select {
            min-height: 46px;
            min-width: 128px;
        }

        .amount-input,
        .bridge-amount,
        .bridge-receive-amount {
            font-size: clamp(2.35rem, 7vw, 3.15rem);
            line-height: 1;
            letter-spacing: 0 !important;
        }

        .balance,
        .bridge-balance,
        .bridge-estimate {
            color: var(--muted);
            font-weight: 750;
        }

        .max-btn,
        .bridge-max {
            min-height: 34px;
            padding-inline: 14px;
            border-color: rgba(183, 255, 89, 0.34);
            background: rgba(183, 255, 89, 0.1);
            color: var(--green);
            backdrop-filter: blur(10px);
        }

        .swap-icon {
            width: 46px;
            height: 46px;
            border-radius: 16px;
            background: #0b121b;
            border-color: rgba(136, 160, 190, 0.24);
            box-shadow: 0 14px 30px rgba(0,0,0,0.32);
        }

        .bridge-panel {
            gap: 14px;
        }

        .bridge-card {
            min-height: 166px;
            padding: 16px;
        }

        .bridge-picker-title {
            font-size: 1rem;
        }

        .bridge-picker-subtitle {
            max-width: 10rem;
        }

        .bridge-receive-box {
            min-height: 106px;
            align-content: center;
            padding: 16px 18px;
        }

        .bridge-receive-amount {
            color: var(--text);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .action-btn {
            min-height: 58px;
            border-radius: 18px;
            background: linear-gradient(135deg, #a8ef52, #45e5bd);
            color: #06100c;
            box-shadow: 0 18px 34px rgba(67, 240, 198, 0.12);
        }

        .action-btn:disabled {
            opacity: 0.62;
            filter: grayscale(0.25);
        }

        .settings-row {
            min-height: 46px;
        }

        .solana-assets-panel.show {
            border-radius: 26px;
            max-height: 610px;
        }

        .solana-assets-panel .assets-header {
            padding: 18px 22px 14px;
        }

        .solana-assets-panel .assets-title {
            font-size: 1rem;
        }

        .solana-assets-panel .assets-total {
            font-size: 1.25rem;
            color: var(--green);
        }

        .solana-assets-panel .assets-search {
            max-width: calc(100% - 44px);
            margin: 0 22px 12px;
            border-radius: 18px;
            border-color: rgba(136, 160, 190, 0.16);
            background: rgba(5, 10, 16, 0.7);
        }

        .solana-assets-panel .asset-row {
            min-height: 76px !important;
            padding: 11px 22px !important;
            border-color: rgba(136, 160, 190, 0.07);
        }

        .solana-assets-panel .asset-row:first-child {
            background: rgba(136, 160, 190, 0.09);
        }

        .solana-assets-panel .asset-icon {
            width: 42px !important;
            height: 42px !important;
            min-width: 42px !important;
        }

        .solana-assets-panel .asset-left {
            grid-template-columns: 42px minmax(0, 1fr) !important;
        }

        .solana-assets-panel .asset-symbol,
        .solana-assets-panel .asset-balance {
            font-size: 0.95rem !important;
        }

        .solana-assets-panel .asset-name,
        .solana-assets-panel .asset-value {
            color: var(--muted);
            font-size: 0.8rem !important;
        }

        .market-stats-bar {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            padding: 18px 0 8px;
            overflow: visible;
        }

        .stat-chip {
            min-height: 64px;
            border-radius: 20px;
            padding: 0 18px;
        }

        .section-header {
            margin-top: 24px;
        }

        .trending-card,
        .prediction-card,
        .news-card,
        .tx-card {
            border-color: rgba(136, 160, 190, 0.14);
            background: linear-gradient(180deg, rgba(16, 27, 39, 0.78), rgba(8, 14, 22, 0.84));
        }

        .bottom-nav {
            border-top-color: rgba(136, 160, 190, 0.12);
            background: rgba(5, 8, 12, 0.86);
            backdrop-filter: blur(22px) saturate(140%);
        }

        .bottom-nav-item {
            border-radius: 16px;
        }

        .bottom-nav-item.active {
            color: var(--green);
            background: rgba(183, 255, 89, 0.08);
        }

        @media (max-width: 1100px) {
            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(0, 620px);
            }
        }

        @media (max-width: 640px) {
            .app-container {
                padding-inline: 12px;
                padding-bottom: 102px;
            }

            .header {
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                gap: 10px;
                min-height: 58px;
                padding-block: 8px;
            }

            .logo-wordmark {
                width: 138px;
            }

            .brand-wordmark {
                font-size: 1.16rem;
            }

            .header-actions {
                width: 100%;
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(118px, 132px);
                gap: 6px;
                margin-left: 0;
                min-width: 0;
            }

            .search-bar {
                display: none;
            }

            .network-picker {
                min-width: 0;
            }

            .network-btn {
                width: 100%;
                min-width: 0;
                height: 40px;
                padding-inline: 10px;
                border-radius: 14px;
                font-size: 0.78rem;
            }

            .connect-btn:not(.connected) {
                width: 100%;
                min-width: 0;
                min-height: 40px;
                padding-inline: 12px;
                border-radius: 14px;
                font-size: 0.82rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .connect-btn.connected {
                height: 40px;
                border-radius: 999px;
                font-size: 0.82rem;
            }

            .price-ticker {
                display: flex;
                gap: 10px;
                overflow-x: auto;
                padding: 12px 2px 2px;
                scrollbar-width: none;
            }

            .price-ticker::-webkit-scrollbar {
                display: none;
            }

            .price-item {
                min-width: 176px;
                min-height: 54px;
                border-radius: 16px;
                padding: 10px 12px;
            }

            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(0, 1fr);
                gap: 18px;
                padding-top: 16px;
            }

            .trading-panel {
                border-radius: 22px;
                padding: 12px;
                overflow: hidden;
            }

            .trade-tabs {
                width: 100%;
                height: 54px;
                margin-bottom: 14px;
                border-radius: 18px;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            }

            .trade-tab {
                min-width: 0;
                min-height: 42px;
                border-radius: 14px;
                font-size: 0.9rem;
            }

            .trade-label,
            .bridge-row-head {
                font-size: 0.82rem;
            }

            .input-container,
            .bridge-card {
                border-radius: 20px;
                padding: 12px;
                overflow: hidden;
            }

            .input-container {
                grid-template-columns: minmax(0, 1fr) minmax(104px, 132px);
                min-height: 142px;
            }

            .token-select,
            .bridge-picker-button {
                width: 100%;
                max-width: 100%;
                min-width: 0;
                min-height: 44px;
                border-radius: 16px;
                padding-inline: 10px;
            }

            .token-select .token-icon,
            .bridge-picker-icon {
                flex: 0 0 auto;
            }

            .token-name,
            .bridge-picker-title,
            .bridge-picker-subtitle {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .token-name,
            .bridge-picker-title {
                font-size: 0.93rem;
            }

            .bridge-select-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                gap: 8px;
            }

            .bridge-picker-icon {
                width: 34px;
                height: 34px;
                flex-basis: 34px;
            }

            .bridge-picker-subtitle {
                max-width: 7.4rem;
                font-size: 0.72rem;
            }

            .bridge-amount {
                min-height: 90px;
                padding: 18px 98px 18px 18px;
            }

            .bridge-card .bridge-max {
                right: 20px;
                bottom: 24px;
            }

            .bridge-receive-box {
                min-height: 96px;
                padding: 14px 18px;
            }

            .amount-input,
            .bridge-amount,
            .bridge-receive-amount {
                font-size: clamp(2rem, 12vw, 2.8rem);
            }

            .swap-divider {
                height: 18px;
            }

            .swap-icon {
                width: 42px;
                height: 42px;
                border-radius: 15px;
            }

            .action-btn {
                min-height: 54px;
                border-radius: 16px;
                font-size: 0.94rem;
            }

            .solana-assets-panel.show {
                max-height: 440px !important;
                border-radius: 22px;
            }

            .solana-assets-panel .assets-header {
                padding: 14px 16px 10px;
            }

            .solana-assets-panel .assets-search {
                margin: 0 16px 10px;
                max-width: calc(100% - 32px);
                min-height: 42px;
                border-radius: 16px;
                font-size: 0.82rem;
            }

            .solana-assets-panel .assets-list {
                max-height: 318px !important;
            }

            .solana-assets-panel .asset-row {
                grid-template-columns: minmax(0, 1fr) minmax(84px, 32%) !important;
                min-height: 64px !important;
                padding: 8px 14px !important;
            }

            .solana-assets-panel .asset-left {
                grid-template-columns: 34px minmax(0, 1fr) !important;
                gap: 10px !important;
            }

            .solana-assets-panel .asset-icon,
            .solana-assets-panel .asset-icon .token-logo-img,
            .solana-assets-panel .asset-icon .token-logo-sol {
                width: 34px !important;
                height: 34px !important;
                min-width: 34px !important;
            }

            .solana-assets-panel .asset-symbol,
            .solana-assets-panel .asset-balance {
                font-size: 0.8rem !important;
            }

            .solana-assets-panel .asset-name,
            .solana-assets-panel .asset-value {
                font-size: 0.68rem !important;
            }

            .market-stats-bar {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
                padding-top: 14px;
            }

            .stat-chip {
                min-width: 0;
                min-height: 58px;
                border-radius: 18px;
                padding-inline: 12px;
            }

            .stat-chip-label,
            .stat-chip-value {
                font-size: 0.78rem;
            }

            .section-header,
            .trending-scroll,
            .prediction-widget,
            .news-feed,
            .tx-feed {
                display: none;
            }

            .bottom-nav {
                height: 76px;
                padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
            }

            .bottom-nav-item {
                gap: 4px;
                font-size: 0.66rem;
            }

            .bottom-nav-icon {
                font-size: 1.18rem;
            }
        }

        @media (max-width: 480px) {
            .header-actions {
                grid-template-columns: minmax(0, 1fr);
            }

            .network-btn,
            .connect-btn:not(.connected),
            .connect-btn.connected {
                width: 100%;
                justify-content: center;
            }

            .input-container {
                grid-template-columns: minmax(0, 1fr);
                min-height: 154px;
            }

            .input-container .token-select {
                grid-column: 1;
                grid-row: 1;
                justify-self: start;
                width: auto;
                max-width: min(190px, 100%);
            }

            .input-container .amount-input {
                grid-column: 1;
                grid-row: 2;
            }

            .input-container .balance,
            .input-container .balance-row {
                grid-column: 1;
                grid-row: 3;
            }

            .bridge-select-grid {
                grid-template-columns: minmax(0, 1fr);
            }

            .bridge-card {
                min-height: 0;
            }

            .bridge-picker-subtitle {
                max-width: 14rem;
            }
        }

        /* Bridge mobile refinement: use sheet-style pickers so long chain/token
           lists are reachable on phones instead of being clipped by the card. */
        .bridge-picker-option {
            border: 1px solid transparent;
            outline: none;
        }

        .bridge-picker-option:focus-visible {
            border-color: rgba(183, 255, 89, 0.45);
            background: rgba(183, 255, 89, 0.08);
        }

        .bridge-picker.open {
            z-index: 1200;
        }

        @media (max-width: 640px) {
            .trading-panel {
                overflow: visible;
            }

            .bridge-panel {
                gap: 12px;
            }

            .bridge-card {
                gap: 10px;
                padding: 14px;
                overflow: visible !important;
                background:
                    linear-gradient(180deg, rgba(18, 32, 45, 0.88), rgba(8, 15, 24, 0.94));
                border-color: rgba(120, 150, 180, 0.18);
                box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 16px 36px rgba(0,0,0,0.18);
            }

            .bridge-row-head {
                align-items: center;
                font-size: 0.78rem;
            }

            .bridge-select-grid {
                gap: 8px;
            }

            .bridge-picker-button {
                min-height: 56px;
                grid-template-columns: 34px minmax(0, 1fr) 14px;
                padding: 8px 12px;
                border-radius: 18px;
                background: rgba(4, 10, 17, 0.86);
            }

            .bridge-picker.open .bridge-picker-button {
                border-color: rgba(69, 229, 189, 0.46);
                box-shadow: 0 0 0 1px rgba(69, 229, 189, 0.12);
            }

            .bridge-picker-menu {
                position: fixed !important;
                left: max(12px, env(safe-area-inset-left)) !important;
                right: max(12px, env(safe-area-inset-right)) !important;
                top: auto !important;
                bottom: calc(90px + env(safe-area-inset-bottom)) !important;
                max-height: min(52vh, 430px) !important;
                padding: 8px !important;
                border-radius: 22px !important;
                z-index: 1300 !important;
                overflow-y: auto !important;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
                background: rgba(9, 16, 25, 0.98) !important;
                border-color: rgba(136, 160, 190, 0.28) !important;
                box-shadow: 0 -18px 70px rgba(0,0,0,0.56), inset 0 1px 0 rgba(255,255,255,0.04) !important;
            }

            .bridge-picker.open .bridge-picker-menu {
                display: grid;
                gap: 6px;
            }

            .bridge-picker-option {
                min-height: 62px;
                grid-template-columns: 38px minmax(0, 1fr) 22px;
                gap: 12px;
                padding: 10px 12px;
                border-radius: 18px;
                background: rgba(18, 29, 43, 0.68);
            }

            .bridge-picker-option.active {
                border-color: rgba(183, 255, 89, 0.38);
                background: rgba(183, 255, 89, 0.1);
            }

            .bridge-picker-option:hover {
                background: rgba(69, 229, 189, 0.08);
            }

            .bridge-picker-option .bridge-picker-icon,
            .bridge-picker-option .bridge-picker-icon img,
            .bridge-picker-option .bridge-picker-icon .token-fallback-badge {
                width: 38px !important;
                height: 38px !important;
                min-width: 38px !important;
            }

            .bridge-amount {
                min-height: 78px;
                padding: 14px 92px 14px 16px;
                border-radius: 18px;
            }

            .bridge-card .bridge-max {
                right: 18px;
                bottom: 20px;
            }

            .bridge-divider {
                margin: -2px 0;
            }

            .bridge-receive-box {
                min-height: 90px;
                border-radius: 18px;
                background: rgba(4, 10, 17, 0.86);
            }
        }

        @media (max-width: 480px) {
            .bridge-panel {
                gap: 10px;
            }

            .bridge-card {
                padding: 12px;
            }

            .bridge-select-grid {
                grid-template-columns: minmax(0, 1fr);
            }

            .bridge-picker-button {
                min-height: 54px;
            }

            .bridge-picker-menu {
                bottom: calc(84px + env(safe-area-inset-bottom)) !important;
                max-height: min(50vh, 390px) !important;
            }

            .bridge-picker-title {
                font-size: 0.9rem;
            }

            .bridge-picker-subtitle {
                max-width: none;
                font-size: 0.68rem;
            }

            .bridge-amount,
            .bridge-receive-amount {
                font-size: clamp(2rem, 11vw, 2.55rem);
            }
        }

        /* Elegant swap surface pass: quieter Jupiter-style rows. */
        .trading-panel {
            background: rgba(8, 13, 20, 0.74) !important;
            border-color: rgba(126, 150, 178, 0.14) !important;
            box-shadow: none !important;
        }

        .trade-tabs {
            height: 50px !important;
            margin-bottom: 14px !important;
            padding: 4px !important;
            border-radius: 999px !important;
            background: rgba(2, 7, 12, 0.62) !important;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025) !important;
        }

        .trade-tab {
            min-height: 42px !important;
            border-radius: 999px !important;
            font-size: 0.86rem !important;
            font-weight: 760 !important;
        }

        .trade-tab.active {
            background: rgba(183, 255, 89, 0.16) !important;
            color: var(--green) !important;
            border: 1px solid rgba(183, 255, 89, 0.24) !important;
            box-shadow: none !important;
        }

        .trade-section {
            margin-bottom: 0 !important;
        }

        .trade-label,
        .bridge-row-head {
            margin-bottom: 8px !important;
            color: rgba(237, 244, 255, 0.88) !important;
            font-size: 0.9rem !important;
            font-weight: 650 !important;
        }

        .input-container {
            min-height: 116px !important;
            grid-template-columns: minmax(128px, auto) minmax(0, 1fr) !important;
            grid-template-rows: minmax(0, 1fr) auto !important;
            align-items: center !important;
            gap: 10px 16px !important;
            padding: 18px 20px !important;
            border-radius: 22px !important;
            border: 1px solid rgba(126, 150, 178, 0.13) !important;
            background: rgba(22, 31, 45, 0.76) !important;
            box-shadow: none !important;
        }

        .token-select {
            grid-column: 1 !important;
            grid-row: 1 / 3 !important;
            justify-self: start !important;
            align-self: center !important;
            min-width: 0 !important;
            min-height: 50px !important;
            padding: 0 14px !important;
            border: 0 !important;
            border-radius: 999px !important;
            background: rgba(48, 56, 72, 0.78) !important;
            box-shadow: none !important;
        }

        .token-select:hover {
            background: rgba(58, 68, 88, 0.86) !important;
        }

        .token-select .token-icon,
        .token-select .token-icon img {
            width: 32px !important;
            height: 32px !important;
            min-width: 32px !important;
        }

        .token-name {
            font-size: 1rem !important;
            font-weight: 740 !important;
        }

        .dropdown-icon,
        .bridge-picker-caret {
            color: rgba(164, 176, 196, 0.82) !important;
            font-size: 0.78rem !important;
        }

        .amount-input {
            grid-column: 2 !important;
            grid-row: 1 !important;
            align-self: end !important;
            text-align: right !important;
            font-size: clamp(1.9rem, 4.8vw, 2.7rem) !important;
            font-weight: 650 !important;
            line-height: 1.08 !important;
            color: rgba(248, 250, 255, 0.97) !important;
        }

        .balance,
        .balance-row {
            grid-column: 2 !important;
            grid-row: 2 !important;
            justify-content: flex-end !important;
            text-align: right !important;
            color: rgba(151, 164, 186, 0.82) !important;
            font-size: 0.8rem !important;
            font-weight: 600 !important;
        }

        .balance-row {
            gap: 8px !important;
        }

        .max-btn,
        .bridge-max {
            min-height: 28px !important;
            padding: 0 10px !important;
            border: 0 !important;
            border-radius: 999px !important;
            background: rgba(183, 255, 89, 0.11) !important;
            color: rgba(202, 255, 116, 0.92) !important;
            font-size: 0.68rem !important;
            font-weight: 820 !important;
            box-shadow: none !important;
        }

        .swap-divider {
            height: 18px !important;
            margin: -1px 0 !important;
        }

        .swap-icon {
            width: 38px !important;
            height: 38px !important;
            border-radius: 999px !important;
            background: rgba(18, 27, 40, 0.98) !important;
            border-color: rgba(126, 150, 178, 0.16) !important;
            box-shadow: none !important;
            color: rgba(169, 181, 201, 0.9) !important;
            font-size: 1rem !important;
        }

        .settings-row {
            min-height: 34px !important;
            font-size: 0.8rem !important;
            border-bottom-color: rgba(126, 150, 178, 0.09) !important;
        }

        .settings-label,
        .settings-value {
            font-weight: 650 !important;
        }

        .action-btn {
            min-height: 50px !important;
            margin-top: 12px !important;
            border-radius: 18px !important;
            font-size: 0.94rem !important;
            font-weight: 800 !important;
            box-shadow: none !important;
        }

        .bridge-panel {
            gap: 10px !important;
        }

        .bridge-card {
            min-height: 0 !important;
            gap: 10px !important;
            padding: 16px 18px !important;
            border-radius: 22px !important;
            border-color: rgba(126, 150, 178, 0.13) !important;
            background: rgba(22, 31, 45, 0.76) !important;
            box-shadow: none !important;
        }

        .bridge-select-grid {
            gap: 8px !important;
        }

        .bridge-picker-button {
            min-height: 50px !important;
            grid-template-columns: 32px minmax(0, 1fr) 12px !important;
            gap: 9px !important;
            padding: 7px 12px !important;
            border: 0 !important;
            border-radius: 999px !important;
            background: rgba(48, 56, 72, 0.78) !important;
            box-shadow: none !important;
        }

        .bridge-picker.open .bridge-picker-button,
        .bridge-picker-button:hover {
            background: rgba(58, 68, 88, 0.86) !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }

        .bridge-picker-icon,
        .bridge-picker-icon img,
        .bridge-picker-icon .token-fallback-badge {
            width: 32px !important;
            height: 32px !important;
            min-width: 32px !important;
        }

        .bridge-picker-title {
            font-size: 0.9rem !important;
            font-weight: 740 !important;
        }

        .bridge-picker-subtitle,
        .bridge-balance,
        .bridge-estimate,
        .bridge-receive-note {
            color: rgba(151, 164, 186, 0.82) !important;
            font-size: 0.72rem !important;
            font-weight: 600 !important;
        }

        .bridge-amount {
            min-height: 64px !important;
            padding: 10px 82px 10px 14px !important;
            border: 0 !important;
            border-radius: 18px !important;
            background: rgba(5, 10, 16, 0.64) !important;
            text-align: right !important;
            font-size: clamp(1.9rem, 5vw, 2.55rem) !important;
            font-weight: 650 !important;
        }

        .bridge-card .bridge-max {
            right: 18px !important;
            bottom: 18px !important;
        }

        .bridge-receive-box {
            min-height: 64px !important;
            padding: 10px 14px !important;
            border: 0 !important;
            border-radius: 18px !important;
            background: rgba(5, 10, 16, 0.64) !important;
            align-content: center !important;
        }

        .bridge-receive-amount {
            text-align: right !important;
            font-size: clamp(1.9rem, 5vw, 2.55rem) !important;
            font-weight: 650 !important;
            color: rgba(248, 250, 255, 0.97) !important;
        }

        .bridge-picker-menu {
            box-shadow: 0 18px 50px rgba(0,0,0,0.36) !important;
        }

        .bridge-picker-option {
            border-radius: 14px !important;
            background: transparent !important;
        }

        .bridge-picker-option.active,
        .bridge-picker-option:hover {
            background: rgba(255,255,255,0.06) !important;
            border-color: transparent !important;
        }

        @media (max-width: 640px) {
            .trading-panel {
                padding: 10px !important;
                border-radius: 22px !important;
            }

            .input-container {
                min-height: 110px !important;
                padding: 15px !important;
                grid-template-columns: minmax(116px, auto) minmax(0, 1fr) !important;
                gap: 8px 12px !important;
            }

            .token-select {
                min-height: 46px !important;
                padding: 0 12px !important;
            }

            .token-name {
                font-size: 0.92rem !important;
            }

            .amount-input {
                font-size: clamp(1.65rem, 8.4vw, 2.25rem) !important;
            }

            .balance,
            .balance-row {
                font-size: 0.72rem !important;
            }

            .bridge-card {
                padding: 14px !important;
            }

            .bridge-amount,
            .bridge-receive-amount {
                font-size: clamp(1.65rem, 8.4vw, 2.25rem) !important;
            }
        }

        @media (max-width: 420px) {
            .input-container {
                grid-template-columns: minmax(104px, auto) minmax(0, 1fr) !important;
            }

            .token-select {
                gap: 6px !important;
                padding: 0 10px !important;
            }

            .token-select .token-icon,
            .token-select .token-icon img {
                width: 28px !important;
                height: 28px !important;
                min-width: 28px !important;
            }

            .amount-input {
                font-size: clamp(1.45rem, 7.6vw, 2rem) !important;
            }
        }

        /* Mobile correction: left-reading amounts and calmer top chrome. */
        .amount-input {
            text-align: left !important;
            font-size: clamp(1.45rem, 3.5vw, 2.05rem) !important;
            font-weight: 460 !important;
            line-height: 1.15 !important;
            color: rgba(238, 243, 252, 0.92) !important;
            letter-spacing: 0 !important;
        }

        .bridge-amount,
        .bridge-receive-amount {
            text-align: left !important;
            font-size: clamp(1.45rem, 3.5vw, 2.05rem) !important;
            font-weight: 460 !important;
            line-height: 1.15 !important;
            color: rgba(238, 243, 252, 0.92) !important;
            letter-spacing: 0 !important;
        }

        .amount-input::placeholder,
        .bridge-amount::placeholder {
            color: rgba(158, 166, 184, 0.54) !important;
        }

        @media (max-width: 640px) {
            .header {
                display: grid !important;
                grid-template-columns: auto minmax(0, 1fr) !important;
                align-items: center !important;
                gap: 10px !important;
                min-height: 54px !important;
                padding: 9px 12px !important;
                border-bottom-color: rgba(126, 150, 178, 0.08) !important;
                background: rgba(10, 17, 27, 0.72) !important;
                backdrop-filter: blur(18px) saturate(120%) !important;
            }

            .logo {
                min-width: 0 !important;
            }

            .brand-wordmark {
                font-size: 1.02rem !important;
                line-height: 1 !important;
                letter-spacing: 0.02em !important;
            }

            .header-actions {
                width: auto !important;
                display: grid !important;
                grid-template-columns: minmax(76px, 92px) minmax(0, 126px) !important;
                justify-content: end !important;
                align-items: center !important;
                gap: 7px !important;
                margin-left: 0 !important;
            }

            .network-btn {
                height: 38px !important;
                min-height: 38px !important;
                width: 100% !important;
                min-width: 0 !important;
                padding: 0 10px !important;
                border-radius: 999px !important;
                background: rgba(16, 25, 38, 0.86) !important;
                border-color: rgba(96, 245, 195, 0.22) !important;
                color: rgba(126, 255, 206, 0.94) !important;
                box-shadow: none !important;
                font-size: 0.78rem !important;
            }

            .network-logo {
                width: 19px !important;
                height: 19px !important;
            }

            .connect-btn:not(.connected),
            .connect-btn.connected {
                width: 100% !important;
                min-width: 0 !important;
                height: 38px !important;
                min-height: 38px !important;
                padding: 0 10px !important;
                border-radius: 999px !important;
                background: rgba(16, 25, 38, 0.88) !important;
                border: 1px solid rgba(126, 150, 178, 0.18) !important;
                color: rgba(238, 244, 255, 0.92) !important;
                box-shadow: none !important;
                font-size: 0.78rem !important;
                font-weight: 760 !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
            }

            .connect-btn:not(.connected):hover,
            .connect-btn.connected:hover {
                background: rgba(24, 36, 52, 0.94) !important;
                transform: none !important;
            }

            .connect-btn.connected .connected-wallet-mark {
                width: 20px !important;
                height: 20px !important;
                flex: 0 0 20px !important;
            }

            .wallet-chip-address {
                font-size: 0.78rem !important;
                min-width: 0 !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            .wallet-chip-chevron {
                font-size: 0.68rem !important;
            }

            .price-ticker {
                gap: 8px !important;
                padding: 9px 2px 2px !important;
            }

            .price-item {
                min-width: 138px !important;
                min-height: 44px !important;
                border-radius: 14px !important;
                padding: 8px 10px !important;
                background: rgba(9, 16, 26, 0.7) !important;
                border-color: rgba(126, 150, 178, 0.12) !important;
            }

            .price-symbol,
            .price-value,
            .price-change {
                font-size: 0.74rem !important;
            }

            .input-container {
                grid-template-columns: minmax(0, 1fr) !important;
                grid-template-rows: auto auto auto !important;
                align-items: start !important;
                min-height: 118px !important;
            }

            .token-select {
                grid-column: 1 !important;
                grid-row: 1 !important;
                justify-self: start !important;
                margin-bottom: 2px !important;
            }

            .amount-input {
                grid-column: 1 !important;
                grid-row: 2 !important;
                align-self: start !important;
                text-align: left !important;
                padding-top: 8px !important;
                font-size: clamp(1.28rem, 7vw, 1.72rem) !important;
                font-weight: 430 !important;
            }

            .balance,
            .balance-row {
                grid-column: 1 !important;
                grid-row: 3 !important;
                justify-content: flex-start !important;
                text-align: left !important;
            }

            .bridge-amount {
                padding: 10px 72px 10px 14px !important;
                text-align: left !important;
                font-size: clamp(1.28rem, 7vw, 1.72rem) !important;
                font-weight: 430 !important;
            }

            .bridge-receive-amount {
                text-align: left !important;
                font-size: clamp(1.28rem, 7vw, 1.72rem) !important;
                font-weight: 430 !important;
            }
        }

        @media (max-width: 380px) {
            .brand-wordmark {
                font-size: 0.92rem !important;
            }

            .header-actions {
                grid-template-columns: 76px minmax(0, 108px) !important;
                gap: 5px !important;
            }

            .network-btn,
            .connect-btn:not(.connected),
            .connect-btn.connected {
                font-size: 0.72rem !important;
                padding-inline: 8px !important;
            }
        }

        /* Final layout/action polish: centered swap shell and mobile in-card connect. */
        .main-content {
            grid-template-columns: minmax(360px, 520px) !important;
            justify-content: center !important;
            justify-items: stretch !important;
            width: 100% !important;
            max-width: 100% !important;
            margin-inline: auto !important;
        }

        .main-content:has(.solana-assets-panel.show) {
            grid-template-columns: minmax(360px, 520px) minmax(420px, 560px) !important;
            justify-content: center !important;
        }

        .trading-panel {
            width: min(100%, 520px) !important;
            margin-inline: auto !important;
        }

        .inline-market-action {
            display: none !important;
        }

        @media (max-width: 1100px) {
            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(0, 520px) !important;
            }
        }

        @media (max-width: 640px) {
            .main-content,
            .main-content:has(.solana-assets-panel.show) {
                grid-template-columns: minmax(0, 1fr) !important;
                justify-items: center !important;
            }

            .trading-panel {
                width: 100% !important;
                max-width: 100% !important;
            }

            .inline-market-action {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 100% !important;
                min-height: 48px !important;
                margin: 12px 0 8px !important;
                border-radius: 16px !important;
            }

            #swapBtn.market-only {
                display: none !important;
            }
        }

        /* Lower market widgets: calmer cards and mobile-safe stat chips. */
        .market-stats-bar {
            display: grid !important;
            grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)) !important;
            gap: 10px !important;
            width: 100% !important;
            max-width: 1040px !important;
            margin: 22px auto 8px !important;
            padding: 0 !important;
            overflow: visible !important;
            border: 0 !important;
            background: transparent !important;
        }

        .stat-chip {
            min-width: 0 !important;
            min-height: 50px !important;
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) auto !important;
            align-items: center !important;
            gap: 8px !important;
            padding: 10px 12px !important;
            border-radius: 16px !important;
            background: rgba(11, 18, 28, 0.72) !important;
            border: 1px solid rgba(126, 150, 178, 0.13) !important;
            white-space: normal !important;
            box-shadow: none !important;
        }

        .stat-chip-label {
            min-width: 0 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            color: rgba(151, 164, 186, 0.78) !important;
            font-size: 0.78rem !important;
            font-weight: 620 !important;
        }

        .stat-chip-value {
            min-width: 0 !important;
            max-width: 100% !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            color: rgba(238, 243, 252, 0.94) !important;
            font-size: 0.82rem !important;
            font-weight: 780 !important;
            text-align: right !important;
        }

        .fg-meter {
            min-width: 0 !important;
            display: inline-grid !important;
            grid-template-columns: 8px minmax(0, auto) !important;
            align-items: center !important;
            justify-content: end !important;
            gap: 6px !important;
        }

        .section-header {
            width: min(100%, 1040px) !important;
            margin: 22px auto 10px !important;
            padding: 0 !important;
            border: 0 !important;
        }

        .section-title {
            gap: 8px !important;
            color: rgba(238, 243, 252, 0.9) !important;
            font-size: 0.98rem !important;
            font-weight: 820 !important;
            letter-spacing: 0 !important;
        }

        .top-coins-wrap,
        .news-feed,
        .tx-feed {
            width: min(100%, 1040px) !important;
            margin: 0 auto 18px !important;
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            overflow: visible !important;
        }

        .top-coins-head {
            display: none !important;
        }

        #topCoinsList {
            display: grid !important;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
            gap: 10px !important;
        }

        .top-coins-row {
            display: grid !important;
            grid-template-columns: 26px minmax(0, 1fr) auto !important;
            grid-template-rows: auto auto !important;
            align-items: center !important;
            gap: 4px 10px !important;
            min-width: 0 !important;
            padding: 12px !important;
            border: 1px solid rgba(126, 150, 178, 0.12) !important;
            border-radius: 16px !important;
            background: rgba(11, 18, 28, 0.72) !important;
            transition: border-color 0.16s ease, background 0.16s ease !important;
        }

        .top-coins-row:hover {
            background: rgba(17, 27, 40, 0.84) !important;
            border-color: rgba(183, 255, 89, 0.18) !important;
        }

        .coin-rank {
            grid-row: 1 / 3 !important;
            color: rgba(151, 164, 186, 0.54) !important;
            font-size: 0.72rem !important;
        }

        .coin-info {
            min-width: 0 !important;
            gap: 10px !important;
        }

        .coin-logo {
            width: 34px !important;
            height: 34px !important;
        }

        .coin-symbol {
            font-size: 0.88rem !important;
            font-weight: 800 !important;
        }

        .coin-name,
        .coin-vol {
            color: rgba(151, 164, 186, 0.66) !important;
            font-size: 0.72rem !important;
        }

        .coin-price {
            font-size: 0.9rem !important;
            font-weight: 780 !important;
        }

        .coin-change {
            grid-column: 3 !important;
            grid-row: 2 !important;
            font-size: 0.76rem !important;
            text-align: right !important;
        }

        .coin-vol {
            grid-column: 2 !important;
            grid-row: 2 !important;
            text-align: left !important;
        }

        .news-feed,
        .tx-feed {
            display: grid !important;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
            gap: 10px !important;
        }

        .news-item,
        .tx-item {
            min-width: 0 !important;
            border: 1px solid rgba(126, 150, 178, 0.12) !important;
            border-radius: 16px !important;
            background: rgba(11, 18, 28, 0.72) !important;
            padding: 13px 14px !important;
            box-shadow: none !important;
        }

        .news-item {
            align-items: flex-start !important;
        }

        .news-dot {
            width: 6px !important;
            height: 6px !important;
            margin-top: 7px !important;
            background: rgba(183, 255, 89, 0.78) !important;
            animation: none !important;
        }

        .news-title {
            color: rgba(238, 243, 252, 0.9) !important;
            font-size: 0.84rem !important;
            font-weight: 720 !important;
            line-height: 1.35 !important;
        }

        .news-meta {
            flex-wrap: wrap !important;
            gap: 6px 8px !important;
            color: rgba(151, 164, 186, 0.62) !important;
        }

        .news-source {
            color: rgba(183, 255, 89, 0.76) !important;
        }

        .tx-item {
            display: grid !important;
            grid-template-columns: 34px minmax(0, 1fr) auto !important;
            gap: 10px !important;
        }

        .tx-icon {
            width: 34px !important;
            height: 34px !important;
            border-radius: 12px !important;
            background: rgba(48, 56, 72, 0.62) !important;
        }

        .tx-info {
            min-width: 0 !important;
        }

        .tx-pair {
            color: rgba(238, 243, 252, 0.92) !important;
            font-size: 0.86rem !important;
            font-weight: 780 !important;
        }

        .tx-detail,
        .tx-time {
            color: rgba(151, 164, 186, 0.62) !important;
            font-size: 0.72rem !important;
        }

        .tx-amount {
            font-size: 0.88rem !important;
            font-weight: 780 !important;
            white-space: nowrap !important;
        }

        @media (max-width: 640px) {
            .market-stats-bar {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 8px !important;
                margin-top: 18px !important;
            }

            .stat-chip {
                min-height: 52px !important;
                grid-template-columns: minmax(0, 1fr) !important;
                align-content: center !important;
                gap: 2px !important;
                padding: 9px 10px !important;
            }

            .stat-chip-label,
            .stat-chip-value {
                width: 100% !important;
                text-align: left !important;
                font-size: 0.72rem !important;
            }

            .fg-meter {
                justify-content: start !important;
                width: 100% !important;
            }

            .section-header {
                display: flex !important;
                margin-top: 18px !important;
            }

            .section-title {
                font-size: 0.9rem !important;
            }

            #topCoinsList,
            .news-feed,
            .tx-feed {
                grid-template-columns: minmax(0, 1fr) !important;
            }

            .top-coins-row {
                grid-template-columns: 22px minmax(0, 1fr) auto !important;
                padding: 11px !important;
            }

            .coin-logo {
                width: 32px !important;
                height: 32px !important;
            }

            .coin-price,
            .tx-amount {
                font-size: 0.82rem !important;
            }

            .coin-vol {
                display: none !important;
            }
        }
    
