   @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
    
    body.tsm-modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
        touch-action: none;
    }
    
    .tsm-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 999999999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }
    
    .tsm-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .tsm-modal {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: #0D0D0D;
        border-radius: 16px;
        width: 100%;
        max-width: 380px;
        overflow: hidden;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 40px rgba(0,0,0,0.4);
        transform: scale(0.95);
        transition: all 0.25s ease;
    }
    
    .tsm-overlay.active .tsm-modal {
        transform: scale(1);
    }
    
    .tsm-modal.light {
        background: #FFFFFF;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.15);
    }
    
    .tsm-header {
        padding: 20px 20px 16px;
        text-align: center;
        position: relative;
    }
    
    .tsm-close {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        border: none;
        background: rgba(255,255,255,0.06);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s ease;
    }
    
    .tsm-close:hover {
        background: rgba(255,255,255,0.12);
    }
    
    .tsm-modal.light .tsm-close {
        background: rgba(0,0,0,0.04);
    }
    
    .tsm-modal.light .tsm-close:hover {
        background: rgba(0,0,0,0.08);
    }
    
    .tsm-close svg {
        width: 12px;
        height: 12px;
        stroke: #888;
        stroke-width: 2;
    }
    
    .tsm-title {
        font-size: 17px;
        font-weight: 600;
        color: #FFFFFF;
        margin: 0;
    }
    
    .tsm-modal.light .tsm-title {
        color: #0D0D0D;
    }
    
    .tsm-body {
        padding: 0 12px 12px;
        max-height: 55vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
    
    .tsm-list {
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        overflow-y: auto;
        max-height: 40vh;
        border: 1px solid rgba(255,255,255,0.06);
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    .tsm-modal.light .tsm-list {
        background: rgba(0,0,0,0.02);
        border-color: rgba(0,0,0,0.06);
    }
    
    .tsm-wallet {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        cursor: pointer;
        transition: all 0.15s ease;
        border: none;
        background: transparent;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        position: relative;
    }
    
    .tsm-wallet:last-child {
        border-bottom: none;
    }
    
    .tsm-wallet:hover {
        background: rgba(255,255,255,0.04);
    }
    
    .tsm-wallet:active {
        background: rgba(255,255,255,0.06);
    }
    
    .tsm-modal.light .tsm-wallet {
        border-bottom-color: rgba(0,0,0,0.04);
    }
    
    .tsm-modal.light .tsm-wallet:hover {
        background: rgba(0,0,0,0.03);
    }
    
    .tsm-wallet.selected {
        background: rgba(220, 38, 38, 0.08);
    }
    
    .tsm-wallet.selected::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 24px;
        background: #DC2626;
        border-radius: 0 3px 3px 0;
    }
    
    .tsm-wallet-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(255,255,255,0.06);
    }
    
    .tsm-modal.light .tsm-wallet-icon {
        background: rgba(0,0,0,0.04);
    }
    
    .tsm-wallet-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    
    .tsm-wallet-name {
        flex: 1;
        margin-left: 12px;
        font-size: 14px;
        font-weight: 500;
        color: #FFFFFF;
    }
    
    .tsm-modal.light .tsm-wallet-name {
        color: #0D0D0D;
    }
    
    .tsm-wallet-arrow {
        width: 16px;
        height: 16px;
        stroke: #555;
        flex-shrink: 0;
    }
    
    .tsm-modal.light .tsm-wallet-arrow {
        stroke: #999;
    }
    
    .tsm-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        cursor: pointer;
        color: #888;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.15s ease;
        background: transparent;
        border: none;
        width: 100%;
    }
    
    .tsm-toggle:hover {
        color: #DC2626;
    }
    
    .tsm-toggle svg {
        width: 14px;
        height: 14px;
        margin-left: 6px;
        stroke: currentColor;
        transition: transform 0.2s ease;
    }
    
    .tsm-toggle.expanded svg {
        transform: rotate(180deg);
    }
    
    .tsm-warning {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 9999999999;
        align-items: center;
        justify-content: center;
    }
    
    .tsm-warning.active {
        display: flex;
    }
    
    .tsm-warning-box {
        background: #0D0D0D;
        border-radius: 16px;
        padding: 24px;
        max-width: 300px;
        text-align: center;
        margin: 20px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    
    .tsm-warning-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 16px;
        background: rgba(220, 38, 38, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tsm-warning-icon svg {
        width: 24px;
        height: 24px;
        fill: #DC2626;
    }
    
    .tsm-warning-title {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 8px;
    }
    
    .tsm-warning-text {
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        color: #888;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .tsm-warning-btn {
        font-family: 'Inter', sans-serif;
        background: #DC2626;
        color: #fff;
        border: none;
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    
    .tsm-warning-btn:hover {
        background: #B91C1C;
    }
    
    .tsm-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .tsm-body::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .tsm-body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    @media (max-width: 480px) {
        .tsm-modal {
            max-width: 100%;
            max-height: 70vh;
            border-radius: 16px 16px 0 0;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
        }
        
        .tsm-overlay.active .tsm-modal {
            transform: translateY(0);
        }
        
        .tsm-overlay .tsm-modal {
            transform: translateY(100%);
        }
    }
